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

Why doesn't my tool change color when equipped?

Asked by 5 years ago

The script always says something about the Equipped not working, I'm not sure if it is outdated or something else it wrong?

Here the script:

tool = script.Parent

    tool.Equipped:connect(function()
    tool.Handle.BrickColor = BrickColor.new("Camo")
end)

tool.Activated:connect(function()
    tool.Handle.BrickColor = BrickColor.new("Bright yellow")
end)

0
If this is in a Script, I believe that it should be a LocalScript. Also "connect" is deprecated. Use "Connect" instead. lunatic5 409 — 5y
0
Is this tool in StarterPack? SBlankthorn 329 — 5y
0
i put it in a LocalScript didn't work still, and also put it in the starter pack, but in the output it says about the Equppied, i don't know if that equppied is outdated tho paperking12 20 — 5y
0
The script works just fine for me. What output error are you getting? ProtectoidZ 42 — 5y
View all comments (2 more)
0
I always get the “Equipped is not a valid member of Part” paperking12 20 — 5y
0
that happens because Equipped is not linked to parts, it is linked to tools INOOBE_YT 387 — 5y

1 answer

Log in to vote
0
Answered by
oftenz 367 Moderation Voter
5 years ago

From reading your above replies, it seems that you aren't understand what a Tool is. You can read the exact properties from the wiki link. Make sure script.Parent is in a TOOL not a PART. There must be a handle as well according to your script.

Ad

Answer this question