I tried to make a line that gets all the players and kills them, But this will get only one player:
local pl = game.Players:GetChildren() for i = 1, #pl do pl[i].Character:BreakJoints() end
Why isn't this getting all players from "game.Players"?
There is a method called GetPlayers, you use that to get players:
for i, player in pairs(game.Players:GetPlayers()) do player.Character:BreakJoints() end