I need help panning camera around the character like this (this was made in moon animator)
How would I go about and do it?
I need help panning camera around the character like this (this was made in moon animator)
How would I go about and do it?
We need some more detail on what exactly you’re trying to achieve.
I want to make a simple cutscene where the player click on a bind then it transforms them with that animation playing and the camera zooming around like that
I dont know if i should use parts to set the camera cframe or something
and I don’t know how to tween cameras
Do you have experience using TweenService?
only a little qqqqqqqqqqqqqqqqqqqq
There’s a basic way to Tween the Camera
local tweenService = game:GetService('TweenService')
local currentCamera = workspace.CurrentCamera
local tweenInfo = TweenInfo.new(2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut)
local endCFrame = CFrame.new() -- put your CFrame here
currentCamera.CameraType = Enum.CameraType.Scriptable
-- We set the CameraType to Scriptable so we can modify it and so nothing interferes with the camera
currentCamera.CFrame = CFrame.new() -- Pur your start point here
local tween = tweenService:Create(currentCamera, tweenInfo, {CFrame = endCFrame})
tween:Play()
tween.Completed:Wait()
-- ONCE THE TWEEN IS DONE WE CAN SET THE CAMERA BACK
currentCamera.CameraType = Enum.CameraType.Custom
yeah that’s great but how do you think i should do the camera position?
Using parts to mark the CFrame or?
Use parts, it’ll be easier to set up
local TweenService = game:GetService("TweenService")
local Camera = workspace.CurrentCamera
local part1 = workspace.Part1
local part2 = workspace.Part2
local part3 = workspace.Part3
local function playCutscene()
local originalCFrame = Camera.CFrame
Camera.CameraType = Enum.CameraType.Scriptable
local tweenInfo = TweenInfo.new()
-- play the first tween
local tween1 = TweenService:Create(Camera, tweenInfo, {CFrame = part1:GetPivot()})
tween1:Play()
tween1.Completed:Wait() -- waits for tween1 to finish
-- then start a new tween
local tween2 = TweenService:Create(Camera, tweenInfo, {CFrame = part2:GetPivot()})
tween2:Play()
tween2.Completed:Wait()
-- the last tween
local tween3 = Tween:Create(Camera, tweenInfo, {CFrame = part3:GetPivot()})
tween3:Play()
tween3.Completed:Wait()
-- once all tween is completed we simply set it back to normal
Camera.CFrame = originalCFrame
Camera.CameraType = Enum.CameraType.Custom
end
playCutscene()