Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Move tool by Cyclically
- --Delete tool edited from Cyclically
- --Copy tool by me and is clientsided, sorry
- --Only works on unanchored parts
- local LocalPlayer = game:GetService("Players").LocalPlayer
- local mouse = LocalPlayer:GetMouse()
- local movetool = Instance.new("Tool", LocalPlayer.Backpack)
- local clonetool = Instance.new("Tool", LocalPlayer.Backpack)
- local deletetool = Instance.new("Tool", LocalPlayer.Backpack)
- local movedetect = false
- local movingpart = nil
- local movetransparency = 0
- if editedparts == nil then
- editedparts = {}
- parentfix = {}
- positionfix = {}
- end
- clonetool.Name = "Clone"
- clonetool.TextureId = "rbxasset://Textures/Clone.png"
- clonetool.CanBeDropped = false
- clonetool.RequiresHandle = false
- deletetool.Name = "Delete"
- deletetool.TextureId = "http://www.roblox.com/asset/?id=14808588"
- deletetool.CanBeDropped = false
- deletetool.RequiresHandle = false
- movetool.Name = "Move"
- movetool.TextureId = "rbxassetid://1048129653"
- movetool.CanBeDropped = false
- movetool.RequiresHandle = false
- local function createnotification(title, text)
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = title;
- Text = text;
- Duration = 1;
- })
- end
- deletetool.Activated:Connect(function()
- createnotification("Delete Tool", "You have deleted "..mouse.Target.Name)
- table.insert(editedparts, mouse.Target)
- table.insert(parentfix, mouse.Target.Parent)
- table.insert(positionfix, mouse.Target.CFrame)
- table.insert(positionfix, mouse.Target.Transparency)
- mouse.Target.Transparency = 1
- wait()
- mouse.Target.CFrame = CFrame.new(math.huge,math.huge,math.huge)
- end)
- clonetool.Activated:Connect(function()
- createnotification("Clone Tool", "You have cloned "..mouse.Target.Name)
- table.insert(editedparts, mouse.Target)
- table.insert(parentfix, mouse.Target.Parent)
- table.insert(positionfix, mouse.Target.CFrame)
- table.insert(positionfix, mouse.Target.Transparency)
- table.insert(positionfix, mouse.Target:Clone())
- mouse.Target:Clone().Parent = workspace
- end)
- movetool.Activated:Connect(function()
- createnotification("Move Tool", "You are moving: "..mouse.Target.Name)
- movingpart = mouse.Target
- movedetect = true
- movingpart.CanCollide = false
- movetransparency = movingpart.Transparency
- movingpart.Transparency = 0.5
- mouse.TargetFilter = movingpart
- table.insert(editedparts, movingpart)
- table.insert(parentfix, movingpart.Parent)
- table.insert(positionfix, movingpart.CFrame)
- movingpart.Transparency = movingpart.Transparency / 2
- repeat
- mouse.Move:Wait()
- movingpart.CFrame = CFrame.new(mouse.Hit.p)
- until movedetect == false
- end)
- movetool.Deactivated:Connect(function()
- createnotification("Move Tool", "You have stopped moving: "..mouse.Target.Name)
- movingpart.CanCollide = true
- movedetect = false
- mouse.TargetFilter = nil
- movingpart.Transparency = movetransparenc
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement