Guest User

Untitled

a guest
Jun 3rd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. local toggle=false
  2.  
  3. if toggle==true then
  4. local toolamount = 100 -- Amount of tools you want to get
  5.  
  6. -- 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
  7.  
  8. local LocalPlayer = game:GetService("Players").LocalPlayer
  9. local runservice = game:GetService("RunService")
  10. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  11. local currentamount = #LocalPlayer.Backpack:GetChildren()
  12. LocalPlayer.Character.Archivable = true
  13. local tempchar = LocalPlayer.Character:Clone()
  14. local lastchar = nil
  15. tempchar.Parent = workspace
  16. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  17. local renderstepped = runservice.RenderStepped:Connect(function()
  18. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  19. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  20. if tool:IsA("Tool") then
  21. tool.Parent = LocalPlayer
  22. end
  23. end
  24. LocalPlayer.Character:ClearAllChildren()
  25. local char = Instance.new("Model", workspace)
  26. Instance.new("Humanoid", char)
  27. LocalPlayer.Character = char
  28. if lastchar ~= nil then
  29. lastchar:Destroy()
  30. end
  31. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character ~= nil
  32. lastchar = char
  33. end)
  34. repeat runservice.RenderStepped:Wait() until #LocalPlayer:GetChildren() - 3 - currentamount >= toolamount
  35. renderstepped:Disconnect()
  36. repeat runservice.RenderStepped:Wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  37. lastchar:Destroy()
  38. for _, tool in pairs(LocalPlayer:GetChildren()) do
  39. if tool:IsA("Tool") then
  40. tool.Parent = LocalPlayer.Backpack
  41. end
  42. end
  43. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  44. tempchar:Destroy()
  45. end
  46.  
  47. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  48. v.Grip=CFrame.new(0,-5,0)*CFrame.Angles(0,i/5,0)
  49. v.Parent=game.Players.LocalPlayer.Character
  50. wait()
  51. v.Parent=game.Players.LocalPlayer.Backpack
  52. end
Advertisement
Add Comment
Please, Sign In to add comment