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

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

Asked by 3 years ago

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?

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. greatneil80 2647 — 3y

1 answer

Log in to vote
0
Answered by
Xapelize 2658 Moderation Voter Community Moderator
3 years ago

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

Ad

Answer this question