Welp This is it: I have a morph of a animatronic cat that haves a script to change the idle and walk animations:
function ontouch(h) if h.Parent:FindFirstChild("Humanoid") then --make sure this is a character local character = h.Parent --we know this is a character so set the variable as a character local animateScript = character.Animate -- variable for the Animate script inside of the character animateScript.walk.WalkAnim.AnimationId = 'http://www.roblox.com/asset/?id=1527744583' --change the animation end end script.Parent.Touched:connect(ontouch) -- make this function activate when part is touched --Thanks ultrasonicboomer!
As i know, in a line of code (line 05) there is a thing saying "walk.walkanim" That thing is to locate the animation in "animateScript"'s insides, ot then change it to the ID stated after the "="
However, there is no /e dance in the animateScript's insides, neither /e wave, and stuff like that.
How can i edit it?
Now you have "cloned" chat and can modify it. It won't be updated anymore.
Now find the part where commands are interpreted. Add in a check for "/e dance" or "/dance". If you see it coming in, start your custom animation. Then return true.
Note: processing of "/e" may be earlier, but you can at least add your own custom commands.