Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can i edit /e dance via a script?

Asked by 6 years ago
Edited 6 years ago

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?

0
Custom Character? XeonNetwork -5 — 6y
0
No, is not a custom character, is a simple R6 morph with animations, ill give you a gyazo gif of it: https://gyazo.com/0c3c57f1d90df731f3335868d799f299 Chris75764 49 — 6y
0
I don't believe this is possible. If you run in studio and go into your character you will see the local script "Animate" with a child named "walk" which contains the animation called "WalkAnim". It also has idle and climbing swim etc. but no dance. I believe roblox just loads the animation on your character when you chat the /e command. justoboy13 153 — 6y
0
You would have to make your own chat detector and play your animation just after the default one. justoboy13 153 — 6y
0
justo, You're actually smart!, I know how to do a "Voice chat" like thing, So when typing something a action will happen, that will be usefull for this! Chris75764 49 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago
  1. Run the game
  2. Copy all the chat folders (ctl+c)
  3. stop the game
  4. paste the folders in

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.

Ad

Answer this question