Advertisement
RandyPasteBin

Tool Idle (LOCAL)

Jul 2nd, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local char = plr.Character or plr.CharacterAdded:Wait()
  3. local h = char:WaitForChild("Humanoid")
  4. local anim = h:LoadAnimation(script.Parent:WaitForChild("Animation"))
  5.  
  6. local tool = script.Parent
  7.  
  8. tool.Equipped:Connect(function()
  9. anim:Play()
  10. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement