I'm trying to make a door that will allow multiple ranks to go in it. Line 9, isn't working. It worked with three of my ranks but it won't work with the rest of my ranks. (All six of them). Note: Picture line 9 as a straight line. (I already fixed the missing or, but it still won't work). Here's the link to the script: https://pastebin.com/FwCwdGTQ
There is an easier way of doing this you can just use > symbol instead of checking every rank through the script using GetRankInGroup
local groupId = 4875330 local door = script.Parent local debounce = false local Rank = 250 door.Touched:connect(function(part) local plr = game.Players:GetPlayerFromCharacter(part.Parent) if plr then if plr:IsInGroup(4875330) then if (plr:GetRankInGroup(groupId) >= Rank) and not debounce then debounce = true door.Transparency = 0.5 door.CanCollide = false wait(1) door.Transparency = 0 door.CanCollide = true debounce = false end end end end)