Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i play an animation on my character?

Asked by 9 years ago

I recently made a script and its not playing the animation on my character.

local Player = game.Players.LocalPlayers; local AnimId = (248335946);

local URL = ("http://www.roblox.com/asset/?id=248335946"); local Anim = (URL..tostring(AnimId)); Player.CharacterAdded:connect(function(Char) local Hum = Char:WaitForChild("Humanoid"); local Track = Hum:LoadAnimation(Anim) loop(); Track:Play(); return nil; end);

Answer this question