Advertisement
reasons240

Untitled

Nov 26th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.55 KB | None | 0 0
  1. local toolamount = 100 -- Amount of tools you want to get
  2.  
  3. -- Don't edit script unless you know what you're doing. If you wanna add this into a script, please give credits and message me on discord that you added it in a script at Cyclically#4905
  4.  
  5. local LocalPlayer = game:GetService("Players").LocalPlayer
  6. local runservice = game:GetService("RunService")
  7. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  8. local currentamount = #LocalPlayer.Backpack:GetChildren()
  9. LocalPlayer.Character.Archivable = true
  10. local tempchar = LocalPlayer.Character:Clone()
  11. local lastchar = nil
  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. Instance.new("Humanoid", char)
  24. LocalPlayer.Character = char
  25. if lastchar ~= nil then
  26. lastchar:Destroy()
  27. end
  28. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character ~= nil
  29. lastchar = char
  30. end)
  31. repeat runservice.RenderStepped:Wait() until #LocalPlayer:GetChildren() - 3 - currentamount >= toolamount
  32. renderstepped:Disconnect()
  33. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  34. lastchar:Destroy()
  35. for _, tool in pairs(LocalPlayer:GetChildren()) do
  36. if tool:IsA("Tool") then
  37. tool.Parent = LocalPlayer.Backpack
  38. end
  39. end
  40. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  41. tempchar:Destroy()
  42.  
  43. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  44. if v:IsA("Tool") then
  45. v.GripPos = Vector3.new(math.random(18, 93), math.random(-40, 40), 0)
  46. end
  47. end
  48. wait()
  49.  
  50. for i, v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  51. if v:IsA("Tool") then
  52. v.Parent = game.Players.LocalPlayer.Character
  53. end
  54. end
  55. wait()
  56.  
  57. for i, v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  58. if v:IsA("Tool") then
  59. v.Parent = game.Workspace.Terrain
  60. end
  61. end
  62.  
  63. local oh1 = CFrame.new(-20.5, 3.9000001, 53.5)
  64. local oh2 = game:GetService("Players")
  65. local oh3 = oh2.LocalPlayer.Character.HumanoidRootPart
  66.  
  67.  
  68. oh3.CFrame = oh1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement