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
 

Would this be buggy with more than one person?

Previous Thread :: Next Thread 
DarkheartSkillz is not online. DarkheartSkillz
Joined: 30 Sep 2011
Total Posts: 5125
16 Jul 2014 08:49 AM
It works fine with only one person, but in past experiences I've had trouble with more than one person using this

players = game.Players:GetChildren()
for i = 1,#players do


Is there a better way to do this that won't be as buggy? Here's my code..

for c = 1,#players do
Map = game.ServerStorage.Stacking
players[c].PlayerGui.ControlPanel.Frame.Visible = false
players[c].PlayerGui.RoyalBlood.LoadingScreen.Visible = true
players[c].PlayerGui.RoyalBlood.LoadingScreen.Text = ("Loading ")..Map.Name
wait(0.5)
players[c].PlayerGui.RoyalBlood.LoadingScreen.Text = ("Loading ")..Map.Name..(".")
wait(0.5)
players[c].PlayerGui.RoyalBlood.LoadingScreen.Text = ("Loading ")..Map.Name..("..")
wait(0.5)
players[c].PlayerGui.RoyalBlood.LoadingScreen.Text = ("Loading ")..Map.Name..("...")
wait(0.5)
players[c].PlayerGui.RoyalBlood.LoadingScreen.Visible = false
players[c].PlayerGui.ControlPanel.Frame.Visible = true
end
Report Abuse
Falq is not online. Falq
Joined: 31 Dec 2007
Total Posts: 2521
16 Jul 2014 08:52 AM
"for c = 1,#players do"

for i, v in pairs(game.Players:GetPlayers()) do
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