Extoliate
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 4621 |
|
|
| 24 Dec 2014 12:48 PM |
GroupID = 1181263 --Change this to your group ID GroupRank = 13 --Change this to the minimum Group Rank Number who you want to be able to control the door local yes = "!Wep RCL" local no = "!wep none" local GPR = game.Lighting.GPR local PSTL = game.Lighting.PSTL
function CheckGroup(speaker) if speaker:GetRankInGroup(GroupID) >= GroupRank then return true else return false end end
function onChatted(msg, recipient, speaker) if (CheckGroup(speaker)) then if msg == yes then game.Players.PlayerAdded:connect(function(nub) GPR:Clone().Parent = nub.Backpack PSTL:Clone().Parent = nub.Backpack end) end if msg == no then game.Players.PlayerAdded:connect(function(nub) nub.Backpack.GPR:Destroy() nub.Backpack.PSTL.Destroy() end) end end end
function onPlayerEntered(newPlayer) newPlayer.Chatted:connect( function(msg, recipient) onChatted(msg, recipient, newPlayer) end) end
game.Players.ChildAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 24 Dec 2014 12:52 PM |
I would redirect you to the rules but this is Scripters and not Scripting Helpers, so the rules aren't here.
Just post the output if you want help.
~Master bug finder twitch.tv/ROBLOX/c/4691695 14:08~ |
|
|
| Report Abuse |
|
|
| 24 Dec 2014 12:57 PM |
| @Above Well there is no Scripting Helpers so Scripters who need help come here to other scripters |
|
|
| Report Abuse |
|