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

Animation unable to load in game? It's failing?

I dont know how to fix it but can someone help Im unable to load the animation for a dance

local player = game:GetService("Players").LocalPlayer
	 
repeat
    wait(10)
until player.Character
 
local char = player.Character
local hum = char:WaitForChild("Humanoid")
 

local animTrack = Instance.new("Animation") animTrack.AnimationId ="rbxassetid://4898878621" 
local animation = hum:LoadAnimation(animTrack)
 

script.Parent.MouseButton1Click:Connect(function()
    animation:Play()
end)

2 comments

0

You have the animation? You can't use animations from other place

0

Its mine

1 answer

✓ Accepted answer

I think you have to be the owner of the animation or else it will error.

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