here is my script it’s where the --'s are is what im talking about
game.Players.PlayerAdded:Connect(function(player)
while true do
wait(0.001)
if workspace.thegame.gameinprogress.Value == true then
print("hello")
wait()
-- local teams = game:GetService("Teams"):GetTeams()
-- for _, team in pairs(teams) do
-- local players = game.Teams.living:GetPlayers()
-- if #players == 1 then
print("yello!")
print("who broke now!")
workspace.thegame.parttwo.Value = true
break
end
break
end
end
if workspace.thegame.parttwo.Value == true then
print('sup')
if player.Team == game.Teams.living then
print("sdfsdf")
player.Character.Humanoid.Health = 0
player.Team = game.Teams.losers
workspace.thegame.parttwo.Value = false
workspace.thegame.startgame.Value = false
workspace.thegame.playerstartchech.Disabled = false
wait(29)
workspace.thegame.gameinprogress.Value = false
script.Disabled = true
end
end
end
end)