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

1 comment