How to Make a Tool Perk

Im making a tool shop and I need the Items to have perks when you equip the item, all Im asking for is a line of code to say when the tool is equiped though
thanks!

1 Like

You could use the events tool.Equipped and tool.Unequipped

https://developer.roblox.com/en-us/api-reference/event/Tool/Equipped
https://developer.roblox.com/en-us/api-reference/event/Tool/Unequipped

If you want to know if someone has it equipped without the events you could just check if the user has it as inside of there character.

How would I get the player that has the tool?

1 Like

What do you mean by that? If its a tool shop would it not be the user who clicks the tool button or smthing.

You could have a script in the tool and view the character or player who has it.

1 Like

Yes How would I view the character that has it?

1 Like

Well if you have the script in the tool you would just see what character the tool is inside.

I highly recommend you read/learn about how Roblox tools work cuz it’s quite clear you don’t.

1 Like

Hold up, I think I got it, wait a sec.

1 Like

If you want to make a tool with a perk my favorite method is either making Attributes which you can read more about here:

And paired with the tool.Equipped and tool.Unequipped events you can easily give the character the preferred boosts

Another way to tackle this is to make values (boolValues, intValues, stringValues, etc.) to you tool and then get the perk’s details from there

1 Like