So basically i was trying to make a camera look at a certain point during the into (similar to how Dungeon Quests' intro is). Everything works except my camera is not at my specified point. Please help me.

My script:

local camera = game.Workspace.CurrentCamera

local player = script.Parent.Parent.Parent

local button = player.PlayerGui.ScreenGui.TextButton

repeat
    camera.CameraType = Enum.CameraType.Scriptable
until
    camera.CameraType == Enum.CameraType.Scriptable

camera.CFrame = game.Workspace.Camera1.CFrame

button.MouseButton1Click:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
    button:Destroy()
end)

3 comments

0

Is Camera1 a part in workspace?

0

you may want to set a variable for the target part that the camera is at (in this case camera1)

0

@Brandon1881 yes