Animation adjustspeed not working

i want to make my walk animation faster but i have an error:

AdjustSpeed is not a valid member of Animation “Workspace.fun_tijger.Animate.walk.WalkAnim”

my script:


game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		wait(3)
		char.Animate.walk.WalkAnim.AnimationId = "rbxassetid://8907580008"
		char.Animate.run.RunAnim.AnimationId = "rbxassetid://8907580008"
		char.Animate.walk.WalkAnim:AdjustSpeed(1.75)
		char.Animate.run.RunAnim:AdjustSpeed(1.75)
	end)
end)

1 Like

RunAnim an animation object? (Animation instance) Or an animation track? (Animation instance loaded on the humanoid with LoadAnimation())

no it just changes the value of the walk animation

Is RunAnim a variable? ))))))))))))))))

You gotta change :AdjustSpeed() on an AnimationTrack not an Animation
So use it when playing it.

example:

track = humanoid.Animator:LoadAnimation(Animation)
track:AdjustSpeed(2)
track:Play()

If you want to change the speed of default animations, change the default “Animate” script

You can’t change the speed of animations before you load them. If you want to change the speed, you have to do so after loading them. For example:

local AnimationInstance
local Track = AnimationTest:LoadAnimation(AnimationInstance)

Track:AdjustSpeed(1.75)

how would i change the animate script

-Play the game
-Copy the script “Animate” in your character
-Stop the game
-Paste the script in StarterCharacterScripts (don’t change the name “Animate”)

Then edit it to make whatever you want

where do i change the animation speed, i cant find it

You need to add code, not change a simple value.
Not everything is so simple…

what do i need to add because i never worked with animations

there’s nothing to explain you gotta learn to script.
Otherwise i would take 30 minutes and then spit out some script and you’ll never understand a single thing

Sorry but you gotta learn, i recommend exporting your own slower animations in the meantime

You have to start playing the animation track instance as well in order to change its speed.

You can only run adjustspeed once you have loaded an animation to a humanoid.

E.G:

Local anim = Animator:LoadAnimation(AnimationInstance)
anim:AdjustSpeed(speed: Integer)
anim:Play()

If I’m not wrong, when you :Play() an animation, it resets it’s speed.
So, try :Play() it first, and then in the next line do :AdjustSpeed().

2 Likes