Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local toolamount = 10 -- Amount of tools you want to get
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local died = false
- local savepos = LocalPlayer.Character.HumanoidRootPart.CFrame
- repeat
- 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)
- char.Name = "character"
- Instance.new("Part", char).Name = "Torso";
- Instance.new("Part", char).Name = "Head";
- Instance.new("Humanoid", char).Name = "Humanoid";
- LocalPlayer.Character = char
- repeat wait() until LocalPlayer.Character
- until #LocalPlayer:GetChildren() - 4 >= toolamount
- for _, char in pairs(workspace:GetChildren()) do
- if char.Name == "character" and char:IsA("Model") then
- char:Destroy()
- end
- end
- repeat wait() until LocalPlayer.Character.HumanoidRootPart
- LocalPlayer.Character.HumanoidRootPart.CFrame = savepos
- for _, tool in pairs(LocalPlayer:GetChildren()) do
- if tool:IsA("Tool") then
- tool.Parent = LocalPlayer.Backpack
- end
- end
Add Comment
Please, Sign In to add comment