Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I set the camera back to the player?

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

✓ Accepted answer

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

1 comment

0

you said Preety lol, but ik what u mean

This discussion is preserved as it was. New answers, comments, and votes are closed.