I made this script out of boredom, and I can’t get it to work
coroutine.wrap(function()
repeat wait()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
until
workspace.CurrentCamera.CameraType == Enum.CameraType.Scriptable
end)()
coroutine.wrap(function()
while task.wait() do
workspace.CurrentCamera.CFrame = workspace.Rooms.Roomer:GetPivot() * CFrame.Angles(0,math.rad(2),0)
end
end)()
I’m trying to make the camera rotate while being the Pivot cframe, it doesnt work and only rotates by 2 studs (So it doesnt spin at all)
coroutine.wrap(function()
repeat wait()
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
until
workspace.CurrentCamera.CameraType == Enum.CameraType.Scriptable
end)()
workspace.CurrentCamera.CFrame = workspace.Rooms.Roomer:GetPivot()
coroutine.wrap(function()
while task.wait() do
workspace.CurrentCamera.CFrame *= CFrame.Angles(0,math.rad(2),0)
end
end)()
This makes the camera rotate, but it resets to its original position.
can anyone help me? im losing my sanity once again