Anim Adjust Speed not working

Hi, issue is that the anim is not freezing after .7 seconds. Does anyone know why? The printing works, it just doesn’t freeze the anim which is strange. This script is a server script in serverscriptservice. The issue is only for the ‘out’ argument, in works fine.
image

local replicatedstorage = game:GetService("ReplicatedStorage")

replicatedstorage.handler.OnServerEvent:Connect(function(player: Player, info: any)
	if replicatedstorage.handler["v"].Value == "noobie" then
		local animator = player.Character.Humanoid:FindFirstChild("Animator")
		local anim_phone_out
		local anim_phone_in
		local s, e = pcall(function()
			anim_phone_out = animator:LoadAnimation(script.outanim)
			anim_phone_in = animator:LoadAnimation(script.inanim)
		end)
		if s then
			if info[1] == "out" then
				anim_phone_in:Stop()
				anim_phone_out:Play()
				task.wait(.7)
				anim_phone_out:AdjustSpeed(0)
				warn("played out")
			elseif info[1] == "in" then
				anim_phone_out:Stop()
				anim_phone_in:Play()
				warn("played in")
			end
		end
	end
end)

1 Like

instead of task.wait you should use animation events as task.wait can be inaccurate

1 Like

I believe it doesn’t matter. The animation stops after .8 seconds, which means if we are just before the end, and we freeze it, theoretically should work, right?

1 Like

No, because of enviromental factors.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.