Hi, in my script it kills all the players in this table then it removes all the players from the table. But when it gets to table.remove() it doesn't work. Can you help? Here's my script:
for _, player in pairs(game.Players:GetChildren()) do
for _, player in ipairs(playersingame) do
killplayers()
table.remove(playersingame, player)
print("test2")
end
player.PlayerGui.TextGui.Timer.Text = "You won!"
player.PlayerGui.TextGui.Info.Text = "You succesfully disabled the bomb! Everyone gets 15 points!"
end
print("You won")
