Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Animations not playing correctly?

Asked by 8 years ago

trying to make an idle animation for my NPCs play but it turns out only the first player that joins the server can see the animations in the NPCs, don't know what I'm doing wrong, can somebody tell me?

01wait (10)
02local humanoid = script.Parent:WaitForChild("Humanoid")
03local anim = Instance.new("Animation")
05 
06local Idle = nil
07 
08while not Idle do
09Idle = humanoid:LoadAnimation(anim)
10wait()
11end
12 
13wait()
14 
15Idle:Play()

1 answer

Log in to vote
0
Answered by 8 years ago

****Because it's a different method for playing animations in npc's use the wiki. What you did is make an animation for a player. Not for an npc

0
But it was a player NPC which needs a humanoid greyalt700 0 — 8y
0
Also i've looked over the wiki multiple times greyalt700 0 — 8y
Ad

Answer this question