Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I revert an animation to its first version?

Asked by
sngnn 274 Moderation Voter
4 years ago

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?

1 answer

Log in to vote
0
Answered by
nc2r 117
4 years ago
Edited 4 years ago

Find the animation in the roblox web site, then click the three dots at the top right of the animation, then click configure, go to versions, find version 1 and revert to this version. Hope this helps

0
Thank you so much! Now I have to find the version. sngnn 274 — 4y
Ad

Answer this question