Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- LocalScript1 = Instance.new("LocalScript")
- Script2 = Instance.new("Script")
- Tool3 = Instance.new("Tool")
- LocalScript4 = Instance.new("LocalScript")
- Script5 = Instance.new("Script")
- Tool6 = Instance.new("Tool")
- LocalScript7 = Instance.new("LocalScript")
- Script8 = Instance.new("Script")
- Tool9 = Instance.new("Tool")
- LocalScript10 = Instance.new("LocalScript")
- Script11 = Instance.new("Script")
- Tool12 = Instance.new("Tool")
- LocalScript13 = Instance.new("LocalScript")
- Script14 = Instance.new("Script")
- Vector3Value15 = Instance.new("Vector3Value")
- Vector3Value16 = Instance.new("Vector3Value")
- ScreenGui17 = Instance.new("ScreenGui")
- Frame18 = Instance.new("Frame")
- TextLabel19 = Instance.new("TextLabel")
- TextButton20 = Instance.new("TextButton")
- Tool21 = Instance.new("Tool")
- LocalScript22 = Instance.new("LocalScript")
- Script23 = Instance.new("Script")
- Tool24 = Instance.new("Tool")
- LocalScript25 = Instance.new("LocalScript")
- Tool26 = Instance.new("Tool")
- LocalScript27 = Instance.new("LocalScript")
- Script28 = Instance.new("Script")
- Tool29 = Instance.new("Tool")
- Script30 = Instance.new("Script")
- Part31 = Instance.new("Part")
- SpecialMesh32 = Instance.new("SpecialMesh")
- Part33 = Instance.new("Part")
- SpecialMesh34 = Instance.new("SpecialMesh")
- Sound35 = Instance.new("Sound")
- Motor36 = Instance.new("Motor")
- LocalScript37 = Instance.new("LocalScript")
- HopperBin38 = Instance.new("HopperBin")
- LocalScript39 = Instance.new("LocalScript")
- ScreenGui40 = Instance.new("ScreenGui")
- Frame41 = Instance.new("Frame")
- TextLabel42 = Instance.new("TextLabel")
- TextLabel43 = Instance.new("TextLabel")
- Frame44 = Instance.new("Frame")
- TextLabel45 = Instance.new("TextLabel")
- TextButton46 = Instance.new("TextButton")
- TextButton47 = Instance.new("TextButton")
- TextButton48 = Instance.new("TextButton")
- TextButton49 = Instance.new("TextButton")
- TextButton50 = Instance.new("TextButton")
- TextButton51 = Instance.new("TextButton")
- Frame52 = Instance.new("Frame")
- TextLabel53 = Instance.new("TextLabel")
- TextButton54 = Instance.new("TextButton")
- TextButton55 = Instance.new("TextButton")
- TextButton56 = Instance.new("TextButton")
- TextButton57 = Instance.new("TextButton")
- TextButton58 = Instance.new("TextButton")
- TextButton59 = Instance.new("TextButton")
- Frame60 = Instance.new("Frame")
- TextLabel61 = Instance.new("TextLabel")
- TextButton62 = Instance.new("TextButton")
- TextButton63 = Instance.new("TextButton")
- TextButton64 = Instance.new("TextButton")
- TextButton65 = Instance.new("TextButton")
- TextButton66 = Instance.new("TextButton")
- TextButton67 = Instance.new("TextButton")
- Frame68 = Instance.new("Frame")
- TextLabel69 = Instance.new("TextLabel")
- TextButton70 = Instance.new("TextButton")
- TextButton71 = Instance.new("TextButton")
- TextButton72 = Instance.new("TextButton")
- TextButton73 = Instance.new("TextButton")
- Frame74 = Instance.new("Frame")
- TextLabel75 = Instance.new("TextLabel")
- TextButton76 = Instance.new("TextButton")
- TextButton77 = Instance.new("TextButton")
- TextButton78 = Instance.new("TextButton")
- TextButton79 = Instance.new("TextButton")
- Frame80 = Instance.new("Frame")
- TextLabel81 = Instance.new("TextLabel")
- TextButton82 = Instance.new("TextButton")
- TextButton83 = Instance.new("TextButton")
- TextButton84 = Instance.new("TextButton")
- TextButton85 = Instance.new("TextButton")
- TextLabel86 = Instance.new("TextLabel")
- Frame87 = Instance.new("Frame")
- TextLabel88 = Instance.new("TextLabel")
- TextButton89 = Instance.new("TextButton")
- TextButton90 = Instance.new("TextButton")
- TextButton91 = Instance.new("TextButton")
- TextButton92 = Instance.new("TextButton")
- HopperBin93 = Instance.new("HopperBin")
- Script94 = Instance.new("Script")
- Tool0.Name = "BuildDelete"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxasset://icons/delete.png"
- Tool0.GripForward = Vector3.new(-1, -0, -0)
- Tool0.GripPos = Vector3.new(0, 0, -0.5)
- Tool0.GripRight = Vector3.new(0, 1, 0)
- Tool0.GripUp = Vector3.new(0, 0, 1)
- LocalScript1.Name = "Model Delete Local"
- LocalScript1.Parent = Tool0
- table.insert(cors,sandbox(LocalScript1,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local inGui = false
- local inPalette = false
- local lockTime = 0
- function canSelectObject(part)
- return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
- end
- function findModel(part)
- while part ~= nil do
- if part.className == "Model" then
- return part
- end
- part = part.Parent
- end
- return nil
- end
- function cleanOrphanedModel(parent)
- if parent.className == "Model" then
- local children = parent:GetChildren()
- if #children == 0 then
- local oldParent = parent.Parent
- parent:Remove()
- cleanOrphanedModel(oldParent)
- end
- end
- end
- function on3dButton1Down(mouse)
- local part = mouse.Target
- if canSelectObject(part) then
- local model = findModel(part)
- local oldParent
- if model then
- if Instance.Lock(model) then
- if currentSelection == model then
- currentSelection = nil
- clearSelection()
- end
- oldParent = model.Parent
- model:Remove()
- --The lock will expire in 5 seconds, which is good enough since we deleted the model
- end
- else
- if Instance.Lock(part) then
- if currentSelection == part then
- currentSelection = nil
- clearSelection()
- end
- oldParent = part.Parent
- part:Remove()
- --The lock will expire in 5 seconds, which is good enough since we deleted the part
- end
- end
- cleanOrphanedModel(oldParent)
- end
- end
- function saveSelectionColor(instance)
- if instance:IsA("BasePart") then
- currentSelectionColors[instance] = instance.BrickColor
- if instance.BrickColor == BrickColor.Red() then
- instance.BrickColor = BrickColor.new("Really red")
- else
- instance.BrickColor = BrickColor.Red()
- end
- end
- local children = instance:GetChildren()
- if children then
- for pos, child in pairs(children) do
- saveSelectionColor(child)
- end
- end
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- if Instance.Lock(partOrModel) then
- lockTime = time()
- currentSelection = partOrModel
- saveSelectionColor(currentSelection)
- selectionBox.Adornee = currentSelection
- end
- else
- if currentSelection ~= nil and time() - lockTime > 2 then
- --Maintain the lock
- if not(Instance.Lock(currentSelection)) then
- --we lost the lock
- clearSelection()
- else
- lockTime = time()
- end
- end
- end
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- Instance.Unlock(currentSelection)
- end
- currentSelectionColors = {}
- currentSelection = nil
- selectionLasso.Part = nil
- selectionBox.Adornee = nil
- end
- local alreadyMoving = false
- function on3dMouseMove(mouse)
- if alreadyMoving then
- return
- end
- alreadyMoving = true
- if not(inGui) and not(inPalette) then
- local part = mouse.Target
- if canSelectObject(part) then
- selectionLasso.Part = part
- local model = findModel(part)
- if model then
- setSelection(model)
- else
- setSelection(part)
- end
- else
- clearSelection()
- end
- end
- alreadyMoving = false
- end
- function onEquippedLocal(mouse)
- Tool.TextureId = "rbxasset://icons/delete_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- mouse.Icon ="rbxasset://textures\\HammerCursor.png"
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model Delete Selection"
- selectionBox.Color = BrickColor.Red()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model Delete Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.archivable = false
- selectionLasso.Visible = true
- selectionLasso.Parent = game.workspace
- selectionLasso.Color = BrickColor.Red()
- alreadyMoving = false
- --buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- clearSelection()
- selectionBox:Remove()
- selectionLasso:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script2.Name = "SwordScript"
- Script2.Parent = Tool0
- table.insert(cors,sandbox(Script2,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- print("Running Delete")
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool3.Name = "BuildResize"
- Tool3.Parent = mas
- Tool3.TextureId = "rbxasset://icons/resize.png"
- Tool3.GripForward = Vector3.new(-0, 1, 0)
- Tool3.GripPos = Vector3.new(0.400000006, -0.300000012, 0.100000001)
- Tool3.GripUp = Vector3.new(0, 0, 1)
- LocalScript4.Name = "Resize Local"
- LocalScript4.Parent = Tool3
- table.insert(cors,sandbox(LocalScript4,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- game:GetService("ContentProvider"):Preload("rbxasset://icons/resize_sel.png")
- local selectionBox
- local selectionLasso
- local handles
- local previousDistance
- function onHandlesDown(normal)
- print("handlesDown")
- previousDistance = 0
- end
- function onHandlesDrag(normal, distance)
- if handles.Adornee then
- local delta = distance - previousDistance
- if math.abs(delta) >= handles.Adornee.ResizeIncrement then
- local sizeDelta = math.floor(delta / handles.Adornee.ResizeIncrement + 0.5) * handles.Adornee.ResizeIncrement
- if handles.Adornee:Resize(normal, sizeDelta) then
- previousDistance = distance
- end
- end
- end
- end
- function onButton1Down(mouse)
- print("3DButtonDown")
- if mouse.Target == nil or mouse.Target.Locked then
- selectionBox.Adornee = nil
- selectionLasso.Part = nil
- handles.Adornee = nil
- else
- selectionBox.Adornee = mouse.Target
- selectionLasso.Part = mouse.Target
- handles.Adornee = mouse.Target
- handles.Faces = mouse.Target.ResizeableFaces
- end
- end
- function onEquippedLocal(mouse)
- Tool.TextureId = "rbxasset://icons/resize_sel.png"
- mouse.Icon ="rbxasset://textures\\DragCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Color = BrickColor.Blue()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model Delete Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.Parent = game.workspace
- selectionLasso.Part = nil
- selectionLasso.Visible = true
- selectionLasso.archivable = false
- selectionLasso.Color = BrickColor.Red()
- handles = Instance.new("Handles")
- handles.Color = BrickColor.Blue()
- handles.Adornee = nil
- handles.MouseDrag:connect(onHandlesDrag)
- handles.MouseButton1Down:connect(onHandlesDown)
- handles.Parent = player.PlayerGui
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- selectionBox:Remove()
- selectionLasso:Remove()
- handles:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script5.Name = "SwordScript"
- Script5.Parent = Tool3
- table.insert(cors,sandbox(Script5,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool6.Name = "BuildSurface"
- Tool6.Parent = mas
- Tool6.TextureId = "rbxasset://icons/surface.png"
- Tool6.GripForward = Vector3.new(-1, 0, -0)
- Tool6.GripPos = Vector3.new(0.600000024, 0.200000003, 0)
- Tool6.GripRight = Vector3.new(0, 0, -1)
- LocalScript7.Name = "Surface Picker Local"
- LocalScript7.Parent = Tool6
- table.insert(cors,sandbox(LocalScript7,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- game:GetService("ContentProvider"):Preload("rbxasset://icons/surface_sel.png")
- local selectionSurface
- local selectionLasso
- local inGui = false
- local inPalette = false
- local selectedButton = nil
- local oldButton = nil
- function onMouseLeave(hoverSelection)
- if oldButton ~= nil then
- local notSelected = true
- local selectionText = ""
- if selectedButton ~= nil then
- if oldButton == selectedButton then
- notSelected = false
- else
- selectionText = selectedButton.Name
- end
- end
- if notSelected then
- hoverSelection.Text = selectionText
- if oldButton.Parent then
- oldButton.Parent.BackgroundColor = BrickColor.Black()
- end
- end
- end
- oldButton = nil
- end
- function onMouseEnter(hoverSelection, guiButton)
- onMouseLeave(hoverSelection)
- hoverSelection.Text = guiButton.Name
- if guiButton ~= selectedButton then
- guiButton.Parent.BackgroundColor = BrickColor.White()
- oldButton = guiButton
- end
- end
- function onMouseUp(paletteFrame, guiButton)
- if selectedButton ~= nil then
- selectedButton.Parent.BackgroundColor = BrickColor.Black()
- end
- guiButton.Parent.BackgroundColor = BrickColor.Yellow()
- selectedButton = guiButton
- onMouseLeavePalette(paletteFrame)
- print("Selected SurfaceType : " .. guiButton.Name)
- end
- function setSelectionSurface(part, surface)
- unsetSelectionSurface()
- selectionSurface.Adornee = part
- selectionSurface.TargetSurface = surface
- selectionLasso.Part = part
- end
- function unsetSelectionSurface()
- selectionSurface.Adornee = nil
- selectionLasso.Part = nil
- end
- function onMouseEnterGui(mouse)
- mouse.Icon ="rbxasset://textures\\ArrowCursor.png"
- unsetSelectionSurface()
- inGui = true
- end
- function onMouseLeaveGui(mouse)
- inGui = false
- end
- function onMouseEnterPalette(mouse)
- mouse.Icon ="rbxasset://textures\\ArrowCursor.png"
- unsetSelectionSurface()
- inPalette = true
- end
- function onMouseLeavePalette(paletteFrame, mouse)
- inPalette = false
- end
- local SurfaceEnum = {}
- SurfaceEnum["Smooth"] = Enum.SurfaceType.Smooth
- SurfaceEnum["Studs"] = Enum.SurfaceType.Studs
- SurfaceEnum["Inlets"] = Enum.SurfaceType.Inlet
- SurfaceEnum["Universal"] = Enum.SurfaceType.Universal
- SurfaceEnum["Glue"] = Enum.SurfaceType.Glue
- SurfaceEnum["Weld"] = Enum.SurfaceType.Weld
- SurfaceEnum["Hinge"] = Enum.SurfaceType.Hinge
- SurfaceEnum["Motor"] = Enum.SurfaceType.Motor
- function buildGui(root, mouse)
- local mainFrame = Instance.new("Frame")
- mainFrame.Name = "Main Surface Frame"
- mainFrame.Position = UDim2.new(0.0, 0, 1.0, -50)
- mainFrame.Size = UDim2.new(0.0, 50 * 10, 0.00, 50)
- mainFrame.Transparency = 1.0
- mainFrame.Parent = root
- local paletteFrame = Instance.new("Frame")
- paletteFrame.Name = "Palette"
- paletteFrame.Position = UDim2.new(0.0, 0, 0.0, 0)
- paletteFrame.Size = UDim2.new(.8, 0, 1.0, 0)
- paletteFrame.BackgroundColor = BrickColor.Black()
- paletteFrame.MouseEnter:connect(function() onMouseEnterPalette(mouse) end)
- paletteFrame.MouseLeave:connect(function() onMouseLeavePalette(paletteFrame, mouse) end)
- paletteFrame.Parent = mainFrame
- local hoverSelection = Instance.new("TextLabel")
- hoverSelection.Position = UDim2.new(0.8, 0, 0.0, 0)
- hoverSelection.Size = UDim2.new(.2, 0, 1.0, 0)
- hoverSelection.BackgroundColor = BrickColor.Black()
- hoverSelection.TextColor = BrickColor.White()
- hoverSelection.Text = "Studs"
- hoverSelection.Parent = mainFrame
- local surfaces = {}
- surfaces["Smooth"] = "http://www.roblox.com/Asset/?ID=16171076"
- surfaces["Studs"] = "http://www.roblox.com/Asset/?ID=16171077"
- surfaces["Inlets"] = "http://www.roblox.com/Asset/?ID=16171066"
- surfaces["Universal"] = "http://www.roblox.com/Asset/?ID=16171136"
- surfaces["Glue"] = "http://www.roblox.com/Asset/?ID=16171062"
- surfaces["Weld"] = "http://www.roblox.com/Asset/?ID=16171080"
- surfaces["Hinge"] = "http://www.roblox.com/Asset/?ID=16171065"
- surfaces["Motor"] = "http://www.roblox.com/Asset/?ID=16171070"
- local order = {"Smooth", "Studs", "Inlets", "Universal", "Glue", "Weld", "Hinge", "Motor"}
- local x
- for x=1, #order do
- local key = order[x]
- local value = surfaces[key]
- local guiFrame = Instance.new("Frame")
- guiFrame.Position = UDim2.new(1.0/8 * (x-1), 0, 0.0, 0)
- guiFrame.Size = UDim2.new(1.0/8, 0, 1.0, 0)
- guiFrame.BackgroundColor = BrickColor.Black()
- --guiFrame.BorderSizePixel = 0
- guiFrame.Parent = paletteFrame
- local guiButton = Instance.new("ImageButton")
- guiButton.Position = UDim2.new(0.0, 2, 0.0, 2)
- guiButton.Size = UDim2.new(1.0, -4, 1.0, -4)
- guiButton.Image = value
- guiButton.Name = key
- --guiButton.BorderSizePixel = 0
- guiButton.AutoButtonColor = false
- guiButton.MouseEnter:connect(function() onMouseEnter(hoverSelection, guiButton) end)
- guiButton.MouseButton1Up:connect(function() onMouseUp(paletteFrame, guiButton) end)
- guiButton.Parent = guiFrame
- if hoverSelection.Text == guiButton.Name then
- selectedButton = guiButton
- guiFrame.BackgroundColor = BrickColor.Yellow()
- end
- end
- mainFrame.MouseLeave:connect(function() onMouseLeave(hoverSelection) end)
- end
- function canSelectObject(part, surface)
- return part and not (part.Locked) and part:IsA("BasePart") and (part.Position - Tool.Parent.Head.Position).Magnitude < 60 and
- (not(part:IsA("WedgePart")) or surface ~= Enum.NormalId.Front)
- end
- function on3dMouseMove(mouse)
- local part = mouse.Target
- local surface = mouse.TargetSurface
- if canSelectObject(part, surface) then
- setSelectionSurface(part, surface)
- else
- unsetSelectionSurface()
- end
- end
- function on3dButton1Down(mouse)
- local part = selectionSurface.Adornee
- if part then
- local normalId = selectionSurface.TargetSurface
- local surface = SurfaceEnum[selectedButton.Name]
- --Apply the selected surface to the current parts
- if normalId == Enum.NormalId.Top then
- part.TopSurface = surface
- elseif normalId == Enum.NormalId.Bottom then
- part.BottomSurface = surface
- elseif normalId == Enum.NormalId.Front then
- part.FrontSurface = surface
- elseif normalId == Enum.NormalId.Back then
- part.BackSurface = surface
- elseif normalId == Enum.NormalId.Left then
- part.LeftSurface = surface
- elseif normalId == Enum.NormalId.Right then
- part.RightSurface = surface
- end
- end
- end
- local guiMain
- function onEquippedLocal(mouse)
- Tool.TextureId = "rbxasset://icons/surface_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- --mouse.Icon ="rbxasset://textures\\MaterialCursor.png"
- selectionSurface = Instance.new("SurfaceSelection")
- selectionSurface.Color = BrickColor.Red()
- selectionSurface.Adornee = nil
- selectionSurface.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model Delete Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.Parent = game.workspace
- selectionLasso.Part = nil
- selectionLasso.Visible = true
- selectionLasso.archivable = false
- selectionLasso.Color = BrickColor.Red()
- buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- guiMain:Remove()
- selectionSurface:Remove()
- selectionLasso:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script8.Name = "SwordScript"
- Script8.Parent = Tool6
- table.insert(cors,sandbox(Script8,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool9.Name = "CanCollide"
- Tool9.Parent = mas
- Tool9.GripForward = Vector3.new(-1, -0, -0)
- Tool9.GripPos = Vector3.new(0, 0, -0.5)
- Tool9.GripRight = Vector3.new(0, 1, 0)
- Tool9.GripUp = Vector3.new(0, 0, 1)
- LocalScript10.Name = "Model Delete Local"
- LocalScript10.Parent = Tool9
- table.insert(cors,sandbox(LocalScript10,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local inGui = false
- local inPalette = false
- local lockTime = 0
- function canSelectObject(part)
- return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
- end
- function findModel(part)
- while part ~= nil do
- if part.className == "Model" then
- return part
- end
- part = part.Parent
- end
- return nil
- end
- function cleanOrphanedModel(parent)
- if parent.className == "Model" then
- local children = parent:GetChildren()
- if #children == 0 then
- local oldParent = parent.Parent
- parent:Remove()
- cleanOrphanedModel(oldParent)
- end
- end
- end
- function on3dButton1Down(mouse)
- local part = mouse.Target
- if canSelectObject(part) then
- local model = findModel(part)
- local oldParent
- if model then
- if Instance.Lock(model) then
- if currentSelection == model then
- currentSelection = nil
- clearSelection()
- end
- oldParent = model.Parent
- --model:Remove()
- --The lock will expire in 5 seconds, which is good enough since we deleted the model
- end
- else
- if Instance.Lock(part) then
- if currentSelection == part then
- currentSelection = nil
- clearSelection()
- end
- oldParent = part.Parent
- if(part.CanCollide==true)then
- part.CanCollide = false
- else
- part.CanCollide = true
- end
- --The lock will expire in 5 seconds, which is good enough since we deleted the part
- end
- end
- cleanOrphanedModel(oldParent)
- end
- end
- function saveSelectionColor(instance)
- local children = instance:GetChildren()
- if children then
- for pos, child in pairs(children) do
- saveSelectionColor(child)
- end
- end
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- if Instance.Lock(partOrModel) then
- lockTime = time()
- currentSelection = partOrModel
- saveSelectionColor(currentSelection)
- selectionBox.Adornee = currentSelection
- end
- else
- if currentSelection ~= nil and time() - lockTime > 2 then
- --Maintain the lock
- if not(Instance.Lock(currentSelection)) then
- --we lost the lock
- clearSelection()
- else
- lockTime = time()
- end
- end
- end
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- Instance.Unlock(currentSelection)
- end
- currentSelectionColors = {}
- currentSelection = nil
- selectionLasso.Part = nil
- selectionBox.Adornee = nil
- end
- local alreadyMoving = false
- function on3dMouseMove(mouse)
- if alreadyMoving then
- return
- end
- alreadyMoving = true
- if not(inGui) and not(inPalette) then
- local part = mouse.Target
- if canSelectObject(part) then
- selectionLasso.Part = part
- local model = findModel(part)
- if model then
- setSelection(model)
- else
- setSelection(part)
- end
- else
- clearSelection()
- end
- end
- alreadyMoving = false
- end
- function onEquippedLocal(mouse)
- --Tool.TextureId = "rbxasset://icons/delete_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model CanCollide Selection"
- selectionBox.Color = BrickColor.Blue()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model CanCollide Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.archivable = false
- selectionLasso.Visible = true
- selectionLasso.Parent = game.workspace
- selectionLasso.Color = BrickColor.Blue()
- alreadyMoving = false
- --buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- clearSelection()
- selectionBox:Remove()
- selectionLasso:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script11.Name = "SwordScript"
- Script11.Parent = Tool9
- table.insert(cors,sandbox(Script11,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- print("Running Delete")
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool12.Name = "Center"
- Tool12.Parent = mas
- Tool12.GripForward = Vector3.new(-1, -0, -0)
- Tool12.GripPos = Vector3.new(0, 0, -0.5)
- Tool12.GripRight = Vector3.new(0, 1, 0)
- Tool12.GripUp = Vector3.new(0, 0, 1)
- LocalScript13.Name = "Model Delete Local"
- LocalScript13.Parent = Tool12
- table.insert(cors,sandbox(LocalScript13,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local inGui = false
- local inPalette = false
- local lockTime = 0
- local flag = 1
- local C1=Tool:findFirstChild("C1")
- local C2=Tool:findFirstChild("C2")
- local Proxy=Tool:findFirstChild("PROZ")
- if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Parent=Tool end
- local OwnerName=game.Players.LocalPlayer.Name
- local ProxOwner=Proxy:findFirstChild("Owner")
- ProxOwner.Value=OwnerName
- local MES=Instance.new("Hint")
- local setupFlag=0
- function setupMES()
- if(MES==nil)then
- MES=Instance.new("Hint")
- end
- MES.Parent=game.Players.LocalPlayer
- MES.Text="Click on part one. This part will not be moved."
- end
- function clearProxy(on)
- --on for Owner Name
- c=game.Lighting:GetChildren()
- for i=1, #c do
- if(c[i].Name=="PROZ")then
- if(c[i]:findFirstChild("Owner")~=nil)then
- if(c[i]:findFirstChild("Owner").Value==on)then
- c[i].Parent=nil
- c[i]:Remove()
- end
- end
- end
- if(c[i].Name=="PROZ")and(c[i]:findFirstChild("Owner")==nil)then
- c[i].Parent=nil
- end
- end
- if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Parent=Tool end
- end
- function clearProxy2(on)
- --this clone remakes PROZ in the lighting.
- c=game.Lighting:GetChildren()
- for i=1, #c do
- if(c[i].Name=="PROZ")then
- if(c[i]:findFirstChild("Owner")~=nil)then
- if(c[i]:findFirstChild("Owner").Value==on)then
- c[i]:Remove()
- end
- end
- end
- if(c[i].Name=="PROZ")and(c[i]:findFirstChild("Owner")==nil)then
- c[i].Parent=nil
- end
- end
- if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Anchored=true Proxy.Parent=game.Lighting end
- end
- function checkPROZ()
- if(Proxy == nil)then Proxy=Instance.new("Part") Proxy.Name="PROZ" Proxy.Anchored=true Proxy.Parent=game.Lighting end
- end
- function resetTool()
- --Resets the whole tool to allow for multiple blocks to be done at the same time.
- selectionBox.Color = BrickColor.Blue()
- selectionLasso.Color = BrickColor.Blue()
- setupMES()
- clearProxy2(OwnerName) --To resolve random issues.
- C1.Value=Vector3.new(0,0,0)
- C2.Value=Vector3.new(0,0,0)
- flag = 1
- end
- function canSelectObject(part)
- return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
- end
- function findModel(part)
- return nil
- end
- function cleanOrphanedModel(parent)
- if parent.className == "Model" then
- local children = parent:GetChildren()
- if #children == 0 then
- local oldParent = parent.Parent
- parent:Remove()
- cleanOrphanedModel(oldParent)
- end
- end
- end
- function endMES()
- MES:Remove()
- end
- function on3dButton1Down(mouse)
- local part = mouse.Target
- if canSelectObject(part) then
- local model = findModel(part)
- local oldParent
- if model then
- if Instance.Lock(model) then
- if currentSelection == model then
- currentSelection = nil
- clearSelection()
- end
- oldParent = model.Parent
- --model:Remove()
- --The lock will expire in 5 seconds, which is good enough since we deleted the model
- end
- else
- if Instance.Lock(part) then
- if currentSelection == part then
- currentSelection = nil
- clearSelection()
- end
- oldParent = part.Parent
- if(flag == 1)then
- C1.Value=part.Position
- selectionBox.Color = BrickColor.new("Bright violet")
- selectionLasso.Color = BrickColor.new("Bright violet")
- flag=flag+1
- print("Step one is done.")
- MES.Text="Click on part two. This part will not be moved."
- elseif(flag == 2)then
- C2.Value=part.Position
- selectionBox.Color = BrickColor.Red()
- selectionLasso.Color = BrickColor.Red()
- flag=flag+1
- print("Step two is done.")
- MES.Text="Click on part three. This part will be centered."
- elseif(flag == 3)or(flag > 3)then
- Proxy.Position=((C1.Value+C2.Value)/Vector3.new(2,2,2))
- print("Proxy is set.")
- part.CFrame=Proxy.CFrame
- print("Part is moved.")
- flag=1
- print("Flag is set to one.")
- C1.Value=Vector3.new(0,0,0)
- C2.Value=Vector3.new(0,0,0)
- print("Values reset.")
- MES.Text="Your part should now be centered."
- MES:Remove()
- resetTool()
- end
- --The lock will expire in 5 seconds, which is good enough since we deleted the part
- end
- end
- cleanOrphanedModel(oldParent)
- end
- end
- function saveSelectionColor(instance)
- return
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- if Instance.Lock(partOrModel) then
- lockTime = time()
- currentSelection = partOrModel
- saveSelectionColor(currentSelection)
- selectionBox.Adornee = currentSelection
- end
- else
- if currentSelection ~= nil and time() - lockTime > 2 then
- --Maintain the lock
- if not(Instance.Lock(currentSelection)) then
- --we lost the lock
- clearSelection()
- else
- lockTime = time()
- end
- end
- end
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- Instance.Unlock(currentSelection)
- end
- currentSelectionColors = {}
- currentSelection = nil
- selectionLasso.Part = nil
- selectionBox.Adornee = nil
- end
- local alreadyMoving = false
- function on3dMouseMove(mouse)
- if alreadyMoving then
- return
- end
- alreadyMoving = true
- if not(inGui) and not(inPalette) then
- local part = mouse.Target
- if canSelectObject(part) then
- selectionLasso.Part = part
- local model = findModel(part)
- if model then
- setSelection(model)
- else
- setSelection(part)
- end
- else
- clearSelection()
- end
- end
- alreadyMoving = false
- end
- function onEquippedLocal(mouse)
- if(Proxy~=nil)then
- Proxy.Parent=game.Lighting
- else
- return --if we have no proxy this tool doesn't work.
- end
- setupMES()
- MES.Text="Click on part one. This part will not be moved."
- --Tool.TextureId = "rbxasset://icons/delete_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model Center Selection"
- selectionBox.Color = BrickColor.Blue()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model Center Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.archivable = false
- selectionLasso.Visible = true
- selectionLasso.Parent = game.workspace
- selectionLasso.Color = BrickColor.Blue()
- alreadyMoving = false
- mouse.KeyDown:connect(onKeyDown)
- --buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- wait(0.001)
- endMES()
- wait(0.001)
- clearProxy(OwnerName) --To resolve random issues.
- wait(0.001)
- C1.Value=Vector3.new(0,0,0)
- wait(0.001)
- C2.Value=Vector3.new(0,0,0)
- wait(0.001)
- flag = 1
- wait(0.001)
- Tool.TextureId = origTexture
- wait(0.001)
- clearSelection()
- wait(0.001)
- selectionBox:Remove()
- wait(0.001)
- selectionLasso:Remove()
- wait(0.001) -- each wait gives the script time to work. LEAVE THEM ALONE!!!
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script14.Name = "SwordScript"
- Script14.Parent = Tool12
- table.insert(cors,sandbox(Script14,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- print("Running Center")
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Vector3Value15.Name = "C2"
- Vector3Value15.Parent = Tool12
- Vector3Value16.Name = "C1"
- Vector3Value16.Parent = Tool12
- ScreenGui17.Name = "Center"
- ScreenGui17.Parent = Tool12
- Frame18.Parent = ScreenGui17
- Frame18.Size = UDim2.new(0, 100, 0, 20)
- TextLabel19.Parent = Frame18
- TextLabel19.Text = "Auto-Anchor:"
- TextLabel19.Position = UDim2.new(0, 40, 0, 10)
- TextButton20.Name = "ACTIVE"
- TextButton20.Parent = Frame18
- TextButton20.Size = UDim2.new(0, 15, 0, 16)
- TextButton20.Text = ""
- TextButton20.Position = UDim2.new(0, 80, 0, 2)
- TextButton20.Active = false
- TextButton20.BackgroundColor3 = Color3.new(1, 0, 0)
- TextButton20.AutoButtonColor = false
- Tool21.Name = "Dragger"
- Tool21.Parent = mas
- Tool21.TextureId = "rbxasset://icons/freemove.png"
- Tool21.GripForward = Vector3.new(-0, 1, 0)
- Tool21.GripPos = Vector3.new(0.400000006, -0.300000012, 0.100000001)
- Tool21.GripUp = Vector3.new(0, 0, 1)
- LocalScript22.Name = "Dragger Local"
- LocalScript22.Parent = Tool21
- table.insert(cors,sandbox(LocalScript22,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- game:GetService("ContentProvider"):Preload("rbxasset://icons/freemove_sel.png")
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local inGui = false
- local inPalette = false
- local lockTime = 0
- function canSelectObject(part)
- return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
- end
- function findModel(part)
- while part ~= nil do
- if part.className == "Model" then
- return part
- end
- part = part.Parent
- end
- return nil
- end
- function startDrag(mousePart, hitPoint, collection)
- dragger = Instance.new("Dragger")
- pcall(function() dragger:MouseDown(mousePart, hitPoint, collection) end)
- end
- function collectBaseParts(object, collection)
- if object:IsA("BasePart") then
- collection[#collection+1] = object
- end
- for index,child in pairs(object:GetChildren()) do
- collectBaseParts(child, collection)
- end
- end
- function onMouseDown(mouse)
- mouse.Icon ="rbxasset://textures\\GrabRotateCursor.png"
- local part = mouse.Target
- if canSelectObject(part) then
- local hitPoint = mouse.Hit:toObjectSpace(part.CFrame).p
- if trySelection(part) then
- local instances = {}
- collectBaseParts(currentSelection, instances)
- startDrag(part, hitPoint, instances)
- return
- end
- end
- --Clear the selection if we weren't able to lock succesfullu
- onMouseUp(mouse)
- end
- function onMouseUp(mouse)
- mouse.Icon ="rbxasset://textures\\GrabCursor.png"
- if dragger ~= nil then
- pcall(function() dragger:MouseUp() end)
- dragger = nil
- end
- end
- function trySelection(part)
- if canSelectObject(part) then
- selectionLasso.Part = part
- local model = findModel(part)
- if model then
- return setSelection(model)
- else
- return setSelection(part)
- end
- else
- clearSelection()
- return false
- end
- end
- function onKeyDown(key)
- if dragger ~= nil then
- if key == 'R' or key == 'r' then
- dragger:AxisRotate(Enum.Axis.Y)
- elseif key == 'T' or key == 't' then
- dragger:AxisRotate(Enum.Axis.Z)
- end
- end
- end
- local alreadyMoving
- function onMouseMove(mouse)
- if alreadyMoving then
- return
- end
- alreadyMoving = true
- if dragger ~= nil then
- --Maintain the lock
- if time() - lockTime > 3 then
- Instance.Lock(currentSelection)
- lockTime = time()
- end
- --Then drag
- pcall(function() dragger:MouseMove(mouse.UnitRay) end)
- else
- trySelection(mouse.Target)
- end
- alreadyMoving = false
- end
- function saveSelectionColor(instance)
- if instance:IsA("BasePart") then
- currentSelectionColors[instance] = instance.BrickColor
- if instance.BrickColor == BrickColor.Blue() then
- instance.BrickColor = BrickColor.new("Deep blue")
- else
- instance.BrickColor = BrickColor.Blue()
- end
- end
- local children = instance:GetChildren()
- if children then
- for pos, child in pairs(children) do
- saveSelectionColor(child)
- end
- end
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- if Instance.Lock(partOrModel) then
- lockTime = time()
- currentSelection = partOrModel
- saveSelectionColor(currentSelection)
- selectionBox.Adornee = currentSelection
- return true
- end
- else
- if currentSelection ~= nil then
- if time() - lockTime > 2 then
- --Maintain the lock
- if not(Instance.Lock(currentSelection)) then
- --we lost the lock
- clearSelection()
- return false
- else
- lockTime = time()
- return true
- end
- else
- return true
- end
- end
- end
- return false
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- Instance.Unlock(currentSelection)
- end
- currentSelectionColors = {}
- currentSelection = nil
- selectionLasso.Part = nil
- selectionBox.Adornee = nil
- end
- function onEquippedLocal(mouse)
- Tool.TextureId = "rbxasset://icons/freemove_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Icon ="rbxasset://textures\\GrabCursor.png"
- mouse.Button1Down:connect(function() onMouseDown(mouse) end)
- mouse.Button1Up:connect(function() onMouseUp(mouse) end)
- mouse.Move:connect(function() onMouseMove(mouse) end)
- mouse.KeyDown:connect(function(string) onKeyDown(string) end)
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model Delete Selection"
- selectionBox.Color = BrickColor.Blue()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model Drag Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.archivable = false
- selectionLasso.Visible = true
- selectionLasso.Parent = game.workspace
- selectionLasso.Color = BrickColor.Blue()
- alreadyMoving = false
- --buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- clearSelection()
- selectionBox:Remove()
- selectionLasso:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script23.Name = "SwordScript"
- Script23.Parent = Tool21
- table.insert(cors,sandbox(Script23,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool24.Name = "Rotate Tool"
- Tool24.Parent = mas
- Tool24.TextureId = "http://www.roblox.com/asset/?id=24191398"
- Tool24.GripForward = Vector3.new(-1, 0, -0)
- Tool24.GripPos = Vector3.new(0.899999976, 0.100000001, 0)
- Tool24.GripRight = Vector3.new(0, 0, -1)
- LocalScript25.Name = "Rotate"
- LocalScript25.Parent = Tool24
- table.insert(cors,sandbox(LocalScript25,function()
- local Tool = script.Parent
- local Player = game.Players.LocalPlayer
- local MainGui
- local RotateGui
- local Selectbox = Instance.new("SelectionBox")
- Selectbox.Name = "RotateSelectionBox"
- local Lasso = Instance.new("SelectionPartLasso")
- Lasso.Name = "RotateLasso"
- local Handles = Instance.new("ArcHandles")
- Handles.Name = "RotateHandles"
- events = {}
- undo_part = {}
- undo_cframe = {}
- increment = 1
- selection = nil
- lastCFrame = nil
- function round(number,by)
- return math.floor((number/by)+0.5) * by
- end
- function AngleFromAxis(axis,rA)
- rA = math.rad(round(math.deg(rA),increment))
- return axis==Enum.Axis.X and {rA,0,0}
- or axis==Enum.Axis.Y and {0,rA,0}
- or axis==Enum.Axis.Z and {0,0,rA}
- end
- function IsSelectable(part,hit)
- if part and Player.Character:FindFirstChild("Head") then
- if not part.Locked and (hit - Player.Character.Head.Position).magnitude < 60 then return true end
- end
- return false
- end
- function UndoRotate()
- if #undo_part > 0 then
- local part = undo_part[#undo_part]
- local cframe = undo_cframe[#undo_cframe]
- part.CFrame = cframe
- table.remove(undo_part,#undo_part)
- table.remove(undo_cframe,#undo_cframe)
- end
- end
- function ResetAngles()
- if selection then
- lastCFrame = selection.CFrame
- selection.CFrame = CFrame.new(selection.CFrame.p)
- if lastCFrame ~= selection.CFrame then
- table.insert(undo_part,selection)
- table.insert(undo_cframe,lastCFrame)
- end
- end
- end
- local e = true
- function SetIncrement(p)
- if p == "Text" then
- if not e then return end
- e = false
- local n = tonumber(RotateGui.Increment.Field.Text) or 1
- n = n < 1 and 1 or n > 360 and 360 or n
- increment = n
- RotateGui.Increment.Field.Text = n
- e = true
- end
- end
- function SetupGUI()
- MainGui = Player.PlayerGui:FindFirstChild("BuildGUI")
- if not MainGui then
- MainGui = Instance.new("ScreenGui")
- MainGui.Name = "BuildGUI"
- MainGui.Parent = Player.PlayerGui
- end
- RotateGui = RotateGui or MainGui:FindFirstChild("RotateTool")
- if not RotateGui then
- RotateGui = Instance.new("Frame")
- RotateGui.Name = "RotateTool"
- RotateGui.BackgroundColor3 = Color3.new(51/255,153/255,1)
- RotateGui.BorderColor3 = Color3.new(0,0,0)
- RotateGui.Position = UDim2.new(0,0,1,-60)
- RotateGui.Size = UDim2.new(0,225,0,60)
- local item = Instance.new("Frame")
- item.Name = "Increment"
- item.BackgroundColor3 = Color3.new(1,147/255,25/255)
- item.BorderColor3 = Color3.new(0,0,0)
- item.Position = UDim2.new(0,0,0.5,0)
- item.Size = UDim2.new(0.75,0,0.5,0)
- item.Parent = RotateGui
- local subitem = Instance.new("TextLabel")
- subitem.Name = "Label"
- subitem.Text = "Increment (degrees)"
- subitem.TextWrap = true
- subitem.BackgroundColor3 = Color3.new(1,147/255,25/255)
- subitem.BorderColor3 = Color3.new(0,0,0)
- subitem.TextColor3 = Color3.new(0,0,0)
- subitem.Position = UDim2.new(0,0,0,0)
- subitem.Size = UDim2.new(0.5,0,1,0)
- subitem.Parent = item
- local subitem = Instance.new("TextBox")
- subitem.Name = "Field"
- subitem.Text = "1"
- subitem.BackgroundColor3 = Color3.new(1,147/255,25/255)
- subitem.BorderColor3 = Color3.new(0,0,0)
- subitem.TextColor3 = Color3.new(0,0,0)
- subitem.Position = UDim2.new(0.5,0,0,0)
- subitem.Size = UDim2.new(0.5,0,1,0)
- subitem.Parent = item
- local item = Instance.new("Frame")
- item.Name = "Selection"
- item.BackgroundColor3 = Color3.new(51/255,153/255,1)
- item.BorderColor3 = Color3.new(0,0,0)
- item.Position = UDim2.new(0,0,0,0)
- item.Size = UDim2.new(0.75,0,0.5,0)
- item.Parent = RotateGui
- local subitem = Instance.new("TextLabel")
- subitem.Name = "Label"
- subitem.Text = "Selection:"
- subitem.TextWrap = true
- subitem.TextXAlignment = Enum.TextXAlignment.Right
- subitem.BorderSizePixel = 0
- subitem.BackgroundColor3 = Color3.new(51/255,153/255,1)
- subitem.BorderColor3 = Color3.new(0,0,0)
- subitem.TextColor3 = Color3.new(0,0,0)
- subitem.Position = UDim2.new(0,2,0,2)
- subitem.Size = UDim2.new(0.5,-4,1,-4)
- subitem.Parent = item
- local subitem = Instance.new("TextLabel")
- subitem.Name = "Part"
- subitem.Text = "[none]"
- subitem.TextWrap = true
- subitem.TextXAlignment = Enum.TextXAlignment.Left
- subitem.BorderSizePixel = 0
- subitem.BackgroundColor3 = Color3.new(51/255,153/255,1)
- subitem.BorderColor3 = Color3.new(0,0,0)
- subitem.TextColor3 = Color3.new(0,0,0)
- subitem.Position = UDim2.new(0.5,2,0,2)
- subitem.Size = UDim2.new(0.5,-4,1,-4)
- subitem.Parent = item
- local item = Instance.new("TextButton")
- item.Name = "Reset"
- item.Text = "Reset (R)"
- item.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
- item.BorderColor3 = Color3.new(0,0,0)
- item.TextColor3 = Color3.new(0,0,0)
- item.Position = UDim2.new(0.75,0,0,0)
- item.Size = UDim2.new(0.25,0,0.5,0)
- item.Parent = RotateGui
- local item = Instance.new("TextButton")
- item.Name = "Undo"
- item.Text = "Undo (F)"
- item.BackgroundColor3 = Color3.new(221/255,203/255,0)
- item.BorderColor3 = Color3.new(0,0,0)
- item.TextColor3 = Color3.new(0,0,0)
- item.Position = UDim2.new(0.75,0,0.5,0)
- item.Size = UDim2.new(0.25,0,0.5,0)
- item.Parent = RotateGui
- end
- RotateGui.Parent = MainGui
- Selectbox.Parent = Player.PlayerGui
- Selectbox.Color = BrickColor.new("Bright blue")
- Handles.Parent = Player.PlayerGui
- Handles.Color = BrickColor.new("Bright orange")
- if Player.Character:FindFirstChild("Humanoid") then
- Lasso.Humanoid = Player.Character.Humanoid
- Lasso.Parent = Player.PlayerGui
- Lasso.Color = BrickColor.new("Bright blue")
- end
- events["Undo"] = RotateGui.Undo.MouseButton1Click:connect(UndoRotate)
- events["Reset"] = RotateGui.Reset.MouseButton1Click:connect(ResetAngles)
- events["Inc"] = RotateGui.Increment.Field.Changed:connect(SetIncrement)
- end
- to_undo_part = nil
- to_undo_cframe = nil
- Tool.Equipped:connect(function(mouse)
- SetupGUI()
- RotateGui.Increment.Field.Text = tostring(increment)
- events["MouseDown"] = mouse.Button1Down:connect(function()
- if IsSelectable(mouse.Target,mouse.Hit.p) then
- selection = mouse.Target
- Selectbox.Adornee = selection
- Handles.Adornee = selection
- Lasso.Part = selection
- RotateGui.Selection.Part.Text = selection.Name .. " (" .. selection.className .. ")"
- RotateGui.Reset.BackgroundColor3 = Color3.new(47/255, 208/255, 47/255)
- else
- Selectbox.Adornee = nil
- Handles.Adornee = nil
- Lasso.Part = nil
- selection = nil
- RotateGui.Selection.Part.Text = "[none]"
- RotateGui.Reset.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
- end
- end)
- events["KeyDown"] = mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "r" then -- reset hotkey
- ResetAngles()
- elseif key == "f" then -- undo hotkey
- UndoRotate()
- end
- end)
- events["MouseUp"] = mouse.Button1Up:connect(function()
- if to_undo_part and to_undo_cframe then
- if to_undo_part ~= selection or to_undo_cframe ~= selection.CFrame then
- table.insert(undo_part,to_undo_part)
- table.insert(undo_cframe,to_undo_cframe)
- end
- end
- to_undo_part = nil
- to_undo_cframe = nil
- Handles.Axes = Axes.new(Enum.Axis.X,Enum.Axis.Y,Enum.Axis.Z)
- end)
- events["HandleMouseDown"] = Handles.MouseButton1Down:connect(function(axis)
- if selection then
- lastCFrame = selection.CFrame
- to_undo_part = selection
- to_undo_cframe = lastCFrame
- Handles.Axes = Axes.new(axis)
- end
- end)
- events["HandleMouseDrag"] = Handles.MouseDrag:connect(function(axis, relativeAngle, deltaRadius)
- if selection then
- selection.CFrame = lastCFrame * CFrame.Angles(unpack(AngleFromAxis(axis,relativeAngle)))
- end
- end)
- end)
- function onUnequip()
- wait(0.01)
- Player.PlayerGui:findFirstChild("BuildGUI").Parent=nil
- Player.PlayerGui:findFirstChild("RotateHandles").Parent=nil
- Player.PlayerGui:findFirstChild("RotateSelectionBox").Parent=nil
- Player.PlayerGui:findFirstChild("RotateLasso").Parent=nil
- wait(0.01)
- if not RotateGui then
- MainGui.Parent=nil
- end
- if RotateGui then
- RotateGui.Parent = nil
- end
- if SelectBox then
- Selectbox.Adornee = nil
- Selectbox.Parent = nil
- end
- if Handles then
- Handles.Adornee = nil
- Handles.Parent = nil
- end
- if Lasso then
- Lasso.Part = nil
- Lasso.Parent = nil
- end
- wait(0.01)
- selection = nil
- to_undo_part = nil
- to_undo_cframe = nil
- wait(0.01)
- RotateGui.Selection.Part.Text = "[none]"
- RotateGui.Reset.BackgroundColor3 = Color3.new(27/255, 110/255, 27/255)
- Handles.Axes = Axes.new(Enum.Axis.X,Enum.Axis.Y,Enum.Axis.Z)
- wait(0.01)
- for i,v in pairs(undo_part) do
- undo_part[i] = nil -- deselected the tool, so get rid of undo history
- undo_cframe[i] = nil
- end
- wait(0.01)
- undo_part = {}
- undo_cframe = {}
- for ref in pairs(events) do
- events[ref]:disconnect()
- events[ref] = nil
- end
- wait(0.01)
- collectgarbage()
- end
- Tool.Unequipped:connect(function() onUnequip() end)
- end))
- Tool26.Name = "SquareDown"
- Tool26.Parent = mas
- Tool26.GripForward = Vector3.new(-1, -0, -0)
- Tool26.GripPos = Vector3.new(0, 0, -0.5)
- Tool26.GripRight = Vector3.new(0, 1, 0)
- Tool26.GripUp = Vector3.new(0, 0, 1)
- LocalScript27.Name = "Model Delete Local"
- LocalScript27.Parent = Tool26
- table.insert(cors,sandbox(LocalScript27,function()
- local Tool = script.Parent
- enabled = true
- local origTexture = Tool.TextureId
- --game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local inGui = false
- local inPalette = false
- local lockTime = 0
- function canSelectObject(part)
- return part and not (part.Locked) and (part.Position - script.Parent.Parent.Head.Position).Magnitude < 60
- end
- function findModel(part)
- while part ~= nil do
- if part.className == "Model" then
- return part
- end
- part = part.Parent
- end
- return nil
- end
- function cleanOrphanedModel(parent)
- if parent.className == "Model" then
- local children = parent:GetChildren()
- if #children == 0 then
- local oldParent = parent.Parent
- parent:Remove()
- cleanOrphanedModel(oldParent)
- end
- end
- end
- function on3dButton1Down(mouse)
- local part = mouse.Target
- if canSelectObject(part) then
- local model = findModel(part)
- local oldParent
- if model then
- if Instance.Lock(model) then
- if currentSelection == model then
- currentSelection = nil
- clearSelection()
- end
- oldParent = model.Parent
- --model:Remove()
- --The lock will expire in 5 seconds, which is good enough since we deleted the model
- end
- else
- if Instance.Lock(part) then
- if currentSelection == part then
- currentSelection = nil
- clearSelection()
- end
- oldParent = part.Parent
- part.Size=part.Size-Vector3.new(2,0,2)
- --The lock will expire in 5 seconds, which is good enough since we deleted the part
- end
- end
- cleanOrphanedModel(oldParent)
- end
- end
- function saveSelectionColor(instance)
- local children = instance:GetChildren()
- if children then
- for pos, child in pairs(children) do
- saveSelectionColor(child)
- end
- end
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- if Instance.Lock(partOrModel) then
- lockTime = time()
- currentSelection = partOrModel
- saveSelectionColor(currentSelection)
- selectionBox.Adornee = currentSelection
- end
- else
- if currentSelection ~= nil and time() - lockTime > 2 then
- --Maintain the lock
- if not(Instance.Lock(currentSelection)) then
- --we lost the lock
- clearSelection()
- else
- lockTime = time()
- end
- end
- end
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- Instance.Unlock(currentSelection)
- end
- currentSelectionColors = {}
- currentSelection = nil
- selectionLasso.Part = nil
- selectionBox.Adornee = nil
- end
- local alreadyMoving = false
- function on3dMouseMove(mouse)
- if alreadyMoving then
- return
- end
- alreadyMoving = true
- if not(inGui) and not(inPalette) then
- local part = mouse.Target
- if canSelectObject(part) then
- selectionLasso.Part = part
- local model = findModel(part)
- if model then
- setSelection(model)
- else
- setSelection(part)
- end
- else
- clearSelection()
- end
- end
- alreadyMoving = false
- end
- function onEquippedLocal(mouse)
- --Tool.TextureId = "rbxasset://icons/delete_sel.png"
- local character = script.Parent.Parent
- local player = game.Players:GetPlayerFromCharacter(character)
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- inGui = false
- inPalette = false
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- --mouse.Icon ="rbxasset://textures\\HammerCursor.png"
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model CanCollide Selection"
- selectionBox.Color = BrickColor.Green()
- selectionBox.Adornee = nil
- selectionBox.Parent = player.PlayerGui
- selectionLasso = Instance.new("SelectionPartLasso")
- selectionLasso.Name = "Model CanCollide Lasso"
- selectionLasso.Humanoid = character.Humanoid
- selectionLasso.archivable = false
- selectionLasso.Visible = true
- selectionLasso.Parent = game.workspace
- selectionLasso.Color = BrickColor.Green()
- alreadyMoving = false
- --buildGui(guiMain, mouse)
- end
- function onUnequippedLocal()
- Tool.TextureId = origTexture
- clearSelection()
- selectionBox:Remove()
- selectionLasso:Remove()
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- Script28.Name = "SwordScript"
- Script28.Parent = Tool26
- table.insert(cors,sandbox(Script28,function()
- -------- OMG HAX
- r = game:service("RunService")
- local damage = 0
- local slash_damage = 0
- sword = script.Parent.Handle
- Tool = script.Parent
- function attack()
- local anim = Instance.new("StringValue")
- anim.Name = "toolanim"
- anim.Value = "Slash"
- anim.Parent = Tool
- end
- function swordUp()
- Tool.GripForward = Vector3.new(-1,0,0)
- Tool.GripRight = Vector3.new(0,1,0)
- Tool.GripUp = Vector3.new(0,0,1)
- end
- function swordOut()
- Tool.GripForward = Vector3.new(0,0,1)
- Tool.GripRight = Vector3.new(0,-1,0)
- Tool.GripUp = Vector3.new(-1,0,0)
- end
- Tool.Enabled = true
- function onActivated()
- if not Tool.Enabled then
- return
- end
- Tool.Enabled = false
- local character = Tool.Parent;
- local humanoid = character.Humanoid
- if humanoid == nil then
- print("Humanoid not found")
- return
- end
- attack()
- wait(1)
- Tool.Enabled = true
- end
- function onEquipped()
- print("Running Delete")
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- end))
- Tool29.Name = "Vacuum"
- Tool29.Parent = mas
- Tool29.TextureId = "http://www.roblox.com/asset/?id=6803649"
- Tool29.GripForward = Vector3.new(-0, -2.18556949e-07, -1)
- Tool29.GripPos = Vector3.new(-1.5, -0.800000012, -2.70000005)
- Tool29.GripRight = Vector3.new(-1, 0, 0)
- Tool29.GripUp = Vector3.new(0, -1, 2.18556949e-07)
- Script30.Name = "SoundScript"
- Script30.Parent = Tool29
- table.insert(cors,sandbox(Script30,function()
- --Stickmasterluke
- sp=script.Parent
- handle=sp.Handle
- script.ChildAdded:connect(function(item)
- if item~=nil then
- local s=handle:FindFirstChild(item.Name)
- if s~=nil then
- s:Play()
- end
- item:remove()
- end
- end)
- end))
- Part31.Name = "Handle"
- Part31.Parent = Tool29
- Part31.BrickColor = BrickColor.new("White")
- Part31.Reflectance = 0.40000000596046
- Part31.Transparency = 1
- Part31.Rotation = Vector3.new(0, 0, 180)
- Part31.RotVelocity = Vector3.new(0.000934527023, -0.000159777162, 0.00355314207)
- Part31.Velocity = Vector3.new(-0.00583897438, -0.0120003168, 0.00432131672)
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.Size = Vector3.new(1.79999995, 2.5, 1)
- Part31.CFrame = CFrame.new(264.899994, 66.8998566, -558.5, -1, -0, 0, -0, -1, 0, -0, -0, 1)
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.Color = Color3.new(0.94902, 0.952941, 0.952941)
- Part31.Position = Vector3.new(264.899994, 66.8998566, -558.5)
- Part31.Orientation = Vector3.new(0, 0, -180)
- Part31.Color = Color3.new(0.94902, 0.952941, 0.952941)
- SpecialMesh32.Parent = Part31
- SpecialMesh32.MeshId = "http://www.roblox.com/asset/?id=84313478 "
- SpecialMesh32.Scale = Vector3.new(1.5, 1.5, 1.5)
- SpecialMesh32.TextureId = "http://www.roblox.com/asset/?id=84313638 "
- SpecialMesh32.MeshType = Enum.MeshType.FileMesh
- SpecialMesh32.Scale = Vector3.new(1.5, 1.5, 1.5)
- Part33.Name = "HosePart"
- Part33.Parent = Part31
- Part33.BrickColor = BrickColor.new("Pastel Blue")
- Part33.Transparency = 1
- Part33.Rotation = Vector3.new(90, 0, -180)
- Part33.RotVelocity = Vector3.new(0.000934527023, -0.000159777162, 0.00355314207)
- Part33.Velocity = Vector3.new(-0.00941004883, -0.00484789349, 0.00558218919)
- Part33.Locked = true
- Part33.FormFactor = Enum.FormFactor.Custom
- Part33.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- Part33.CFrame = CFrame.new(266.759094, 67.9312134, -559.085083, -0.999999523, 5.96046235e-08, 0, 0, 5.96046341e-08, -0.999999702, -5.96046164e-08, -0.999999523, -5.96046164e-08)
- Part33.Color = Color3.new(0.501961, 0.733333, 0.858824)
- Part33.Position = Vector3.new(266.759094, 67.9312134, -559.085083)
- Part33.Orientation = Vector3.new(89.9599991, 180, 0)
- Part33.Color = Color3.new(0.501961, 0.733333, 0.858824)
- SpecialMesh34.Parent = Part33
- SpecialMesh34.MeshId = "http://www.roblox.com/asset/?id=84313555 "
- SpecialMesh34.Scale = Vector3.new(1.5, 1.5, 1.5)
- SpecialMesh34.TextureId = "http://www.roblox.com/asset/?id=84313638 "
- SpecialMesh34.MeshType = Enum.MeshType.FileMesh
- SpecialMesh34.Scale = Vector3.new(1.5, 1.5, 1.5)
- Sound35.Name = "HoseSound"
- Sound35.Parent = Part31
- Sound35.SoundId = "http://www.roblox.com/asset/?id=81699764"
- Sound35.Volume = 0.69999998807907
- Motor36.Parent = Part31
- Motor36.C0 = CFrame.new(0, 0, 0, -0.999999881, 0, 0, 0, -0.99999994, 0, 0, 0, 0.999999881)
- Motor36.C1 = CFrame.new(1.85910034, -0.585082412, 1.0313549, -0.999999642, 0, -5.96046235e-08, 5.96046306e-08, 5.96046377e-08, -0.999999642, 0, -0.999999762, -5.96046235e-08)
- Motor36.Part0 = Part31
- Motor36.Part1 = Part33
- Motor36.MaxVelocity = 0.050000000745058
- LocalScript37.Parent = Tool29
- table.insert(cors,sandbox(LocalScript37,function()
- --Stickmasterluke
- --Altered by QuantumSama
- local Tool=script.Parent
- local Backpack = Tool.Handle
- rate=1/30
- equipped=false
- check=true
- debris=game:GetService("Debris")
- while Tool.Handle:FindFirstChild("Motor")==nil do
- wait()
- end
- local storeWeld=Tool.Handle.Motor
- local HoseSound
- function playsound(soundname)
- if soundname and Tool:FindFirstChild("SoundScript")~=nil then
- local soundtag=Instance.new("StringValue")
- soundtag.Name=soundname
- soundtag.Parent=Tool.SoundScript
- end
- end
- function setwelds()
- if storeWeld then
- storeWeld.Parent=Tool.Handle
- end
- if equipped then
- local ra=Tool.Parent:FindFirstChild("Right Arm")
- local t=Tool.Parent:FindFirstChild("Torso")
- if ra~=nil and t~=nil then
- local rightgrip=ra:FindFirstChild("RightGrip")
- if rightgrip~=nil then
- rightgrip.Part0=t
- rightgrip.C0=CFrame.new(0,0,1)*CFrame.Angles(0,0,math.pi)
- rightgrip.C1=CFrame.new(0,0,0)
- end
- end
- end
- end
- function doSuck()
- local plr=game.Players.LocalPlayer
- if plr~=nil then
- local radiusVec = Vector3.new(6,6,6)
- local handle = Tool:FindFirstChild("Handle")
- local hose = handle:FindFirstChild("HosePart")
- local hoseCFrame = hose.CFrame*CFrame.Angles(math.pi/2,0,0)
- local hoseTarget = hoseCFrame + hoseCFrame.lookVector*9
- local suckTarget = hoseCFrame + hoseCFrame.lookVector*3
- local suckPart = Instance.new("Part")
- suckPart.CanCollide = false
- suckPart.FormFactor = "Custom"
- --suckPart.Shape = "Ball"
- suckPart.Size = Vector3.new(.2,.2,.2)
- suckPart.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
- suckPart2 = suckPart:Clone()
- suckPart2.CFrame = hoseTarget + Vector3.new((math.random()-.5)*10,(math.random()-.5)*10,(math.random()-.5)*10)
- debris:AddItem(suckPart,3)
- debris:AddItem(suckPart2,3)
- suckPart.Parent = game.Workspace
- suckPart2.Parent = game.Workspace
- local suckRegion = Region3.new(hoseTarget.p - radiusVec, hoseTarget.p + radiusVec)
- local suckableParts = game.Workspace:FindPartsInRegion3(suckRegion, Tool.Parent,50)
- local limbChance = .075
- for i,v in pairs(suckableParts) do
- if v and v.Parent and v:IsA("BasePart") and not v:IsA("Terrain") and v:getMass() < 40 and not v:FindFirstChild("bp") then
- local bp = Instance.new("BodyPosition")
- bp.Name = "bp"
- bp.maxForce = Vector3.new(99999,99999,99999)
- bp.D = 3000
- bp.P = 30000
- bp.position = suckTarget.p
- debris:AddItem(bp,.5)
- local hum = v.Parent:FindFirstChild("Humanoid")
- if hum then
- if math.random() < limbChance or hum.Health == 0 then
- local creatorTag = Instance.new("ObjectValue")
- creatorTag.Value = plr
- creatorTag.Name = "creator"
- debris:AddItem(creatorTag,.5)
- creatorTag.Parent = hum
- v:BreakJoints()
- bp.Parent = v
- debris:AddItem(v,.15)
- end
- else
- bp.Parent = v
- if not v.Parent:IsA("Tool") then
- delay(0,function()
- local pos = v.Position
- wait(.15)
- if (pos-v.Position).magnitude > .1 then
- v:Destroy()
- end
- end)
- end
- end
- end
- end
- end
- end
- function onEquipped(mouse)
- if mouse==nil then
- print("Mouse not found")
- return
- end
- equipped=true
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function()
- if check and equipped then
- check=false
- mouse.Icon="rbxasset://textures\\GunWaitCursor.png"
- local hum=Tool.Parent:FindFirstChild("Humanoid")
- local torso=Tool.Parent:FindFirstChild("Torso")
- --local rightArm=Tool.Parent:FindFirstChild("Right Arm")
- if torso and hum then
- if hum.Health>0 then
- HoseSound = Backpack:FindFirstChild("HoseSound")
- if HoseSound then HoseSound:Play() end
- --theanim:Play()
- playsound("Spray")
- if storeWeld then
- storeWeld.DesiredAngle=-.5
- end
- local frames = 10
- for i = 1, frames do
- if not equipped then break end
- doSuck()
- wait(.2)
- end
- if storeWeld then
- storeWeld.DesiredAngle=0
- end
- wait(2)
- end
- end
- mouse.Icon="rbxasset://textures\\GunCursor.png"
- check=true
- end
- end)
- setwelds()
- end
- function onUnequipped()
- equipped=false
- if HoseSound then HoseSound:Stop() end
- end
- Tool.Equipped:connect(onEquipped)
- Tool.Unequipped:connect(onUnequipped)
- setwelds()
- end))
- HopperBin38.Name = "CFrame"
- HopperBin38.Parent = mas
- LocalScript39.Name = "CFrameScript"
- LocalScript39.Parent = HopperBin38
- table.insert(cors,sandbox(LocalScript39,function()
- CurrentObject = nil
- PositionValue = Vector3.new(0, 0, 0)
- RotationValue = Vector3.new(0, 0, 0)
- player = game.Players.LocalPlayer
- repeat wait() until player.Character
- function onClicked(target)
- if target then
- if not target.Locked then
- CurrentObject = target
- selection.Adornee = CurrentObject
- selection.Color = BrickColor.new("Pastel Blue")
- PositionValue = target.CFrame.p
- local a, b, c = target.CFrame:toEulerAnglesXYZ()
- RotationValue = Vector3.new(math.deg(a), math.deg(b), math.deg(c))
- updateGui(PositionValue, RotationValue)
- else
- CurrentObject = nil
- selection.Adornee = nil
- PositionValue = Vector3.new(0, 0, 0)
- RotationValue = Vector3.new(0, 0, 0)
- updateGui(PositionValue, RotationValue)
- selection.Color = BrickColor.Blue()
- end
- else
- CurrentObject = nil
- selection.Adornee = nil
- PositionValue = Vector3.new(0, 0, 0)
- RotationValue = Vector3.new(0, 0, 0)
- updateGui(PositionValue, RotationValue)
- selection.Color = BrickColor.Blue()
- end end
- function onMoved(target)
- if not CurrentObject then
- if target then
- if not target.Locked then
- selection.Adornee = target
- else
- selection.Adornee = nil
- end
- else
- selection.Adornee = nil
- end end end
- function onSelected(mouse)
- if mygui then
- mygui.Parent = player.PlayerGui
- elseif player.PlayerGui:findFirstChild("CFrameGui") == nil then
- mygui = script.Parent.CFrameGui:clone()
- mygui.Parent = player.PlayerGui
- selection = Instance.new("SelectionBox")
- selection.Parent = player.PlayerGui
- end
- mouse.Button1Down:connect(function() onClicked(mouse.Target) end)
- mouse.Move:connect(function() onMoved(mouse.Target) end)
- mygui.Frame.PosX.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosX.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-0.1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosX.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(-0.01, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosX.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0.1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosX.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosX.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0.01, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -0.1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, -0.01, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0.1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosY.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0.01, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Minus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, -0.01) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosZ.Plus0.MouseButton1Click:connect(function() PositionValue = PositionValue + Vector3.new(0, 0, 0.01) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosLookVector.Minus2.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(-1, -1, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosLookVector.Minus1.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(-0.1, -0.1, -0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosLookVector.Plus1.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(0.1, 0.1, 0.1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.PosLookVector.Plus2.MouseButton1Click:connect(function() PositionValue = PositionValue + CurrentObject.CFrame.lookVector * Vector3.new(1, 1, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotX.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(-15, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotX.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(-1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotX.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(1, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotX.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(15, 0, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotY.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, -15, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotY.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, -1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotY.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 1, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotY.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 15, 0) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotZ.Minus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, -15) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotZ.Minus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, -1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- mygui.Frame.RotZ.Plus1.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, 1) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end) mygui.Frame.RotZ.Plus2.MouseButton1Click:connect(function() RotationValue = RotationValue + Vector3.new(0, 0, 15) changeCFrame(PositionValue, RotationValue) updateGui(PositionValue, RotationValue) end)
- end
- function onDeselected(mouse)
- if mygui then
- selection:remove()
- CurrentObject = nil
- PositionValue = Vector3.new(1, 1, 1)
- RotationValue = Vector3.new(1, 1, 1)
- mygui:remove()
- mygui = nil
- else
- m=Instance.new("Message")
- m.Text="Warning! mygui not found in deselect!"
- m.Parent=game.Workspace
- wait(1)
- m:Remove()
- end
- end
- function updateGui(pos, rot)
- mygui.Frame.PosX.Text.Text = string.format("X: %0.2f", pos.x)
- mygui.Frame.PosY.Text.Text = string.format("Y: %0.2f", pos.y)
- mygui.Frame.PosZ.Text.Text = string.format("Z: %0.2f", pos.z)
- mygui.Frame.RotX.Text.Text = string.format("X: %0.2f", rot.x)
- mygui.Frame.RotY.Text.Text = string.format("Y: %0.2f", rot.y)
- mygui.Frame.RotZ.Text.Text = string.format("Z: %0.2f", rot.z)
- end
- function changeCFrame(pos, rot)
- CurrentObject.CFrame = CFrame.new(pos) * CFrame.fromEulerAnglesXYZ(math.rad(rot.x), math.rad(rot.y), math.rad(rot.z))
- end
- script.Parent.Selected:connect(onSelected)
- script.Parent.Deselected:connect(onDeselected)
- end))
- ScreenGui40.Name = "CFrameGui"
- ScreenGui40.Parent = HopperBin38
- Frame41.Parent = ScreenGui40
- Frame41.Transparency = 0.44999998807907
- Frame41.Size = UDim2.new(0, 190, 0, 185)
- Frame41.Position = UDim2.new(0, 0, 1, -186)
- Frame41.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame41.BackgroundTransparency = 0.44999998807907
- Frame41.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel42.Name = "Title"
- TextLabel42.Parent = Frame41
- TextLabel42.Transparency = 1
- TextLabel42.Size = UDim2.new(1, 0, 0, 16)
- TextLabel42.Text = "Advanced CFrame Tool"
- TextLabel42.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
- TextLabel42.BackgroundTransparency = 1
- TextLabel42.TextColor3 = Color3.new(1, 1, 1)
- TextLabel43.Parent = Frame41
- TextLabel43.Transparency = 1
- TextLabel43.Size = UDim2.new(0, 50, 0, 16)
- TextLabel43.Text = "Selection's Position"
- TextLabel43.Position = UDim2.new(0.5, -25, 0, 21)
- TextLabel43.BackgroundColor3 = Color3.new(0.952941, 0.94902, 0.960784)
- TextLabel43.BackgroundTransparency = 1
- TextLabel43.TextColor3 = Color3.new(1, 1, 1)
- Frame44.Name = "PosX"
- Frame44.Parent = Frame41
- Frame44.Transparency = 1
- Frame44.Size = UDim2.new(1, -10, 0, 16)
- Frame44.Position = UDim2.new(0, 5, 0, 41)
- Frame44.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
- Frame44.BackgroundTransparency = 1
- TextLabel45.Name = "Text"
- TextLabel45.Parent = Frame44
- TextLabel45.Size = UDim2.new(1, -96, 1, 0)
- TextLabel45.Text = "X: 0"
- TextLabel45.Position = UDim2.new(0, 48, 0, 0)
- TextLabel45.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel45.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel45.TextColor3 = Color3.new(0, 0, 0)
- TextButton46.Name = "Minus2"
- TextButton46.Parent = Frame44
- TextButton46.Size = UDim2.new(0, 16, 0, 16)
- TextButton46.Text = "--"
- TextButton46.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton46.BorderColor3 = Color3.new(0, 0, 0)
- TextButton46.TextColor3 = Color3.new(0, 0, 0)
- TextButton47.Name = "Plus1"
- TextButton47.Parent = Frame44
- TextButton47.Size = UDim2.new(0, 16, 0, 16)
- TextButton47.Text = "+"
- TextButton47.Position = UDim2.new(1, -32, 0, 0)
- TextButton47.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton47.BorderColor3 = Color3.new(0, 0, 0)
- TextButton47.TextColor3 = Color3.new(0, 0, 0)
- TextButton48.Name = "Minus1"
- TextButton48.Parent = Frame44
- TextButton48.Size = UDim2.new(0, 16, 0, 16)
- TextButton48.Text = "-"
- TextButton48.Position = UDim2.new(0, 16, 0, 0)
- TextButton48.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton48.BorderColor3 = Color3.new(0, 0, 0)
- TextButton48.TextColor3 = Color3.new(0, 0, 0)
- TextButton49.Name = "Plus2"
- TextButton49.Parent = Frame44
- TextButton49.Size = UDim2.new(0, 16, 0, 16)
- TextButton49.Text = "++"
- TextButton49.Position = UDim2.new(1, -16, 0, 0)
- TextButton49.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton49.BorderColor3 = Color3.new(0, 0, 0)
- TextButton49.TextColor3 = Color3.new(0, 0, 0)
- TextButton50.Name = "Minus0"
- TextButton50.Parent = Frame44
- TextButton50.Size = UDim2.new(0, 16, 0, 16)
- TextButton50.Text = "~"
- TextButton50.Position = UDim2.new(0, 32, 0, 0)
- TextButton50.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton50.BorderColor3 = Color3.new(0, 0, 0)
- TextButton50.TextColor3 = Color3.new(0, 0, 0)
- TextButton51.Name = "Plus0"
- TextButton51.Parent = Frame44
- TextButton51.Size = UDim2.new(0, 16, 0, 16)
- TextButton51.Text = "~"
- TextButton51.Position = UDim2.new(1, -48, 0, 0)
- TextButton51.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton51.BorderColor3 = Color3.new(0, 0, 0)
- TextButton51.TextColor3 = Color3.new(0, 0, 0)
- Frame52.Name = "PosY"
- Frame52.Parent = Frame41
- Frame52.Transparency = 1
- Frame52.Size = UDim2.new(1, -10, 0, 16)
- Frame52.Position = UDim2.new(0, 5, 0, 57)
- Frame52.BackgroundColor3 = Color3.new(0.945098, 0.941177, 0.952941)
- Frame52.BackgroundTransparency = 1
- Frame52.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel53.Name = "Text"
- TextLabel53.Parent = Frame52
- TextLabel53.Size = UDim2.new(1, -96, 1, 0)
- TextLabel53.Text = "Y: 0"
- TextLabel53.Position = UDim2.new(0, 48, 0, 0)
- TextLabel53.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel53.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel53.TextColor3 = Color3.new(0, 0, 0)
- TextButton54.Name = "Minus2"
- TextButton54.Parent = Frame52
- TextButton54.Size = UDim2.new(0, 16, 0, 16)
- TextButton54.Text = "--"
- TextButton54.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton54.BorderColor3 = Color3.new(0, 0, 0)
- TextButton54.TextColor3 = Color3.new(0, 0, 0)
- TextButton55.Name = "Plus1"
- TextButton55.Parent = Frame52
- TextButton55.Size = UDim2.new(0, 16, 0, 16)
- TextButton55.Text = "+"
- TextButton55.Position = UDim2.new(1, -32, 0, 0)
- TextButton55.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton55.BorderColor3 = Color3.new(0, 0, 0)
- TextButton55.TextColor3 = Color3.new(0, 0, 0)
- TextButton56.Name = "Minus1"
- TextButton56.Parent = Frame52
- TextButton56.Size = UDim2.new(0, 16, 0, 16)
- TextButton56.Text = "-"
- TextButton56.Position = UDim2.new(0, 16, 0, 0)
- TextButton56.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton56.BorderColor3 = Color3.new(0, 0, 0)
- TextButton56.TextColor3 = Color3.new(0, 0, 0)
- TextButton57.Name = "Plus2"
- TextButton57.Parent = Frame52
- TextButton57.Size = UDim2.new(0, 16, 0, 16)
- TextButton57.Text = "++"
- TextButton57.Position = UDim2.new(1, -16, 0, 0)
- TextButton57.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton57.BorderColor3 = Color3.new(0, 0, 0)
- TextButton57.TextColor3 = Color3.new(0, 0, 0)
- TextButton58.Name = "Minus0"
- TextButton58.Parent = Frame52
- TextButton58.Size = UDim2.new(0, 16, 0, 16)
- TextButton58.Text = "~"
- TextButton58.Position = UDim2.new(0, 32, 0, 0)
- TextButton58.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton58.BorderColor3 = Color3.new(0, 0, 0)
- TextButton58.TextColor3 = Color3.new(0, 0, 0)
- TextButton59.Name = "Plus0"
- TextButton59.Parent = Frame52
- TextButton59.Size = UDim2.new(0, 16, 0, 16)
- TextButton59.Text = "~"
- TextButton59.Position = UDim2.new(1, -48, 0, 0)
- TextButton59.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton59.BorderColor3 = Color3.new(0, 0, 0)
- TextButton59.TextColor3 = Color3.new(0, 0, 0)
- Frame60.Name = "PosZ"
- Frame60.Parent = Frame41
- Frame60.Transparency = 1
- Frame60.Size = UDim2.new(1, -10, 0, 16)
- Frame60.Position = UDim2.new(0, 5, 0, 73)
- Frame60.BackgroundColor3 = Color3.new(0.94902, 0.945098, 0.956863)
- Frame60.BackgroundTransparency = 1
- Frame60.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel61.Name = "Text"
- TextLabel61.Parent = Frame60
- TextLabel61.Size = UDim2.new(1, -96, 1, 0)
- TextLabel61.Text = "Z: 0"
- TextLabel61.Position = UDim2.new(0, 48, 0, 0)
- TextLabel61.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel61.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel61.TextColor3 = Color3.new(0, 0, 0)
- TextButton62.Name = "Minus2"
- TextButton62.Parent = Frame60
- TextButton62.Size = UDim2.new(0, 16, 0, 16)
- TextButton62.Text = "--"
- TextButton62.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton62.BorderColor3 = Color3.new(0, 0, 0)
- TextButton62.TextColor3 = Color3.new(0, 0, 0)
- TextButton63.Name = "Plus1"
- TextButton63.Parent = Frame60
- TextButton63.Size = UDim2.new(0, 16, 0, 16)
- TextButton63.Text = "+"
- TextButton63.Position = UDim2.new(1, -32, 0, 0)
- TextButton63.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton63.BorderColor3 = Color3.new(0, 0, 0)
- TextButton63.TextColor3 = Color3.new(0, 0, 0)
- TextButton64.Name = "Minus1"
- TextButton64.Parent = Frame60
- TextButton64.Size = UDim2.new(0, 16, 0, 16)
- TextButton64.Text = "-"
- TextButton64.Position = UDim2.new(0, 16, 0, 0)
- TextButton64.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton64.BorderColor3 = Color3.new(0, 0, 0)
- TextButton64.TextColor3 = Color3.new(0, 0, 0)
- TextButton65.Name = "Plus2"
- TextButton65.Parent = Frame60
- TextButton65.Size = UDim2.new(0, 16, 0, 16)
- TextButton65.Text = "++"
- TextButton65.Position = UDim2.new(1, -16, 0, 0)
- TextButton65.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton65.BorderColor3 = Color3.new(0, 0, 0)
- TextButton65.TextColor3 = Color3.new(0, 0, 0)
- TextButton66.Name = "Minus0"
- TextButton66.Parent = Frame60
- TextButton66.Size = UDim2.new(0, 16, 0, 16)
- TextButton66.Text = "~"
- TextButton66.Position = UDim2.new(0, 32, 0, 0)
- TextButton66.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton66.BorderColor3 = Color3.new(0, 0, 0)
- TextButton66.TextColor3 = Color3.new(0, 0, 0)
- TextButton67.Name = "Plus0"
- TextButton67.Parent = Frame60
- TextButton67.Size = UDim2.new(0, 16, 0, 16)
- TextButton67.Text = "~"
- TextButton67.Position = UDim2.new(1, -48, 0, 0)
- TextButton67.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton67.BorderColor3 = Color3.new(0, 0, 0)
- TextButton67.TextColor3 = Color3.new(0, 0, 0)
- Frame68.Name = "RotX"
- Frame68.Parent = Frame41
- Frame68.Transparency = 1
- Frame68.Size = UDim2.new(1, -10, 0, 16)
- Frame68.Position = UDim2.new(0, 5, 0, 131)
- Frame68.BackgroundColor3 = Color3.new(0.941177, 0.937255, 0.94902)
- Frame68.BackgroundTransparency = 1
- TextLabel69.Name = "Text"
- TextLabel69.Parent = Frame68
- TextLabel69.Size = UDim2.new(1, -64, 1, 0)
- TextLabel69.Text = "X: 0"
- TextLabel69.Position = UDim2.new(0, 32, 0, 0)
- TextLabel69.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel69.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel69.TextColor3 = Color3.new(0, 0, 0)
- TextButton70.Name = "Minus2"
- TextButton70.Parent = Frame68
- TextButton70.Size = UDim2.new(0, 16, 0, 16)
- TextButton70.Text = "--"
- TextButton70.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton70.BorderColor3 = Color3.new(0, 0, 0)
- TextButton70.TextColor3 = Color3.new(0, 0, 0)
- TextButton71.Name = "Plus1"
- TextButton71.Parent = Frame68
- TextButton71.Size = UDim2.new(0, 16, 0, 16)
- TextButton71.Text = "+"
- TextButton71.Position = UDim2.new(1, -32, 0, 0)
- TextButton71.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton71.BorderColor3 = Color3.new(0, 0, 0)
- TextButton71.TextColor3 = Color3.new(0, 0, 0)
- TextButton72.Name = "Minus1"
- TextButton72.Parent = Frame68
- TextButton72.Size = UDim2.new(0, 16, 0, 16)
- TextButton72.Text = "-"
- TextButton72.Position = UDim2.new(0, 16, 0, 0)
- TextButton72.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton72.BorderColor3 = Color3.new(0, 0, 0)
- TextButton72.TextColor3 = Color3.new(0, 0, 0)
- TextButton73.Name = "Plus2"
- TextButton73.Parent = Frame68
- TextButton73.Size = UDim2.new(0, 16, 0, 16)
- TextButton73.Text = "++"
- TextButton73.Position = UDim2.new(1, -16, 0, 0)
- TextButton73.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton73.BorderColor3 = Color3.new(0, 0, 0)
- TextButton73.TextColor3 = Color3.new(0, 0, 0)
- Frame74.Name = "RotY"
- Frame74.Parent = Frame41
- Frame74.Transparency = 1
- Frame74.Size = UDim2.new(1, -10, 0, 16)
- Frame74.Position = UDim2.new(0, 5, 0, 147)
- Frame74.BackgroundColor3 = Color3.new(0.945098, 0.941177, 0.952941)
- Frame74.BackgroundTransparency = 1
- Frame74.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel75.Name = "Text"
- TextLabel75.Parent = Frame74
- TextLabel75.Size = UDim2.new(1, -64, 1, 0)
- TextLabel75.Text = "Y: 0"
- TextLabel75.Position = UDim2.new(0, 32, 0, 0)
- TextLabel75.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel75.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel75.TextColor3 = Color3.new(0, 0, 0)
- TextButton76.Name = "Minus2"
- TextButton76.Parent = Frame74
- TextButton76.Size = UDim2.new(0, 16, 0, 16)
- TextButton76.Text = "--"
- TextButton76.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton76.BorderColor3 = Color3.new(0, 0, 0)
- TextButton76.TextColor3 = Color3.new(0, 0, 0)
- TextButton77.Name = "Plus1"
- TextButton77.Parent = Frame74
- TextButton77.Size = UDim2.new(0, 16, 0, 16)
- TextButton77.Text = "+"
- TextButton77.Position = UDim2.new(1, -32, 0, 0)
- TextButton77.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton77.BorderColor3 = Color3.new(0, 0, 0)
- TextButton77.TextColor3 = Color3.new(0, 0, 0)
- TextButton78.Name = "Minus1"
- TextButton78.Parent = Frame74
- TextButton78.Size = UDim2.new(0, 16, 0, 16)
- TextButton78.Text = "-"
- TextButton78.Position = UDim2.new(0, 16, 0, 0)
- TextButton78.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton78.BorderColor3 = Color3.new(0, 0, 0)
- TextButton78.TextColor3 = Color3.new(0, 0, 0)
- TextButton79.Name = "Plus2"
- TextButton79.Parent = Frame74
- TextButton79.Size = UDim2.new(0, 16, 0, 16)
- TextButton79.Text = "++"
- TextButton79.Position = UDim2.new(1, -16, 0, 0)
- TextButton79.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton79.BorderColor3 = Color3.new(0, 0, 0)
- TextButton79.TextColor3 = Color3.new(0, 0, 0)
- Frame80.Name = "RotZ"
- Frame80.Parent = Frame41
- Frame80.Transparency = 1
- Frame80.Size = UDim2.new(1, -10, 0, 16)
- Frame80.Position = UDim2.new(0, 5, 0, 163)
- Frame80.BackgroundColor3 = Color3.new(0.94902, 0.945098, 0.956863)
- Frame80.BackgroundTransparency = 1
- Frame80.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel81.Name = "Text"
- TextLabel81.Parent = Frame80
- TextLabel81.Size = UDim2.new(1, -64, 1, 0)
- TextLabel81.Text = "Z: 0"
- TextLabel81.Position = UDim2.new(0, 32, 0, 0)
- TextLabel81.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel81.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel81.TextColor3 = Color3.new(0, 0, 0)
- TextButton82.Name = "Minus2"
- TextButton82.Parent = Frame80
- TextButton82.Size = UDim2.new(0, 16, 0, 16)
- TextButton82.Text = "--"
- TextButton82.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton82.BorderColor3 = Color3.new(0, 0, 0)
- TextButton82.TextColor3 = Color3.new(0, 0, 0)
- TextButton83.Name = "Plus1"
- TextButton83.Parent = Frame80
- TextButton83.Size = UDim2.new(0, 16, 0, 16)
- TextButton83.Text = "+"
- TextButton83.Position = UDim2.new(1, -32, 0, 0)
- TextButton83.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton83.BorderColor3 = Color3.new(0, 0, 0)
- TextButton83.TextColor3 = Color3.new(0, 0, 0)
- TextButton84.Name = "Minus1"
- TextButton84.Parent = Frame80
- TextButton84.Size = UDim2.new(0, 16, 0, 16)
- TextButton84.Text = "-"
- TextButton84.Position = UDim2.new(0, 16, 0, 0)
- TextButton84.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
- TextButton84.BorderColor3 = Color3.new(0, 0, 0)
- TextButton84.TextColor3 = Color3.new(0, 0, 0)
- TextButton85.Name = "Plus2"
- TextButton85.Parent = Frame80
- TextButton85.Size = UDim2.new(0, 16, 0, 16)
- TextButton85.Text = "++"
- TextButton85.Position = UDim2.new(1, -16, 0, 0)
- TextButton85.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton85.BorderColor3 = Color3.new(0, 0, 0)
- TextButton85.TextColor3 = Color3.new(0, 0, 0)
- TextLabel86.Name = "TextLabel2"
- TextLabel86.Parent = Frame41
- TextLabel86.Transparency = 1
- TextLabel86.Size = UDim2.new(0, 50, 0, 16)
- TextLabel86.Text = "Rotate Selection:"
- TextLabel86.Position = UDim2.new(0.5, -25, 0, 110)
- TextLabel86.BackgroundColor3 = Color3.new(0.956863, 0.952941, 0.964706)
- TextLabel86.BackgroundTransparency = 1
- TextLabel86.TextColor3 = Color3.new(1, 1, 1)
- Frame87.Name = "PosLookVector"
- Frame87.Parent = Frame41
- Frame87.Transparency = 1
- Frame87.Size = UDim2.new(1, -10, 0, 16)
- Frame87.Position = UDim2.new(0, 5, 0, 89)
- Frame87.BackgroundColor3 = Color3.new(0.952941, 0.94902, 0.960784)
- Frame87.BackgroundTransparency = 1
- Frame87.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel88.Name = "Text"
- TextLabel88.Parent = Frame87
- TextLabel88.Size = UDim2.new(1, -64, 1, 0)
- TextLabel88.Text = "LookVector"
- TextLabel88.Position = UDim2.new(0, 32, 0, 0)
- TextLabel88.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel88.BorderColor3 = Color3.new(0, 0, 0)
- TextLabel88.TextColor3 = Color3.new(0, 0, 0)
- TextButton89.Name = "Minus2"
- TextButton89.Parent = Frame87
- TextButton89.Size = UDim2.new(0, 16, 0, 16)
- TextButton89.Text = "--"
- TextButton89.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton89.BorderColor3 = Color3.new(0, 0, 0)
- TextButton89.TextColor3 = Color3.new(0, 0, 0)
- TextButton90.Name = "Plus1"
- TextButton90.Parent = Frame87
- TextButton90.Size = UDim2.new(0, 16, 0, 16)
- TextButton90.Text = "+"
- TextButton90.Position = UDim2.new(1, -32, 0, 0)
- TextButton90.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton90.BorderColor3 = Color3.new(0, 0, 0)
- TextButton90.TextColor3 = Color3.new(0, 0, 0)
- TextButton91.Name = "Minus1"
- TextButton91.Parent = Frame87
- TextButton91.Size = UDim2.new(0, 16, 0, 16)
- TextButton91.Text = "-"
- TextButton91.Position = UDim2.new(0, 16, 0, 0)
- TextButton91.BackgroundColor3 = Color3.new(0.803922, 0.803922, 0.803922)
- TextButton91.BorderColor3 = Color3.new(0, 0, 0)
- TextButton91.TextColor3 = Color3.new(0, 0, 0)
- TextButton92.Name = "Plus2"
- TextButton92.Parent = Frame87
- TextButton92.Size = UDim2.new(0, 16, 0, 16)
- TextButton92.Text = "++"
- TextButton92.Position = UDim2.new(1, -16, 0, 0)
- TextButton92.BackgroundColor3 = Color3.new(0.372549, 0.372549, 0.372549)
- TextButton92.BorderColor3 = Color3.new(0, 0, 0)
- TextButton92.TextColor3 = Color3.new(0, 0, 0)
- HopperBin93.Name = "Reset"
- HopperBin93.Parent = mas
- Script94.Parent = HopperBin93
- table.insert(cors,sandbox(Script94,function()
- bin = script.Parent
- resetted = false
- function dis(part)
- while (part.Transparency < 1) do
- part.Transparency = part.Transparency+0.1
- wait()
- end
- part:remove()
- end
- function ref(part)
- while (part.Reflectance < 1) do
- part.Reflectance = part.Reflectance+0.1
- wait()
- end
- part:remove()
- end
- function onButton1Down(mouse)
- resetted = true
- local player = game.Players.LocalPlayer
- local char = player.Character
- if (char ~= nil) then
- local p = char:GetChildren()
- for i=1,#p do
- if (p[i].className == "Part") then
- local cA = coroutine.create(function() dis(p[i]) end)
- local cB = coroutine.create(function() ref(p[i]) end)
- coroutine.resume(cA)
- coroutine.resume(cB)
- end
- end
- end
- end
- function onSelected(mouse)
- print("Reset Selected");
- if (resetted == true) then return end
- mouse.Button1Down:connect(onButton1Down)
- end
- bin.Selected:connect(onSelected)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement