Advertisement
NextFlamePB

ROBLOX Player Trial (MAY CAUSE LAG)

Sep 13th, 2015
1,120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1.  
  2. local mouse = game.Players.LocalPlayer:GetMouse()
  3. local delaytime = 0.5 -- delay until next clone
  4.  
  5. function copy(player)
  6. local char = player.Character
  7. for i,v in pairs(char:GetChildren()) do
  8. if v:IsA("Part") then
  9. local clone = v:clone()
  10. clone.Parent = game.Workspace
  11. clone.Anchored = true
  12. clone.CanCollide = false
  13. clone.Name = "ClonePart"
  14. for a,b in pairs(clone:GetChildren()) do
  15. if b:IsA("Motor6D") or b:IsA("Weld") then
  16. b:destroy()
  17. else
  18. end
  19. end
  20. elseif v:IsA("Hat") then
  21. local handle = v.Handle
  22. local cln = handle:clone()
  23. cln.Parent = game.Workspace
  24. cln.Anchored = true
  25. cln.CanCollide = false
  26. cln.Name = "ClonePart"
  27. end
  28. end
  29. end
  30.  
  31. function keyd(key)
  32. if key == "r" then
  33. for i,v in pairs(game.Workspace:GetChildren()) do
  34. if v.Name == "ClonePart" and v:IsA("Part") then
  35. v:destroy()
  36. end
  37. end
  38. end
  39. end
  40.  
  41. mouse.KeyDown:connect(keyd)
  42.  
  43. while wait(delaytime) do
  44. copy(game.Players.LocalPlayer)
  45. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement