Team Change When Death Occurs? (Will this work regardless of change of teams?)
The first script works, but idk if it'll work for both, if it does please confirm with me. Title says it all, I'll give you the script down below...
01 | game.Players.PlayerAdded:connect( function (plr) |
02 | plr.CharacterAdded:connect( function (char) |
03 | char.Humanoid.Died:connect( function () |
04 | plr.Team = game.Teams.Bystanders |
14 | local plr = game.Players.LocalPlayer |
16 | if plr.Team = = game.Teams.Home or game.Teams.Away then |
17 | if plr.Humanoid = = 0 then |
18 | plr.Team = game.Teams.Bystanders |