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

Why does this simple Camera Script not work?

Asked by 9 years ago

I don't understand what I'm doing wrong. Here's the script (LocalScript inside TextButton)

function onClick()
    game.Workspace.Camera.CameraSubject = game.Workspace.AUGCam
    game.Workspace.Camera.CameraType = "Scriptable"

end

script.Parent.MouseButton1Click:connect(onClick)

AUGCam is a Part inside Workspace, No errors in output appear.

Answer this question