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!
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?
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.
Yes How would I view the character that has it?
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.
Hold up, I think I got it, wait a sec.
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