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

Help with camera?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

What I am trying to do is when I click a TextButton I want the camera to be facing "Baseplate"

1script.Parent.MouseButton1Click:connect(function()
2    local target = game.Workspace.Baseplate --Baseplate is the part I want the camera to be facing.
3    local camera = game.Workspace.CurrentCamera
4    camera.CameraType = Enum.CameraType.Scriptable
5    camera.CameraSubject = target
6end)

Answer this question