Hey, I rigged a free model I found online and imported it into Roblox.
But whenever I try to play an animation on it in-game, it doesn’t work. I used both Moon Animator and Blender to animate the rig, but no matter what I did, the animation wouldn’t play during gameplay.
I even tried both rig types “R15” and “R6”, but it still wouldn’t play.
Here is the ‘Animate’ script I have in the StarterCharacterScripts:
local plr = game.Players.LocalPlayer
local char = plr.Character
local humn = char:WaitForChild("Humanoid")
local humr = char:WaitForChild("HumanoidRootPart")
local AnimationController = char:WaitForChild("AnimationController")
local rs = game:GetService("ReplicatedStorage")
local uis = game:GetService("UserInputService")
local cc = game:GetService("CollectionService")
local runservice = game:GetService("RunService")
local anims = {}
for i1, v in pairs(script:GetChildren()) do
if v:IsA("Animation") then
local newAnim = AnimationController.Animator:LoadAnimation(v)
newAnim.Looped = true
newAnim.Priority = Enum.AnimationPriority.Action4
anims[v.Name] = newAnim
end
end
humn.Running:Connect(function(speed)
if speed > 0 then
if not anims["Walk"].IsPlaying then
anims["Walk"]:Play()
end
else
if anims["Walk"].IsPlaying then
anims["Walk"]:Stop()
end
end
end)
humn.Climbing:Connect(function(speed)
--perform climbing anim here
end)
humn.Jumping:Connect(function(bool)
--perform jumping anim here
end)
It works while animating as shown on the image bellow, but as soon as I try to run it through a script, it doesn’t show up. There are no errors, which means the animation is playing, but it just doesn’t appear on the rig.
HELP!