Basically I had this script in a door and in that I had config, groupid, and rankid, its all right but I cant add multiple ranks at once, does anyone know how to fix this?
local config = script.Parent.Configuration
script.Parent.Touched:connect(function(part)
if part.Parent and Game:GetService('Players'):GetPlayerFromCharacter(part.Parent) then
local player = Game:GetService('Players'):GetPlayerFromCharacter(part.Parent)
if player:GetRankInGroup(config.GroupId.Value) >= config.RankId.Value then
script.Parent.CanCollide = false
wait(0.3)
script.Parent.CanCollide = true
end
end
end)

4 comments
So you basically want a Group rank door?
if yes then here.
tysm! this helped alot
wait its not workingf