The base of this script is to operate a door, At a group, with a certain ranks number. But the door does not work
local group = 3444858
local rank = (255 or 239 or 240 or 241 or 242 or 243 or 244 or 245 or 246 or 247 or 248 or 249 or 250 or 251 or 252 or 253 or 254)
function onClicked(player)
if not player then return end
if player:GetRankInGroup(group) >= rank then
if script.Parent.Open.Value == false then
script.Parent.Open.Value = true
script.Parent.Transparency = 1
script.Parent.CanCollide = false
print('Opened')
elseif script.Parent.Open.Value == true then
script.Parent.Open.Value = false
script.Parent.Transparency = 0
script.Parent.CanCollide = true
print('Closed')
end
else
print('NOT IN GROUP!')
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
It does work with only One ranks, But i need multiple ranks in the group.
Which as the script doesn't seem to work with multiple ranks then more then one.

1 comment
Welp, That changed everything! Thank You so much for the Assistance & Use of proper table!