Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

game.Workspace.CurrentCamera:Interpolate(Part's CFrame Position, Part's Vector3 lookvector?)

I am having a bit of trouble with the :Interpolate function with the camera. I need to use the :interpolate function of the camera to make the camera move smoothly to a part that is transparent. However, I can't seem to figure out how to get the direction the part is facing...here is what I tried

--LocalScript
game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Workspace.CurrentCamera:Interpolate(game.Workspace.Camerapart.CFrame, game.Workspace.Camerapart.CFrame.lookvector)

Lookvector I know doesn't work because it's a vector3, it needs a CFrame. Is there a way to convert Vector3's to CFrames?

1 answer

game.Workspace.CurrentCamera.CameraType = "Scriptable" game.Workspace.CurrentCamera:Interpolate(game.Workspace.Camerapart.CFrame, CFrame.new(game.Workspace.Part.Position+game.Workspace.Camerapart.CFrame.lookVector),1)

the 1 on the end is how long the interpolate lasts.

This discussion is preserved as it was. New answers, comments, and votes are closed.