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

Im trying to make an NPC animate but my script isn't working, can someone check over?

I am trying to make a NPC animate, i have my script, i will post it, i have not anchored anything except the "body root part". Can anyone help? Also if this helps the animation id im using is not mine.

local char = script.Parent 
local hum = char:WaitForChild("Humanoid") 
local animation = hum:LoadAnimation(script.Animation) 
 
if char ~= nil then 
    animation:Play()
end
 

1 comment

0

Has anyone found any mistakes?

1 answer

Don't anchored anything in your npc Maybe because it got anchored and try to use this script

local char = script.Parent 
local hum = char:WaitForChild("Humanoid") 
local animation = hum:LoadAnimation(script.Animation) 

if char then 
    animation:Play()
end

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