I'm using Camera Interpolation to make a starting screen for my game. The code works but the problem is that I can't angle it correctly so the camera always faces the wrong direction. I'm using the CFrame of a part for the Camera Interpolation and I don't know how to angle it towards the direction I wan't it to face. Any suggestions/answers would be appreciated.

This is the 1st script(located in the Workspace)

game.Players.PlayerAdded:connect(function(player)
wait(3)
game.ReplicatedStorage:FindFirstChild("Cutscene1"):FireClient(player)
end)

And this is the 2nd script, aka the LocalScript(located in the StaterGui)

game.ReplicatedStorage:WaitForChild("Cutscene1").OnClientEvent:Connect(function() 
       if script.Done.Value == false then
       script.Done.Value = true
       local camera = game.Workspace.CurrentCamera
       camera.CameraType = "Scriptable"
       print("CameraType changed")
       camera:Interpolate(game.Workspace.Part1.CFrame, game.Workspace.Part2.CFrame, 2)
       print("Interpolation started")
       wait(2)
       camera:Interpolate(game.Workspace.Part2.CFrame, game.Workspace.Part3.CFrame, 2)
       wait(2)
       camera:Interpolate(game.Workspace.Part3.CFrame, game.Workspace.Part4.CFrame, 2)
       wait(2)
       camera:Interpolate(game.Workspace.Part4.CFrame, game.Workspace.Part5.CFrame, 2)
       wait(5)
       camera.CameraType = "Custom"
       end
       end)

Hopefully you can help me!

4 comments

0

Hasn't Interpolate been deprecated?

0

It's never been deprecated, it's just not recommended by the wiki, and devforum posts.

0

What should I use instead?

0

??