Advertisement
Guest User

Nigga in a purple suit

a guest
Aug 27th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. --sinistersentinel
  2. local GroupPerms = {Id = 2708378,RankId = 1,Accepted = {}}
  3. local left,right = script.Parent.left,script.Parent.right
  4. local speed = .1
  5. local isOpen = false
  6. local running = false
  7.  
  8.  
  9. function Chatted(mes,plr)
  10. if not GroupPerms.Accepted[plr.Name] then return end
  11. if mes:lower() == (":open b"):format(script.Parent.Name:lower()) then
  12. if running then return end
  13. running=true
  14. for i = 1,left.Size.X,speed do
  15. left.CFrame=left.CFrame*CFrame.new(isOpen and speed or -speed,0,0)
  16. right.CFrame=right.CFrame*CFrame.new(isOpen and -speed or speed,0,0)
  17. game:GetService("RunService").Stepped:wait()
  18. end
  19. running = false
  20. isOpen=not isOpen
  21. end
  22. end
  23.  
  24. game.Players.PlayerAdded:connect(function(plr) plr.Chatted:connect(function(msg) Chatted(msg,plr) end) if plr:GetRankInGroup(GroupPerms.Id)>=GroupPerms.RankId then GroupPerms.Accepted[plr.Name]=true end end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement