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

why doesn't my animation load and play?

--choppy choppy >:3

local tool = script.Parent
local toolDeb = false

tool.Activated:connect(function(hit)
	if toolDeb == false then
		local chopAnim = Instance.new("Animation", game.Players.LocalPlayer.Character)
		chopAnim.AnimationId = "http://www.roblox.com/Asset?ID=1079330549"
		local chopAnimTrack = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(chopAnim)
		chopAnimTrack:Play()
		wait()
	end
end)

It doesn't play...

1 comment

0

Do not only post code, or only post an explanation. Both are required to make a good question.

1 answer

Most people usually do it like this :

local chopanim = Instance.new("Animation")
chopanim.AnimationId = "http://www.roblox.com/Asset?ID=1079330549"

To play :
local animTrack = Humanoid:LoadAnimation(chopanim)
animTrack:Play()

2 comments

0

If you are not posting an explanation, please use comments instead!

0

U right, my fault

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