Heya guys, I wanted to make a tool that increases a value whenever activated, this is the script I tried. (I used Roblox's script template.)
local tool = script.Parent
local function onEquip()
end
local function onUnequip()
end
local function onActivate()
game.Players.LocalPlayer.Character.Humanoid.BodyWidthScale.Value =
end
local function onDeactivate()
end
tool.Equipped:Connect(onEquip)
tool.Unequipped:Connect(onUnequip)
tool.Activated:Connect(onActivate)
tool.Deactivated:Connect(onDeactivate)
For example, the value is 1. When the tool is activated, it increases to 2. And then when it is activated again, it's 3 and so on.

7 comments
When I tested the script, it increases the value whenever it's equipped. I wanted it to increase the value when the player CLICKS(Activates) the tool.
Great, then don't be a script kitty, and move the obvious addition line to where it needs to be
Yes ^, however it seems I cannot get around the :Activated() event, so I made a further revision in the script above which should make it so the value is increasing when the tool is equipped and is clicked.
I'm sorry for being one- I had no idea I was acting like that. Yes, I tried switching the addition line, but it doesn't work either-
Zach, try to use the updated code above.
I'm afraid it still doesn't work ^, I tried clicking a bunch of times.
Works when I do it.