My script is not working and I don’t get anny errors pleas help I don’t know what to do
local animation = script:WaitForChild(‘AnimationID’)
local humanoid = script.Parent:WaitForChild(‘Humanoid’)
local d = humanoid:LoadAnimation(animation)
local h = part.Parent:findFirstChild(“Humanoid”)
if h~=nil then
Please format your code by surrounding it in 3 back ticks (`) or whatever it’s called so it looks like
if true then
See https://developer.roblox.com/en-us/api-reference/class/Animation for details. Also, try to use capital c when doing :Connect().
Make sure your NPC is a proper rig.
Question, where is the script located? since it seems as you just placed the script in the model, and not a part in the model.