Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I involve a script with ranks on a group?

Asked by 8 years ago
Edited 8 years ago

DISCLAIMER: My real account is DragonBallFan100. The reason I made this account is because the code to verify my account kept getting blocked because I'm under 13, and I do not want to wait 2 more years.

ANYWAY: I am helping my friend bshamu on roblox run a military group. I am making the training facility. And I have made a stage for High ranks Lieutenant and above. The thing is, I need to make a part over the stage that its transparency = 1 And make the CanCollide = true for Low ranks and Medium ranks. And make it assigned to false for High ranks so that they can get on the stage and host. Let me explain, Low ranks can't get on stage, and High ranks CAN get on the stage. How do I do that?

1 answer

Log in to vote
0
Answered by
Stadow 30
8 years ago
Edited 8 years ago

May not work this is the first answer i've ever given (hope it does) put this script inside the invisible wall thing

game.Players.Touched:connect(function(Player)
    if Player:GetRankInGroup(group id) ~= "allowed rank, allowed rank"  then -- replace group id and not allowed rank
        script.Parent.canCollide = true
    else
        script.Parent.canCollide = false
    end
end)
0
Doesn't work :( learntolua101 3 — 8y
Ad

Answer this question