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

How do I set the camera back to the player?

Asked by 3 years ago

Here is the script so far:

local cameraFolder = workspace.CameraGroup
local cameraPart = workspace.CameraPart
local Camera = workspace.CurrentCamera
local frame = script.Parent.Buttons

Camera.CameraType = Enum.CameraType.Scriptable

Camera.CFrame = cameraPart.Position

if frame.Play.ClickedPlay == true then
    frame.Play.ClickedPlay = false

end

I am confused where the camera position normally is to the player..

1 answer

Log in to vote
0
Answered by 3 years ago

Ok This Is Actually Preety Simple To Do Ok Here Is How To Do It

local cameraFolder = workspace.CameraGroup
local cameraPart = workspace.CameraPart
local Camera = workspace.CurrentCamera
local frame = script.Parent.Buttons

Camera.CameraType = Enum.CameraType.Scriptable

Camera.CFrame = cameraPart.Position

if frame.Play.ClickedPlay == true then
    frame.Play.ClickedPlay = false 
    wait(1)
    Camera.CameraType = Enum.CameraType.Custom -- You can remove The Wait If you Want And Also Can Change the position of Camera.CameraType = Enum.CameraType.Custom 
end
0
you said Preety lol, but ik what u mean poppyloverb 20 — 3y
Ad

Answer this question