I have this script here that changes you to the orange team once you die. It works but I want to disable it for a few seconds at the beginning of each game. When I add a wait though it permanently disables the script.
1 | game.Players.PlayerAdded:connect( function (p) |
2 | p.CharacterAdded:connect( function (c) |
3 | c:WaitForChild( "Humanoid" ).Died:connect( function () |
4 | p.TeamColor = BrickColor.new( "Bright orange" ) --Or what ever team color it is. |
5 | end ) |
6 | end ) |
7 | end ) |
Thanks
I think this would work (I am kinda guessing...) -
1 | game.Players.PlayerAdded:connect( function (p) |
2 | p.CharacterAdded:connect( function (c) |
3 | wait( 1 ) -- Or how ever you like it to wait for |
4 | c:WaitForChild( "Humanoid" ).Died:connect( function () |
5 | p.TeamColor = BrickColor.new( "Bright orange" ) --Or what ever team color it is. |
6 | end ) |
7 | end ) |
8 | end ) |
I