Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1.  
  2. local toolamount = 10 -- Amount of tools you want to spam
  3.  
  4.  
  5. local LocalPlayer = game:GetService("Players").LocalPlayer
  6. local runservice = game:GetService("RunService")
  7. local characters = {}
  8. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  9. local currentamount = #LocalPlayer.Backpack:GetChildren()
  10. LocalPlayer.Character.Archivable = true
  11. local tempchar = LocalPlayer.Character:Clone()
  12. tempchar.Parent = workspace
  13. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  14. local renderstepped = runservice.RenderStepped:Connect(function()
  15. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  16. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  17. if tool:IsA("Tool") then
  18. tool.Parent = LocalPlayer
  19. end
  20. end
  21. LocalPlayer.Character:ClearAllChildren()
  22. local char = Instance.new("Model", workspace)
  23. table.insert(characters, char)
  24. Instance.new("Humanoid", char)
  25. LocalPlayer.Character = char
  26. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character ~= nil
  27. end)
  28. repeat runservice.RenderStepped:Wait() until #LocalPlayer:GetChildren() - 4 - currentamount >= toolamount
  29. renderstepped:Disconnect()
  30. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  31. for _, char in pairs(characters) do
  32. char:Destroy()
  33. end
  34. tempchar:Destroy()
  35. for _, tool in pairs(LocalPlayer:GetChildren()) do
  36. if tool:IsA("Tool") then
  37. wait()
  38. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  39. tool.Parent = LocalPlayer.Backpack
  40. tool.Parent = LocalPlayer.Character
  41. if tool.Handle:FindFirstChild("Mesh") ~= nil then
  42. tool.Handle:FindFirstChild("Mesh"):Destroy()
  43. end
  44. tool.Parent = workspace.Terrain
  45. end
  46. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement