Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to kill after team change?

Asked by 10 years ago
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

Log in to vote
0
Answered by
Lacryma 548 Moderation Voter
10 years ago
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)



Ad

Answer this question