I’m making a simple gun holding animation, but for some reason it’s breaking. I’ve had this bug for a while now and it’s really annoying. Please help me!
So here’s the problem
–In Animation Editor :
In Game :
See the slight rotation offset.
I really need to fix this since the game uses IK for the view model’s arms!
awry_y
(ary)
August 3, 2024, 1:47pm
#2
Probably has to do with your script.
Or try setting your animation priority to Action.
1 Like
My priority is Action2 and here is my code :
script.Parent.Events.AnimationIdle.OnClientEvent:Connect(function(gun, oldGunName)
print("b")
wait(0.5)
local anim = script.Parent:FindFirstChild("Gun").Idle
oldName = oldGunName
if anim then
print(anim.Name)
local anim = game.Players.LocalPlayer.Character.Humanoid.Animator:LoadAnimation(anim)
anim.Priority = Enum.AnimationPriority.Action2
print(anim.Priority)
anim.Looped = true
print("a")
anim:Play()
end
end)
2 Likes