|
| 10 Jun 2012 11:03 PM |
Use this door: http://www.roblox.com/Group-and-Rank-only-Door-item?id=83253249
and all of your extra group problems for high ranks are solved! If you'd like to use it, give me credit.
I built it off of someone's script.
§ - You cannot hurt me, for I AM THE SUN! - § |
|
|
| Report Abuse |
|
|
mathepa
|
  |
| Joined: 01 May 2008 |
| Total Posts: 8439 |
|
|
| 10 Jun 2012 11:06 PM |
| I'm not opening roblox up ATM but tell me how to got the rank only part and how it works please :D |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:08 PM |
So now I can make a fort and only let me in it.
http://www.roblox.com/My/Groups.aspx?gid=610010 |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jun 2012 11:11 PM |
Well, I was browsing UserVoice, then I found a request for GroupRank function. Here is the script:
----Facebookrobloxcool waz here. print("Group/Rank Only")
function checkOkToLetIn(name) if game.Players[name]:IsInGroup(ChangeMeToTheGroupNumber and rank == ChangeMeToTheRankName) == true then return true end --Remove the and ChangeMeToRankName if you would like it to be a group only door! --DO NOT MESS WITH THE BELOW UNLESS YOU CAN SCRIPT!!-- return false end
local Door = script.Parent
function onTouched(hit) print("Door Hit") local human = hit.Parent:findFirstChild("Humanoid") if (human ~= nil ) then -- a human has touched this door! print("Humanoid touched door....") -- Checking to see if we're ranked/in the group! if (checkOkToLetIn(human.Parent.Name)) then print("OGM THEY PASS!") --They are ranked! --DO NOT MESS WITH THE ABOVE UNLESS YOU CAN SCRIPT!! Door.Transparency = 0.7 Door.CanCollide = false wait(1) -- this is how long the door is open Door.CanCollide = true Door.Transparency = 0 else human.Health= 0 -- Delete this line if you would like to it not to kill! end end end
script.Parent.Touched:connect(onTouched)
Let's break it down again:
function checkOkToLetIn(name) if game.Players[name]:IsInGroup(ChangeMeToTheGroupNumber and rank == ChangeMeToTheRankName) == true then return true end
Notice ChangeMeToTheGroupNumber and ChangeMeToTheRankName?
ROBLOX added a function so that way you can make rank only doors! Very simple to script. Feel free to use my door or copy this script.
§ - You cannot hurt me, for I AM THE SUN! - § |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:12 PM |
@Cod, if the latter is the case
any easy work around would be to add commas to the rank names, but I haven't tried that rank and up.
It would be:
function checkOkToLetIn(name) if game.Players[name]:IsInGroup(ChangeMeToTheGroupNumber and rank == ChangeMeToTheRankName,Rank2,Rank3,RankYadadada) == true then return true end --Remove the and ChangeMeToRankName if you would like it to be a group only door! --DO NOT MESS WITH THE BELOW UNLESS YOU CAN SCRIPT!!--
§ - You cannot hurt me, for I AM THE SUN! - § |
|
|
| Report Abuse |
|
|
mathepa
|
  |
| Joined: 01 May 2008 |
| Total Posts: 8439 |
|
|
| 10 Jun 2012 11:14 PM |
| Oh so roblox did actually add the ability to use ranks in scripts now? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:17 PM |
Yeah, it's pretty neat.
I'll be responding tomorrow morning before summer school!
§ Lecobi Sparrow § |
|
|
| Report Abuse |
|
|
mathepa
|
  |
| Joined: 01 May 2008 |
| Total Posts: 8439 |
|
|
| 10 Jun 2012 11:18 PM |
lol summer school
what classes you need to do? |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:19 PM |
I don't need them, I want them :D
I'm taking computer stuff. :D
§ Lecobi Sparrow § |
|
|
| Report Abuse |
|
|
Pragmatic
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 12942 |
|
| |
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 10 Jun 2012 11:21 PM |
they implemented it liek 4 rizzles? cool |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:22 PM |
srs bsns
It really works. I tested it.
It's here for rizzles.
next is the ()IsGroupAllies function and I'll love ROEBLOX.
§ Lecobi Sparrow § |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
| |
|
Pragmatic
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 12942 |
|
|
| 10 Jun 2012 11:32 PM |
| whoever made this is a noob cause it isn't set up right |
|
|
| Report Abuse |
|
|
nahom007
|
  |
| Joined: 05 Mar 2011 |
| Total Posts: 18274 |
|
|
| 10 Jun 2012 11:35 PM |
"checkOkToLetIn"
i'm no scripter but that sounds fishy |
|
|
| Report Abuse |
|
|
Wowgnomes
|
  |
| Joined: 27 Sep 2009 |
| Total Posts: 26255 |
|
| |
|
Pragmatic
|
  |
| Joined: 23 Sep 2010 |
| Total Posts: 12942 |
|
|
| 10 Jun 2012 11:37 PM |
function CheckToLetIn()
^ made up function
ur an idiot nahom noob |
|
|
| Report Abuse |
|
|
nahom007
|
  |
| Joined: 05 Mar 2011 |
| Total Posts: 18274 |
|
|
| 10 Jun 2012 11:38 PM |
"function checkOkToLetIn(name)"
hey prag i'm just quoting it |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2012 11:39 PM |
The reese said it was done, but I miss interpreted it as implemented. IT DOES NOT WORK! Do not use it.
§ Lecobi Sparrow § |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
| |
|
mathepa
|
  |
| Joined: 01 May 2008 |
| Total Posts: 8439 |
|
|
| 11 Jun 2012 08:20 AM |
| Also there will still be high rank divisions ;P You always need a council or high command group so you can keep stuff private. |
|
|
| Report Abuse |
|
|
BAUER102
|
  |
| Joined: 03 Apr 2010 |
| Total Posts: 5936 |
|
|
| 11 Jun 2012 08:25 AM |
Jesus. How stupid are humans able to be? That was a SUGGESTION for such a function. ROBLOX didn't add it yet.
And also "()IsGroupAllies" - wat? Why the fwak are you setting the () before the functions name. |
|
|
| Report Abuse |
|
|