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

How do I use the PlayEmote function properly?

Asked by 5 years ago
wait(2)

game.Players.LocalPlayer.Character.Humanoid:PlayEmote("Wave")

This just errors:

  18:43:22.796 - No emote exists with name Wave
0
you know i gave u an answer DJH_100 28 — 5y

1 answer

Log in to vote
0
Answered by
DJH_100 28
5 years ago

To do it make a starter gui then make a text button then make a local script then put this in it

local btn = script.Parent
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid",10)
local CanEmote = true
local CoolDown = 1

btn.MouseButton1Click:connect(function()
    if CanEmote == true then
        hum.JumpPower = 0 -- you can remove this, this really fixes it..
        hum.WalkSpeed = 0 -- this too 
        CanEmote = false 
        local dance = hum:LoadAnimation(script:FindFirstChild("WaveAnim"))
        dance:Play()

        wait(CoolDown + dance.Length)
        hum.JumpPower = 50 -- you can remove this, this really fixes it..
        hum.WalkSpeed = 16 -- this too 
        CanEmote = true
    end
end)

then import the wave anim to get it run a game, go into your player in the workspace, go into animaions and go into wave and copy it, then stop the game, then paste the anim into it!

Ad

Answer this question