Animation not loading

I am trying to make an animation to drink bloxy soda. It works fine in studio but when I publish and test on Roblox the anim does’t load

2 Likes

I don’t really understand your problem, could you show your script?


while true do
	
	wait(.8)
	if script.Parent.Parent:FindFirstChild("Humanoid") then
		local anim = script.Parent.Parent.Humanoid:LoadAnimation(script.Slurp)
		anim:Play()
		wait(.2)
		local name	= script.Parent.Parent.Name 
		local plr =	game.Players:FindFirstChild(name)
			print(name)
			if plr.Character.Humanoid.Health ~= 0 then
		plr.leaderstats:FindFirstChild("Max Health").Value = plr.leaderstats:FindFirstChild("Max Health").Value + .25
		plr.character.Humanoid.MaxHealth = plr.leaderstats:FindFirstChild("Max Health").Value
	
			
		
			end
			end
	end

Weird, I’ll check what I can do.

You published your animation in the wrong place.

If the game is in a group, the animation needs to be published to that group.
If the game is on your profile, publish the animation to your profile.

oh, yeah I kept making animations because the old one did not look right. So I just decided to put it under my name instead of my group.Thank you!

1 Like