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

How do I make a camera point at a brick and can't move? (Answered)

I'm making an intro that involves looking at a door. I've experimented with different CameraTypes but nothing makes it how I want it to. I want it to look at the door and then just stay there and can't be moved. Here is my script:

local target = workspace.Focus
local camera = workspace.Camera
wait(.5)
camera.CameraType = "Scriptable"
camera.CameraSubject = CFrame.new(workspace.Focus.Position)

Current script ^^

Scriptable is the only type that makes it stay still. But I can't get it to focus right that is my problem. It won't look directly where I want it too.

4 comments

0

use Camera.CFrame = CFrame.new() * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) and experiment with the numbers

0

Alrighty

0

Doesn't work :P

0

Wait it works now

1 answer

try

local target = workspace.Focus

local camera = workspace.Camera

wait(.5)

camera.CameraType = "Scriptable"
camera.CoordinateFrame = CFrame.new(brick.Position,target.Position)

1 comment

0

Already got an answer

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