Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Animations not playing correctly?

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

****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

2 comments

0

But it was a player NPC which needs a humanoid

0

Also i've looked over the wiki multiple times

This discussion is preserved as it was. New answers, comments, and votes are closed.