All the animations are set to Action
- I noticed that even the arm holding the tool is not animated
As soon as Im back home I’ll try to change the priority.
local normalAnims = chr.normalAnims
local pistolAnims = chr.pistolAnims
-- Equip event
tool.Equipped:Connect(function()
normalAnims.Enabled = false
pistolAnims.Enabled = true
chr.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
ammoGui.Enabled = true
equipped = true
ammoGui.Ammo.Text = ammo.."/"..maxAmmo
end)
-- Unequip event
tool.Unequipped:Connect(function()
normalAnims.Enabled = true
pistolAnims.Enabled = false
chr.Humanoid:ChangeState(Enum.HumanoidStateType.Running)
ammoGui.Enabled = false
equipped = false
end)
here the part that enables/disables the animations.
Set the idle animation priority to Action.
It’s stupid that setting it to Idle doesn’t override the animation but IIRC Action is the priority that overrides this.
If you would not like to do this you can edit out the default animation using this tutorial.
(Keep in mind this will affect EVERY tool in your game unless you add extra logic to the Animate script)
is it possible that the handle is making this happen?
this is how it’s made, if i rename the part to something else and set this to false:
animations works, torso and arm moves. Only problem the tool wont stay in the hand, it appears on the floor
You would have to weld the handle to the players hand yourself afterwards.
If you’re using animated handles using something like xSIXs’s Motor6D tool script then it should automatically do this for you.
i avoided this thing for long time for the “complexity”, i guess i have to do it now.
Again, you can use the previous methods such as setting the priority to Action instead of Idle.
Simplicity is usually the best option in cases of game development.
already tried, not working, tried to set it to idle, action, action 2, action3, action4, doesnt work
That’s not normal. Are you sure you’re using the correct AssetId when playing the animation?
100% sure, i even reuploaded it different times, and checked more than enought to be sure its the right one
Don’t reupload animations when making tiny changes, that’s a bad practice which I realized was an issue far too late and my inventory was flooded. Try overwriting the previous asset instead of uploading an entirely new one.
You can use the linked tutorial as a different method, but I would suggest investigating the behavior with priorities since that isn’t something that usually happens. (From my experience)
You need to remake the tool holding animation because the default Roblox tool holding animation also animates the characters torso for whatever reason.
that’s what I thought, ima make the version without the hadle and let you know if it works.
You could also just modify the animate script to not play the tool holding animation.
haven’t tried anything yet, but which part is responsible for animating the tool? as i said I haven’t touched anything yet, I’m just asking so I don’t have to look later. And sorry for late reply
Line 281 in the default R6 animate script is where the tool related stuff starts.
YES IT WORKS FINALLY, tysm man, like you saved me a good hour of work