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

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

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

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

1 comment

0

I tried it and it didn't work either

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