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: Table

Previous Thread :: Next Thread 
felipeblox10 is not online. felipeblox10
Joined: 09 Oct 2009
Total Posts: 276
26 Jan 2015 12:13 PM

Hi Can someone Tell me Why the script Is only Adding The Frist Player That Found to The table



game.Players.PlayerAdded:connect(function(player)
local Play=Instance.new("BoolValue",player)
Play.Name="Playing"
Play.Value = true
end)
Spawns = game.Workspace.Spawns:GetChildren()

_G.Playing = {}

while true do
wait(10)

-- if #_G.Playing >= 2 then
for _,v in pairs(game.Players:GetPlayers()) do
if v.Playing.Value == true then
table.insert(_G.Playing,1, v.Name) -Here-
wait(5)
game.ServerScriptService.Running.Value = true
for _,v in pairs(game.Players:GetPlayers()) do
if v.Playing.Value == true then
wait()
v.Character:MoveTo(Spawns[#_G.Playing].Position)
print(#_G.Playing)


wait(40)
-- end
end
end
end
end
end
Report Abuse
felipeblox10 is not online. felipeblox10
Joined: 09 Oct 2009
Total Posts: 276
26 Jan 2015 12:25 PM
??
Report Abuse
felipeblox10 is not online. felipeblox10
Joined: 09 Oct 2009
Total Posts: 276
26 Jan 2015 12:57 PM
.
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
26 Jan 2015 12:58 PM
table.insert(_G.Playing,1, v.Name)

1

I don't know what you expected, to be honest.
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