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)