I am trying to make a cruise pad for an airline where staff with a role id higher than or equal to 10 will be able to see the cruise pad.
What I did is created a LocalScript located in StarterPlayerScripts looking like this.

game.Players.PlayerAdded:Connect(function(newPlayer)
local rank = newPlayer:GetRankInGroup(12646662)
if rank >= 10 then
warn("User is staff, cruise pad visible.")
elseif rank < 10 then
for i,v in pairs(workspace.Cruise_Pad:GetChildren()) do
v.Transparency = 1
end
end
end)
In Workspace, there is a Model called Cruise_Pad and there are parts inside the Model.

I used GetChildren to locate all the parts in the Model and change its transparency to 1 for regular members (those with role id lower than 10)
The issue that I am experiencing is that the script isn’t functioning as expected, if you know the solution to this it would be highly appreciated.
