Guest User

Untitled

a guest
Jun 22nd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. local groupId = 4875330 -- Group ID
  2. local door = script.Parent
  3. local debounce = false
  4.  
  5. door.Touched:connect(function(part)
  6. local plr = game.Players:GetPlayerFromCharacter(part.Parent)
  7. if plr then
  8. if plr:IsInGroup(4875330) then
  9. if plr:GetRoleInGroup(4875330) == 'Co-Founder' or plr:GetRoleInGroup(4875330) == 'Director' or plr:GetRoleInGroup(4875330) == 'Founder' or plr:GetRoleInGroup(4875330) == '15 | President' or plr:GetRoleInGroup(4875330) == '14 | Advisor' plr:GetRoleInGroup(4875330) == '13 | Executive'
  10. if not debounce then
  11. debounce = true
  12. door.Transparency = 0.5
  13. door.CanCollide = false
  14. wait(1)
  15. door.Transparency = 0
  16. door.CanCollide = true
  17. debounce = nil
  18. end
  19. end
  20. end
  21. end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment