How do i make so the player stays in his and doesn't change his team even if he died?
Asked by
5 years ago Edited 5 years ago
Hello! I'm new for scripting teams and I'm making my tycoon with no kits or help from the toolbox.
But I ran into a problem Where you can change teams even if you are in one so Please help.
The script:
01 | local sL = script.Parent |
03 | sL.Touched:Connect( function (hit) |
04 | if game.Players:FindFirstChild(hit.Parent.Name) and claimed = = false then |
06 | local player = game.Players:FindFirstChild(hit.Parent.Name) |
07 | player.Neutral = false |
08 | player.Team = game.Teams.Blue |
09 | if not player.Team.Blue then |