Advertisement
55ae91b93b9d61f

dafdf

Jan 31st, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. local toolammount = 35
  2. local LocalPlayer = game:GetService("Players").LocalPlayer
  3. local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
  4. local characters = {}
  5. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  6. local currentamount = #LocalPlayer.Backpack:GetChildren()
  7. LocalPlayer.Character.Archivable = true
  8. local tempchar = LocalPlayer.Character:Clone()
  9. tempchar.Parent = workspace
  10. repeat
  11. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  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. table.insert(characters, char)
  20. Instance.new("Humanoid", char)
  21. LocalPlayer.Character = char
  22. repeat wait() until LocalPlayer.Character
  23. until #LocalPlayer:GetChildren() - 4 - currentamount >= toolammount
  24. for _, char in pairs(characters) do
  25. char:Destroy()
  26. end
  27. repeat wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  28. LocalPlayer.Character:FindFirstChild("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. tempchar:Destroy()
  35. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement