statxp.Changed:connect(function()
if statxp.Value >= xpMax.Value then
statxp.Value = statxp.Value - xpMax.Value
wait(.01)
passoverxp.Value = statxp.Value
wait(.01)
level.Value = level.Value + 1
xpMax.Value = xpMax.Value * 1.25
xpMax.Value = math.floor(xpMax+.5)
statxp.Value = statxp.Value + passoverxp.Value
passoverxp.Value = passoverxp.Value - passoverxp.Value
else
wait()
end
end)
If this script goes on for long enough raising the value of xpMax then it becomes a very large decimal. I was just wondering how I could round the xpMax value down so there are no decimals. |