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

Why doesn't my tool change color when equipped?

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)

6 comments

0

If this is in a Script, I believe that it should be a LocalScript. Also "connect" is deprecated. Use "Connect" instead.

0

Is this tool in StarterPack?

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

0

The script works just fine for me. What output error are you getting?

0

I always get the “Equipped is not a valid member of Part”

0

that happens because Equipped is not linked to parts, it is linked to tools

1 answer

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.

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