1 | for i, v in pairs (game.Players:GetChildren()) do |
2 | v.Character.Humanoid.Died:connect( function () |
3 | v.TeamColor = BrickColor.new( "Institutional white" ) |
4 | end ) |
5 | end |
Why isn't this working? I want when a player dies, it take you to lobby.
1 | game:GetService( 'Players' ).PlayerAdded:connect( function (player) |
2 | player.CharacterAdded:connect( function (character) |
3 | character:WaitForChild( "Humanoid" ).Died:connect( function () |
4 | game.Players:findFirstChild(character.Name).TeamColor = BrickColor.new( "Institutional white" ) |
5 | end ) |
6 | end ) |
7 | end ) |
this is simple... you just have to set the 'Auto Assignable' to false in the Spawn Part so that you can make a selectable spawn...