Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.54 KB | None | 0 0
  1. -- 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#9215
  2.  
  3. local LocalPlayer, runservice = game:GetService("Players").LocalPlayer, game:GetService("RunService")
  4. LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
  5. LocalPlayer.Character.Archivable = true
  6. local tempchar, lastchar, savepos, currentamount = LocalPlayer.Character:Clone(), nil, LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame, #LocalPlayer.Backpack:GetChildren()
  7. tempchar.Parent = workspace
  8. repeat
  9. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  10. if tool:IsA("Tool") then
  11. tool.Parent = LocalPlayer
  12. end
  13. end
  14. LocalPlayer.Character:ClearAllChildren()
  15. local char = Instance.new("Model", workspace)
  16. Instance.new("Humanoid", char)
  17. LocalPlayer.Character = char
  18. if lastchar ~= nil then
  19. lastchar:Destroy()
  20. end
  21. repeat runservice.Heartbeat:Wait() until LocalPlayer.Character ~= nil
  22. workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
  23. lastchar = char
  24. until #LocalPlayer:GetChildren() - 2 - currentamount >= _G.toolamount and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") ~= nil
  25. lastchar:Destroy()
  26. workspace.CurrentCamera.CameraSubject = LocalPlayer.Character:FindFirstChild("Humanoid")
  27. for _, tool in pairs(LocalPlayer:GetChildren()) do
  28. if tool:IsA("Tool") then
  29. tool.Parent = LocalPlayer.Backpack
  30. end
  31. end
  32. LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
  33. tempchar:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement