I have three local functions that I want to use forever in memory:
proxy:PlayerParamRecover();
proxy:PlayerRecover();
proxy:EnableInvincible(10000,true);
I'm not sure how to add them in an infinite loop.
You want a while
loop:
while true do
proxy:PlayerParamRecover()
proxy:PlayerRecover()
proxy:EnableInvincible(10000,true)
end
Additional information here
Note that, since the while loop will always have control of the program after entering that loop, any code you write after it won't ever execute. Infinite loops are only useful in extreme cases - make sure that what you want to do warrants it.
There are two ways to use infinite loop:
repeat
-- do something
until false
-- or --
while true do
-- do something
end
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With