So um I have different parts on a model Tool* and the other parts are in a different place mean while the "Handle" Is on my hand Can anyone help me with that? here is the script
tool = script.Parent handle = tool:WaitForChild("Handle")
tool.Equipped.Connect(function() print("The tool was equipped") end)
tool.Activated:Connect(function() print("The tool has been clicked") end)
tol.Unequipped:Connect(function() print("The tool was unequipped") end)
tool.Deactivated:Connect(function() print("The tool has been clicked") end)
put your script in a local scripr Learn more about tools click here
-- ======================================== -- GLOBAL VARIABLES -- ======================================== local power = 30 wait() local tool = nil local fly = false local player = game.Players.LocalPlayer local character = player.Character if not character or not character.Parent then character = player.CharacterAdded:wait() end local char = character:FindFirstChild("UpperTorso") if not char then char = character:FindFirstChild("Torso") end local mouse = game.Players.LocalPlayer:GetMouse() local function setupTool() tool = Instance.new("Tool") tool.Name = "tool" tool.RequiresHandle = false tool.Parent = game.Players.LocalPlayer.Backpack script.Parent = tool tool.Parent = game.Players.LocalPlayer.Backpack end setupTool() -- Start flying when player uses tool function onSelected() character.Humanoid.PlatformStand = true end end end wait() end end function onDeselected() character.Humanoid.PlatformStand = false end end bpos.Parent = nil end tool.Unequipped:Connect(function() tool.Activated:Connect(onSelected) tool.Deactivated:Connect(onDeselected) - -- ========================================