I've been trying to stop the loop and make the camera focus on the player but it won't seem to work. I've tried removing the rotation point, the script itself, making a value etc but it just won't seem to work.
local target = workspace.Terrain local value1 = script:WaitForChild("Value")~~~~~~~~~~~~~~~~~
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target
--camera.Focus = CFrame.new(target.Position)
local angle = 0
local i = 0
while wait() do
camera.CoordinateFrame = CFrame.new(target.Position) --Start at the position of the part
* CFrame.Angles(0, angle, 0) --Rotate by the angle
* CFrame.new(0, 50, 50) --Move the camera backwards 5 units
--camera.Focus = CFrame.new(target.Position)
angle = angle + math.rad(1)
if value1.Value == true then break end
end
im new to scripting so anything that could help is appreciated :)

3 comments
You messed up your code break there
rip
instead of "break end" do "return end" or just "break"