Rank only door work?

Having the output in view is very important for debugging. It will let you know of any possible errors, making it easier to fix any issues

If you put the door in Storage, then simply change

local StaffOnlyDoor = workspace.StaffOnlyDoor

To this:

local StaffOnlyDoor = workspace.Storage.StaffOnlyDoor

Or wherever it’s parented to

2 Likes

Screenshot 2021-03-11 at 23.21.42
No luck. :weary: :cold_sweat: :sob:

What’s the name of the script that’s handling the group rank door?

Also for local scripts, I put them into StarterPlayer > StarterPlayerScripts.

The part is called “StaffOnlyDoor” and the script is called “StaffOnlyDoorScript”

Try enabling HTTP Requests & API Services if they’re not already :thinking: (Just a guess)

1 Like

They are already enabled, I’ll check and if they are I’ll heart your comment.

Haha, It works now! Thanks to everyone for helping me.

Where was the issue that caused that to happen?

I actually don’t know. Probably because it was under the “Storage” folder.

So, your own script is the one that works? Or Jackscarlett’s?

What do you mean, who is Jacscarlett?

The guy helping you. hehehe .-

1 Like

Jackscarlett once said…

Just do

local groupId = 9155359
local minrank = 200
local StaffOnlyDoor = workspace.StaffOnlyDoor
local Player = game.Players.LocalPlayer
local PlayerRank = Player:GetRankInGroup(groupId)

print("Does the script even work...?")

if PlayerRank >= minrank then
    StaffOnlyDoor.CanCollide = false
    print("The Door has been opened for: "..Player.Name)
elseif PlayerRank < minrank then
    StaffOnlyDoor.CanCollide = true
    print("The Door has been disabled for: "..Player.Name)
else
    print("What, H O W")
end

Also make sure that the groupId you’re entering is the correct one

3 Likes

XD, I didn’t realise. I’m dumb. :joy:

I’m going to assume your problem is solved. Remember to mark a solution for future people who read this post.

1 Like