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
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