Advertisement
Herobrinekid2

Emote script

Oct 12th, 2022
1,928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. local Button = script.Parent:WaitForChild("TextButton")
  2. local Anims = script.Parent:WaitForChild("Anims"):GetChildren()
  3.  
  4.  
  5. local Plr = game.Players.LocalPlayer
  6. local Char = Plr.Character or Plr.CharacterAdded:Wait()
  7. local Animator = Char:WaitForChild("Humanoid").Animator
  8.  
  9.  
  10.  
  11. Button.MouseButton1Click:Connect(function()
  12.    
  13.     local RanAnim = Anims[math.random(1,#Anims)]
  14.     Animator:LoadAnimation(RanAnim):Play()
  15.    
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement