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

How would you go about to load an animation on an NPC?

Asked by 6 years ago

I have an animation that I made and I would like to load it on an NPC to see it now with the Roblox Block character I rigged the gun that I made with it with the plugin Custom Character creator

I loaded animations previuslly with this code

local hum = script.Parent.Humanoid

local anim = hum:LoadAnimation(script.Parent.Animation)

local Aim = script.Parent.Head.Aiming

while true do

    anim:Play()

wait (4)
end

I'm thinking that animation is strictly on the character itself with that script because it wont play with the other animation that involve the gun with it.

How would you go about to load it on an NPC?

1 answer

Log in to vote
0
Answered by 6 years ago

Place it under the NPC, don’t mess with the Humanoid’s Name.

0
I tried it and it didn't work either CrazySnoopylove 11 — 6y
Ad

Answer this question