Advertisement
ExpIoits

Block spam

May 19th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. local Blocks_to_spam = 20 -- How many blocks to spam
  2. local Time_length = .5 -- (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. local ws = 16
  10. local jp = 50
  11. repeat
  12. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  13. if tool:IsA("Tool") then
  14. tool.Parent = LocalPlayer
  15. end
  16. end
  17. LocalPlayer.Character:ClearAllChildren()
  18. local char = Instance.new("Model", workspace)
  19. char.Name = "character"
  20. Instance.new("Part", char).Name = "Torso";
  21. Instance.new("Part", char).Name = "Head";
  22. Instance.new("Humanoid", char).Name = "Humanoid";
  23. LocalPlayer.Character = char
  24. repeat wait() until LocalPlayer.Character
  25. until #LocalPlayer:GetChildren() - 4 >= Blocks_to_spam
  26. for _, char in pairs(workspace:GetChildren()) do
  27. if char.Name == "character" and char:IsA("Model") then
  28. char:Destroy()
  29. end
  30. end
  31. repeat wait() until LocalPlayer.Character.HumanoidRootPart
  32. LocalPlayer.Character.HumanoidRootPart.CFrame = savepos
  33. for _, tool in pairs(LocalPlayer:GetChildren()) do
  34. if tool:IsA("Tool") then
  35. tool.Parent = LocalPlayer.Backpack
  36. end
  37. end
  38. wait()
  39. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = x
  40. wait()
  41. LocalPlayer.Character.Humanoid.WalkSpeed = 0
  42. LocalPlayer.Character.Humanoid.JumpPower = 0
  43. for i=1,Blocks_to_spam do
  44. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Handle.Mesh:Destroy()
  45. wait()
  46. game.Players.LocalPlayer.Backpack:FindFirstChildOfClass("Tool").Parent = game.Players.LocalPlayer.Character
  47.  
  48. for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  49. if (v:IsA("Tool")) then
  50. v.Parent = workspace.Terrain
  51. end
  52. end
  53. wait(Time_length)
  54. end
  55. wait(math.random(.01,.1))
  56. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = ws
  57. game.Players.LocalPlayer.Character.Humanoid.JumpPower = jp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement