I am making this register system and I only want the Trainee's and up to be able to access them. Whenever I use PlayerAdded, it just enables the screen to who joins. (If a worker joins, all the screens will be enabled for everyone including customers.) (The game is FE)
The SurfaceGui is in StarterGui with an Adornee connected to the part in Workspace.
Heres the script (In ServerScriptService):
game.Players.PlayerAdded:Connect(function(player)
if player:IsInGroup(3639089) and player:GetRankInGroup(3639089) >= 3 then
player.PlayerGui.SurfaceGui.Enabled = true
end
end

2 comments
you disable it locally :/
locally disable it