Animation:AdjustSpeed() not working

Hello, I’m making a simulator and want to increase the speed.

Local Script:

local Player = game:GetService('Players').LocalPlayer
local UIS = game:GetService('UserInputService')
local Character = script.Parent
local Humanoid = Character:WaitForChild('Humanoid')
local Animation = Humanoid:LoadAnimation(script:WaitForChild('Animation'))
Animation:AdjustSpeed(0)

UIS.InputBegan:Connect(function(Input,EngineProcessed)
	if EngineProcessed then
		return
	end
	
	if Input.UserInputType == Enum.UserInputType.MouseButton1 then
		Animation:Play()
	end
end)

The problem is that, when the speed is 0, the animation shouldn’t play at all! My animation priority is action, but the speed is the same without it! I get no errors.

1 Like

Try if using AdjustSpeed after Play would work. You can also give the speed as an argument to Play if you also give it the fadetime and weight. Here’s a post that explains why adjusting it before Play won’t work.

2 Likes