I’m trying to make a nice animated camera movement thats fast but this happens
https://gyazo.com/cc9faf3aabe4a65e5eab830d59560cb1
RemoteEvent:FireServer()
game.Lighting.Blur.Size = 6
wait(0.5)
game.Workspace.CurrentCamera.CameraType = Enum.CameraType.Scriptable
game.Workspace.CurrentCamera:Interpolate(game.Workspace.StartingCamera.camerapart.CFrame, game.Workspace.CharacterCustomization.camerapart.CFrame, 1)
game.Workspace.CurrentCamera.CFrame = game.Workspace.CharacterCustomization.camerapart.CFrame
game.Lighting.Blur.Size = 5
wait(.5)
1 Like
It’s not really clear what’s wrong with the GIF you posted
What’s supposed to happen?
Esythia
(Esythia)
3
The reason is clear…
Camera:Interpolate()
is Deprecated, and kills the player when completed.
Create a camera tween instead.
1 Like
How can I tween a camera? Is it like tweening a normal part or gui? Or a bit different?
That’s how I would do it, you simply tween it’s cframe yeah
local tween = function(obj, prop, sty, dir, t)
return tweenService:Create(obj, TweenInfo.new(Enum.EasingStyle[sty], Enum.EasingDirection[dir], t), prop)
end
local tween0 = tween(camera, {CFrame = CFrame.new()}, "Linear", "InOut", 2)
tween0:Play()