Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I revert an animation to its first version?

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

✓ Accepted answer

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

1 comment

0

Thank you so much! Now I have to find the version.

This discussion is preserved as it was. New answers, comments, and votes are closed.