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.
1 | while wait() do |
2 | if script.Parent.Name = = "LoadGui" break end |
3 | end |
You can complete this with one simple line of code
1 | 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