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

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

Asked by 4 years ago

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)

0
You have the animation? You can't use animations from other place GuerraReturns 122 — 4y
0
Its mine no0bgaming748 24 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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

Ad

Answer this question