-- attempt to find a container; create a new one if it doesn't exist
local container = game.Workspace:FindFirstChild("LocalBin")
if not container then
container = Instance.new("Camera")
container.Name = "LocalBin"
container.Parent = game.Workspace
end
-- 'container' will be used to contain all local parts. Below I copied the code from
-- before to create a local platform.
local platform = Instance.new("Part")
platform.Parent = game.Workspace.LocalBin
platform.CFrame = CFrame.new(12.5, 1.71, 17.43)
platform.Anchored = true
platform.Transparency = .5
platform.Size = Vector3.new(5, 10, 1)
game.Players.PlayerAdded:connect(function(Player)
if Player:GetRankInGroup(2551575) >= 239 then
game.Workspace.LocalBin.Part.CanCollie = false
end
end)
Everything works up until game.Players.PlayerAdded and I'm trying to make a part people above that rank in my group can walk through

5 comments
It's because you got a spelling wrong
game.Workspace.LocalBin.Part.CanCollide = falseIt should be like thatStill doesnt work
Were there any error messages?
Try checking the output
You could do this easier by putting the platform inside of the CurrentCamera and not having to create a container.