Tools (工具)

Tools (工具) 在 Roblox 中是玩家可以裝備和使用的交互式物品,用於執行攻擊或與遊戲世界互動等動作。

  • 在 Workspace (工作區)添加工具.
  • 將工具模型移動到 Tool (工具)內
  • 向 Tool (工具)添加一個 Part (部件),並將其重命名為“Handle”(Roblox 要求該部分命名為“Handle”以確保工具正常工作).
  • 調整並對齊 Handle (把手),然後將其設置為透明.
  • 將 Tool (工具)移動到 StarterPack (玩家加入時自動加載) 或 ServerStorage.
local tool = script.Parent

local function onActivated()
    local sound = tool:FindFirstChild("Sound")
    
    if sound then
        sound:Play()
    end
end

tool.Activated:Connect(onActivated)

如果你覺得這個教程對你有幫助,並且願意支持我的工作,請考慮請我飲杯咖啡。

非常感謝你的支持!

請我飲杯咖啡