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
 

In GUI, Can you echo out how many players are on?

Previous Thread :: Next Thread 
jakub15 is not online. jakub15
Joined: 25 Oct 2008
Total Posts: 2299
24 Jul 2012 03:40 AM
On the server?
Just wondering.
so it will first say 1, but when another person joins, 2. and on. and when one comes off, the number will decrease by 1.
How would you do this kind of script?
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
24 Jul 2012 03:43 AM
m = Instance.new("Message", Workspace)
while wait() do
m.Text = "There are " ..game.Players.NumPlayers.. " playing right now."
end


Bad example.
Report Abuse
jakub15 is not online. jakub15
Joined: 25 Oct 2008
Total Posts: 2299
24 Jul 2012 03:44 AM
I might do that in a 'Hint' or something.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
24 Jul 2012 03:44 AM
Oh whoops. Forgot, you wrote gui. But I think you can transform that yourself, don't you?
Report Abuse
jakub15 is not online. jakub15
Joined: 25 Oct 2008
Total Posts: 2299
24 Jul 2012 03:46 AM
Well, i'm not a excellent scripter, just learning.

I know there will have to be while true do, because I dont want it to be echoed only once.
Report Abuse
Cheater is not online. Cheater
Joined: 29 Jun 2007
Total Posts: 5258
24 Jul 2012 03:47 AM
Just create your GUI (if you're able to do that) manually and insert that script into that box:

while wait() do
script.Parent.Text = game.Players.NumPlayers.. " are online."
end
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