Is there a way to detect how many times a player clicked on a tool

Is there a way to detect how many times a player clicked on a tool

1 Like

Yes! You could put a value in the tool and every time a player clicks it adds one to the value

function when the play hits:
tool.[whatever value name].value = tool.[whatever value name].value + 1

1 Like

is there a way to activate or do something after the value reaches a certain number

Yes! you could make it so every time a player clicks before it adds a value it says

if [whatever value name].value == [MAX NUMBER] then
Code here to activate something
else
Add one because it has not reached the max yet
end

am i actually supposed to insert a value into the tool?

Yes i would be happy to make a model for you of this system and send it to you if it is not working

yes please im a bit confused
im not being pro gamer

Alright i will in a lil bit and send you the .rbxm file!

Try this. Put it in starter pack for testing. Hold it out and click. It should print some stuff to tell whats happening.

this is mine sorry it took so long i had to do something

Tool.rbxm (236.1 KB) - THIS IS OPEN FOR ANYONE THAT SEES THIS TO USE