Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Team only door
- -- Put in the team door
- local team = game.Teams.[Your Team] -- Don't add the [] Unless the team is more then one word
- local door = script.Parent
- door.Touched:Connect(function(hit)
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- if humanoid then
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- if plr.Team == team then
- door.CanCollide = false
- door.Transparency = .5
- wait (0.6)
- door.CanCollide = true
- door.Transparency = 0
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement