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

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

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

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 :)

1 comment

0

ok it still doesnt work can you maybe provide me a full working script?

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