CLOSED, Answer resolved
Here is the garages in a game and they are always closed, but if you are a certain rank in their group you may enter. Can someone tell me how I can do this?
CLOSED, Answer resolved
Here is the garages in a game and they are always closed, but if you are a certain rank in their group you may enter. Can someone tell me how I can do this?
Sure! If you give me sometime I can wip up a script for you!
Sorry for the long wait, but here you are!
You will want to create a LocalScript
under StarterGUI
and a Folder in the Workspace named RankDoors
You can name the local script to something that you can remember if you ever need to get to it again.
Here is the main script for the local script in order for this work:
local GroupId = 11501504 -- Change to your group ID
local RequiredRank = 10 -- Rank to enter/rank above.
-- Do not touch any of this
local Player = game.Players.LocalPlayer
for i, v in pairs(game.Workspace:WaitForChild("RankDoors"):GetChildren()) do
if v:IsA("Part") then
if Player:GetRankInGroup(GroupId) >= RequiredRank then
v.CanCollide = false
end
end
end
Note:
All the rank door parts must be under the folder for them to work.
Do not edit anything where it says so or it might not work.
Hope this helps
This is a easy and good solution but see for
if v:IsA(“Part”) then
Can I change “Part” to what my block is called?
Indeed! You can change that so it’s not just a part.
Thanks, you were so helpful
Hey, oreo. I’ve unmarked this solution due to it not being operatable in my game. The system does not work when it comes to changing group ID’s making it walkathroughable <> I know thats not a word dont come at me.
Ahh, the door name does have to be named Part then.
Alright give me a minute to try this!
Does the rank door have to be in the folder.
Yes, it does otherwise the script won’t find the doors.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.