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