As you can see, the first time the animation runs the character doesn’t move its arm properly, only until the following click within a small time frame.
1 Like
Can you share your code? Also make sure the priority is set to action.
local UIS = game:GetService("UserInputService")
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://6745226472"
local loadanim = script.Parent:WaitForChild("Humanoid").Animator:LoadAnimation(anim)
loadanim:AdjustWeight(2)
local debounce = false
UIS.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
if debounce == false then
debounce = true
loadanim:Play()
loadanim.Stopped:Wait()
print(debounce)
end
debounce = false
end
end)