You can also call another function inside of that script and return the renderstepped.
if i stop it, then the gui would be visible indefinitely.
Huh? Before returning it you want to destroy the gui if you cloned it or reset it from earlier. You can also tp the player behind the âcounterâ where the egg is.
I dont destroy any guis. I just set the visible to be true. You are saying to stop the entire script which is not possible in this case.
I am so confused here. The last option you could try is coroutine. I have no clue why you canât just stop it. You should be using a remote event to run the gui with the egg hatching inside too.
why would I create a thread⌠it isnt needed in this case.
Lol I already have a remote events ready. I am redoing the code for the egg system. Plus, stopping it would stop the other scripts attached to it
I mean you could turn that into something useful.
I really donât know then, sorry. This system shouldnât be this complicated. (In my opinion.)