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?

wait (10)
local humanoid = script.Parent:WaitForChild("Humanoid")
local anim = Instance.new("Animation")
anim.AnimationId = "http://www.roblox.com/asset/?id=248263260"

local Idle = nil

while not Idle do
Idle = humanoid:LoadAnimation(anim)
wait()
end

wait()

Idle: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