Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Any thought on my animation loading issue?

player = game.Players.LocalPlayer

mouse = player:GetMouse()

animation = script:WaitForChild("CharacterAni")

mouse.Button1Down:connect(function()

	local animationTrack = player.Character.Humanoid:LoadAnimation(animation)
	animationTrack:play()
	
	wait(0.5)

end)

Every time I run this script I get "Animation "http://www.roblox.com/asset/?id=http://www.roblox.com/asset?id1300920406&serverplaceid=0" failed to load in "Players.tygerupercut3.Backpack.CharacterScript.CharacterAni.AnimationId": Animation failed to load"

This is in a local script in my starter pack with the animation "CharacterAni" inside of it. Not sure what to do.

1 answer

You want to give a nice look on that AnimationId. Try getting just the AnimationId numbers and putting on the AnimationId property.

1 comment

0

"Hits head." I had the animation id typed in wrong. Thanks for the reply, I got everything straightened out.

This discussion is preserved as it was. New answers, comments, and votes are closed.