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

How do I make a Value never go to negative numbers?

Asked by 6 years ago
Edited 6 years ago

All I need is for the value to not get -1, all I want to do is for someone to have a limit 3 spins, but somehow the value can be -1 or lesser than -1.

2 answers

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

I'm not exactly sure the context of your script and everything but i think i know what you're asking for

if SpinValue > 0 then
end

this should be what you're looking for, spin value is what u base ur spins off of, basically saying if this value is higher than 0 run. Hope it helped, if you want it to spin while its at 0 you can do

if SpinValue >= 0 then
end

but this would probably turn the value to -1

0
It ain't working :/ Froredion 15 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

PERFECT! Just fixed the script, thanks for some help that I came up with another idea even tho it didn't work. @DeviantProphet

Answer this question