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

Offsetting camera subjected to head?

local camera=workspace.CurrentCamera
camera.CFrame=CFrame.new(
						camera.CameraSubject.CFrame.p+Vector3.new(0,1,0),
						camera.CFrame.lookVector
						)

I tried... Any ideas?

2 comments

0

what are you trying to do?

0

^^

1 answer

In roblox, the camera must be adjusted via it's Coordinate Frame Property.

local camera=workspace.CurrentCamera
camera.CoordinateFrame =CFrame.new(
                        camera.CameraSubject.CFrame.p+Vector3.new(0,1,0),
                        camera.CFrame.lookVector
                        )

You didn't describe your problem much, so i dont know if there are any other errors, but that is one i found.

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