I'm making this script to find players a team, and it currently isn't in a testable mode, so can I borrow some of your knowledge to check this for errors for me?
local players = game.Players:GetChildren()
local numberPlayers = game.Players.NumPlayers
local deathTeam = game.Teams:FindFirstChild("Death (Red)")
local runnerTeam = game.Teams:FindFirstChild("Runners (Blue)")
function playerChose()
if game.numberPlayers>=3 then
local deathPlayer = players[math.random(1,#players)]
if deathPlayer.Team == "Neutral" then
deathPlayer.Team = deathTeam
end
local Runners = player(#players)
if Runners.Team == DeathTeam then
end
if Runners.Team == "Neutral" then
Runners.Team = runnerTeam
end
playerChose()
