Advertisement
ExpIoits

Tool spam

May 19th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. local Tools_to_spam = 30 -- How many tools to spam
  2. local Time_length = 0 -- (In seconds) The length for each time a tool is dropped
  3.  
  4. x = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  5. wait()
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local died = false
  8. local savepos = LocalPlayer.Character.HumanoidRootPart.CFrame
  9. repeat
  10. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  11. if tool:IsA("Tool") then
  12. tool.Parent = LocalPlayer
  13. end
  14. end
  15. LocalPlayer.Character:ClearAllChildren()
  16. local char = Instance.new("Model", workspace)
  17. char.Name = "character"
  18. Instance.new("Part", char).Name = "Torso";
  19. Instance.new("Part", char).Name = "Head";
  20. Instance.new("Humanoid", char).Name = "Humanoid";
  21. LocalPlayer.Character = char
  22. repeat wait() until LocalPlayer.Character
  23. until #LocalPlayer:GetChildren() - 4 >= Tools_to_spam
  24. for _, char in pairs(workspace:GetChildren()) do
  25. if char.Name == "character" and char:IsA("Model") then
  26. char:Destroy()
  27. end
  28. end
  29. repeat wait() until LocalPlayer.Character.HumanoidRootPart
  30. LocalPlayer.Character.HumanoidRootPart.CFrame = savepos
  31. for _, tool in pairs(LocalPlayer:GetChildren()) do
  32. if tool:IsA("Tool") then
  33. tool.Parent = LocalPlayer.Backpack
  34. end
  35. end
  36. wait()
  37. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = x
  38. wait()
  39. repeat
  40. for i=1,Tools_to_spam do
  41. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Character
  42.  
  43. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  44. if (v:IsA("Tool")) then
  45. v.Parent = workspace.Terrain
  46. end
  47. end
  48. wait(Time_length)
  49. end
  50. wait()
  51. until nil
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement