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
 

How can I make my GUI appear as soon as you join the server?

Previous Thread :: Next Thread 
Jerqo is not online. Jerqo
Joined: 23 Aug 2008
Total Posts: 4507
05 Feb 2014 09:28 AM
Hey,

I want my GUI to appear as soon as a user joins a server for my FPS game. How can I do this? Moving it into the GUI folder works, but the buttons or the scripts don't work.

Please help I've been trying to find a solution for a while now.
Report Abuse
shinybearhead is not online. shinybearhead
Joined: 24 Jan 2011
Total Posts: 135
05 Feb 2014 09:29 AM
playeradded
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
05 Feb 2014 09:33 AM
What I usually do is:

Create script in workspace

Put the GUI you want cloned inside the script, and then put this in the script.


game.Players.PlayerAdded:connect(function(player)
player:WaitForChild("PlayerGui")
if player.Name = "" --If you want you to be the only one, else delete this line.
Gui = script.GUINAME:clone()
Gui.Parent = player.PlayerGui
end
end)
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
05 Feb 2014 09:34 AM
if player.Name == "" *
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
05 Feb 2014 09:36 AM
if player.Name == "" then
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
05 Feb 2014 10:06 AM
^^Right, thanks btw.

Totally just failed lol.
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