The problem I’m having is that an animation isn’t happening properly on click when I have a tool equipped in a game I’m working on, even though it looks just fine on the animation editor. I thought it may be a problem with the fact that it’s an equipped tool, or maybe one of the other scripts in my game are interfering with the animation, so I went to test in a baseplate with the following scripts on me and a dummy respectively:
script.Parent.ClickDetector.MouseClick:Connect(function(Player)
local Character = Player.Character
local Hum = Character:FindFirstChild("Humanoid")
local Animator = Hum:FindFirstChild("Animator")
local PunchAnim = Instance.new("Animation")
PunchAnim.AnimationId = "rbxassetid://122651488633647"
local PunchAnimTrack = Animator:LoadAnimation(PunchAnim)
PunchAnimTrack:Play()
end)
local Animator = script.Parent.Humanoid.Animator
local PunchAnim = Instance.new("Animation")
PunchAnim.AnimationId = "rbxassetid://122651488633647"
local PunchAnimTrack = Animator:LoadAnimation(PunchAnim)
PunchAnimTrack:Play()
As you’d probably expect from the fact that I’m posting here, I still have the same issue, and I have no idea what could possibly be causing it. Nothing is anchored if that information helps at all, and any help would be greatly appreciated. I’ll post what the animations look like in game, along with the animation editor below.
In the standard Animate script, when entering the game there is an animation of the torso, that it is fixed.
You should remove the animation, when equipping tool
If it still doesn’t work for you, or you want to leave your hand raised. You can use Set Animation Priority. (if you set Action4, your animation will be fine)
It seems to be an issue with me having imported the animation from blender. I don’t know why it seems fine in the animation editor, but I made a quick replacement on the basic animation editor and it seemed to work fine. Sorry for wasting your time.