Im trying to make it so when text changes to no, auto ticks(points) is off but when text changes to yes, it will turn on again
I made a system and it works but when i turn it off and on again it does not give it anymore, even if text says yes
amount = 1
timedelay = 1
currencyname = "Ticks"
local status = workspace.AutoTicks.Status.SurfaceGui.TextButton
while status.Text == "YES" do
wait(timedelay)
for i,v in pairs(game.Players:GetPlayers()) do
if v:FindFirstChild("leaderstats") then
v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount
end
end
end

1 comment
thanks