Good! I need help with this. I have the following script that manipulates the camera and it is fully functional, but. with jump I mean that the camera is in a place, and suddenly it moves towards where the script tells it (how to teleport), and what I want it to do is to see how the camera moves towards the direction. the script is an intro, you can test it if you want, the script creates the necessary things, you just need to put it in starterCharacterScripts
local TweenService = game:GetService("TweenService")
local Head = script.Parent:WaitForChild("Head")
local speed = script.Parent:WaitForChild("Humanoid")
speed.WalkSpeed = 0
local FolderParts = Instance.new("Folder")
FolderParts.Parent = workspace
FolderParts.Name = "Intro"
local parte = Instance.new("Part")
parte.Parent = FolderParts
parte.CanCollide = false
parte.Transparency = 1
local parte2 = Instance.new("Part")
parte2.Parent = FolderParts
parte2.CanCollide = false
parte2.Transparency = 1
local parte3 = Instance.new("Part")
parte3.Parent = FolderParts
parte3.CanCollide = false
parte3.Transparency = 1
local parte4 = Instance.new("Part")
parte4.Parent = FolderParts
parte4.CanCollide = false
parte4.Transparency = 1
local weld = Instance.new("Weld")
weld.Parent = parte
weld.Part0 = Head
weld.Part1 = parte
weld.C0 = CFrame.new(0,200,0)
local weld2 = Instance.new("Weld")
weld2.Parent = parte2
weld2.Part0 = Head
weld2.Part1 = parte2
weld2.C0 = CFrame.new(0,100,0)
local weld3 = Instance.new("Weld")
weld3.Parent = parte3
weld3.Part0 = Head
weld3.Part1 = parte3
weld3.C0 = CFrame.new(0,10,0)
local weld4= Instance.new("Weld")
weld4.Parent = parte4
weld4.Part0 = Head
weld4.Part1 = parte4
weld4.C0 = CFrame.new(0,0.15,12)
parte.Orientation = Vector3.new(-90, 0, 0)
parte2.Orientation = Vector3.new(-90, 0, 0)
parte3.Orientation = Vector3.new(-90, 0, 0)
local camera = game.Workspace.Camera
local cutsceneTime = 0.5
local tweenInfo = TweenInfo.new(
cutsceneTime,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0)
function tween (parte, parte2, parte3, parte4)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = parte.CFrame
wait(2.5)
local tween = TweenService:Create(camera, tweenInfo, {CFrame = parte2.CFrame})
tween:Play()
wait(1.1)
local tween2 = TweenService:Create(camera, tweenInfo, {CFrame = parte3.CFrame})
tween2:Play()
wait(1.1)
local tween3 = TweenService:Create(camera, tweenInfo, {CFrame = parte4.CFrame})
tween3:Play()
wait(1.1)
camera.CameraType = Enum.CameraType.Custom
speed.WalkSpeed = 25
parte:Destroy()
parte2:Destroy()
parte3:Destroy()
parte4:Destroy()
end
tween(parte, parte2, parte3, parte4)