local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local camera = workspace.CurrentCamera local RunService = game:GetService("RunService") local function playAnimation() local animation = Instance.new("Animation") animation.AnimationId = "rbxassetid://18182425133" local animationTrack = humanoid:LoadAnimation(animation) animationTrack:Play() animationTrack:AdjustSpeed(10) camera.CameraSubject = humanoidRootPart camera.CFrame = CFrame.new( humanoidRootPart.Position + humanoidRootPart.CFrame.LookVector * -10 + Vector3.new(0, 5, 0), humanoidRootPart.Position ) repeat task.wait() until animationTrack.TimePosition >= 1.3916668891906738 animationTrack:AdjustSpeed(0) animationTrack.Priority = Enum.AnimationPriority.Action4 return animationTrack end local animationTrack = playAnimation() RunService.RenderStepped:Connect(function() if not animationTrack.IsPlaying then animationTrack = playAnimation() end end)