Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

So I am having a problem with my roblox model tools. Please look at the other part. Please?

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 from YT

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)

1 comment

0

Activated and eqquiped is the same thing.

1 answer

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)
-
-- ========================================

1 comment

0

so jesse it repeatly says error error error

This discussion is preserved as it was. New answers, comments, and votes are closed.