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

How to run a localscript, after it has been copied?

Asked by
H4X0MSYT 536 Moderation Voter
7 years ago

I can't seem to find a way to run a localscript thats been copied. It runs once I'm guessing and then when I need to copy it it's allready run and won't work. I've tried running it after it has been moved but it doesn't work.

while wait() do
    if script.Parent.Name == "LoadGui" break end
end
0
I don't understand the question. Also you forgot the 'then' keyword before 'break' NewVoids 97 — 7y
0
You forgot then, and you could try disabling and enabling it again. Master_JJ 229 — 7y
0
Whatever you're trying to do can and should be done without copying a script. 1waffle1 2908 — 7y
0
No because it requires two scripts to tween at the same time :/ H4X0MSYT 536 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

You can complete this with one simple line of code

while script.Parent.Name ~= "LoadGui" do wait() end
Ad
Log in to vote
0
Answered by
Pejorem 164
7 years ago

I'd just disable/enable script as needed. Or have some event in the local script that 'causes processing of code

Answer this question