#Help with NPC Animation
1 messages · Page 1 of 1 (latest)
gotta do it on the server
local ShopNPC = workspace:WaitForChild("shopKeeper")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ShopAnim = ReplicatedStorage.Anims:WaitForChild("IdleAnim")
local animator = Instance.new("Animator")
local animationTrack = animator:LoadAnimation(ShopAnim)
animator.Parent = ShopNPC.Humanoid
animationTrack.Looped = true
animationTrack:Play()
i did this for my idle animation
its the same logic
but you have to have the walking anim
in this instance my anim is just in an animation object in replicated storage
Server script?
yes because everyone needs to see it
so you do it on the server