Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Objects Skipped: 5
- Localphysics_gun: 2
- TouchTransmitter: 1
- physics_gun: 2
- --]]
- local physics_gun = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
- physics_gun.CanBeDropped = false
- physics_gun.Name = "Physicsgun"
- local handle = Instance.new("Part", physics_gun)
- handle.FormFactor = Enum.FormFactor.Custom
- handle.TopSurface = Enum.SurfaceType.Smooth
- handle.Size = Vector3.new(1, 0.4, 0.3)
- handle.Name = "Handle"
- handle.Locked = true
- handle.CFrame = CFrame.new(0.627, 0.543, -3.837)* CFrame.Angles(-0.24700726568699, 0.0029415194876492, -2.730295091169e-005)
- handle.BrickColor = BrickColor.new("Cyan")
- handle.Friction = 0.3
- handle.BottomSurface = Enum.SurfaceType.Smooth
- local mesh = Instance.new("CylinderMesh", handle)
- mesh.Scale = Vector3.new(0.1, 0.1, 0.1)
- local weld = Instance.new("Weld", handle)
- weld.Part1 = h1
- weld.Part0 = handle
- weld.C1 = CFrame.new(1.375, -90.35, -60.314)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_2 = Instance.new("Weld", handle)
- weld_2.Part1 = h2
- weld_2.Part0 = handle
- weld_2.C1 = CFrame.new(-58.762, 87.455, 31.494)* CFrame.Angles(-1.570796251297, -0.070856705307961, 0.52359879016876)
- weld_2.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_3 = Instance.new("Weld", handle)
- weld_3.Part1 = h3
- weld_3.Part0 = handle
- weld_3.C1 = CFrame.new(-79.575, -39.156, -60.632)* CFrame.Angles(1.5707961320877, -1.1213386058807, 1.5707961320877)
- weld_3.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_4 = Instance.new("Weld", handle)
- weld_4.Part1 = h4
- weld_4.Part0 = handle
- weld_4.C1 = CFrame.new(89.16, -60.224, -1.26)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_4.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_5 = Instance.new("Weld", handle)
- weld_5.Part1 = h5
- weld_5.Part0 = handle
- weld_5.C1 = CFrame.new(89.16, -60.614, -1.23)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_5.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_6 = Instance.new("Weld", handle)
- weld_6.Part1 = h6
- weld_6.Part0 = handle
- weld_6.C1 = CFrame.new(89.16, -59.954, -1.27)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_6.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_7 = Instance.new("Weld", handle)
- weld_7.Part1 = h7
- weld_7.Part0 = handle
- weld_7.C1 = CFrame.new(89.16, -60.749, -1.235)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_7.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_8 = Instance.new("Weld", handle)
- weld_8.Part1 = h8
- weld_8.Part0 = handle
- weld_8.C1 = CFrame.new(89.16, -60.324, -1.2)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_8.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_9 = Instance.new("Weld", handle)
- weld_9.Part1 = h9
- weld_9.Part0 = handle
- weld_9.C1 = CFrame.new(89.16, -60.914, -1.2)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_9.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_10 = Instance.new("Weld", handle)
- weld_10.Part1 = h10
- weld_10.Part0 = handle
- weld_10.C1 = CFrame.new(89.16, -60.499, -1.225)* CFrame.Angles(1.5707963705063, 1.5707963705063, 0)
- weld_10.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_11 = Instance.new("Weld", handle)
- weld_11.Part1 = h11
- weld_11.Part0 = handle
- weld_11.C1 = CFrame.new(1.23, -89.62, -60.634)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_11.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_12 = Instance.new("Weld", handle)
- weld_12.Part1 = h12
- weld_12.Part0 = handle
- weld_12.C1 = CFrame.new(53.525, 95.385, -1.12)* CFrame.Angles(-1.5707963705063, -0.070857055485249, -3.1415927410126)
- weld_12.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_13 = Instance.new("Weld", handle)
- weld_13.Part1 = h13
- weld_13.Part0 = handle
- weld_13.C1 = CFrame.new(0.995, -90.35, -60.384)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_13.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_14 = Instance.new("Weld", handle)
- weld_14.Part1 = h14
- weld_14.Part0 = handle
- weld_14.C1 = CFrame.new(104.415, 31.682, -1.13)* CFrame.Angles(-1.570796251297, 0.69126671552658, 3.141592502594)
- weld_14.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_15 = Instance.new("Weld", handle)
- weld_15.Part1 = h15
- weld_15.Part0 = handle
- weld_15.C1 = CFrame.new(17.716, 103.475, 31.483)* CFrame.Angles(-1.5707961320877, 0.69126707315445, 0.52359837293625)
- weld_15.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_16 = Instance.new("Weld", handle)
- weld_16.Part1 = h16
- weld_16.Part0 = handle
- weld_16.C1 = CFrame.new(-10.942, 90.809, -60.458)* CFrame.Angles(-1.570796251297, -0.070856980979443, -1.5244005918503)
- weld_16.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_17 = Instance.new("Weld", handle)
- weld_17.Part1 = h17
- weld_17.Part0 = handle
- weld_17.C1 = CFrame.new(54.622, 72.884, -60.468)* CFrame.Angles(-1.5707961320877, 0.69126683473587, -1.5244011878967)
- weld_17.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_18 = Instance.new("Weld", handle)
- weld_18.Part1 = h18
- weld_18.Part0 = handle
- weld_18.C1 = CFrame.new(-1.045, 90.35, -60.894)* CFrame.Angles(-1.570796251297, 0, -1.5707963705063)
- weld_18.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_19 = Instance.new("Weld", handle)
- weld_19.Part1 = h19
- weld_19.Part0 = handle
- weld_19.C1 = CFrame.new(1.23, -90.92, -60.634)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_19.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_20 = Instance.new("Weld", handle)
- weld_20.Part1 = h20
- weld_20.Part0 = handle
- weld_20.C1 = CFrame.new(60.634, 90.66, -1.21)* CFrame.Angles(-1.5707963705063, -7.5497894158616e-008, -3.1415927410126)
- weld_20.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_21 = Instance.new("Weld", handle)
- weld_21.Part1 = h21
- weld_21.Part0 = handle
- weld_21.C1 = CFrame.new(-0.915, 90.35, -60.774)* CFrame.Angles(-1.570796251297, 0, -1.5707963705063)
- weld_21.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_22 = Instance.new("Weld", handle)
- weld_22.Part1 = h22
- weld_22.Part0 = handle
- weld_22.C1 = CFrame.new(-1.221, 90.82, -60.626)* CFrame.Angles(-1.570796251297, 0, -1.5707963705063)
- weld_22.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_23 = Instance.new("Weld", handle)
- weld_23.Part1 = h23
- weld_23.Part0 = handle
- weld_23.C1 = CFrame.new(-1.231, -90.89, 60.626)* CFrame.Angles(1.5707963705063, 0, -1.5707963705063)
- weld_23.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_24 = Instance.new("Weld", handle)
- weld_24.Part1 = h24
- weld_24.Part0 = handle
- weld_24.C1 = CFrame.new(1.565, -90.35, -60.614)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_24.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_25 = Instance.new("Weld", handle)
- weld_25.Part1 = h25
- weld_25.Part0 = handle
- weld_25.C1 = CFrame.new(1.505, -90.35, -60.824)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_25.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_26 = Instance.new("Weld", handle)
- weld_26.Part1 = h26
- weld_26.Part0 = handle
- weld_26.C1 = CFrame.new(1.375, -90.35, -60.944)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_26.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_27 = Instance.new("Weld", handle)
- weld_27.Part1 = h27
- weld_27.Part0 = handle
- weld_27.C1 = CFrame.new(1.495, -90.35, -60.404)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_27.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_28 = Instance.new("Weld", handle)
- weld_28.Part1 = h28
- weld_28.Part0 = handle
- weld_28.C1 = CFrame.new(0.885, -90.32, -60.614)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_28.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local weld_29 = Instance.new("Weld", handle)
- weld_29.Part1 = h29
- weld_29.Part0 = handle
- weld_29.C1 = CFrame.new(1.225, -90.195, -60.634)* CFrame.Angles(1.570796251297, 0, 1.5707963705063)
- weld_29.C0 = CFrame.new(-60.5, -0.6, 88.6)
- local h1 = Instance.new("Part", physics_gun)
- h1.FormFactor = Enum.FormFactor.Custom
- h1.TopSurface = Enum.SurfaceType.Smooth
- h1.Size = Vector3.new(0.2, 1.17, 0.2)
- h1.Name = "H1"
- h1.Locked = true
- h1.CFrame = CFrame.new(0.436, 0.867, -5.723)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h1.Friction = 0.3
- h1.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_2 = Instance.new("CylinderMesh", h1)
- mesh_2.Scale = Vector3.new(1, 1, 0.25)
- local h2 = Instance.new("Part", physics_gun)
- h2.FormFactor = Enum.FormFactor.Custom
- h2.TopSurface = Enum.SurfaceType.Smooth
- h2.Size = Vector3.new(0.2, 0.5, 0.2)
- h2.Name = "H2"
- h2.Locked = true
- h2.CFrame = CFrame.new(1.265, 0.308, -6.663)* CFrame.Angles(1.3220906257629, -0.52362334728241, -0.074253365397453)
- h2.Friction = 0.3
- h2.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_3 = Instance.new("CylinderMesh", h2)
- mesh_3.Scale = Vector3.new(0.5, 1, 1)
- local h3 = Instance.new("Part", physics_gun)
- h3.FormFactor = Enum.FormFactor.Custom
- h3.TopSurface = Enum.SurfaceType.Smooth
- h3.Size = Vector3.new(0.46, 1.25, 0.38)
- h3.Name = "H3"
- h3.Locked = true
- h3.CFrame = CFrame.new(0.759, 0.614, -3.942)* CFrame.Angles(2.8853034973145, 1.5678666830063, 2.7014172077179)
- h3.BrickColor = BrickColor.new("Dark stone grey")
- h3.Friction = 0.3
- h3.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_4 = Instance.new("SpecialMesh", h3)
- mesh_4.MeshType = Enum.MeshType.Brick
- local mesh_5 = Instance.new("CylinderMesh", h3)
- local h4 = Instance.new("Part", physics_gun)
- h4.FormFactor = Enum.FormFactor.Custom
- h4.TopSurface = Enum.SurfaceType.Smooth
- h4.Size = Vector3.new(1, 0.2, 0.5)
- h4.Name = "H4"
- h4.Locked = true
- h4.CFrame = CFrame.new(0.35, 1.047, -4.54)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h4.Friction = 0.3
- h4.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_6 = Instance.new("SpecialMesh", h4)
- mesh_6.MeshType = Enum.MeshType.Brick
- local mesh_7 = Instance.new("CylinderMesh", h4)
- local h5 = Instance.new("Part", physics_gun)
- h5.FormFactor = Enum.FormFactor.Plate
- h5.TopSurface = Enum.SurfaceType.Smooth
- h5.Size = Vector3.new(1, 0.4, 1)
- h5.Name = "H5"
- h5.Locked = true
- h5.CFrame = CFrame.new(0.74, 1.017, -4.534)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h5.BrickColor = BrickColor.new("Dark stone grey")
- h5.Friction = 0.3
- h5.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_8 = Instance.new("SpecialMesh", h5)
- mesh_8.MeshType = Enum.MeshType.Brick
- local mesh_9 = Instance.new("CylinderMesh", h5)
- local h6 = Instance.new("Part", physics_gun)
- h6.FormFactor = Enum.FormFactor.Custom
- h6.TopSurface = Enum.SurfaceType.Smooth
- h6.Size = Vector3.new(1, 0.74, 0.22)
- h6.Name = "H6"
- h6.Locked = true
- h6.CFrame = CFrame.new(0.08, 1.057, -4.542)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h6.BrickColor = BrickColor.new("Dark stone grey")
- h6.Friction = 0.3
- h6.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_10 = Instance.new("SpecialMesh", h6)
- mesh_10.MeshType = Enum.MeshType.Brick
- local mesh_11 = Instance.new("CylinderMesh", h6)
- local h7 = Instance.new("Part", physics_gun)
- h7.FormFactor = Enum.FormFactor.Custom
- h7.TopSurface = Enum.SurfaceType.Smooth
- h7.Size = Vector3.new(1, 0.39, 1.01)
- h7.Name = "H7"
- h7.Locked = true
- h7.CFrame = CFrame.new(0.875, 1.022, -4.536)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h7.Friction = 0.3
- h7.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_12 = Instance.new("CylinderMesh", h7)
- mesh_12.Scale = Vector3.new(1.1, 0.5, 1.1)
- local h8 = Instance.new("Part", physics_gun)
- h8.FormFactor = Enum.FormFactor.Custom
- h8.TopSurface = Enum.SurfaceType.Smooth
- h8.Size = Vector3.new(1, 0.2, 0.92)
- h8.Name = "H8"
- h8.Locked = true
- h8.CFrame = CFrame.new(0.45, 0.988, -4.526)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h8.Friction = 0.3
- h8.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_13 = Instance.new("SpecialMesh", h8)
- mesh_13.MeshType = Enum.MeshType.Brick
- local mesh_14 = Instance.new("CylinderMesh", h8)
- local h9 = Instance.new("Part", physics_gun)
- h9.FormFactor = Enum.FormFactor.Custom
- h9.TopSurface = Enum.SurfaceType.Smooth
- h9.Size = Vector3.new(1, 0.2, 0.92)
- h9.Name = "H9"
- h9.Locked = true
- h9.CFrame = CFrame.new(1.04, 0.988, -4.528)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h9.Friction = 0.3
- h9.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_15 = Instance.new("SpecialMesh", h9)
- mesh_15.MeshType = Enum.MeshType.Brick
- local mesh_16 = Instance.new("CylinderMesh", h9)
- local h10 = Instance.new("Part", physics_gun)
- h10.FormFactor = Enum.FormFactor.Custom
- h10.TopSurface = Enum.SurfaceType.Smooth
- h10.Size = Vector3.new(1, 0.39, 1.01)
- h10.Name = "H10"
- h10.Locked = true
- h10.CFrame = CFrame.new(0.625, 1.013, -4.533)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -1.5678548812866)
- h10.Friction = 0.3
- h10.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_17 = Instance.new("CylinderMesh", h10)
- mesh_17.Scale = Vector3.new(1.1, 0.5, 1.1)
- local h11 = Instance.new("Part", physics_gun)
- h11.FormFactor = Enum.FormFactor.Custom
- h11.TopSurface = Enum.SurfaceType.Smooth
- h11.Size = Vector3.new(0.84, 0.52, 0.76)
- h11.Name = "H11"
- h11.Locked = true
- h11.CFrame = CFrame.new(0.759, 0.905, -4.98)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h11.Friction = 0.3
- h11.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_18 = Instance.new("SpecialMesh", h11)
- mesh_18.MeshType = Enum.MeshType.Brick
- local mesh_19 = Instance.new("CylinderMesh", h11)
- local h12 = Instance.new("Part", physics_gun)
- h12.FormFactor = Enum.FormFactor.Custom
- h12.TopSurface = Enum.SurfaceType.Smooth
- h12.Size = Vector3.new(0.2, 0.5, 0.2)
- h12.Name = "H12"
- h12.Locked = true
- h12.CFrame = CFrame.new(0.263, 0.374, -6.635)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, 3.0736770629883)
- h12.Friction = 0.3
- h12.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_20 = Instance.new("CylinderMesh", h12)
- mesh_20.Scale = Vector3.new(0.5, 1, 1)
- local h13 = Instance.new("Part", physics_gun)
- h13.FormFactor = Enum.FormFactor.Custom
- h13.TopSurface = Enum.SurfaceType.Smooth
- h13.Size = Vector3.new(0.2, 1.17, 0.2)
- h13.Name = "H13"
- h13.Locked = true
- h13.CFrame = CFrame.new(0.506, 0.499, -5.63)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h13.Friction = 0.3
- h13.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_21 = Instance.new("CylinderMesh", h13)
- mesh_21.Scale = Vector3.new(1, 1, 0.25)
- local h14 = Instance.new("Part", physics_gun)
- h14.FormFactor = Enum.FormFactor.Custom
- h14.TopSurface = Enum.SurfaceType.Smooth
- h14.Size = Vector3.new(0.2, 0.43, 0.2)
- h14.Name = "H14"
- h14.Locked = true
- h14.CFrame = CFrame.new(0.369, 0.477, -6.269)* CFrame.Angles(-1.8178036212921, 2.711408342293e-005, -2.4473848342896)
- h14.Friction = 0.3
- h14.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_22 = Instance.new("CylinderMesh", h14)
- mesh_22.Scale = Vector3.new(0.5, 1, 1)
- local h15 = Instance.new("Part", physics_gun)
- h15.FormFactor = Enum.FormFactor.Custom
- h15.TopSurface = Enum.SurfaceType.Smooth
- h15.Size = Vector3.new(0.2, 0.43, 0.2)
- h15.Name = "H15"
- h15.Locked = true
- h15.CFrame = CFrame.new(1.17, 0.443, -6.304)* CFrame.Angles(1.3220906257629, -0.52362316846848, 0.68786984682083)
- h15.Friction = 0.3
- h15.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_23 = Instance.new("CylinderMesh", h15)
- mesh_23.Scale = Vector3.new(0.5, 1, 1)
- local h16 = Instance.new("Part", physics_gun)
- h16.FormFactor = Enum.FormFactor.Custom
- h16.TopSurface = Enum.SurfaceType.Smooth
- h16.Size = Vector3.new(0.2, 0.5, 0.2)
- h16.Name = "H16"
- h16.Locked = true
- h16.CFrame = CFrame.new(0.72, 0.914, -6.773)* CFrame.Angles(1.3870207071304, 1.5242797136307, -0.13415695726871)
- h16.Friction = 0.3
- h16.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_24 = Instance.new("CylinderMesh", h16)
- mesh_24.Scale = Vector3.new(0.5, 1, 1)
- local h17 = Instance.new("Part", physics_gun)
- h17.FormFactor = Enum.FormFactor.Custom
- h17.TopSurface = Enum.SurfaceType.Smooth
- h17.Size = Vector3.new(0.2, 0.43, 0.2)
- h17.Name = "H17"
- h17.Locked = true
- h17.CFrame = CFrame.new(0.727, 0.906, -6.378)* CFrame.Angles(1.3870195150375, 1.5242809057236, 0.627969622612)
- h17.Friction = 0.3
- h17.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_25 = Instance.new("CylinderMesh", h17)
- mesh_25.Scale = Vector3.new(0.5, 1, 1)
- local h18 = Instance.new("Part", physics_gun)
- h18.FormFactor = Enum.FormFactor.Custom
- h18.TopSurface = Enum.SurfaceType.Smooth
- h18.Size = Vector3.new(0.2, 1.17, 0.2)
- h18.Name = "H18"
- h18.Locked = true
- h18.CFrame = CFrame.new(1.016, 0.547, -5.644)* CFrame.Angles(2.8853034973145, 1.5678666830063, -1.5615144968033)
- h18.Friction = 0.3
- h18.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_26 = Instance.new("CylinderMesh", h18)
- mesh_26.Scale = Vector3.new(1, 1, 0.25)
- local h19 = Instance.new("Part", physics_gun)
- h19.FormFactor = Enum.FormFactor.Custom
- h19.TopSurface = Enum.SurfaceType.Smooth
- h19.Size = Vector3.new(0.84, 0.2, 0.76)
- h19.Name = "H19"
- h19.Locked = true
- h19.CFrame = CFrame.new(0.755, 0.587, -6.241)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h19.Friction = 0.3
- h19.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_27 = Instance.new("CylinderMesh", h19)
- local h20 = Instance.new("Part", physics_gun)
- h20.FormFactor = Enum.FormFactor.Custom
- h20.TopSurface = Enum.SurfaceType.Smooth
- h20.Reflectance = 0.3
- h20.Size = Vector3.new(1, 0.74, 0.22)
- h20.Name = "H20"
- h20.Locked = true
- h20.CFrame = CFrame.new(0.755, 0.631, -5.984)* CFrame.Angles(-1.8178036212921, 2.7302834496368e-005, -3.1386511325836)
- h20.BrickColor = BrickColor.new("Teal")
- h20.Friction = 0.3
- h20.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_28 = Instance.new("SpecialMesh", h20)
- mesh_28.MeshType = Enum.MeshType.Brick
- local mesh_29 = Instance.new("CylinderMesh", h20)
- local h21 = Instance.new("Part", physics_gun)
- h21.FormFactor = Enum.FormFactor.Custom
- h21.TopSurface = Enum.SurfaceType.Smooth
- h21.Size = Vector3.new(0.2, 1.17, 0.2)
- h21.Name = "H21"
- h21.Locked = true
- h21.CFrame = CFrame.new(0.896, 0.421, -5.611)* CFrame.Angles(2.8853034973145, 1.5678666830063, -1.5615144968033)
- h21.Friction = 0.3
- h21.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_30 = Instance.new("CylinderMesh", h21)
- mesh_30.Scale = Vector3.new(1, 1, 0.25)
- local h22 = Instance.new("Part", physics_gun)
- h22.FormFactor = Enum.FormFactor.Custom
- h22.TopSurface = Enum.SurfaceType.Smooth
- h22.Reflectance = 0.3
- h22.Size = Vector3.new(1, 1, 1)
- h22.Name = "H22"
- h22.Locked = true
- h22.CFrame = CFrame.new(0.747, 0.603, -6.142)* CFrame.Angles(2.8853034973145, 1.5678666830063, -1.5615144968033)
- h22.BrickColor = BrickColor.new("Teal")
- h22.Friction = 0.3
- h22.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_31 = Instance.new("SpecialMesh", h22)
- mesh_31.Scale = Vector3.new(0.5, 0.5, 0.5)
- mesh_31.MeshId = "http://www.roblox.com/asset/?id=1031410"
- mesh_31.MeshType = Enum.MeshType.FileMesh
- local h23 = Instance.new("Part", physics_gun)
- h23.FormFactor = Enum.FormFactor.Custom
- h23.TopSurface = Enum.SurfaceType.Smooth
- h23.Reflectance = 0.3
- h23.Size = Vector3.new(1, 1, 1)
- h23.Name = "H23"
- h23.Locked = true
- h23.CFrame = CFrame.new(0.747, 0.595, -6.212)* CFrame.Angles(-0.25628915429115, -1.5678666830063, 1.5615144968033)
- h23.BrickColor = BrickColor.new("Teal")
- h23.Friction = 0.3
- h23.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_32 = Instance.new("SpecialMesh", h23)
- mesh_32.Scale = Vector3.new(0.3, 0.3, 0.3)
- mesh_32.MeshId = "http://www.roblox.com/asset/?id=1031410"
- mesh_32.MeshType = Enum.MeshType.FileMesh
- local h24 = Instance.new("Part", physics_gun)
- h24.FormFactor = Enum.FormFactor.Custom
- h24.TopSurface = Enum.SurfaceType.Smooth
- h24.Size = Vector3.new(0.2, 1.17, 0.2)
- h24.Name = "H24"
- h24.Locked = true
- h24.CFrame = CFrame.new(0.736, 1.051, -5.77)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h24.Friction = 0.3
- h24.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_33 = Instance.new("CylinderMesh", h24)
- mesh_33.Scale = Vector3.new(1, 1, 0.25)
- local h25 = Instance.new("Part", physics_gun)
- h25.FormFactor = Enum.FormFactor.Custom
- h25.TopSurface = Enum.SurfaceType.Smooth
- h25.Size = Vector3.new(0.2, 1.17, 0.2)
- h25.Name = "H25"
- h25.Locked = true
- h25.CFrame = CFrame.new(0.946, 0.993, -5.756)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h25.Friction = 0.3
- h25.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_34 = Instance.new("CylinderMesh", h25)
- mesh_34.Scale = Vector3.new(1, 1, 0.25)
- local h26 = Instance.new("Part", physics_gun)
- h26.FormFactor = Enum.FormFactor.Custom
- h26.TopSurface = Enum.SurfaceType.Smooth
- h26.Size = Vector3.new(0.2, 1.17, 0.2)
- h26.Name = "H26"
- h26.Locked = true
- h26.CFrame = CFrame.new(1.066, 0.867, -5.724)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h26.Friction = 0.3
- h26.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_35 = Instance.new("CylinderMesh", h26)
- mesh_35.Scale = Vector3.new(1, 1, 0.25)
- local h27 = Instance.new("Part", physics_gun)
- h27.FormFactor = Enum.FormFactor.Custom
- h27.TopSurface = Enum.SurfaceType.Smooth
- h27.Size = Vector3.new(0.2, 1.17, 0.2)
- h27.Name = "H27"
- h27.Locked = true
- h27.CFrame = CFrame.new(0.526, 0.984, -5.752)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h27.Friction = 0.3
- h27.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_36 = Instance.new("CylinderMesh", h27)
- mesh_36.Scale = Vector3.new(1, 1, 0.25)
- local h28 = Instance.new("Part", physics_gun)
- h28.FormFactor = Enum.FormFactor.Custom
- h28.TopSurface = Enum.SurfaceType.Smooth
- h28.Size = Vector3.new(0.2, 1.17, 0.2)
- h28.Name = "H28"
- h28.Locked = true
- h28.CFrame = CFrame.new(0.736, 0.399, -5.575)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h28.Friction = 0.3
- h28.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_37 = Instance.new("CylinderMesh", h28)
- mesh_37.Scale = Vector3.new(1, 1, 0.25)
- local h29 = Instance.new("Part", physics_gun)
- h29.FormFactor = Enum.FormFactor.Custom
- h29.TopSurface = Enum.SurfaceType.Smooth
- h29.Reflectance = 0.3
- h29.Size = Vector3.new(0.65, 1.61, 0.76)
- h29.Name = "H29"
- h29.Locked = true
- h29.CFrame = CFrame.new(0.757, 0.759, -5.537)* CFrame.Angles(2.8853034973145, 1.5678666830063, 1.5800782442093)
- h29.BrickColor = BrickColor.new("Teal")
- h29.Friction = 0.3
- h29.BottomSurface = Enum.SurfaceType.Smooth
- local mesh_38 = Instance.new("SpecialMesh", h29)
- mesh_38.MeshType = Enum.MeshType.Brick
- local mesh_39 = Instance.new("CylinderMesh", h29)
- wait()
- tool = physics_gun
- lineconnect = physics_gun
- object = nil
- mousedown = false
- found = false
- BP = Instance.new("BodyPosition")
- BP.maxForce = Vector3.new(math.huge*math.huge,math.huge*math.huge,math.huge*math.huge) --pwns everyone elses bodyposition
- BP.P = BP.P*8 --faster movement. less bounceback.
- dist = nil
- point = Instance.new("Part")
- point.Locked = true
- point.Anchored = true
- point.formFactor = 0
- point.Shape = 0
- point.BrickColor = BrickColor.new("Toothpaste")
- point.Size = Vector3.new(1,1,1)
- point.CanCollide = false
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Sphere"
- mesh.Scale = Vector3.new(.7,.7,.7)
- mesh.Parent = point
- handle = tool.Handle
- front = tool.Handle
- color = tool.Handle
- objval = nil
- local hooked = false
- local hookBP = BP:clone()
- hookBP.maxForce = Vector3.new(30000,30000,30000)
- function LineConnect(part1,part2,parent)
- local p1 = Instance.new("ObjectValue")
- p1.Value = part1
- p1.Name = "Part1"
- local p2 = Instance.new("ObjectValue")
- p2.Value = part2
- p2.Name = "Part2"
- local par = Instance.new("ObjectValue")
- par.Value = parent
- par.Name = "Par"
- local col = Instance.new("ObjectValue")
- col.Value = color
- col.Name = "Color"
- local s = lineconnect:clone()
- s.Disabled = false
- p1.Parent = s
- p2.Parent = s
- par.Parent = s
- col.Parent = s
- s.Parent = workspace
- if (part2==object) then
- objval = p2
- end
- end
- function onButton1Down(mouse)
- if (mousedown==true) then return end
- mousedown = true
- coroutine.resume(coroutine.create(function()
- local p = point:clone()
- p.Parent = tool
- LineConnect(front,p,workspace)
- while (mousedown==true) do
- p.Parent = tool
- if (object==nil) then
- if (mouse.Target==nil) then
- local lv = CFrame.new(front.Position,mouse.Hit.p)
- p.CFrame = CFrame.new(front.Position+(lv.lookVector*1000))
- else
- p.CFrame = CFrame.new(mouse.Hit.p)
- end
- else
- LineConnect(front,object,workspace)
- break
- end
- wait()
- end
- p:remove()
- end))
- while (mousedown==true) do
- if (mouse.Target~=nil) then
- local t = mouse.Target
- if (t.Anchored==false) then
- object = t
- dist = (object.Position-front.Position).magnitude
- break
- end
- end
- wait()
- end
- while (mousedown==true) do
- if (object.Parent==nil) then break end
- local lv = CFrame.new(front.Position,mouse.Hit.p)
- BP.Parent = object
- BP.position = front.Position+lv.lookVector*dist
- wait()
- end
- BP:remove()
- object = nil
- objval.Value = nil
- end
- function onKeyDown(key,mouse)
- local key = key:lower()
- local yesh = false
- if (key=="") then
- if (dist>=5) then
- dist = dist-5
- end
- end
- if key == "" then
- if (object==nil) then return end
- for _,v in pairs(object:children()) do
- if v.className == "BodyGyro" then
- return nil
- end
- end
- BG = Instance.new("BodyGyro")
- BG.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- BG.cframe = CFrame.new(object.CFrame.p)
- BG.Parent = object
- repeat wait() until(object.CFrame == CFrame.new(object.CFrame.p))
- BG.Parent = nil
- if (object==nil) then return end
- for _,v in pairs(object:children()) do
- if v.className == "BodyGyro" then
- v.Parent = nil
- end
- end
- object.Velocity = Vector3.new(0,0,0)
- object.RotVelocity = Vector3.new(0,0,0)
- end
- if (key=="") then
- dist = dist+5
- end
- if (string.byte(key)==27) then
- if (object==nil) then return end
- local e = Instance.new("Explosion")
- e.Parent = workspace
- e.Position = object.Position
- color.BrickColor = BrickColor.Black()
- point.BrickColor = BrickColor.White()
- wait(.48)
- color.BrickColor = BrickColor.White()
- point.BrickColor = BrickColor.Black()
- end
- if (key=="") then
- if not hooked then
- if (object==nil) then return end
- hooked = true
- hookBP.position = object.Position
- if tool.Parent:findFirstChild("Torso") then
- hookBP.Parent = tool.Parent.Torso
- if dist ~= (object.Size.x+object.Size.y+object.Size.z)+5 then
- dist = (object.Size.x+object.Size.y+object.Size.z)+5
- end
- end
- else
- hooked = false
- hookBP.Parent = nil
- end
- end
- if (key=="") then
- if (object==nil) then return end
- color.BrickColor = BrickColor.new("Toothpaste")
- point.BrickColor = BrickColor.new("Toothpaste")
- object.Parent = nil
- wait(.48)
- color.BrickColor = BrickColor.new("Toothpaste")
- point.BrickColor = BrickColor.new("Toothpaste")
- end
- if (key=="") then
- if (object==nil) then return end
- local New = object:clone()
- New.Parent = object.Parent
- for _,v in pairs(New:children()) do
- if v.className == "BodyPosition" or v.className == "BodyGyro" then
- v.Parent = nil
- end
- end
- object = New
- mousedown = false
- mousedown = true
- LineConnect(front,object,workspace)
- while (mousedown==true) do
- if (object.Parent==nil) then break end
- local lv = CFrame.new(front.Position,mouse.Hit.p)
- BP.Parent = object
- BP.position = front.Position+lv.lookVector*dist
- wait()
- end
- BP:remove()
- object = nil
- objval.Value = nil
- end
- if (key=="") then
- local Cube = Instance.new("Part")
- Cube.Locked = true
- Cube.Size = Vector3.new(4,4,4)
- Cube.formFactor = 0
- Cube.TopSurface = 0
- Cube.BottomSurface = 0
- Cube.Name = "WeightedStorageCube"
- Cube.Parent = workspace
- Cube.CFrame = CFrame.new(mouse.Hit.p) + Vector3.new(0,2,0)
- for i = 0,5 do
- local Decal = Instance.new("Decal")
- Decal.Texture = "http://www.roblox.com/asset/?id=2662260"
- Decal.Face = i
- Decal.Name = "WeightedStorageCubeDecal"
- Decal.Parent = Cube
- end
- end
- if (key=="") then
- if dist ~= 15 then
- dist = 15
- end
- end
- end
- function onEquipped(mouse)
- keymouse = mouse
- local char = tool.Parent
- human = char.Humanoid
- human.Changed:connect(function() if (human.Health==0) then mousedown = false BP:remove() point:remove() tool:remove() end end)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() mousedown = false end)
- mouse.KeyDown:connect(function(key) onKeyDown(key,mouse) end)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- tool.Equipped:connect(onEquipped)
- wait()
- local check = physics_gun.Part2
- local part1 = physics_gun.Part1.Value
- local part2 = physics_gun.Part2.Value
- local parent = physics_gun.Par.Value
- local color = physics_gun.Color
- local line = Instance.new("Part")
- line.TopSurface = 0
- line.BottomSurface = 0
- line.Reflectance = .5
- line.Name = "Laser"
- line.Locked = true
- line.CanCollide = false
- line.Anchored = true
- line.formFactor = 0
- line.Size = Vector3.new(1,1,1)
- local mesh = Instance.new("BlockMesh")
- mesh.Parent = line
- while true do
- if (check.Value==nil) then break end
- if (part1==nil or part2==nil or parent==nil) then break end
- if (part1.Parent==nil or part2.Parent==nil) then break end
- if (parent.Parent==nil) then break end
- local lv = CFrame.new(part1.Position,part2.Position)
- local dist = (part1.Position-part2.Position).magnitude
- line.Parent = parent
- line.BrickColor = color.Value.BrickColor
- line.Reflectance = color.Value.Reflectance
- line.Transparency = color.Value.Transparency
- line.CFrame = CFrame.new(part1.Position+lv.lookVector*dist/2)
- line.CFrame = CFrame.new(line.Position,part2.Position)
- mesh.Scale = Vector3.new(.25,.25,dist)
- wait()
- end
- line:remove()
- physics_gun:remove()
- local prev
- local parts = physics_gun:GetChildren()
- for i = 1,#parts do
- if (parts[i].className == "Part") then
- if (prev ~= nil)then
- local weld = Instance.new("Weld")
- weld.Part0 = prev
- weld.Part1 = parts[i]
- weld.C0 = prev.CFrame:inverse()
- weld.C1 = parts[i].CFrame:inverse()
- weld.Parent = prev
- end
- prev = parts[i]
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement