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

Is there a way to make inserted r15 characters dance?

Asked by 4 years ago

Im pretty new to this but how do i make my roblox r15 character that i pasted into the game dance?

local gpp = game.Parent
gpp:PlayEmote(132546884)

this is most likely completely wrong. tbh i dont know what im doing. i cant find anything on the api reference.

2 answers

Log in to vote
0
Answered by
Pupppy44 671 Moderation Voter
4 years ago

Use LoadAnimation

Lets say there's a Dummy in workspace, and an animation in the workspace too.

local Dummy = workspace:WaitForChild("Dummy")
local AnimationId = workspace:WaitForChild("Animation")
local Animation = Dummy.Humanoid:LoadAnimation(AnimationId)
Animation:Play()
0
Alright i did that but nothing happened. I added an animation and renamed my r15 character to dummy. maybe my animation id isnt working gpp_CSRO 4 — 4y
Ad
Log in to vote
0
Answered by
Tizzel40 243 Moderation Voter
4 years ago

You Can do this by Loading an animation into the character's Humanoid !

But First You must Create The Animation then load it from the humanoid first Like this :

local Character = script.Parent

local Animation = Instance.new("Animation")--- Creates an animation

---///Edit the animation


Animation.Name = "ANIMATION NAME HERE !"
Animation.AnimationId = "ANIMATION ID HERE !"
Animation.Parent = Character ---Put you parent here. I did the character

local Humanoid = Character:WaitForChild("Humanoid")


local LoadAnimation = Humanoid:LoadAnimation(Animation)---Load The Animation with the character's humanoid


LoadAnimation:Play()---Once it is loaded it will play instantly !

And then the animation shall play

This script should be placed in the character model !!!

--T40

0
i also should mention im trying to get my character to do the r15 /e dance 3. There is three IDs. Where do i put them or how? gpp_CSRO 4 — 4y
0
If you want your character to do the "/e dance" try all of them to see if it looks like the "/e dance". Idk if they are named specifically or not. Tizzel40 243 — 4y
0
Hmm nothing is working. not even point or anything. let me try one of my animations gpp_CSRO 4 — 4y
0
Did you get an error? Did you put the script inside the Character Model? Tizzel40 243 — 4y

Answer this question