This might be hacky but you have to detect when a player chats, process their message, and then fire the emote to the remote function under the Animate script
After looking in a bit more, I likely have to just make a whole new script
For those wanting the code:
local players = game:GetService("Players")
local player = players:GetPlayerFromCharacter(script.Parent)
local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
local animator = humanoid:FindFirstChildOfClass("Animator")
local anim = nil
player.Chatted:Connect(function(message)
if message == "/e smug" or message == "/emote smug" then
anim = animator:LoadAnimation(script.smug)
anim:Play()
end
if anim:IsA("AnimationTrack") then
repeat
wait(0)
until humanoid.MoveDirection.Magnitude >0
anim:Stop()
end
anim = nil
end)