Hello! So I made a sitting animation and a eating animation, and when I test it out in the roblox studio, it works perfectly. But then when I go in game on regular roblox, neither of the animations work. Does anyone know why this might be happening? I will put the code for the eating animation below, but I don't think it has anything to do with my problem.
local Tool = script.Parent
local EatAnimation = Tool.Animation
Tool.Equipped:Connect(function(Mouse)
Tool.Activated:Connect(function()
local Character = Tool.Parent
local AnimationTrack = Character.Humanoid:LoadAnimation(EatAnimation)
AnimationTrack:Play()
end)
end)
Thank you in advance!

10 comments
I tried your script in a local script and then it didnt even work inside of the studio. Maybe I am doing something else wrong?
One, is the LocalScript located in side of the tool. Is there an instance called "Animation" with an AnimationID located inside of the tool?
I looked through the script, and I applied it all to my studio, and instead you just cant pick it up at all anymore.
I have no idea what you did, this section of code is supposed to play an animation on mouse click. It is supposed to be located in the Tool as a localscript
Do you know how I could add a photo to this site? Like a screenshot, maybe I messed something up.
Oh this is in workspace by the way, dont know if that has anything to do with it.
Is there anything being shown on your output log
Nothing in the output log.. Same problem as before. Even with your script, it is working perfectly in the studio. But when you go to the actual game on roblox, the animation doesnt work.
Also, thank you for helping me with the problem, I really do appreciate it.
Ok, I troubleshooted some more and I figured it out! Thank you so much for helping me, I really appritiate it!