How to lock the camera to plane?

  1. What do you want to achieve?
    I want to make that camera is locked to plane and player can’t move it.(see in pictures)

screenshot1
screenshot2

try using a part and make the subject of the camera the part and make the camera type fixed

The camera just stops in place, but i need it to follow the plane’s movement.

are u using a part?

IGNORETHIS99999999999

Yes
_____________________________-

can i see a video or a picture of what its doing?



is it welded to the plane?


Yes!


is it anchored?


back when I used to work on planes and stuff I made a similar system. Heres a simple snippet on what I did to make it lock to the plane. Also wouldn’t recommend you use a part for this as it may hinder the plane.

local function cameraFollow()
	local DIST_FROM_PLAYER = 15
	local HEIGHT = 2
    local camera = workspace.CurrentCamera
    camera.CameraType = Enum.CameraType.Scriptable
	local char = player.Character
	local plane = game.Workspace.Plane -- plane here
	camera.CFrame = CFrame.new(char.PrimaryPart.CFrame.Position+(-char.PrimaryPart.CFrame.LookVector*DIST_FROM_PLAYER),plane:GetPivot().Position)*CFrame.new(0,HEIGHT,0)
end
runService.RenderStepped:Connect(cameraFollow)

Thanks very much, it works!


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.