Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ds2 = require(1936396537)
- game.ReplicatedStorage.Upgrade.OnServerInvoke = function(plr)
- local clicks = ds2("clicks", plr)
- local multiplier = ds2("multiplier", plr)
- local multipliers = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000}
- for i, v in pairs(multipliers) do
- if multiplier:Get(0)+1 == i then
- if clicks:Get(0) >= v then
- clicks:Increment(-v)
- multiplier:Increment(1)
- return {true, multipliers[i+1]}
- end
- end
- end
- return {false, 0}
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement