I've been into creating animations with ROBLOX's plugin, and I can't figure out how to make it into a command; ex. /e dance. Does anyone have a good tutorial online or can someone explain how? (*I have no experience in scripting)
First, thank you for this idea, i'm gonna add it to my game.
I also made this script after some research, since I have never did an animation script before, or made one on ROBLOX. All you need to do is change "boop" to the animation command for it to play, and change what it equals to, to the AnimationID. These animations will play once you say "/e boop","/e test","/e hello". You can easily add more if you want to.
anim = script.Animation
animations = {
boop = "http://www.roblox.com/asset/?id=30704021",
test = "http://www.roblox.com/asset/?id=30704021",
hello = "http://www.roblox.com/asset/?id=30704021",
}
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
for i,v in pairs(animations) do
if msg == "/e "..i then
anim.AnimationId = v
player.Character.Humanoid:LoadAnimation(anim):Play()
end
end
end)
end)