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: Simple playerentered script not working?

Previous Thread :: Next Thread 
Xucs is not online. Xucs
Joined: 23 Jul 2010
Total Posts: 11844
08 May 2015 10:06 PM
game.Players.PlayerAdded:connect(function(player)
script.Parent.Visible = true
script.Parent.LocalScript.Disabled = false
end)


The purpose of this is to make something appear when you first enter, but after you die, it won't appear.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
08 May 2015 10:07 PM
The PlayerGui resets when you die. Also, this script is dumb.
Report Abuse
Xucs is not online. Xucs
Joined: 23 Jul 2010
Total Posts: 11844
08 May 2015 10:07 PM
@nq

IF you've played apocalypse rising, the intro gui only appears once, and this script isn't dumb, it's needed.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
08 May 2015 10:08 PM
No, it's not needed since you are doing it completely wrong.
Report Abuse
Xucs is not online. Xucs
Joined: 23 Jul 2010
Total Posts: 11844
08 May 2015 10:09 PM
@nq

Which is why I'm asking for help, is it not?
Report Abuse
BFFstick00 is not online. BFFstick00
Joined: 25 Oct 2010
Total Posts: 800
08 May 2015 10:13 PM
The reason your script doesn't work is because the script cannot find the GUI it is interfacing with. Just for an example lets say your GUI is named "Intro" and is located in the ServerStorage. You would use:
local gui = nil
game.Players.PlayerAdded:connect(function(player)
gui = game.ServerStorage.Intro:clone()
gui.Parent = player.PlayerGui
end)

That small script inserts the GUI into the player's GUI layer upon entering. I hoped this helped! -BFFstick00
Report Abuse
Xucs is not online. Xucs
Joined: 23 Jul 2010
Total Posts: 11844
08 May 2015 10:18 PM
Ohhhh.

Thanks so much!
Report Abuse
BFFstick00 is not online. BFFstick00
Joined: 25 Oct 2010
Total Posts: 800
08 May 2015 10:24 PM
No problem! :D
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