Trouble with :EquipTool

Greetings,

I have a bit of an issue with the :EquipTool function while trying to equip a tool. It has a handle, the backpack is disabled and the script is a normal one. I get no errors, code below! Please help.

local ServerStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(player)
	local t = ServerStorage:FindFirstChild("Petition"):Clone()
	local char = player.Character or player.CharacterAdded:Wait()
	local hum = char:FindFirstChildOfClass("Humanoid")
	
	hum:EquipTool(t)
end)

Thanks!

1 Like

here’s something similar to your problem

2 Likes

try this:

local ServerStorage = game:GetService("ServerStorage")

game.Players.PlayerAdded:Connect(function(player)
	local char = player.Character or player.CharacterAdded:Wait()
	
	local t = ServerStorage:FindFirstChild("Petition"):Clone()
	t.Parent = player:WaitForChild("Backpack")

	local hum = char:FindFirstChildOfClass("Humanoid")

	hum:EquipTool(t)
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.