Advertisement
Idirina

Emote Commands

Dec 24th, 2020
5,886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.87 KB | None | 0 0
  1. local emotes = {
  2.     god = 3337994105,
  3.     happy = 4841405708,
  4.     sad = 4841407203,
  5.     monkey = 3333499508,
  6.     baby = 4265725525,
  7.     line = 4049037604,
  8.     fashion = 3333331310,
  9.     twirl = 3334968680,
  10.     top = 3361276673,
  11.     dizzy = 3361426436,
  12.     shy = 3337978742,
  13.     side = 3333136415,
  14.     dorky = 4212455378,
  15.     robot = 3338025566,
  16.     shuffle = 4349242221,
  17.     around = 3303391864,
  18.     tpose = 3338010159,
  19.     body = 3333387824,
  20.     fancy = 3333432454,
  21.     celebrate = 3338097973,
  22.     idol = 4101966434,
  23.     hands = 4265701731,
  24.     haha = 3337966527,
  25.     curtsy = 4555816777,
  26.     airdance = 4555782893,
  27.     zombie = 4210116953,
  28.     tree = 4049551434,
  29.     swoosh = 3361481910,
  30.     great = 3338042785,
  31.     sneaky = 3334424322,
  32.     jacks = 3338066331,
  33.     getout = 3333272779,
  34.     fish = 3334832150,
  35.     loud = 3338083565,
  36.     ypose = 4349285876,
  37.     borock = 3236842542,
  38.     udzal = 3303161675,
  39.     hype = 3695333486,
  40.     floss = 5917459365,
  41.     fancy = 3333432454,
  42.     beckon = 5230598276,
  43.     tree = 4049551434,
  44.     bored = 5230599789,
  45.     cower = 4940563117,
  46.     applaud = 5915693819,
  47.     chacha = 3695322025,
  48.     superhero = 3695373233,
  49.     airguitar = 3695300085
  50. }
  51.  
  52. local active = {}
  53.  
  54. local player = game.Players.LocalPlayer
  55. chatcon = player.Chatted:Connect(function(msg)
  56.     msg = string.lower(msg)
  57.    
  58.     local separate = string.sub(msg,1,3)
  59.     if separate == "/e " then
  60.         local cmd = string.sub(msg,4,string.len(msg))
  61.        
  62.         if emotes[cmd] then
  63.             for i,v in pairs(active) do
  64.                 v:Stop(0.1)
  65.                 active[i] = nil
  66.             end
  67.            
  68.             local Anim = Instance.new("Animation")
  69.             Anim.AnimationId = "rbxassetid://"..emotes[cmd]
  70.            
  71.             player.Character.Animate.Disabled = true
  72.             local toplay = player.Character.Humanoid.Animator:LoadAnimation(Anim)
  73.             toplay:Play(0.1,1,1)
  74.            
  75.             active[cmd] = toplay
  76.             con = player.Character.Humanoid.Running:connect(function(speed)
  77.                 if speed > 0.5 then
  78.                     player.Character.Animate.Disabled = false
  79.                     toplay:Stop(0.1)
  80.                     active[cmd] = nil
  81.                     con:Disconnect()
  82.                 end
  83.             end)
  84.             jumpcon = player.Character.Humanoid.Jumping:connect(function()
  85.                 player.Character.Animate.Disabled = false
  86.                 toplay:Stop(0.1)
  87.                 active[cmd] = nil
  88.                 jumpcon:Disconnect()
  89.             end)
  90.         elseif cmd == "disable" then
  91.             for i,v in pairs(active) do
  92.                 v:Stop(0.1)
  93.             end
  94.            
  95.             chatcon:Disconnect()
  96.         end
  97.     end
  98. end)
  99.  
  100. local toprint = "List of commands:\n"
  101. for i,v in pairs(emotes) do
  102.     toprint ..= "/e ".. i.. "\n"
  103. end
  104. print(toprint)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement