Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Unable to assign property CFrame. CoordinateFrame expected, got Instance?

local plr = game.Players.LocalPlayer

if plr:GetRankInGroup(950346) > 2 then if game.Workspace.CurrentCamera:FindFirstChild("RankDoor") then game.Workspace.CurrentCamera.RankDoor:Destroy() end else local door = game.Workspace:FindFirstChild("RankDoor"):Clone() door.Parent = game.Workspace.CurrentCamera door.CanCollide = true door.Anchored = true door.CFrame = game.Workspace:FindFirstChild("RankDoor") end

1 answer

uhhhh

if plr:GetRankInGroup(950346) > 2 then if game.Workspace.CurrentCamera:FindFirstChild("RankDoor") then game.Workspace.CurrentCamera.RankDoor:Destroy() end else local door = game.Workspace:FindFirstChild("RankDoor"):Clone() door.Parent = game.Workspace.CurrentCamera door.CanCollide = true door.Anchored = true door.CFrame = game.Workspace:FindFirstChild("RankDoor").CFrame end

This discussion is preserved as it was. New answers, comments, and votes are closed.