Hello. So recently I wanted to make taunts/custom emotes and It went ok…as in the animation worked but the only two issues were that The chair was not cloning on to the character, and the animation would glitch when I began moving instead of stopping the emote
This is the issue
this is what It should look like
This is the script
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(message)
processCommand(player, message)
end)
end)
function processCommand(speaker, message)
if message == script.MessageComand.Value then
local bro = game.Workspace:FindFirstChild(speaker.Name)
local newanim = script.AnimationOne:Clone()
newanim.Parent = bro
local hum = newanim.Parent.Humanoid
local anim = hum:LoadAnimation(bro.AnimationOne)
anim:Play()
newanim:Destroy()
end
end
If you want to see the glitch in a game join this and say “/e dance4” The Test Game.
You can change the walkspeed of the player to zero when they enter the command to prevent them from disabling the animation. Refarding the glitch, what is the animation priority of the animation you’re trying to play? Also I don’t see you cloning the chair anywhere in the script.
One more thing is, you should use Animator. This class is auto added inside the humanoid of the player. Just load the animation like Animator:LoadAnimation(), this will return animation track.