Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

getting an error everytime you equip a tool, how do I fix it?

Asked by 2 years ago

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.

0
where is that script? jerryisgod29 176 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago
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

Ad

Answer this question