Advertisement
Runixer

Untitled

Dec 28th, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. ᠎--Move tool by Cyclically
  2. --Delete tool edited from Cyclically
  3. --Copy tool by me and is clientsided, sorry
  4. --Only works on unanchored parts
  5.  
  6. local LocalPlayer = game:GetService("Players").LocalPlayer
  7. local mouse = LocalPlayer:GetMouse()
  8. local movetool = Instance.new("Tool", LocalPlayer.Backpack)
  9. local clonetool = Instance.new("Tool", LocalPlayer.Backpack)
  10. local deletetool = Instance.new("Tool", LocalPlayer.Backpack)
  11. local movedetect = false
  12. local movingpart = nil
  13. local movetransparency = 0
  14. if editedparts == nil then
  15. editedparts = {}
  16. parentfix = {}
  17. positionfix = {}
  18. end
  19. clonetool.Name = "Clone"
  20. clonetool.TextureId = "rbxasset://Textures/Clone.png"
  21. clonetool.CanBeDropped = false
  22. clonetool.RequiresHandle = false
  23. deletetool.Name = "Delete"
  24. deletetool.TextureId = "http://www.roblox.com/asset/?id=14808588"
  25. deletetool.CanBeDropped = false
  26. deletetool.RequiresHandle = false
  27. movetool.Name = "Move"
  28. movetool.TextureId = "rbxassetid://1048129653"
  29. movetool.CanBeDropped = false
  30. movetool.RequiresHandle = false
  31. local function createnotification(title, text)
  32. game:GetService("StarterGui"):SetCore("SendNotification", {
  33. Title = title;
  34. Text = text;
  35. Duration = 1;
  36. })
  37. end
  38. deletetool.Activated:Connect(function()
  39. createnotification("Delete Tool", "You have deleted "..mouse.Target.Name)
  40. table.insert(editedparts, mouse.Target)
  41. table.insert(parentfix, mouse.Target.Parent)
  42. table.insert(positionfix, mouse.Target.CFrame)
  43. table.insert(positionfix, mouse.Target.Transparency)
  44.  
  45. mouse.Target.Transparency = 1
  46. wait()
  47. mouse.Target.CFrame = CFrame.new(math.huge,math.huge,math.huge)
  48. end)
  49.  
  50. clonetool.Activated:Connect(function()
  51. createnotification("Clone Tool", "You have cloned "..mouse.Target.Name)
  52. table.insert(editedparts, mouse.Target)
  53. table.insert(parentfix, mouse.Target.Parent)
  54. table.insert(positionfix, mouse.Target.CFrame)
  55. table.insert(positionfix, mouse.Target.Transparency)
  56. table.insert(positionfix, mouse.Target:Clone())
  57.  
  58. mouse.Target:Clone().Parent = workspace
  59.  
  60. end)
  61.  
  62. movetool.Activated:Connect(function()
  63. createnotification("Move Tool", "You are moving: "..mouse.Target.Name)
  64. movingpart = mouse.Target
  65. movedetect = true
  66. movingpart.CanCollide = false
  67. movetransparency = movingpart.Transparency
  68. movingpart.Transparency = 0.5
  69. mouse.TargetFilter = movingpart
  70. table.insert(editedparts, movingpart)
  71. table.insert(parentfix, movingpart.Parent)
  72. table.insert(positionfix, movingpart.CFrame)
  73. movingpart.Transparency = movingpart.Transparency / 2
  74. repeat
  75. mouse.Move:Wait()
  76. movingpart.CFrame = CFrame.new(mouse.Hit.p)
  77. until movedetect == false
  78. end)
  79. movetool.Deactivated:Connect(function()
  80. createnotification("Move Tool", "You have stopped moving: "..mouse.Target.Name)
  81. movingpart.CanCollide = true
  82. movedetect = false
  83. mouse.TargetFilter = nil
  84. movingpart.Transparency = movetransparenc
  85. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement