Very recently I have been helping a group with scripting and animations, but for some reason I am having trouble trying to get the animations to work in the game. Whenever I click, it’s supposed to run an animation for the drink, like such:
It works perfectly fine in the owner’s testing server, and then after the same exact machines and scripts were copied over I tried in the group place:
The tools are the exact same, but the animation does not run. I even copied the animations 100% into the group and yet it still wouldn’t run.
local Tool = script.Parent local numbites = 0 local cooldown = false local function onActivate() if cooldown == false then cooldown = true local humanoid = script.Parent.Parent.Humanoid local animation=humanoid:LoadAnimation(script.BiteAnimation) --This priority is set to action animation:Play() wait(1) script.Parent.Handle.Bite:Play() numbites = numbites + 1 if numbites == 1 then script.Parent.Bite1.Transparency = 1 elseif numbites == 2 then script.Parent.Bite12.Transparency = 1 elseif numbites == 3 then script.Parent.Bite2.Transparency = 1 elseif numbites == 4 then script.Parent.Bite22.Transparency = 1 elseif numbites == 5 then script.Parent.Bite3.Transparency = 1 elseif numbites == 6 then script.Parent:Destroy() end cooldown = false end end Tool.Activated:Connect(onActivate)