Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How i fix a numbervalue going to negative?

Asked by
kaemi 21
7 years ago

Hello There How i can fix a value going to negative just a script prevents the number going to negative value just to prevent to appear as minus in the leaderboard

2 answers

Log in to vote
0
Answered by 7 years ago

math.clamp()

0
hey thanks for help but i fixed it :3 kaemi 21 — 7y
Ad
Log in to vote
0
Answered by
kaemi 21
7 years ago

Finnaly Fixed it myself all i have to do is this

players = game.Workspace

while true do
        if players.Value.Value < 0 then
        players.Value.Value = 0
        end
        wait()
    end

Answer this question