fun_tijger
(fun_tijger)
February 23, 2022, 9:51pm
#1
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())
fun_tijger
(fun_tijger)
February 23, 2022, 9:56pm
#3
no it just changes the value of the walk animation
Is RunAnim a variable? ))))))))))))))))
Cyberflixt
(Cyberflixt)
February 23, 2022, 10:00pm
#5
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)
fun_tijger
(fun_tijger)
February 23, 2022, 10:04pm
#7
how would i change the animate script
Cyberflixt
(Cyberflixt)
February 23, 2022, 10:06pm
#8
-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
fun_tijger
(fun_tijger)
February 23, 2022, 10:09pm
#9
where do i change the animation speed, i cant find it
Cyberflixt
(Cyberflixt)
February 23, 2022, 10:11pm
#10
You need to add code, not change a simple value.
Not everything is so simple…
fun_tijger
(fun_tijger)
February 23, 2022, 10:17pm
#11
what do i need to add because i never worked with animations
Cyberflixt
(Cyberflixt)
February 23, 2022, 10:22pm
#12
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
Forummer
(Forummer)
February 23, 2022, 11:29pm
#13
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