Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local dig = script:WaitForChild("DigAnim")
- local tool = script.Parent
- local debounce = false
- tool.Activated:Connect(function()
- if debounce == false then
- debounce = true
- local humanoid = tool.Parent:WaitForChild("Humanoid")
- local AnimTrack = humanoid:LoadAnimation(dig)
- AnimTrack:Play(wait(AnimTrack))
- wait(1)
- debounce = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement