Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Team Change
- script.Parent.Touched:Connect(function(hit)
- local user = game.Players:GetPlayerFromCharacter(hit.Parent)
- user.Team = game:GetService('Teams'):FindFirstChild('TEAM')
- end)
- -- Add this if you want the player to die after changing teams
- script.Parent.Touched:Connect(function(p)
- p.Parent.Humanoid.Health=0
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement