I can't seem to get animations to load. I can run the script without error, but for some reason they don't appear to work at all. Here is how I'd go about loading them:
-Gui is placed in StarterPack -LocalScript is placed inside of gui -animation is placed inside of LocalScript with an ID (220369631) -button is placed inside of gui
LocalScript:
local button = script.Parent.Button
local animation = script.Animation
local player = game.Players.LocalPlayer
local humanoid = player.Character.Humanoid
button.MouseButton1Down:connect(function()
if humanoid then
local loadanimation = humanoid:LoadAnimation(animation)
loadanimation:Play()
end
end)

1 comment
Is there an animation Inside the script? That looks pretty much like my script but with slight differences.