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")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- LocalScript4 = Instance.new("LocalScript")
- LocalScript5 = Instance.new("LocalScript")
- Script6 = Instance.new("Script")
- Script7 = Instance.new("Script")
- LocalScript8 = Instance.new("LocalScript")
- IntValue9 = Instance.new("IntValue")
- Script10 = Instance.new("Script")
- ObjectValue11 = Instance.new("ObjectValue")
- Script12 = Instance.new("Script")
- BoolValue13 = Instance.new("BoolValue")
- BoolValue14 = Instance.new("BoolValue")
- Tool0.Name = "Metamorphosis"
- Tool0.Parent = mas
- Tool0.TextureId = "http://www.roblox.com/asset/?id=121561117"
- Tool0.GripForward = Vector3.new(0, 0.287347883, -0.957826257)
- Tool0.GripPos = Vector3.new(0, -0.300000012, 0.100000001)
- Tool0.GripUp = Vector3.new(0, 0.957826257, 0.287347883)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Dark stone grey")
- Part1.Reflectance = 0.40000000596046
- Part1.Rotation = Vector3.new(-18.4499989, 16.6800003, 5.46999979)
- Part1.CanCollide = false
- Part1.Locked = true
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.Size = Vector3.new(1, 0.800000012, 1)
- Part1.CFrame = CFrame.new(-28.0952377, 164.13063, 105.529587, 0.953575373, -0.0913178995, 0.286975592, -1.57025526e-14, 0.952918589, 0.303226173, -0.301154405, -0.289149046, 0.908679724)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part1.Position = Vector3.new(-28.0952377, 164.13063, 105.529587)
- Part1.Orientation = Vector3.new(-17.6499996, 17.5299988, 0)
- Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=37241605"
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=37241842"
- SpecialMesh2.VertexColor = Vector3.new(0.100000001, 0.5, 0)
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(2, 2, 2)
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=138208170"
- Sound3.Volume = 1
- LocalScript4.Name = "MetamorphScript"
- LocalScript4.Parent = Tool0
- table.insert(cors,sandbox(LocalScript4,function()
- function waitForChild(instance, name)
- while not instance:FindFirstChild(name) do
- instance.ChildAdded:wait()
- end
- end
- local Tool = script.Parent
- enabled = true
- game:GetService("ContentProvider"):Preload("rbxasset://icons/delete_sel.png")
- local cluster = nil
- local selectionBox
- local currentSelection
- local currentSelectionColors = {}
- local selectionLasso
- local deleteDistance = 10000
- local player = nil
- --local playerModel = nil
- local playerModel = game.Workspace
- local buildingPlate = nil
- local highlight = false
- local megaClusterSelectionBox = Instance.new("Part")
- megaClusterSelectionBox.FormFactor = "Custom"
- megaClusterSelectionBox.Size = Vector3.new(4, 4, 4) -- a little thicker than 4x4x4 unit clusterpart; just so selection box is more easily seen
- megaClusterSelectionBox.Transparency = 1
- megaClusterSelectionBox.Anchored = true
- megaClusterSelectionBox.CanCollide = false
- megaClusterSelectionBox.Parent = nil
- waitForChild(Tool, "IsRestricted")
- local isRestricted = Tool.IsRestricted.Value
- waitForChild(Tool, "AutoWedgeClusterParts")
- local autoWedgeClusterParts = Tool.AutoWedgeClusterParts.Value
- function hint(label)
- -- Pass in a string, it shows a top hint. (Replaces previous hint, if exists)
- _player = game.Players:GetPlayerFromCharacter(Tool.Parent)
- if(_player ~= nil and _player.PlayerGui:FindFirstChild("topHint")~=nil) then
- local topHint = _player.PlayerGui.topHint
- topHint.Add.Label.Value = label
- topHint.Add.Width.Value = 3 -- widest width
- topHint.Add.Time.Value = 5
- topHint.Add.Disabled = true
- topHint.Add.Disabled = false
- end
- end
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld")
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = CFrame.new()
- weld.C1 = b.CFrame:inverse() * a.CFrame
- weld.Parent = a
- return weld;
- end
- function canDeleteObject(part)
- -- let them delete anything that they created *or* anything on their baseplate
- return part and part:IsA("BasePart") and (part.Position - Tool.Parent.Head.Position).Magnitude < deleteDistance and (isChildOfMyModel(part) or partInBounds(part))
- end
- -- For Restricting Stamper Tool (isRestricted)
- function inBounds(part)
- if part == nil then return false end
- if part:IsA("Part") or part:IsA("WedgePart") or part:IsA("TrussPart") then
- if not partInBounds(part) then return false end
- elseif part:IsA("Model") then
- local primPart = object.PrimaryPart
- if not partInBounds(primPart) then return false end
- end
- return true
- end
- function partInBounds(part)
- local xOne = buildingPlate.Position.x + buildingPlate.Size.x/2
- local xTwo = buildingPlate.Position.x - buildingPlate.Size.x/2
- local zOne = buildingPlate.Position.z + buildingPlate.Size.z/2
- local zTwo = buildingPlate.Position.z - buildingPlate.Size.z/2
- if part.Position.x > xOne or part.Position.x < xTwo then return false end
- if part.Position.z > zOne or part.Position.z < zTwo then return false end
- return true
- end
- function findModel(part)
- while part ~= nil do
- if part.className == "Model" and part.Name ~= playerModel.Name and part.Name ~= "GarbageParts" then
- return part
- elseif part.Name == playerModel.Name or part.Name == "GarbageParts" then
- return nil
- end
- part = part.Parent
- end
- return nil
- end
- function cleanOrphanedModel(parent)
- if not parent then return end
- if parent.className == "Model" then
- local children = parent:GetChildren()
- if #children == 0 and parent.Name ~= "GarbageParts" then
- local oldParent = parent.Parent
- parent:Remove()
- cleanOrphanedModel(oldParent)
- end
- end
- end
- function isChildOfMyModel(part)
- if not playerModel then return true end
- if playerModel:IsAncestorOf(part) then
- return true
- else return false end
- end
- -- Cyrion's auto-wedge fcn:
- --sets cell x, y, z to default material if parameter is provided, if not sets cell x, y, z to be whatever material it previously was
- --returns true if made a wedge, false if the cell remains a block
- function MakeWedge(x, y, z, defaultmaterial)
- local c = game.Workspace.Terrain
- --gather info about all the cells around x, y, z
- surroundings = {} --surroundings is a 3 x 3 x 3 array of the material of the cells adjacent to x, y, z
- for i = x - 1, x + 1 do
- surroundings[i] = {}
- for j = y - 1, y + 1 do
- surroundings[i][j] = {}
- for k = z - 1, z + 1 do
- local material, wedge, rotation = c:GetCell(i, j, k)
- surroundings[i][j][k] = material.Value
- end
- end
- end
- --make some useful arrays and counters
- local sides = {} --sides is an array of the material of the 4 adjacent sides
- sides[0] = surroundings[x - 1][y][z]
- sides[1] = surroundings[x][y][z + 1]
- sides[2] = surroundings[x + 1][y][z]
- sides[3] = surroundings[x][y][z - 1]
- local adjacentSides = 0
- for n = 0, 3 do
- if sides[n] > 0 then
- adjacentSides = adjacentSides + 1
- end
- end
- local sidesAbove = {} --sides is an array of the material of the 4 adjacent sides 1 height above
- sidesAbove[0] = surroundings[x - 1][y + 1][z]
- sidesAbove[1] = surroundings[x][y + 1][z + 1]
- sidesAbove[2] = surroundings[x + 1][y + 1][z]
- sidesAbove[3] = surroundings[x][y + 1][z - 1]
- local adjacentSidesAbove = 0
- for n = 0, 3 do
- if sidesAbove[n] > 0 then
- adjacentSidesAbove = adjacentSidesAbove + 1
- end
- end
- local corners = {} --corners is an array of the material of the 4 adjacent corners
- corners[0] = surroundings[x - 1][y][z - 1]
- corners[1] = surroundings[x - 1][y][z + 1]
- corners[2] = surroundings[x + 1][y][z + 1]
- corners[3] = surroundings[x + 1][y][z - 1]
- local adjacentCorners = 0
- for n = 0, 3 do
- if corners[n] > 0 then
- adjacentCorners = adjacentCorners + 1
- end
- end
- local cornersAbove = {} --corners is an array of the material of the 4 adjacent corners 1 height above
- cornersAbove[0] = surroundings[x - 1][y + 1][z - 1]
- cornersAbove[1] = surroundings[x - 1][y + 1][z + 1]
- cornersAbove[2] = surroundings[x + 1][y + 1][z + 1]
- cornersAbove[3] = surroundings[x + 1][y + 1][z - 1]
- local adjacentCornersAbove = 0
- for n = 0, 3 do
- if cornersAbove[n] > 0 then
- adjacentCornersAbove = adjacentCornersAbove + 1
- end
- end
- --determine what type of wedge to make
- local material = nil
- local wedge = nil
- local rotation = nil
- if defaultmaterial then
- material = defaultmaterial
- else
- material, wedge, rotation = c:GetCell(x, y, z) --start with the existing material, wedge, and rotation
- end
- wedge = 0 --default wedge is a block
- rotation = 0 --default rotation is 0
- --type 1: 45 degree ramp //must not have a block on top and must have a block under, and be surrounded by 1 side; or 3 sides and the 2 corners between them
- if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
- if adjacentSides == 1 then
- for n = 0, 3 do
- if sides[n] > 0 then
- wedge = 1
- rotation = (n + 1) % 4
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- elseif adjacentSides == 3 then
- for n = 0, 3 do
- if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and corners[(n + 2) % 4] > 0 and sides[(n + 2) % 4] > 0 then
- wedge = 1
- rotation = (n + 2) % 4
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- end
- end
- --type 2: 45 degree corner //must not have a block on top and must have a block under, and be surrounded by 2 sides and the 1 corner between them; or 3 sides and 1 corner between 2 of them (facing towards that corner)
- if surroundings[x][y + 1][z] == 0 and surroundings[x][y - 1][z] > 0 then
- for n = 0, 3 do
- if sides[n] > 0 and corners[(n + 1) % 4] > 0 and sides[(n + 1) % 4] > 0 and (adjacentSides == 2 or (adjacentSides == 3 and (corners[(n + 3) % 4] > 0 or (sides[(n + 2) % 4] > 0 and corners[(n + 2) % 4] > 0) or (sides[(n + 3) % 4] > 0 and corners[n] > 0)))) then
- wedge = 2
- rotation = (n + 2) % 4
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- end
- --type 3: 45 degree inverse corner //surrounded by three sides or 4 sides and 3 corners, with nothing above or else a block on top surrounded on 2 sides and the corner between them
- if adjacentSides == 3 and surroundings[x][y + 1][z] > 0 then
- if adjacentCorners > 1 then
- for n = 0, 3 do
- if (corners[n] == 0 or cornersAbove[n] == 0) and (sides[(n - 1) % 4] == 0 or sides[n] == 0) and (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0) then
- wedge = 3
- rotation = (n + 3) % 4
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- end
- elseif adjacentSides == 4 and adjacentCorners == 3 then
- for n = 0, 3 do
- if corners[n] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] > 0 and cornersAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] == 0)) then
- wedge = 3
- rotation = (n + 3) % 4
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- end
- --type 4: half a cube, as if it were cut diagonally from front to back //surrounded by 2 sides
- if adjacentSides == 2 and adjacentCorners < 4 then
- for n = 0, 3 do
- if sides[n] == 0 and sides[(n + 1) % 4] == 0 and (surroundings[x][y + 1][z] == 0 or (sidesAbove[n] == 0 and sidesAbove[(n + 1) % 4] == 0 and sidesAbove[(n + 2) % 4] > 0 and sidesAbove[(n + 3) % 4] > 0)) then
- wedge = 4
- rotation = n
- c:SetCell(x, y, z, material, wedge, rotation)
- return true
- end
- end
- end
- c:SetCell(x, y, z, material, wedge, rotation)
- return false
- end
- function on3dButton1Down(mouse) ------here be the glorious edits
- local part = mouse.Target
- if part == nil then
- return
- else
- if part.Anchored == false and part:findFirstChild("Controller") == nil then
- ----
- t = part.Parent:findFirstChild("Torso")
- if t ~= nil and part.Parent.className == "Model" then
- if t:findFirstChild("Controller") then
- return
- end
- end
- ----
- op = Tool.Parent:GetChildren()
- for i=1, #op do
- if op[i].Name == "Left Arm" or op[i].Name == "Right Arm" or op[i].Name == "Left Leg" or op[i].Name == "Right Leg" or op[i].className == "Hat" then
- op[i]:remove()
- end
- if op[i].Name == "Head" then
- face = op[i]:findFirstChild("face")
- if face then
- face:remove()
- end
- op[i].Transparency = 1
- end
- if op[i].Name == "Torso" then
- op[i].Transparency = 1
- torso = op[i]
- torso.CFrame = part.CFrame
- weldBetween(part,torso)
- yup = Instance.new("BoolValue")
- yup.Name = "Controller"
- yup.Parent = torso
- if part.Parent:findFirstChild("Humanoid") ~= nil and part.Parent.className == "Model" then
- iop = part.Parent:findFirstChild("Torso")
- if iop then
- jump = Instance.new("BodyThrust")
- jump.Name = "JumpThrust"
- jump.Parent = torso
- j = script.Search.Jump:Clone()
- j.Disabled = false
- j.val.Value = part:GetMass() * 20
- j.Parent = jump
- end
- end
- end
- end
- Tool.Handle.Sound:Play()
- game.Workspace.CurrentCamera.CameraSubject = part
- game.Workspace.CurrentCamera.CameraType = "Track"
- ppi = script.FixCamOnDeath:Clone()
- ppi.Disabled = false
- plyr = game.Players:GetPlayerFromCharacter(Tool.Parent)
- ppi.Parent = plyr.Backpack
- han2 = script.Search2:Clone()
- han2.Parent = ppi
- han2.val.Value = part
- han = script.Search:Clone()
- han.Disabled = false
- han.Parent = part
- highlight = false
- if selectionBox then
- clearSelection()
- selectionBox:Remove()
- end
- if selectionLasso then selectionLasso:Remove() end
- mouse.Icon = ""
- Tool:remove()
- end
- end
- end
- function saveSelectionColor(instance)
- if instance:IsA("BasePart") then
- currentSelectionColors[instance] = instance.BrickColor
- if instance.BrickColor == BrickColor.new("Lime green") then
- instance.BrickColor = BrickColor.new("Lime green")
- else
- instance.BrickColor = BrickColor.new("Lime green")
- end
- end
- end
- function setSelection(partOrModel)
- if partOrModel ~= currentSelection then
- clearSelection()
- currentSelection = partOrModel
- selectionBox.Adornee = currentSelection
- end
- end
- function clearSelection()
- if currentSelection ~= nil then
- for part, color in pairs(currentSelectionColors) do
- part.BrickColor = color
- end
- selectionBox.Adornee = nil
- end
- currentSelectionColors = {}
- if currentSelection then currentSelection = nil end
- if selectionBox then selectionBox.Adornee = nil end
- megaClusterSelectionBox.Parent = nil
- end
- function on3dMouseMove(mouse)
- if isRestricted then
- mouse.TargetFilter = game.Workspace.BaseplateBumpers
- else
- mouse.TargetFilter = megaClusterSelectionBox
- end
- local part = mouse.Target
- if not part then
- clearSelection()
- return
- elseif part:IsA("Terrain") then
- if not cluster then cluster = game.Workspace.Terrain end
- local hitCell = cluster:WorldToCellPreferSolid(mouse.Hit.p)
- if cluster:GetCell(hitCell.x, hitCell.y, hitCell.z).Value > 0 then
- megaClusterSelectionBox.CFrame = CFrame.new(cluster:CellCenterToWorld(hitCell.x, hitCell.y, hitCell.z))
- if isRestricted then megaClusterSelectionBox.Parent = game.Workspace.BaseplateBumpers else megaClusterSelectionBox.Parent = game.Workspace end
- selectionBox.Adornee = megaClusterSelectionBox
- else
- clearSelection()
- return
- end
- elseif canDeleteObject(part) then
- local model = findModel(part)
- if model then
- selectionBox.Color = BrickColor.new("Lime green")
- setSelection(model)
- else
- selectionBox.Color = BrickColor.new("Lime green")
- setSelection(part)
- end
- else
- clearSelection()
- end
- end
- local equipCount = 0
- function onEquippedLocal(mouse)
- equipCount = equipCount + 1
- local val = equipCount
- if isRestricted then
- waitForChild(game.Workspace, "BuildingAreas")
- if val ~= equipCount then
- return
- end
- end
- local character = script.Parent.Parent
- player = game.Players:GetPlayerFromCharacter(character)
- if not player then return end
- if isRestricted then
- local takenAreas = game.Workspace.BuildingAreas:GetChildren()
- for i = 1, #takenAreas do
- if takenAreas[i]:FindFirstChild("Player") ~= nil then -- Test if child exists (to fix current bug: "Player" child is omitted from 1 baseplate at random, when played online.)
- if takenAreas[i].Player.Value == Tool.Parent.Name then
- buildingPlate = takenAreas[i].PlayerArea.BasePlate
- break
- end
- end
- end
- end
- if buildingPlate then
- playerModel = buildingPlate.Parent
- else
- --playerModel = nil
- playerModel = game.Workspace
- end
- guiMain = Instance.new("ScreenGui")
- guiMain.Parent = player.PlayerGui
- mouse.Button1Down:connect(function() on3dButton1Down(mouse) end)
- mouse.Move:connect(function() on3dMouseMove(mouse) end)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- selectionBox = Instance.new("SelectionBox")
- selectionBox.Name = "Model Delete Selection"
- selectionBox.Color = BrickColor.new("Lime green")
- 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.new("Lime green")
- highlight = true
- end
- function onUnequippedLocal()
- highlight = false
- mouse.Icon = ""
- if selectionBox then
- clearSelection()
- selectionBox:Remove()
- end
- if selectionLasso then selectionLasso:Remove() end
- end
- Tool.Equipped:connect(onEquippedLocal)
- Tool.Unequipped:connect(onUnequippedLocal)
- end))
- LocalScript5.Name = "FixCamOnDeath"
- LocalScript5.Parent = LocalScript4
- LocalScript5.Disabled = true
- table.insert(cors,sandbox(LocalScript5,function()
- while true do wait()
- h = script.Parent.Parent.Character.Humanoid
- if h.Health < 1 then
- game.Workspace.CurrentCamera.CameraSubject = h
- game.Workspace.CurrentCamera.CameraType = "Custom"
- op = script.Search2:Clone()
- op.Disabled = false
- op.Parent = script.Search2.val.Value
- script:remove()
- end
- end
- end))
- Script6.Name = "Search"
- Script6.Parent = LocalScript4
- Script6.Disabled = true
- table.insert(cors,sandbox(Script6,function()
- wait() --samy22
- mass = 0
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld")
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = CFrame.new()
- weld.C1 = b.CFrame:inverse() * a.CFrame
- weld.Parent = a
- weld.Name = "Weld"
- return weld;
- end
- function Get(Brick)
- if Brick.Anchored == false and Brick.Name ~= "Torso" and Brick.Name ~= "Head" then
- Brick.Name = "UnderControl"
- mass = mass + Brick:GetMass()
- pp = Brick:GetConnectedParts()
- for i=1, #pp do
- if pp[i].Anchored == true then
- if Brick ~= script.Parent then
- if Brick.Name ~= "Torso" and Brick.Name ~= "Head" then
- Brick:BreakJoints()
- end
- else
- kk = Brick:findFirstChild("ManualWeld")
- if kk then
- nd = kk.Part1
- Brick:BreakJoints()
- weldBetween(Brick, nd)
- end
- end
- else
- if Brick:findFirstChild("ManualWeld") ~= nil then
- weldBetween(Brick, pp[i])
- end
- end
- end
- end
- if Brick.Anchored == false and Brick.Name == "Torso" then
- if Brick:findFirstChild("JumpThrust") == nil and Brick:findFirstChild("Controller") ~= nil then
- mass = mass + Brick:GetMass()
- jump = Instance.new("BodyThrust")
- jump.Name = "JumpThrust"
- jump.Parent = Brick
- j = script.Jump:Clone()
- j.Disabled = false
- j.val.Value = mass
- j.Parent = jump
- end
- end
- end
- function Search(Object)
- if Object.Name ~= "UnderControl" then
- coroutine.resume(coroutine.create(Get), Object)
- local Children = Object:GetConnectedParts()
- for X = 1, # Children do
- Search(Children[X])
- end
- end
- end
- script.Script.Disabled = false
- Search(script.Parent)
- end))
- Script7.Parent = Script6
- Script7.Disabled = true
- table.insert(cors,sandbox(Script7,function()
- wait()
- script.Parent:remove()
- end))
- LocalScript8.Name = "Jump"
- LocalScript8.Parent = Script6
- LocalScript8.Disabled = true
- table.insert(cors,sandbox(LocalScript8,function()
- wait()
- h = script.Parent.Parent.Parent.Humanoid
- debounce = false
- if script.val.Value < 10000 then
- calc = 3000/15 * script.val.Value
- else
- calc = 3000/10 * script.val.Value
- end
- h.Changed:connect(function()
- if not debounce and h.Jump then
- debounce = true
- script.Parent.force = Vector3.new(0,calc,0)
- wait(.1)
- script.Parent.force = Vector3.new(0,0,0)
- wait(1)
- debounce = false
- h.Jump = false
- end
- end)
- end))
- IntValue9.Name = "val"
- IntValue9.Parent = LocalScript8
- Script10.Name = "Search2"
- Script10.Parent = LocalScript4
- Script10.Disabled = true
- table.insert(cors,sandbox(Script10,function()
- wait() --samy22
- function Get(Brick)
- if Brick.Anchored == false and Brick.Name ~= "Torso" and Brick.Name ~= "Head" then
- Brick.Name = "Part"
- end
- h = Brick.Parent:findFirstChild("Humanoid")
- if h then
- --h.Health = 0 --We both go down together <3
- end
- end
- function Search(Object)
- if Object.Name ~= "Part" then
- coroutine.resume(coroutine.create(Get), Object)
- local Children = Object:GetConnectedParts()
- for X = 1, # Children do
- Search(Children[X])
- end
- end
- end
- script.Script.Disabled = false
- Search(script.Parent)
- end))
- ObjectValue11.Name = "val"
- ObjectValue11.Parent = Script10
- Script12.Parent = Script10
- Script12.Disabled = true
- table.insert(cors,sandbox(Script12,function()
- wait()
- script.Parent:remove()
- end))
- BoolValue13.Name = "IsRestricted"
- BoolValue13.Parent = Tool0
- BoolValue14.Name = "AutoWedgeClusterParts"
- BoolValue14.Parent = Tool0
- 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