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

Why does my screen turn black when I attempt to interpolate a camera?

Asked by 6 years ago

Hi!

I've just tried experimenting with the interpolate feature on the camera object and it doesn't seem to work. The following code will tween the players camera to the position as shown by pos. It works right until the last second where the screen turns black.

local pos = CFrame.new(0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
repeat wait() until workspace.CurrentCamera ~= nil
workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
workspace.CurrentCamera:Interpolate(pos, pos, 5)

Here is an image on what it is currently doing: https://gyazo.com/3f2d4a37a877b865905af786839c3f86

Any help would be appreciated.

0
maybe try changing the endfocus abnotaddable 920 — 6y
0
Tried doing that mate, no change. WelpNathan 307 — 6y

Answer this question