|
Anyone know how to make the wait time infinity? For example, I've got it like this
Wait (*Number*)
Anyway so it's basically infinity? I tried a bunch of 9s but it disappeared in just a few seconds... So, if anyone can tell me what to put so it last forever, I'll be grateful. |
|
tumoursJoin Date: 2015-02-17 Post Count: 4928 |
|
|
|
wait(math.huge)
print("I'll never print ;c") |
|
|
Apparently roblox won't let you wait math.huge because it passed instantly
for _ = 1, math.huge, 1 do
wait(9 ^ 9)
end
print("Now I really will never print") |
|
|
Yeah, just tried math.huge, no luck. I'll try that. |
|
|
Nope, perhaps I should mention it's for a rag doll. Not just any normal ragdoll, the body gets cut in half but it has been made so it eventually will disappear, trying to get the dead body to stay forever. |
|
|
Well what I posted would never stop waiting.
Maybe the ragdoll script is adding the parts to the debris?
Just remove the part of the script that removes the bodies. |
|
|
Hm, I think you may be right, let me try something. |
|
|
redlo43Join Date: 2011-02-16 Post Count: 4722 |
repeat wait() until nil |
|
|
Don't make the wait time so little guys
I did 9 ^ 9 so the script will never, if not never than rarely, ever actually complete the loop. So the script isn't actually ever doing anything but waiting, so it won't lag. |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
why wait forever.
why not just let the script stop running or break out of the loop
wtf
why would you ever need it to wait forever. |
|
|
|
Because I will wait I will wait for youuuu
https://www.youtube.com/watch?v=65Fi9tt6emI |
|
|
Body is lasting forever, just editing some stuff. Testing on NPCs, it looks strange due to the body having a weird amount of hats but I'm going to add it to my game and see if it has work. Thanks for the help guys. |
|
|
|
Victory! I can confirm that with the help, I have succeeded in doing what I intended to do. Once again, thanks for your contributions on trying to help me. |
|
ZawieJoin Date: 2010-07-04 Post Count: 6338 |
unless somebody actually waits 9^9 seconds |
|
|
I didn't really think about what I was saying
By 'rarely' waits that amount of time I meant never
9 ^ 9 seconds would be 12.28 years
so yeah the loop wasn't needed oops |
|
|
|