generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Why doesn't this work?!

Previous Thread :: Next Thread 
Extoliate is not online. 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 is not online. 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
CHATTERMOUTH is not online. CHATTERMOUTH
Joined: 18 Nov 2010
Total Posts: 1595
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image