Advertisement
RoScripter

Tool Animation

May 31st, 2020
21,730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. local Tool = script.Parent
  2. local Animation = Tool.Animation
  3.  
  4. Tool.Activated:Connect(function()
  5.     local Character = Tool.Parent
  6.     local Humanoid = Character.Humanoid
  7.    
  8.     local AnimationTrack = Humanoid:LoadAnimation(Animation)
  9.     AnimationTrack:Play()
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement