#Help with NPC Animation

1 messages · Page 1 of 1 (latest)

fervent lintel
#

I keep on looking up how to add a walk animation to an NPC but all of the results won't work because it shows on Studio but when i play it on Roblox it won't show the animation and I want every player to be able to see it too

royal tide
#
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

fervent lintel
#

Server script?

royal tide
#

so you do it on the server

fervent lintel
#

ok

#

it still won't show up

#

does it work for a loaded in charrcter?