Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited 7 years ago

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.

0
use Camera.CFrame = CFrame.new() * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)) and experiment with the numbers abnotaddable 920 — 7y
0
Alrighty PixelZombieX 8 — 7y
0
Doesn't work :P PixelZombieX 8 — 7y
0
Wait it works now PixelZombieX 8 — 7y

1 answer

Log in to vote
-1
Answered by 7 years ago

try

local target = workspace.Focus

local camera = workspace.Camera

wait(.5)

camera.CameraType = "Scriptable"
camera.CoordinateFrame = CFrame.new(brick.Position,target.Position)
0
Already got an answer PixelZombieX 8 — 7y
Ad

Answer this question