So, I was trying to do animations and the problem I had is that the animations were not working at all. I use Moon animator (That is the name of the animation plugin)and when I click to join the game, it does not work at all. I used R6 and it did not animate. Can someone tell me why? (Its for a rig btw)
Are you sure the animation works, have you tested it? Did you publish the animation? And what method are you using to play the animation.
I did make sure that the animation was working and it was working fine. I publish the animation with Moon Animator.
What kind of animation is it. And how are you getting it to play. Is it in a tool?
Apparently, the animation never went to roblox in animations.
So it was not published? That could be from the plugin you’re using. I would recommend using the official ROBLOX animation plugin, once you save a animation it goes straight into your inventory.
https://www.roblox.com/library/144373835/Roblox-Animation-Editor
Ok, when the animation gets publish. What should I do next?
Get the ID of the animation and put it in the script and it should play.
Can you provide me with the script?
Well what method were you using to play the animation before?
Moon Animator. lots of YT’s told me about this animation plugin.
Moon Animator is what you use to make animations, but to play them you need a script.
Ok, I imported the animation to roblox. What is the script to do this animation happend?
Okay first create a ScreenGUI in starterGUI.
Add a frame to that screenGUI, then add a textbutton. Then right click on the textbutton and add a IntValue and name it “AnimID” then create a localscript inside the frame and copy and paste the code:
Code
``
wait(1)
local frame=script.Parent
local player = game.Players.LocalPlayer
local character = player.Character
local user=game.Players.LocalPlayer
repeat wait() until user.Character local char=user.Character
local humanoid=char:WaitForChild(“Humanoid”)
local anim
function playanim(id)
if char~=nil and humanoid~=nil then
local id=“rbxassetid://”…tostring(id)
local oldanim=char:FindFirstChild(“LocalAnimation”)
if anim~=nil then
anim:Stop()
end
if oldanim~=nil then
if oldanim.AnimationId==id then
oldanim:Destroy()
return
end
oldanim:Destroy()
end
local animation=Instance.new("Animation",char)
animation.Name="LocalAnimation"
animation.AnimationId=id
anim=humanoid:LoadAnimation(animation)
anim:Play()
end
end
local b1=frame.Wave
b1.MouseButton1Down:connect(function() playanim(b1.AnimID.Value) end
``
Its for a rig btw. Sorry if I never said that.