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

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

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

4 comments

0

I don't understand the question. Also you forgot the 'then' keyword before 'break'

0

You forgot then, and you could try disabling and enabling it again.

0

Whatever you're trying to do can and should be done without copying a script.

0

No because it requires two scripts to tween at the same time :/

2 answers

✓ Accepted answer

You can complete this with one simple line of code

while script.Parent.Name ~= "LoadGui" do wait() end

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

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