Animation wont play


whenever i play it shows this with my moon animation for a tool. here is my script
local Player = game.Players.LocalPlayer
local Character = Player.Character
local Tool = script.Parent
local Animation = Tool:WaitForChild(“Anim”)
local Track = Character:FindFirstChildOfClass(“Humanoid”):LoadAnimation(Animation)

Tool.Activated:Connect(function()
Track:Play()

end)

i believe that the local animation is the problem. PLEASE HELP!

Maybe the character didn’t load properly. Try adding to the Character variable:

local Character = Player.Character or Player.CharacterAdded:Wait()

Thank you this worked!! letter letter

1 Like

Hi can you look at my new topic im having a problem → Sanitized Id… AGAIN! - Help and Feedback / Scripting Support - Developer Forum | Roblox

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.