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 » Scripters
Home Search
 

Re: I NEED Some Help With This Script!

Previous Thread :: Next Thread 
Ayrexic is not online. Ayrexic
Joined: 14 Mar 2015
Total Posts: 23
05 Apr 2015 06:39 PM
*Don't mind me, i'm a newbie at scripting*

So, what I want to do is make a main menu GUI to pop up after 20 seconds the player joins the game. What's wrong with this script?

wait (20)

local game.Workspace.["StarterGui"].Menu.MainMenu2.Visible = true
local game.Workspace.["StarterGui"].Menu.Play.Visible = true

*The period between game and Workspace is underlined in red*
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
05 Apr 2015 06:40 PM
lol
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
05 Apr 2015 06:41 PM
function YouShouldPutANameHere()
if game.Workspace.StarterGui.Menu == nil then
wait (20)
local game.Workspace.StarterGui.Menu.MainMenu2.Visible = true
local game.Workspace.StarterGui.Menu.Play.Visible = true
end
end
Report Abuse
Funse is not online. Funse
Joined: 11 Jun 2012
Total Posts: 7887
05 Apr 2015 06:47 PM
game.Players.PlayerAdded:connect(function(plr)
wait(20)
plr.PlayerGui.Menu.MainMenu2.Visible = true
plr.PlayerGui.Menu.Play.Visible = true
end)
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
05 Apr 2015 06:49 PM
Funse is a more complicated and more efficient form to do what you wanted. Please use his instead, as like a warrior who lost, I must honor the victor.
Report Abuse
Ayrexic is not online. Ayrexic
Joined: 14 Mar 2015
Total Posts: 23
05 Apr 2015 06:50 PM
Yeah, tan, I tried yours and it didn't work. But Funse's version did. Thanks Funse! And thanks for trying tan!
Report Abuse
tanlord173 is not online. tanlord173
Joined: 25 Nov 2009
Total Posts: 3916
05 Apr 2015 06:51 PM
Yeah, mine was made for a more server-wide than local-wise. Oh well. :|
Report Abuse
Ayrexic is not online. Ayrexic
Joined: 14 Mar 2015
Total Posts: 23
05 Apr 2015 06:53 PM
It's aight. Thanks anyways man
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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