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

How would I use this Camera Manipulation?

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

Well, I haven't scripted for a while, and I noticed that onKeyPressed, etc doesn't work anymore.

So what's the new function for it?

I'd like a script that:

when the camera's subject is on the first brick and the local player presses "d" it will change the camera function to the 2nd brick.

Keep in mind that I already know how to manipulate the camera to lock on to the bricks, but the question is, ****How do I script it so that when they press "d" on their keyboard, it changes the focus?

if cam.CameraSubject == game.Workspace.Focus1 then
    cam.CameraSubject = game.Workspace.Focus2
end

Answer this question