Animation Problem/AdjustSpeed()

I’m having issues with animations right now because adjustspeed doesn’t fully work sometimes, or my animation doesn’t fully play. I using a remote event for an ability so this part of my script is serversided.
So I have two main problems, when the script activates
–The animation doesn’t fully play sometimes
–The adjustspeed(0) sometimes works and sometimes doesn’t or plays earlier than it should despite th e keyframe being name being the same.
I already have my animations set to action+ as well.


–Animation not Fully playing, arms should be higher

	local HumanoidAnimator = Humanoid:WaitForChild("Animator")
	local BazookaAnimation = Instance.new("Animation", HumanoidAnimator)
	BazookaAnimation.AnimationId = "rbxassetid://14917430218"


task.wait(0.1)


	local BazookaAnimationPlay = HumanoidAnimator:LoadAnimation(BazookaAnimation)
	BazookaAnimationPlay:Play()
	BazookaAnimationPlay:AdjustSpeed(0.9)
	
	local function TheyExtendedArmFrame(BazookaFrame)
		if BazookaFrame then
			BazookaAnimationPlay:AdjustSpeed(0)
		end
	end
	BazookaAnimationPlay.KeyframeReached:Connect(TheExtendedArmFrame)
2 Likes

You can try BazookaAnimationPlay:AdjustSpeed(2) to double the speed. If the animation still doesn’t respond to speed adjustments, there may be something specific about the animation asset or the way it’s used in your game that’s causing the issue.

in your case what i would recommend would be to change the speed of the actual animation in animation editor.

1 Like

I’ve tried your suggestions and they sadly don’t work but thank you. I’m trying to find out if there’s anything in my game that’s causing this.


This is the animation and it’s simple so I don’t know if I’m just doing something wrong. I figured it was a scripting problem since adjustspeed and it not loading properly wasn’t working.

1 Like

I’m not entirely sure if this is related to the issue or not, but I’m noticing a potential typo:

You shouldn’t be loading and playing the animations on the server because you are overwhelming it, welp not really, but it is better for performance to be entirely client sided. Because if it was on the server, it will have to calculate the positions and etc. There shouldn’t be a reason you can’t do it on the client, if there is, then… fix your code structure.

That’s more of a roblox thingy. Just position them higher in the animation editor and re-export the animation.

And also I wouldn’t be using :AdjustSpeed. I would have used different animation tracks because in my opinion is better. I could be wrong but I prefer it.

1 Like

It wasn’t that was a typo from me checking through posting it, it was fixed before that and still did the same issue.

Ah and thank you I’ll try your solution to see if I’m able to get anywhere with it. Also with the arms not moving correctly sometimes they can be in different positions or not load at all, but I’ll put the animation client side and see if it works

try adjusting the speed after playing the animation

1 Like

@Mochiuski :wave: Please mark this as the solution, this was literally a lifesaver for me and it could help someone else in the future. Thanks :slightly_smiling_face: