Creating a Part from Studio Camera

I find it annoying trying to replicate a part to match your camera’s position and orientation. A year or two ago, I remember having a script that would automatically place a part in relation to the studio camera. Nonetheless, I would use this script, but I have lost it.

[1] What are you trying to achieve?
A script or some sort of knowledge that would help me to create a part in relation to the studio camera.

Camera Goal

[2] What is the issue?
I have been unable to find the old script or try to replicate it.

[3] What are some solutions that you have tried?
I’ve tried the following:

  • Looking around DevForum
  • Watching some old wacky youtube tutorials
  • Asking a friend for assistance
  • Searching around Roblox’s API

Anything is appreciated. :wink:

If I understand correctly, this should work.

-- localscript

local part = Instace.new("Part", game.Workspace)
part.CFrame = game.Workspace.CurrentCamera.CFrame

That seemed to do the job, well thank you! I was just overthinking it haha. :hugs:

Script edits (for those who may need it)
local part = Instance.new("Part")
part.CFrame = game.Workspace.CurrentCamera.CFrame
part.Parent = workspace
part.Name = "TestPart"
1 Like