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

How do I muse a NumberValue(Bool)'s amount?

Asked by 7 years ago

Hello! Just a question, how do I make a NumberValue(Bool)'s amount be the time that a wait command would use?

Thanks

1 answer

Log in to vote
1
Answered by
duckwit 1404 Moderation Voter
7 years ago

You need to use a NumberValue instance, not a BoolValue.

NumberValue stores a double precision floating point number, which practically means anything that isn't a plain whole number - numbers like 1.7897 and 7983.330 instead of just 1 and 7983.

You can save the time returned by wait() like this:

myNumberValue.Value = wait()
Ad

Answer this question