ZKCMCheats

[FE] Duplicate Tools

Mar 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.06 KB | None | 0 0
  1. local toolamount = 10 -- Amount of tools you want to get
  2.  
  3. local LocalPlayer = game:GetService("Players").LocalPlayer
  4. local died = false
  5. local savepos = LocalPlayer.Character.HumanoidRootPart.CFrame
  6. repeat
  7. for _, tool in pairs(LocalPlayer.Backpack:GetChildren()) do
  8. if tool:IsA("Tool") then
  9. tool.Parent = LocalPlayer
  10. end
  11. end
  12. LocalPlayer.Character:ClearAllChildren()
  13. local char = Instance.new("Model", workspace)
  14. char.Name = "character"
  15. Instance.new("Part", char).Name = "Torso";
  16. Instance.new("Part", char).Name = "Head";
  17. Instance.new("Humanoid", char).Name = "Humanoid";
  18. LocalPlayer.Character = char
  19. repeat wait() until LocalPlayer.Character
  20. until #LocalPlayer:GetChildren() - 4 >= toolamount
  21. for _, char in pairs(workspace:GetChildren()) do
  22. if char.Name == "character" and char:IsA("Model") then
  23. char:Destroy()
  24. end
  25. end
  26. repeat wait() until LocalPlayer.Character.HumanoidRootPart
  27. LocalPlayer.Character.HumanoidRootPart.CFrame = savepos
  28. for _, tool in pairs(LocalPlayer:GetChildren()) do
  29. if tool:IsA("Tool") then
  30. tool.Parent = LocalPlayer.Backpack
  31. end
  32. end
Add Comment
Please, Sign In to add comment