Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --sinistersentinel
- local GroupPerms = {Id = 2708378,RankId = 1,Accepted = {}}
- local left,right = script.Parent.left,script.Parent.right
- local speed = .1
- local isOpen = false
- local running = false
- function Chatted(mes,plr)
- if not GroupPerms.Accepted[plr.Name] then return end
- if mes:lower() == (":open b"):format(script.Parent.Name:lower()) then
- if running then return end
- running=true
- for i = 1,left.Size.X,speed do
- left.CFrame=left.CFrame*CFrame.new(isOpen and speed or -speed,0,0)
- right.CFrame=right.CFrame*CFrame.new(isOpen and -speed or speed,0,0)
- game:GetService("RunService").Stepped:wait()
- end
- running = false
- isOpen=not isOpen
- end
- end
- 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