I don't know if this counts, But I made an animation for a character in a game and the animation won't play. I've put it in Humanoid I've tried Switching to R15 that didn't work either. I might just be dumb.
COMMUNITY QUESTION
My animation won't play on a rig in my game?
1 answer
Instead of putting the animation in the rig, try playing the animation through a script:
Asset = "http://www.roblox.com/Asset?id="
IDs = {} -- upload your animation to roblox and put the id in here
Anims = {}
AnimsL = {}
Human = script.Parent:WaitForChild("Humanoid")
for i=1, #IDs do
local Anim = Instance.new("Animation")
Anim.AnimationId = (Asset..IDs[math.random(1,#IDs)])
table.insert(Anims,Anim)
wait()
end
for i=1, #Anims do
local AnimL = Human:LoadAnimation(Anims[i])
table.insert(AnimsL,AnimL)
wait()
end
while true do
local Dance = AnimsL[math.random(1,#AnimsL)]
Dance:Play()
wait(15)
end
-- Make sure to put this in a r15 model character or it won't work.
By the way, I'm bad at math so the parts that use math.random I didn't make ok?
This discussion is preserved as it was. New answers, comments, and votes are closed.
