Advertisement
Guest User

Toolspam script

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