Advertisement
lllkkklkk

slap

Aug 25th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local backpack = player:WaitForChild("Backpack")
  3.  
  4.  
  5. local function clearBackpack()
  6. for _, item in pairs(backpack:GetChildren()) do
  7. item:Destroy()
  8. end
  9. end
  10. wait(0.5) --JUST IN CASE
  11. clearBackpack()
  12.  
  13. wait(3) --to make sure it doesnt delete the slap attack
  14.  
  15.  
  16. local tool = Instance.new("Tool")
  17. tool.Name = "Slap"
  18. tool.RequiresHandle = false
  19. tool.CanBeDropped = false
  20.  
  21. tool.Parent = backpack
  22.  
  23. tool.Activated:Connect(function()
  24. local character = player.Character or player.CharacterAdded:Wait()
  25. local humanoid = character:WaitForChild("Humanoid")
  26.  
  27.  
  28. local animation = Instance.new("Animation")
  29. animation.AnimationId = "rbxassetid://13491635433"
  30.  
  31. local animTrack = humanoid:LoadAnimation(animation)
  32. animTrack:Play()
  33. end)
  34.  
  35.  
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement