Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to kill after team change?

game.Players.PlayerAdded:connect(function(player)
    while true do
        wait(60)
        player.TeamColor = BrickColor.new("Bright yellow")
        wait(180)
        player.TeamColor = BrickColor.new("Bright blue")

    end
end)


Does anybody know how to make player's die after team change? I really don't know how.

1 answer

game.Players.PlayerAdded:connect(function(player)
    while true do
        wait(60)
        player.TeamColor = BrickColor.new("Bright yellow")
	pcall(function() player.Character:BreakJoints() end)
        wait(180)
        player.TeamColor = BrickColor.new("Bright blue")
	pcall(function() player.Character:BreakJoints() end)
    end
end)



This discussion is preserved as it was. New answers, comments, and votes are closed.