Advertisement
dubleeyrblxx

Team Change -- Roblox

Jul 4th, 2020
2,887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. -- Team Change
  2. script.Parent.Touched:Connect(function(hit)
  3.         local user = game.Players:GetPlayerFromCharacter(hit.Parent)
  4.         user.Team = game:GetService('Teams'):FindFirstChild('TEAM')
  5.     end)
  6. -- Add this if you want the player to die after changing teams
  7. script.Parent.Touched:Connect(function(p)
  8.     p.Parent.Humanoid.Health=0
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement