So, I want you to get a screengui on your screen if you're not a certain rank in the group. that says "You're not permitted to enter this area!" and if you are a certain rank I want it to change the transparency and change it to cannot collide.
script.Parent.Touched:Connect(function() if game.Players.LocalPlayer:GetRankInGroup (3282666) (255) = false then game.StarterGui.ScreenGui.Enabled = true if game.Players.LocalPlayer:GetRankInGroup (3282666) (255) = true then script.Parent.CanCollide = false script.Parent.Transparency = 0.5 end end
Try adding an area + torso magnitude or using Region3 in your script, when a player is in the location the local script changes his GUI.