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 » Game Design
Home Search
 

Re: [SH] ClickDetector based on group rank

Previous Thread :: Next Thread 
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
29 Jun 2015 01:50 PM
Here is how everything is laid out

BRICK
--CLICKDETECTOR
--SCRIPT

Now, I am trying to make it change the transparency of the blocks if the person who clicked it had a role of 252. Here is my script

door = script.Parent


function clickit()
if player:GetRankInGroup(1199302) == 252 then
script.Parent.Transparency = 1
end
end

door.ClickDetector.MouseClick:connect(clickit)























Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
29 Jun 2015 01:51 PM
Sorry for all the extra spaces, when I copied and pasted it I accidentally included this space
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
29 Jun 2015 01:53 PM
Change "function clickit()" to "function clickit(player)"
Report Abuse
georgeba is not online. georgeba
Joined: 29 Oct 2011
Total Posts: 1092
29 Jun 2015 02:06 PM
Wow, Thanks!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Game Design
   
 
   
  • 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