I intended to make this script so that whenever you reach 10 Stages you get 1 Skips.
If you get 20 Stages you would have received 2 skips but you could use these up... so the math.floor(Stage.Value/10) would not work for this script.
What could i do ?
game.Players.PlayerAdded:connect(function(plr)
local PlayerStats = plr:WaitForChild("PlayerStats")
local Stage = PlayerStats:WaitForChild("Stage")
local Skips = PlayerStats:WaitForChild("Skips")
Stage.Value.Changed:connect(function(plr)
if Skips.Value == math.floor(Stage.Value/10) then
Skips.Value = Skips.Value + 1
end
end)
end)
