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

How do i fix my animation not loading (no errors in output)?

Asked by 3 years ago
local Handle = script.Parent.Handle
local Char = game.Players.LocalPlayer:WaitForChild("Character")
local SwingAnimation = workspace.Swing

script.Parent.Activated:Connect(function()
    Char.Humanoid:LoadAniamtion(SwingAnimation)
    print("Hello World!")
end)

1 answer

Log in to vote
0
Answered by
nievadev 112
3 years ago

First, you got a typo. And although that's the way to load an animation into an Humanoid, you are not playing it.

Fix:

local anim = Char.Humanoid:LoadAnimation(SwingAnimation)
anim:Play()

Remember to accept the answer if is it helpful for you! I'm glad to help :)

0
ok it still doesnt work can you maybe provide me a full working script? jedistuff2 89 — 3y
Ad

Answer this question