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

How to make a camera at a set point during an intro menu?

Asked by 4 years ago

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)
0
Is Camera1 a part in workspace? Brandon1881 721 — 4y
0
you may want to set a variable for the target part that the camera is at (in this case camera1) sean_thecoolman 189 — 4y
0
@Brandon1881 yes DAKNCAMGAMING 45 — 4y

Answer this question