#Want to make cutscene for camera using tween

5 messages · Page 1 of 1 (latest)

proud ore
#

here is my code its a play button and the camera starts in the air then when you click play its supposed to transition into the player view. The game waits the 2 seconds but instead of transitioning slowly it just goes right away. i put the camera type as scriptable beforehand.

button.Activated:Connect(function()
    button.Visible = false
    game.ReplicatedStorage.PlayEvent:FireServer()
    local tweenParam = TweenInfo.new(2)
    local tween = tweenService:Create(camera,tweenParam,{CFrame = CFrame.new(localPlayer.HumanoidRootPart.Position)})
    task.wait(2)
    camera.CameraType = Enum.CameraType.Custom
end)
novel star
#

i think you didnt play the tween

#
tween:Play()
tween.Completed:Connect(function()
    camera.CameraType = Enum.CameraType.Custom
end)```
proud ore
#

you are right it works now i spent 30 min 💀

#

thanks