I was testing a run animation, and I made one and it took a really long time. I made another to see how it looked, and when I went back, it didn't go back to the animation I made before I changed it.
Anyways, I made the animation for a sprint script:
local Player = game.Players.LocalPlayer local Character = Player.Character local Animation = Instance.new("Animation") Animation.AnimationId = "https://web.roblox.com/asset/?id=4292125434" local AnimPlay = Character.Humanoid:LoadAnimation(Animation) local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(Key,GameProcessed) if not GameProcessed then if Key.KeyCode == Enum.KeyCode.LeftShift or Key.KeyCode == Enum.KeyCode.RightShift then if Character.Humanoid.Health > 0 then AnimPlay:Play() for i = 1,10,1 do workspace.Camera.FieldOfView = workspace.Camera.FieldOfView + 1 Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed + 1.4 wait(0.01) end end end end end) UIS.InputEnded:Connect(function(Key,GameProcessed) if not GameProcessed then if Key.KeyCode == Enum.KeyCode.LeftShift or Key.KeyCode == Enum.KeyCode.RightShift then if Character.Humanoid.Health > 0 then if workspace.Camera.FieldOfView ~= 70 then AnimPlay:Stop() Animation:Destroy() for i = 1,10,1 do workspace.Camera.FieldOfView = workspace.Camera.FieldOfView - 1 Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed - 1.4 wait(0.01) end if Character.Humanoid.WalkSpeed ~= 30 then if workspace.Camera.FieldOfView == 80 then workspace.Camera.FieldOfView = 70 end end end end end end end) Character.Humanoid.Died:Connect(function() --If the player has died if workspace.Camera.FieldOfView == 80 then for i = 1,10 do workspace.Camera.FieldOfView = workspace.Camera.FieldOfView - 1 wait(0.01) end end end)
I want to go back to the original version. Is there a possible way to do this?