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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help with a player joined announcer script

Previous Thread :: Next Thread 
bobafett3544 is not online. bobafett3544
Joined: 16 Apr 2011
Total Posts: 180
11 Jul 2014 07:21 PM
Hi, so I'm making a thing where once a player joins, a new TextLabel is created that says the new players name, followed by " has joined the game!", and that TextLabel would go onto all the players' screens. I just need to know how I would word something that would make a TextLabel in EVERYONE'S GUIs. Thanks!
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
11 Jul 2014 07:30 PM
WelcomeMessageParent = Instance.new("ScreenGui")
WelcomeMessage = Instance.new("TextLabel",WelcomeMessageParent)
game.Players.PlayerAdded:connect(function(Player)
WelcomeMessageParent.Parent = game.StarterGui
WelcomeMessage.Text = Player.Name.." ".."Has joined the game!"
wait(5) -- Increase this to the time you want before it disappears.
WelcomeMessageParent.Parent = nil
end)
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
11 Jul 2014 07:34 PM
Actually, to help you understand, I created a variable named "WelcomeMessageParent" and a second variable which was the actual "TextLabel" called "WelcomeMessage", I then used the PlayerAdded event which activates everytime a new "Player" is added into the table "Players", here's an example,
game.Players.PlayerAdded:connect(function(Player)
print("A new "Player" has joined the game"!.)
end)
Report Abuse
bobafett3544 is not online. bobafett3544
Joined: 16 Apr 2011
Total Posts: 180
11 Jul 2014 07:37 PM
AWESOME! Thanks. I didn't know I just had to make the TextLabel in StarterGui as soon as someone joined. Anyway, thanks dude! -Gives player points-
Report Abuse
bobafett3544 is not online. bobafett3544
Joined: 16 Apr 2011
Total Posts: 180
11 Jul 2014 07:39 PM
Actually if you want, I can give you player points. Want some?
Report Abuse
AnonyAnonymous is not online. AnonyAnonymous
Joined: 23 Jun 2013
Total Posts: 6332
11 Jul 2014 07:39 PM
No thank you, this is voluntary.
Report Abuse
bobafett3544 is not online. bobafett3544
Joined: 16 Apr 2011
Total Posts: 180
11 Jul 2014 07:53 PM
Sorry to bother again, it doesn't show up when a new player joins the game. It just stays in StarterGui. Help please?
Report Abuse
bobafett3544 is not online. bobafett3544
Joined: 16 Apr 2011
Total Posts: 180
11 Jul 2014 07:54 PM
Nevermind, it shows up XD
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