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

How to make the players camera face another block on touch?

Asked by 3 years ago

I'm quite new to scripting, so bare with me. I'm trying to make a script in which when the player touches a certain block, the players camera will face another block. If you've ever played LBP, it's basically the way that once you press a button the controller's menu pops up. Anyway, this is my sad attempt at it:

function onTouch()
    workspace.Camera.CameraSubject = workspace.campart
end

btw campart is the name of the block I'm trying to make it face! Also I very much understand this may be a longer script than expected, so just tell me if so, you don't have to write it obviously.

Answer this question