Currently working on a simulator type game and I’m making a rebirth thing right now. I’m currently trying to make it so when you have a rebirth of one or more then every time you click you will get 5 clicks every time instead of one without the rebirth. The issue is that it’s not working. I’ve tried debugging it by printing but with no success.
Code:
script.GetClick.OnServerEvent:Connect(function(plr)
local leaderstats = plr:WaitForChild("leaderstats")
if leaderstats.Rebirths.Value >= 1 then
leaderstats.Clicks.Value = leaderstats.Clicks.Value + 5
print("Rebirth Changed")
elseif leaderstats.Rebirths.Value <1 then
print("Rebirth Unchanged")
leaderstats.Clicks.Value = leaderstats.Clicks.Value + 1
end
end)