so basically, I have a game with my friend and we tools but, when someone equips it, it gets and error saying "Equipped is not a valid member of Part "Workspace.SuperninjaYTbro.Right Arm" and I've been trying to fix it for 4 days now and no luck. how do I fix it?
here's the code
script.Parent.Parent.Parent.Equipped:Connect(function()
script.Parent:Resume()
local hu = script.Parent.Parent.Parent.Parent:FindFirstChildOfClass("Humanoid")
hu.WalkSpeed = 25
end)
that's basically it.
script.Parent.Parent.Parent
It refers to SuperninjaYTbro's Right arm, be sure you count how many .Parent you actually need
You wants your script.Parent.Parent.Parent
to actually refers to your tool