So I imported my character into roblox studio with AlreadyPro’s (free) “Load Character” plugin, but I can’t get animations to work on the npc. I’m trying to get the hello emote from ROBLOX on it and here is my code:
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://3576686446"
local humanoid = script.Parent:WaitForChild("Humanoid")
local hello = humanoid:LoadAnimation(anim)
wait(5)
print("Playing animation")
hello:Play()
I put the script inside the model, and there aren’t any errors in the output. Maybe the ID is wrong? All the parts of my character are unanchored.
Does parenting the anim instance to workspace make a difference?
local anim = Instance.new("Animation")
anim.AnimationId = "rbxassetid://3576686446"
anim.Parent = script
local humanoid = script.Parent:WaitForChild("Humanoid")
local hello = humanoid:LoadAnimation(anim)
wait(5)
print("Playing animation")
hello:Play()
Make sure that the ID is correct, but what I do to make sure an animation is working is to use the Animation Editor plugin and importing the animation id to the NPC to make sure its all working.
So, I found what I was doing wrong. I used the id in the website url, but that isn’t the right id.
Next to the animation name in the catalog there is a symbol. I clicked that and I got a menu with all the children of it, clicked on Wave (the animation) and then copied the animationID.
thanks for your replies.