Animation not playing correctly

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    A good reload animation

  2. What is the issue? Include screenshots / videos if possible!


  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I did.
    After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

		if what == "reload" and script.Parent.ammo.Value ~= script.Parent.maxammo.Value and script.Parent.reloading.Value == false and shooting == false and script.Parent.MagsLeft.Value > 0 then
			script.Parent.reloading.Value = true
			script.Parent.canfire.Value = false
			idleani:Stop()
			playing = true
			local RL = reloadani.Length/script.Parent.RL.Value
			reloadani:Play(0.100000001,1,RL)
			wait(reloadani.Length/RL)
			if script.Parent.ammo.Value == 0 then
				local BL = reloadani.Length/script.Parent.BL.Value
				boltani:Play(0.100000001,1,BL)
				wait(boltani.Length/BL)
			end
			playing = false
			idleani:Play()
			script.Parent.ammo.Value += script.Parent.setammo.Value
			if script.Parent.ammo.Value > script.Parent.maxammo.Value then
				script.Parent.ammo.Value=script.Parent.maxammo.Value
			end
			script.Parent.MagsLeft.Value-=1
			script.Parent.canfire.Value = true
			script.Parent.reloading.Value = false
		end

I used humanoid

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

I found the issue, The dummy I was using was aready moved.

1 Like

Hey I’m having a issue similar what do you mean by the dummy you were using was already moved?
(Animation Not playing corrects)