Advertisement
Anukun_Lucifer

Dig Script

Oct 1st, 2022
2,032
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. local dig = script:WaitForChild("DigAnim")
  2. local tool = script.Parent
  3. local debounce = false
  4.  
  5. tool.Activated:Connect(function()
  6.     if debounce == false then
  7.         debounce = true
  8.  
  9.         local humanoid = tool.Parent:WaitForChild("Humanoid")
  10.         local AnimTrack = humanoid:LoadAnimation(dig)
  11.         AnimTrack:Play(wait(AnimTrack))
  12.         wait(1)
  13.         debounce = false
  14.     end
  15. end)
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement