I tried coding it out but I failed miserably.
How Do i script a Play button that teleports you to 1 - 5 parts?
1 answer
I do not know what you mean by 1-5 parts, but I do happen to have the code for the start button and a starting menu if that would be any help. Ok, here's how you do it:
First, you find StarterGui in Explorer.
Then you ctrl click (if on mac) on StarterGui and go to insert object.
Insert a ScreenGui.
I named this ScreenGui "StartingMenu"
Next ctrl click StartingMenu and insert object: Frame
I named this frame "Background"
You can orient this frame however you like but I like to make it full screen
ctrl click on Background and insert object: TextButton
I named this button "PlayButton"
Then, ctrl click on Background once more and insert object: LocalScript (NOT JUST SCRIPT)
I named this LocalScript "MenuScript"
Now we can start scripting:
--these are the variables that we will need
DaScript = script.Parent.MenuScript
Frame = script.Parent -- this is the background
Play = Frame.PlayButton --I named the PlayButton "Play" for simplicity
GUI = script.Parent.Parent
--Now we make function PlayClicked()
function PlayClicked()
wait(0.5)
GUI:Destroy()--hides the GUI
end
Play.MouseButton1Click:connect(PlayClicked)
1 comment
First of all, the variable "DaScript" is not something you need if you aren't gonna reference it somewhere in the script. Plus, destroying the ScreenGui object isn't gonna hide it. It would be better to just set the main frame's visiblity to false.
This discussion is preserved as it was. New answers, comments, and votes are closed.

4 comments
What do you mean teleports you to 1-5 parts? Can you please provide the code you tried, but failed "miserably" at?
1 to 5 parts is what i mean
A random part? Or just teleport to each one in order?
^