generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How do you make a " Main Menu" GUI

Previous Thread :: Next Thread 
GUESTHAXX is not online. GUESTHAXX
Joined: 16 Apr 2012
Total Posts: 3370
01 Aug 2012 10:44 AM
I think that's what its called...

Anyways I want to make a GUI that will ALWAYS show up when you enter the game, and have these Options:

"Play"
"Info"
"Credits"

I can make the Credits and Info options.. its just I need to know how to make the GUI only appear on time. (Only when you enter the game. Not every time you respawn.)


And is it Main Menu or Start Menu?
Report Abuse
Colt324 is not online. Colt324
Joined: 19 Aug 2009
Total Posts: 1562
01 Aug 2012 10:45 AM
clone the gui from a cache (lighting) using the .ChildAdded event
Report Abuse
GUESTHAXX is not online. GUESTHAXX
Joined: 16 Apr 2012
Total Posts: 3370
01 Aug 2012 10:58 AM
Like so?


function Entered(player)
wait()

game.Players.ChildAdded :connect(Entered)

--Stuff

end
Report Abuse
GUESTHAXX is not online. GUESTHAXX
Joined: 16 Apr 2012
Total Posts: 3370
01 Aug 2012 11:02 AM
Wait... Don't reply to this... I'm thinking to far ahead... Sorry guys.
Report Abuse
OwneD1991 is not online. OwneD1991
Joined: 16 Oct 2009
Total Posts: 12623
01 Aug 2012 11:26 AM
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
local gui = game.Lighting.Gui
gui:Clone().Parent = player.PlayerGui
end)
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image