Ok so local script inside starterGui This is a really important part of my game and I need to make sure that the frame and the local script has loaded
v StarterGui LocalScript v Frame MainScript (disabled)
( LocalScript named LocalScript)
wait(5)
script = Script.Parent.Frame:WaitForChild("MainScript")
wait(2)
script.Disabled = false
( LocalScript named MainScript)
print("ok")
The script worked for me, but I just need to know if this is a good way of checking if the script has loaded or there is a better way?

1 comment
ok