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

Sudden White Screen? - Interpolating Camera

Asked by 8 years ago

This script is to move through cameras and locate the focus and CoordinateFrame inside models. The movement is fine and is actually exactly what I'm looking for, but once the Camera goes into position, the screen turns white. Any insight on this will help, thanks.

Button.MouseButton1Click:connect(function()
    Viewing.Value = Viewing.Value+1
    local Current = Towers:WaitForChild("Tower"..Viewing.Value)
    local Pos = Current:WaitForChild("View1")
    Cam:Interpolate(CFrame.new(Pos.Position),(CFrame.new(Pos.Position)),5)
end)

1 answer

Log in to vote
1
Answered by 8 years ago

Your camera focus can't be the same as your camera position. You need to change the second argument of your Interpolate call to something else. You should probably move it forward a few units from the position in the first parameter.

Ad

Answer this question