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: gui/OnPlayerEntered script help

Previous Thread :: Next Thread 
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:32 PM
I have a GUI, and I need it to appear ONLY the first time, when the player enters the game... I'm really not sure how to do it. Here's a script I made (Not working obviously).

It's a local script, by the way.

function go()
x = script.Parent.Parent.Debris.Welcome:Clone()
x.Parent = game.Players.LocalPlayer.PlayerGui
end


game.Players.PlayerAdded:connect(go)

Welcome, is the GUI
so.... what's wrong here? Help gladly appreciated, thanks!
Report Abuse
MechaStripeZ is not online. MechaStripeZ
Joined: 07 Aug 2013
Total Posts: 378
03 Sep 2013 03:35 PM
The GUI and Script are correct. I don't see a problem.
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:37 PM
Hm. Maybe, I will try making it NOT a local script?
Report Abuse
your90 is not online. your90
Joined: 06 Mar 2011
Total Posts: 1380
03 Sep 2013 03:39 PM
function onPlayerAdded()
x = script.Parent.Parent.Debris.Welcome:Clone()
x.Parent = game.Players.LocalPlayer.PlayerGui
end


game.Players.PlayerAdded:connect(onPlayerAdded)
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:40 PM
I will try it thx
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
03 Sep 2013 03:40 PM
regular script
function go(plr)
plr:WaitForDataReady()
x = workspace.Derbis.Welcome:Clone()
x.Parent = plr.PlayerGui
end
game.Players.PlayerAdded:connect(go)
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:43 PM
That looks complex, though it's not. That is good :P
Thanks.
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:46 PM
Not working... it's like it is not cloning to the PlayerGui. I opened it up in build mode and checked my PlayerGui, it's not there.
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:53 PM
Bump
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
03 Sep 2013 03:53 PM
reg script put gui in script
function go(plr)
plr:WaitForDataReady()
script.Welcome:clone().Parent = plr.PlayerGui
end
game.Players.PlayerAdded:connect(go)
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:54 PM
ooohh k thank you so much!
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
03 Sep 2013 03:56 PM
Yay, it worked. Thanks again.
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