Help with Camera

If there is a topic like mine, i could not find it.

What I want to achieve:
robloxapp-20211210-2211583.wmv (919.4 KB)
just how to achieve that camera pan

If anyone can help me or point me in the right direction as to where to start or look in developer Roblox.

2 Likes

So, you would have to use cam manipulation and a tween.

1 Like

Do you mean how it goes faster? In that case, then when you tween the camera, then use “In” or “Out”, I forgot which does which.

If you don’t know how to tween the camera, set workspace.CurrentCamera.CameraType to "Scriptable" or Enum.CameraType.Scriptable. Then use local tween = game:GetService("TweenService"):Create(workspace.CurrentCamera, TweenInfo.new(time, easingstyle, and "Out" or "in"), {CFrame = CFrame.new(camera coords)})

so its just camera animation?
plus pan code

2 Likes

For making the cam change you’d use something like this:

local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = game.Workspace.CameraPart.CFrame
1 Like

What do you mean by “pan code”? When you move the camera (animating it) it does pan.

They want it to tween I believe…

And for a animation you should use tween service to animate that.

TweenService | Roblox Creator Documentation <— This should help
Edit: Tween is basically a way of animating movement of a model

do i need to create an object for the camera to be located at

1 Like

If you want, or you can just copy the part’s position and put it in the script directly.

1 Like

Yes I would do it that way or you can just put

local Camera = game.Workspace.CurrentCamera
local Player = game.Players.LocalPlayer
repeat wait()
Camera.CameraType = Enum.CameraType.Scriptable
until Camera.CameraType == Enum.CameraType.Scriptable
Camera.CFrame = CFrame.new() <--- Put a vector 3 here
1 Like

can this be played as a bindable event?

To my knowledge no sorry. But I may be wrong.

1 Like

Vector3 ≠ CFrame…