Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toolammount = 35
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local savepos = LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame
- local characters = {}
- LocalPlayer.Character:FindFirstChild("Humanoid"):UnequipTools()
- local currentamount = #LocalPlayer.Backpack:GetChildren()
- LocalPlayer.Character.Archivable = true
- local tempchar = LocalPlayer.Character:Clone()
- tempchar.Parent = workspace
- repeat
- workspace.CurrentCamera.CameraSubject = tempchar:FindFirstChild("Humanoid")
- for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer
- end
- end
- LocalPlayer.Character:ClearAllChildren()
- local char = Instance.new("Model", workspace)
- table.insert(characters, char)
- Instance.new("Humanoid", char)
- LocalPlayer.Character = char
- repeat wait() until LocalPlayer.Character
- until #LocalPlayer:GetChildren() - 4 - currentamount >= toolammount
- for _, char in pairs(characters) do
- char:Destroy()
- end
- repeat wait() until LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
- LocalPlayer.Character:FindFirstChild("HumanoidRootPart").CFrame = savepos
- for _, tool in pairs(LocalPlayer:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer.Backpack
- end
- end
- tempchar:Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement