Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

What are the possibilites of my script glitching read [description]? Time - Run Related

So I know that script runs one by one line by line

and I know it takes a tiny bit of microsecond to run

so basically I have a round script that moves every single block the players has built from one folder to another folder

the problem is that I have a script on player removing where it removes the players folder with all the buildings on it

is it possible for the player to leave just right on time so that when I do :GetChildren and I try and clone the players folder to another folder

the folder dissapears because of the player removing

Thus erroring and ruining and stopping the entire round

and stopping my game?

1 comment

0

Not all scripts run every line in order. some are event driven, others are sequential. This is a good question because normally I save data in a table and that's just how I like to use it. I use bindtoclose and take that data. When a player leaves, I have to remove them from it to prevent memory leaks. I believe that it is possible since its on the server and will fully run.

1 answer

It's almost impossible since it take less than 1 millisecond to move a block parent to another instance

So I can say, you do not need to care about it except the delay is big, it is redundant to prevent it because no one use a FindFirstChild or pcall wrap when moving a brick parent to another, since that waste data and I'd recommend you to not do anything about it

This discussion is preserved as it was. New answers, comments, and votes are closed.