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

How do I remove a Script after its runned?

I have a LocalScript inside my StarterGui that contains a intro. and I want the intro to run and then gets destroyed so it wont replay after you die

2 answers

Well, referring to your answer, not exactly. If you're planning on making an introduction GUI, I suggest using the ReplicatedFirst service.

Your method of removing it from the StarterGui service, will make it so that introduction doesn't load for anyone else that joins the game, which is definitely not what you want.

I made a video recently on how the ReplicatedFirst service works, and how it can be used: https://www.youtube.com/watch?v=WxzgO-60XPw

I also suggest you take a look at ROBLOX's documentation of the service, for any other questions you may have. Here are some links:

http://wiki.roblox.com/index.php?title=API:Class/ReplicatedFirst http://wiki.roblox.com/index.php?title=Custom_loading_screen

nvm I got it :D game.StarterGui.BlueLoadingbar:remove()

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