#Make NPCS play animation

1 messages · Page 1 of 1 (latest)

tranquil siren
#

i think i might've done smth wrong here trying to make an npcs play an animation i get this error :
Unable to cast value to Object

function Modules.PlayAnimation(char : Object, AnimCodeString : string)
if char.Humanoid then
  local AnimString = "rbxassetid://" .. AnimCodeString
  local AnimTrack = char.Humanoid:LoadAnimation(AnimString)    
  AnimTrack:Play()
else
  print("Humanoid Not Found")
  return -1
end
end
fair nymph
tranquil siren
fair nymph
#

idk look at line 123 the problem is there

tranquil siren
frail robin
#

instance.new(animation)

#

when

#

also animator not hum

#

pls

fair nymph