hi so i have made a simple script the adds 1 click to the value * the value of the booster the problem is idk how do i make the equation correctly can someone help?
this is the best I could do
if clicks then
if clicks.Value == 0 then
clicks.Value = (clicks.Value + 1) * boosts.Value
clickcount:FireClient(player,clicks.Value)
else
clicks.Value = clicks.Value + ( 1 * boosts.Value)
clickcount:FireClient(player,clicks.Value)
If I’m getting this right, if boosts.Value is .5, then that would be a 50% boost, so it would change 2 into 3?
If that’s the case, then use clicks.Value += num * (1 + boosts.Value)
num in this case is 1, the number you want to be added per click
If boosts.Value is 1.5 and gives 50% boost, then
clicks.Value += num * boosts.Value
no 5 is not 50% its 5 times the click value i didnt put the * in the post sorry.
I know Lua doesn’t really care about it, but indent. It will help your eyes. 
1 Like
if clicks then
clicks.Value = clicks.Value + 1 * boosts.Value
clickcount:FireClient(player,clicks.Value)
Try this
I did not see any need for the else, as clicks.Value + 1 * boosts.Value is equivalent to clicks.Value + (1 * boosts.Value) due to BEDMAS math equation orders