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
 

PlayerJoined in StarterGui?

Previous Thread :: Next Thread 
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
31 Jul 2014 10:00 PM
I'm trying to make a playerJoined event inside PlayerGui, so when the player joins the game, it will check something. Will PlayerAdded work the same way?

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
128GB is not online. 128GB
Joined: 17 Apr 2014
Total Posts: 8056
31 Jul 2014 10:19 PM
Players don't get inserted into the player gui
Use ChildAdded
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
31 Jul 2014 10:23 PM
Yea, if I get you right, you want to put:

game.Players.PlayerAdded:connect(function() end)

in a starter gui, it should work.
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
31 Jul 2014 10:30 PM
I just added this to the beginning of the script

function immediate()
local plr = script.Parent.Parent.Parent
if not game.ServerStorage:FindFirstChild(plr.Name) then
script.Parent.BR2.TextButton.Visible = true
script.Parent.BR2.TextLabel.Visible = true
end
end

and at the end I added

immediate()

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
Report Abuse
alij12 is not online. alij12
Joined: 03 Oct 2011
Total Posts: 1204
31 Jul 2014 10:31 PM
should work, if I remember, you have the values of names in storage, correct?
Report Abuse
Distortional is not online. Distortional
Joined: 22 Nov 2011
Total Posts: 6530
31 Jul 2014 10:34 PM
Mhm.

Caaaactus. Prov 3:5: Trust in the LORD with all your heart and lean not on your own understanding.
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