Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local pfolder,mbp
- local guns = script.guns
- guns.Parent = nil
- spawn(function()
- pfolder = Instance.new("Folder")
- local Model1 = Instance.new("Model")
- local Part2 = Instance.new("Part")
- local Part3 = Instance.new("Part")
- local Part4 = Instance.new("Part")
- local Part5 = Instance.new("Part")
- local Part6 = Instance.new("Part")
- local Part7 = Instance.new("Part")
- local Part8 = Instance.new("Part")
- local Part9 = Instance.new("Part")
- local Part10 = Instance.new("Part")
- local Part11 = Instance.new("Part")
- local Part12 = Instance.new("Part")
- local Part13 = Instance.new("Part")
- local Part14 = Instance.new("Part")
- local Part15 = Instance.new("Part")
- local Part16 = Instance.new("Part")
- mbp = Instance.new("Model")
- local Part18 = Instance.new("Part")
- local Part19 = Instance.new("Part")
- local Part20 = Instance.new("Part")
- local Part21 = Instance.new("Part")
- local Part22 = Instance.new("Part")
- pfolder.Name = "pfolder"
- pfolder.Parent = workspace
- Model1.Name = "Rock"
- Model1.Parent = pfolder
- Part2.Parent = Model1
- Part2.CFrame = CFrame.new(86.5298386, 0.50503701, 42.1592216, 0.867853105, 0, 0.496821046, 0, 1, 0, -0.496821046, 0, 0.867853105)
- Part2.Orientation = Vector3.new(0, 29.7900009, 0)
- Part2.Position = Vector3.new(86.5298386, 0.50503701, 42.1592216)
- Part2.Rotation = Vector3.new(0, 29.7900009, 0)
- Part2.Size = Vector3.new(2, 1, 2)
- Part2.Anchored = true
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.Locked = true
- Part2.Material = Enum.Material.Slate
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part3.Parent = Model1
- Part3.CFrame = CFrame.new(88.2387619, 0.505035996, 40.4426765, 0.715739965, 0, 0.69836694, 0, 1, 0, -0.69836694, 0, 0.715739965)
- Part3.Orientation = Vector3.new(0, 44.2999992, 0)
- Part3.Position = Vector3.new(88.2387619, 0.505035996, 40.4426765)
- Part3.Rotation = Vector3.new(0, 44.2999992, 0)
- Part3.Size = Vector3.new(2, 1, 2)
- Part3.Anchored = true
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.Locked = true
- Part3.Material = Enum.Material.Slate
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part4.Parent = Model1
- Part4.CFrame = CFrame.new(84.4354324, 0.505035996, 43.1957359, 0.924940109, 0, 0.380113095, 0, 1, 0, -0.380113065, 0, 0.924940109)
- Part4.Orientation = Vector3.new(0, 22.3400002, 0)
- Part4.Position = Vector3.new(84.4354324, 0.505035996, 43.1957359)
- Part4.Rotation = Vector3.new(0, 22.3400002, 0)
- Part4.Size = Vector3.new(2, 1, 2)
- Part4.Anchored = true
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.Locked = true
- Part4.Material = Enum.Material.Slate
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part5.Parent = Model1
- Part5.CFrame = CFrame.new(-23.8199978, 0.50503701, 51.9700127, 0.981351733, 0, 0.192220956, 0, 1, 0, -0.192220956, 0, 0.981351733)
- Part5.Orientation = Vector3.new(0, 11.0799999, 0)
- Part5.Position = Vector3.new(-23.8199978, 0.50503701, 51.9700127)
- Part5.Rotation = Vector3.new(0, 11.0799999, 0)
- Part5.Size = Vector3.new(2, 1, 2)
- Part5.Anchored = true
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.Locked = true
- Part5.Material = Enum.Material.Slate
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part6.Parent = Model1
- Part6.CFrame = CFrame.new(-26.1899986, 0.50503701, 52.4700203, 0.998215616, 0, -0.0597139783, 0, 1, 0, 0.0597139783, 0, 0.998215616)
- Part6.Orientation = Vector3.new(0, -3.42000008, 0)
- Part6.Position = Vector3.new(-26.1899986, 0.50503701, 52.4700203)
- Part6.Rotation = Vector3.new(0, -3.42000008, 0)
- Part6.Size = Vector3.new(2, 1, 2)
- Part6.Anchored = true
- Part6.BottomSurface = Enum.SurfaceType.Smooth
- Part6.Locked = true
- Part6.Material = Enum.Material.Slate
- Part6.TopSurface = Enum.SurfaceType.Smooth
- Part7.Parent = Model1
- Part7.CFrame = CFrame.new(-28.5100021, 0.50503701, 52.1900101, 0.982047737, 0, -0.18863295, 0, 1, 0, 0.18863295, 0, 0.982047737)
- Part7.Orientation = Vector3.new(0, -10.8699999, 0)
- Part7.Position = Vector3.new(-28.5100021, 0.50503701, 52.1900101)
- Part7.Rotation = Vector3.new(0, -10.8699999, 0)
- Part7.Size = Vector3.new(2, 1, 2)
- Part7.Anchored = true
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.Locked = true
- Part7.Material = Enum.Material.Slate
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part8.Parent = Model1
- Part8.CFrame = CFrame.new(-78.7601852, 0.50503701, -28.5131321, -0.505992115, 0, -0.862538159, 0, 1, 0, 0.862538159, 0, -0.505992115)
- Part8.Orientation = Vector3.new(0, -120.400002, 0)
- Part8.Position = Vector3.new(-78.7601852, 0.50503701, -28.5131321)
- Part8.Rotation = Vector3.new(-180, -59.5999985, -180)
- Part8.Size = Vector3.new(2, 1, 2)
- Part8.Anchored = true
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.Locked = true
- Part8.Material = Enum.Material.Slate
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part9.Parent = Model1
- Part9.CFrame = CFrame.new(-80.1203232, 0.50503701, -24.0192909, -0.146806061, 0, -0.989165366, 0, 1, 0, 0.989165366, 0, -0.146806076)
- Part9.Orientation = Vector3.new(0, -98.4400024, 0)
- Part9.Position = Vector3.new(-80.1203232, 0.50503701, -24.0192909)
- Part9.Rotation = Vector3.new(-180, -81.5599976, -180)
- Part9.Size = Vector3.new(2, 1, 2)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.Locked = true
- Part9.Material = Enum.Material.Slate
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part10.Parent = Model1
- Part10.CFrame = CFrame.new(-79.7994766, 0.50503701, -26.4200993, -0.389895141, 0, -0.920859337, 0, 1, 0, 0.920859337, 0, -0.389895141)
- Part10.Orientation = Vector3.new(0, -112.949997, 0)
- Part10.Position = Vector3.new(-79.7994766, 0.50503701, -26.4200993)
- Part10.Rotation = Vector3.new(-180, -67.0500031, -180)
- Part10.Size = Vector3.new(2, 1, 2)
- Part10.Anchored = true
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.Locked = true
- Part10.Material = Enum.Material.Slate
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part11.Parent = Model1
- Part11.CFrame = CFrame.new(-20.2814064, 0.50503701, -90.4255371, -0.876103699, 0, -0.482122779, 0, 1, 0, 0.482122809, 0, -0.876103699)
- Part11.Orientation = Vector3.new(0, -151.179993, 0)
- Part11.Position = Vector3.new(-20.2814064, 0.50503701, -90.4255371)
- Part11.Rotation = Vector3.new(-180, -28.8199997, -180)
- Part11.Size = Vector3.new(2, 1, 2)
- Part11.Anchored = true
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.Locked = true
- Part11.Material = Enum.Material.Slate
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part12.Parent = Model1
- Part12.CFrame = CFrame.new(-18.169836, 0.505034983, -91.4266129, -0.931215525, 0, -0.3644692, 0, 1, 0, 0.3644692, 0, -0.931215525)
- Part12.Orientation = Vector3.new(0, -158.630005, 0)
- Part12.Position = Vector3.new(-18.169836, 0.505034983, -91.4266129)
- Part12.Rotation = Vector3.new(-180, -21.3700008, -180)
- Part12.Size = Vector3.new(2, 1, 2)
- Part12.Anchored = true
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.Locked = true
- Part12.Material = Enum.Material.Slate
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part13.Parent = Model1
- Part13.CFrame = CFrame.new(-22.0190544, 0.50503701, -88.7380981, -0.727411985, 0, -0.686200976, 0, 1, 0, 0.686200976, 0, -0.727411985)
- Part13.Orientation = Vector3.new(0, -136.669998, 0)
- Part13.Position = Vector3.new(-22.0190544, 0.50503701, -88.7380981)
- Part13.Rotation = Vector3.new(-180, -43.3300018, -180)
- Part13.Size = Vector3.new(2, 1, 2)
- Part13.Anchored = true
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.Locked = true
- Part13.Material = Enum.Material.Slate
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part14.Parent = Model1
- Part14.CFrame = CFrame.new(88.8612671, 0.50503701, -76.5153656, -0.737185001, 0, 0.675691009, 0, 1, 0, -0.675691009, 0, -0.737185001)
- Part14.Orientation = Vector3.new(0, 137.490005, 0)
- Part14.Position = Vector3.new(88.8612671, 0.50503701, -76.5153656)
- Part14.Rotation = Vector3.new(-180, 42.5099983, -180)
- Part14.Size = Vector3.new(2, 1, 2)
- Part14.Anchored = true
- Part14.BottomSurface = Enum.SurfaceType.Smooth
- Part14.Locked = true
- Part14.Material = Enum.Material.Slate
- Part14.TopSurface = Enum.SurfaceType.Smooth
- Part15.Parent = Model1
- Part15.CFrame = CFrame.new(90.6704178, 0.50503701, -74.9047775, -0.544433177, 0, 0.838804305, 0, 1, 0, -0.838804305, 0, -0.544433177)
- Part15.Orientation = Vector3.new(0, 122.989998, 0)
- Part15.Position = Vector3.new(90.6704178, 0.50503701, -74.9047775)
- Part15.Rotation = Vector3.new(-180, 57.0099983, -180)
- Part15.Size = Vector3.new(2, 1, 2)
- Part15.Anchored = true
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.Locked = true
- Part15.Material = Enum.Material.Slate
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part16.Parent = Model1
- Part16.CFrame = CFrame.new(91.8220673, 0.505034983, -72.8714371, -0.431093216, 0, 0.902307391, 0, 1, 0, -0.902307391, 0, -0.431093216)
- Part16.Orientation = Vector3.new(0, 115.540001, 0)
- Part16.Position = Vector3.new(91.8220673, 0.505034983, -72.8714371)
- Part16.Rotation = Vector3.new(-180, 64.4599991, -180)
- Part16.Size = Vector3.new(2, 1, 2)
- Part16.Anchored = true
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.Locked = true
- Part16.Material = Enum.Material.Slate
- Part16.TopSurface = Enum.SurfaceType.Smooth
- mbp.Name = "mbp"
- mbp.Parent = pfolder
- Part18.Name = "pos"
- Part18.Parent = mbp
- Part18.CFrame = CFrame.new(-79.7098083, 1.47504401, -26.2905579, 0.334208131, 0, 0.94249934, 0, 1, 0, -0.94249934, 0, 0.334208131)
- Part18.Orientation = Vector3.new(0, 70.4800034, 0)
- Part18.Position = Vector3.new(-79.7098083, 1.47504401, -26.2905579)
- Part18.Rotation = Vector3.new(0, 70.4800034, 0)
- Part18.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part18.Transparency = 1
- Part18.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part18.Anchored = true
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Brown")
- Part18.CanCollide = false
- Part18.Material = Enum.Material.Wood
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Brown")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- Part19.Name = "pos"
- Part19.Parent = mbp
- Part19.CFrame = CFrame.new(-26.0978794, 1.47504401, 52.3421745, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part19.Orientation = Vector3.new(0, 180, 0)
- Part19.Position = Vector3.new(-26.0978794, 1.47504401, 52.3421745)
- Part19.Rotation = Vector3.new(-180, 0, -180)
- Part19.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part19.Transparency = 1
- Part19.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part19.Anchored = true
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Brown")
- Part19.CanCollide = false
- Part19.Material = Enum.Material.Wood
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Brown")
- Part19.FormFactor = Enum.FormFactor.Custom
- Part19.formFactor = Enum.FormFactor.Custom
- Part20.Name = "pos"
- Part20.Parent = mbp
- Part20.CFrame = CFrame.new(86.536911, 1.47504401, 42.001812, -0.836634159, 0, -0.547762096, 0, 1, 0, 0.547762096, 0, -0.836634159)
- Part20.Orientation = Vector3.new(0, -146.789993, 0)
- Part20.Position = Vector3.new(86.536911, 1.47504401, 42.001812)
- Part20.Rotation = Vector3.new(-180, -33.2099991, -180)
- Part20.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part20.Transparency = 1
- Part20.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part20.Anchored = true
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Brown")
- Part20.CanCollide = false
- Part20.Material = Enum.Material.Wood
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Brown")
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.formFactor = Enum.FormFactor.Custom
- Part21.Name = "pos"
- Part21.Parent = mbp
- Part21.CFrame = CFrame.new(-20.2911301, 1.47504401, -90.2683029, 0.845749021, 0, 0.533581018, 0, 1, 0, -0.533581018, 0, 0.845749021)
- Part21.Orientation = Vector3.new(0, 32.25, 0)
- Part21.Position = Vector3.new(-20.2911301, 1.47504401, -90.2683029)
- Part21.Rotation = Vector3.new(0, 32.25, 0)
- Part21.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part21.Transparency = 1
- Part21.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part21.Anchored = true
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Brown")
- Part21.CanCollide = false
- Part21.Material = Enum.Material.Wood
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Brown")
- Part21.FormFactor = Enum.FormFactor.Custom
- Part21.formFactor = Enum.FormFactor.Custom
- Part22.Name = "pos"
- Part22.Parent = mbp
- Part22.CFrame = CFrame.new(90.5128632, 1.47504401, -74.9030685, 0.593558788, 0, -0.804790676, 0, 1, 0, 0.804790676, 0, 0.593558788)
- Part22.Orientation = Vector3.new(0, -53.5900002, 0)
- Part22.Position = Vector3.new(90.5128632, 1.47504401, -74.9030685)
- Part22.Rotation = Vector3.new(0, -53.5900002, 0)
- Part22.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part22.Transparency = 1
- Part22.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part22.Anchored = true
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Brown")
- Part22.CanCollide = false
- Part22.Material = Enum.Material.Wood
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Brown")
- Part22.FormFactor = Enum.FormFactor.Custom
- Part22.formFactor = Enum.FormFactor.Custom
- end)
- wait(0.1)
- function spawn_box()
- Model0 = Instance.new("Model")
- Part1 = Instance.new("Part")
- Decal2 = Instance.new("Decal")
- Decal3 = Instance.new("Decal")
- Decal4 = Instance.new("Decal")
- Decal5 = Instance.new("Decal")
- Decal6 = Instance.new("Decal")
- Decal7 = Instance.new("Decal")
- ManualWeld8 = Instance.new("ManualWeld")
- Part9 = Instance.new("Part")
- Decal10 = Instance.new("Decal")
- Decal11 = Instance.new("Decal")
- Decal12 = Instance.new("Decal")
- Decal13 = Instance.new("Decal")
- Decal14 = Instance.new("Decal")
- Decal15 = Instance.new("Decal")
- Part16 = Instance.new("Part")
- Decal17 = Instance.new("Decal")
- Decal18 = Instance.new("Decal")
- Decal19 = Instance.new("Decal")
- Decal20 = Instance.new("Decal")
- Decal21 = Instance.new("Decal")
- Decal22 = Instance.new("Decal")
- ManualWeld23 = Instance.new("ManualWeld")
- Part24 = Instance.new("Part")
- Decal25 = Instance.new("Decal")
- Decal26 = Instance.new("Decal")
- Decal27 = Instance.new("Decal")
- Decal28 = Instance.new("Decal")
- Decal29 = Instance.new("Decal")
- Decal30 = Instance.new("Decal")
- ManualWeld31 = Instance.new("ManualWeld")
- Part32 = Instance.new("Part")
- Decal33 = Instance.new("Decal")
- Decal34 = Instance.new("Decal")
- Decal35 = Instance.new("Decal")
- Decal36 = Instance.new("Decal")
- Decal37 = Instance.new("Decal")
- Decal38 = Instance.new("Decal")
- ManualWeld39 = Instance.new("ManualWeld")
- Part40 = Instance.new("Part")
- Decal41 = Instance.new("Decal")
- Decal42 = Instance.new("Decal")
- Decal43 = Instance.new("Decal")
- Decal44 = Instance.new("Decal")
- Decal45 = Instance.new("Decal")
- Decal46 = Instance.new("Decal")
- ClickDetector47 = Instance.new("ClickDetector")
- Part49 = Instance.new("Part")
- Decal50 = Instance.new("Decal")
- Decal51 = Instance.new("Decal")
- Decal52 = Instance.new("Decal")
- Decal53 = Instance.new("Decal")
- Decal54 = Instance.new("Decal")
- Decal55 = Instance.new("Decal")
- ManualWeld56 = Instance.new("ManualWeld")
- Part57 = Instance.new("Part")
- Model0.Name = "Mystery Box"
- Model0.Parent = nil
- Part1.Name = "Box"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(-23.7628765, 0.830034077, 23.0021744, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part1.Orientation = Vector3.new(-90, 0, 0)
- Part1.Position = Vector3.new(-23.7628765, 0.830034077, 23.0021744)
- Part1.Rotation = Vector3.new(-90, 0, 0)
- Part1.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part1.Size = Vector3.new(5.78999758, 0.200000003, 1.63000035)
- Part1.Anchored = true
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Brown")
- Part1.Material = Enum.Material.Wood
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Brown")
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- Decal2.Parent = Part1
- Decal2.Texture = "http://www.roblox.com/asset/?id=27920169"
- Decal2.Face = Enum.NormalId.Top
- Decal3.Parent = Part1
- Decal3.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal3.Face = Enum.NormalId.Back
- Decal4.Parent = Part1
- Decal4.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal4.Face = Enum.NormalId.Bottom
- Decal5.Parent = Part1
- Decal5.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal6.Parent = Part1
- Decal6.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal6.Face = Enum.NormalId.Left
- Decal7.Parent = Part1
- Decal7.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal7.Face = Enum.NormalId.Right
- ManualWeld8.Name = "Box-to-Lid1 Strong Joint"
- ManualWeld8.Parent = Part1
- ManualWeld8.C0 = CFrame.new(-2.89499879, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld8.C1 = CFrame.new(-2.89499879, -0.124962807, -0.910106659, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- ManualWeld8.Part0 = Part1
- ManualWeld8.Part1 = Part40
- ManualWeld8.part1 = Part40
- Part9.Name = "Bottom"
- Part9.Parent = Model0
- Part9.CFrame = CFrame.new(-23.74786, 0.465044022, 23.9921646, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part9.Orientation = Vector3.new(0, 180, 0)
- Part9.Position = Vector3.new(-23.74786, 0.465044022, 23.9921646)
- Part9.Rotation = Vector3.new(-180, 0, -180)
- Part9.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part9.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
- Part9.Anchored = true
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Brown")
- Part9.Material = Enum.Material.Wood
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Brown")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- Decal10.Parent = Part9
- Decal10.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal10.Face = Enum.NormalId.Bottom
- Decal11.Parent = Part9
- Decal11.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal11.Face = Enum.NormalId.Back
- Decal12.Parent = Part9
- Decal12.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal12.Face = Enum.NormalId.Right
- Decal13.Parent = Part9
- Decal13.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal13.Face = Enum.NormalId.Left
- Decal14.Parent = Part9
- Decal14.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal15.Parent = Part9
- Decal15.Texture = "http://www.roblox.com/asset/?id=27862801"
- Decal15.Face = Enum.NormalId.Top
- Part16.Name = "Box"
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(-20.7628765, 0.815035045, 24.0121841, 0, -1, 0, 0, 0, 1, -1, 0, 0)
- Part16.Orientation = Vector3.new(-90, 90, 0)
- Part16.Position = Vector3.new(-20.7628765, 0.815035045, 24.0121841)
- Part16.Rotation = Vector3.new(-90, 0, 90)
- Part16.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part16.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
- Part16.Anchored = true
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Brown")
- Part16.Material = Enum.Material.Wood
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Brown")
- Part16.FormFactor = Enum.FormFactor.Custom
- Part16.formFactor = Enum.FormFactor.Custom
- Decal17.Parent = Part16
- Decal17.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal17.Face = Enum.NormalId.Bottom
- Decal18.Parent = Part16
- Decal18.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal18.Face = Enum.NormalId.Back
- Decal19.Parent = Part16
- Decal19.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal19.Face = Enum.NormalId.Right
- Decal20.Parent = Part16
- Decal20.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal20.Face = Enum.NormalId.Left
- Decal21.Parent = Part16
- Decal21.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal21.Face = Enum.NormalId.Top
- Decal22.Parent = Part16
- Decal22.Texture = "http://www.roblox.com/asset/?id=27920146"
- ManualWeld23.Name = "Box-to-Lid1 Strong Joint"
- ManualWeld23.Parent = Part16
- ManualWeld23.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld23.C1 = CFrame.new(3.10000014, -0.13996172, 1.08990288, 0, -1, 0, 0, 0, 1, -1, 0, 0)
- ManualWeld23.Part0 = Part16
- ManualWeld23.Part1 = Part40
- ManualWeld23.part1 = Part40
- Part24.Name = "Box"
- Part24.Parent = Model0
- Part24.CFrame = CFrame.new(-23.7628765, 0.830034077, 25.0021744, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- Part24.Orientation = Vector3.new(-90, 0, 0)
- Part24.Position = Vector3.new(-23.7628765, 0.830034077, 25.0021744)
- Part24.Rotation = Vector3.new(-90, 0, 0)
- Part24.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part24.Size = Vector3.new(5.78999758, 0.200000003, 1.63000035)
- Part24.Anchored = true
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Brown")
- Part24.Material = Enum.Material.Wood
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Brown")
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.formFactor = Enum.FormFactor.Custom
- Decal25.Parent = Part24
- Decal25.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal25.Face = Enum.NormalId.Back
- Decal26.Parent = Part24
- Decal26.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal26.Face = Enum.NormalId.Top
- Decal27.Parent = Part24
- Decal27.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal28.Parent = Part24
- Decal28.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal28.Face = Enum.NormalId.Left
- Decal29.Parent = Part24
- Decal29.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal29.Face = Enum.NormalId.Right
- Decal30.Parent = Part24
- Decal30.Texture = "http://www.roblox.com/asset/?id=27920199"
- Decal30.Face = Enum.NormalId.Bottom
- ManualWeld31.Name = "Box-to-Lid1 Strong Joint"
- ManualWeld31.Parent = Part24
- ManualWeld31.C0 = CFrame.new(-2.89499879, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld31.C1 = CFrame.new(-2.89499879, -0.124962807, 1.08989334, 1, 0, -0, 0, 0, 1, 0, -1, 0)
- ManualWeld31.Part0 = Part24
- ManualWeld31.Part1 = Part40
- ManualWeld31.part1 = Part40
- Part32.Name = "Box"
- Part32.Parent = Model0
- Part32.CFrame = CFrame.new(-26.7628746, 0.830034077, 24.0021744, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- Part32.Orientation = Vector3.new(-90, -90, 0)
- Part32.Position = Vector3.new(-26.7628746, 0.830034077, 24.0021744)
- Part32.Rotation = Vector3.new(-90, 0, -90)
- Part32.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part32.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
- Part32.Anchored = true
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Brown")
- Part32.Material = Enum.Material.Wood
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Brown")
- Part32.FormFactor = Enum.FormFactor.Custom
- Part32.formFactor = Enum.FormFactor.Custom
- Decal33.Parent = Part32
- Decal33.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal33.Face = Enum.NormalId.Bottom
- Decal34.Parent = Part32
- Decal34.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal34.Face = Enum.NormalId.Back
- Decal35.Parent = Part32
- Decal35.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal35.Face = Enum.NormalId.Right
- Decal36.Parent = Part32
- Decal36.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal36.Face = Enum.NormalId.Left
- Decal37.Parent = Part32
- Decal37.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal37.Face = Enum.NormalId.Top
- Decal38.Parent = Part32
- Decal38.Texture = "http://www.roblox.com/asset/?id=27920146"
- ManualWeld39.Name = "Box-to-Lid1 Strong Joint"
- ManualWeld39.Parent = Part32
- ManualWeld39.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld39.C1 = CFrame.new(-3.09999967, -0.124962807, -1.10010719, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- ManualWeld39.Part0 = Part32
- ManualWeld39.Part1 = Part40
- ManualWeld39.part1 = Part40
- Part40.Name = "Lid"
- Part40.Parent = Model0
- Part40.CFrame = CFrame.new(-23.7629948, 1.77503204, 23.9999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part40.Position = Vector3.new(-23.7629948, 1.77503204, 23.9999962)
- Part40.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part40.Size = Vector3.new(6.20000172, 0.280000001, 2.17999887)
- Part40.Anchored = true
- Part40.BottomSurface = Enum.SurfaceType.Smooth
- Part40.BrickColor = BrickColor.new("Brown")
- Part40.Material = Enum.Material.Wood
- Part40.TopSurface = Enum.SurfaceType.Smooth
- Part40.brickColor = BrickColor.new("Brown")
- Part40.FormFactor = Enum.FormFactor.Custom
- Part40.formFactor = Enum.FormFactor.Custom
- Decal41.Parent = Part40
- Decal41.Texture = "http://www.roblox.com/asset/?id=27921107"
- Decal41.Face = Enum.NormalId.Top
- Decal42.Parent = Part40
- Decal42.Texture = "http://www.roblox.com/asset/?id=27920199"
- Decal42.Face = Enum.NormalId.Right
- Decal43.Parent = Part40
- Decal43.Texture = "http://www.roblox.com/asset/?id=27920199"
- Decal44.Parent = Part40
- Decal44.Texture = "http://www.roblox.com/asset/?id=27920199"
- Decal44.Face = Enum.NormalId.Left
- Decal45.Parent = Part40
- Decal45.Texture = "http://www.roblox.com/asset/?id=27920199"
- Decal45.Face = Enum.NormalId.Back
- Decal46.Parent = Part40
- Decal46.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal46.Face = Enum.NormalId.Bottom
- ClickDetector47.Parent = Part40
- ClickDetector47.MaxActivationDistance = 15
- Part49.Name = "Box"
- Part49.Parent = Model0
- Part49.CFrame = CFrame.new(-26.7628746, 0.830034077, 24.0021744, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- Part49.Orientation = Vector3.new(-90, -90, 0)
- Part49.Position = Vector3.new(-26.7628746, 0.830034077, 24.0021744)
- Part49.Rotation = Vector3.new(-90, 0, -90)
- Part49.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part49.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
- Part49.Anchored = true
- Part49.BottomSurface = Enum.SurfaceType.Smooth
- Part49.BrickColor = BrickColor.new("Brown")
- Part49.Material = Enum.Material.Wood
- Part49.TopSurface = Enum.SurfaceType.Smooth
- Part49.brickColor = BrickColor.new("Brown")
- Part49.FormFactor = Enum.FormFactor.Custom
- Part49.formFactor = Enum.FormFactor.Custom
- Decal50.Parent = Part49
- Decal50.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal50.Face = Enum.NormalId.Bottom
- Decal51.Parent = Part49
- Decal51.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal51.Face = Enum.NormalId.Back
- Decal52.Parent = Part49
- Decal52.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal52.Face = Enum.NormalId.Right
- Decal53.Parent = Part49
- Decal53.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal53.Face = Enum.NormalId.Left
- Decal54.Parent = Part49
- Decal54.Texture = "http://www.roblox.com/asset/?id=27920146"
- Decal54.Face = Enum.NormalId.Top
- Decal55.Parent = Part49
- Decal55.Texture = "http://www.roblox.com/asset/?id=27920146"
- ManualWeld56.Name = "Box-to-Lid1 Strong Joint"
- ManualWeld56.Parent = Part49
- ManualWeld56.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- ManualWeld56.C1 = CFrame.new(-3.09999967, -0.124962807, -1.10010719, 0, 1, 0, 0, 0, 1, 1, 0, 0)
- ManualWeld56.Part0 = Part49
- ManualWeld56.Part1 = Part40
- ManualWeld56.part1 = Part40
- Part57.Name = "hinge"
- Part57.Parent = Model0
- Part57.Position = Vector3.new(-23.763, 1.775, 24.95)
- Part57.Color = Color3.new(0.486275, 0.360784, 0.27451)
- Part57.Transparency = 1
- Part57.Size = Vector3.new(6.19999981, 0.100000001, 0.100000001)
- Part57.Anchored = true
- Part57.BottomSurface = Enum.SurfaceType.Smooth
- Part57.BrickColor = BrickColor.new("Brown")
- Part57.CanCollide = false
- Part57.Material = Enum.Material.Wood
- Part57.TopSurface = Enum.SurfaceType.Smooth
- Part57.brickColor = BrickColor.new("Brown")
- Part57.FormFactor = Enum.FormFactor.Custom
- Part57.formFactor = Enum.FormFactor.Custom
- local click,lid,hinge,bottom
- for i,v in pairs(Model0:GetChildren()) do
- if v.Name == 'Lid' then
- lid = v
- click = v:FindFirstChildOfClass("ClickDetector")
- elseif v.Name == 'hinge' then
- hinge = v
- elseif v.Name == 'Bottom' then
- bottom = v
- end
- end
- local light = Instance.new("PointLight")
- light.Parent = hinge
- light.Color = Color3.new(1, 1, 0)
- light.Enabled = true
- light.Range = 0 -- 8
- light.Brightness = 0 -- 10
- local clicked = false
- local weapons = {
- {
- name = 'ak 47';
- obj = function()
- local han = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- han.Name = "Handle"
- han.Parent = nil
- han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
- han.Size = Vector3.new(5.579, 1.578, 0.256)
- han.Color = Color3.fromRGB(91, 93, 105)
- han.BottomSurface = Enum.SurfaceType.Smooth
- han.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = han
- SpecialMesh2.MeshId = "rbxassetid://1877846291"
- SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
- SpecialMesh2.TextureId = ""
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- return han
- end;
- };
- {
- name = 'aug a2';
- obj = function()
- local han = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- han.Name = "Handle"
- han.Parent = nil
- han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
- han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
- han.Color = Color3.fromRGB(75, 151, 75)
- han.BottomSurface = Enum.SurfaceType.Smooth
- han.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = han
- SpecialMesh2.MeshId = "rbxassetid://1877851197"
- SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
- SpecialMesh2.TextureId = ""
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- return han
- end;
- };
- {
- name = 'bfg 50';
- obj = function()
- local han = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- han.Name = "Handle"
- han.Parent = nil
- han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
- han.Size = Vector3.new(1.44, 0.6, 7.19)
- han.BrickColor = BrickColor.Random()
- han.BottomSurface = Enum.SurfaceType.Smooth
- han.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = han
- SpecialMesh2.MeshId = "rbxassetid://450273008"
- SpecialMesh2.Scale = Vector3.new(0.03, 0.03, 0.03)
- SpecialMesh2.TextureId = ""
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- return han,CFrame.Angles(math.rad(0),math.rad(-90),math.rad(90))
- end;
- };
- {
- name = 'deagle';
- obj = function()
- local han = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- han.Name = "Handle"
- han.Parent = nil
- han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
- han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
- han.BottomSurface = Enum.SurfaceType.Smooth
- han.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = han
- SpecialMesh2.MeshId = "rbxassetid://464797091"
- SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- SpecialMesh2.TextureId = "rbxassetid://464797118"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- return han
- end;
- };
- {
- name = 'famas g2';
- obj = function()
- local han = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- han.Name = "Handle"
- han.Parent = nil
- han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
- han.Size = Vector3.new(5.08, 1.824, 0.21)
- han.Color = Color3.fromRGB(27, 42, 53)
- han.BottomSurface = Enum.SurfaceType.Smooth
- han.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = han
- SpecialMesh2.MeshId = "rbxassetid://1877852381"
- SpecialMesh2.Scale = Vector3.new(0.007, 0.007, 0.007)
- SpecialMesh2.TextureId = ""
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- return han
- end;
- };
- {
- name = 'teddy';
- obj = function()
- local teddy = Instance.new("Part")
- local SpecialMesh1 = Instance.new("SpecialMesh")
- teddy.Name = "Teddybear"
- teddy.Parent = nil
- teddy.CFrame = CFrame.new(-4.81353617, 6.18395519, 17.2851868)
- teddy.Position = Vector3.new(-4.81353617, 6.18395519, 17.2851868)
- teddy.Color = Color3.new(0.388235, 0.372549, 0.384314)
- teddy.Size = Vector3.new(1, 1.60000002, 3)
- teddy.Anchored = true
- teddy.CanCollide = false
- teddy.BottomSurface = Enum.SurfaceType.Smooth
- teddy.BrickColor = BrickColor.new("Dark stone grey")
- teddy.Reflectance = 0.40000000596046
- teddy.TopSurface = Enum.SurfaceType.Smooth
- teddy.brickColor = BrickColor.new("Dark stone grey")
- SpecialMesh1.Parent = teddy
- SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=12218321"
- SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=12218077"
- SpecialMesh1.MeshType = Enum.MeshType.FileMesh
- return teddy,CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))
- end;
- };
- }
- local weapon = {}
- local rid = false
- local function random_item(id)
- spawn(function()
- if not rid or id then
- rid = true
- pcall(function()
- weapon.obj:Destroy()
- end)
- local wep = weapons[id or math.random(1,#weapons-1)]
- local obj,rot = wep.obj()
- if rot then else rot = CFrame.Angles(0,0,0); end;
- obj.CFrame = bottom.CFrame*CFrame.new(0,3,0)*rot
- obj.Anchored = true
- obj.CanCollide = false
- obj.Parent = script
- weapon = {obj = obj,name = wep.name,rot = rot}
- wait(0.1)
- rid = false
- end
- end)
- end
- click.MaxActivationDistance = 15
- click.MouseClick:Connect(function(clicker)
- if not clicked then
- clicked = true
- local open = Instance.new("Sound")
- open.SoundId = "rbxassetid://3140021223"
- open.Volume = 3
- open.Parent = hinge
- open:Play()
- for i = 1,5 do
- local center = hinge.CFrame
- local newcenter
- newcenter = center*CFrame.Angles(math.rad(12), 0, 0)
- lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
- wait()
- end
- game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 8,Brightness = 10}):Play()
- spawn(function()
- for i = 1,5 do
- local center = hinge.CFrame
- local newcenter
- newcenter = center*CFrame.Angles(math.rad(12), 0, 0)
- lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
- wait()
- end
- end)
- click.MaxActivationDistance = 0
- repeat random_item(); wait(0.1); until open.TimePosition >= 4.8
- wait(0.1)
- random_item(math.random(1,#weapons))
- wait(0.1)
- local taken = false
- local done = false
- if weapon.name ~= 'teddy' then
- weapon.obj.Touched:Connect(function(obj)
- local plr,char,hum
- pcall(function()
- char = obj.Parent
- end)
- pcall(function()
- plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- end)
- pcall(function()
- hum = char:FindFirstChildOfClass("Humanoid")
- end)
- if plr and (plr == clicker) and char and hum and hum.Health > 0 and not taken and not done then
- taken = true
- pcall(function()
- local s = guns:FindFirstChild(weapon.name):Clone()
- s.Disabled = false
- s.Parent = clicker:FindFirstChild("Backpack")
- end)
- end
- end)
- game:GetService("TweenService"):Create(weapon.obj,TweenInfo.new(12),{CFrame = bottom.CFrame*weapon.rot*CFrame.new(0,-0.25,0)}):Play()
- spawn(function()
- wait(12)
- done = true
- end)
- else
- done = true; taken = true;
- local teddy = Instance.new("Sound")
- teddy.SoundId = "rbxassetid://131142784"
- teddy.Volume = 4
- teddy.Parent = script
- teddy:Play()
- wait(4)
- end
- repeat wait() until taken or done
- game:GetService("TweenService"):Create(weapon.obj,TweenInfo.new(1),{Transparency = 1}):Play()
- wait(1)
- local close = Instance.new("Sound")
- close.SoundId = "rbxassetid://3140021639"
- close.Volume = 3
- close.Parent = hinge
- close:Play()
- if weapon.name ~= 'teddy' then
- spawn(function()
- for i = 1,10 do
- local center = hinge.CFrame
- local newcenter
- newcenter = center*CFrame.Angles(math.rad(-12), 0, 0)
- lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
- wait()
- end
- end)
- game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 0,Brightness = 0}):Play()
- pcall(function()
- weapon.obj:Destroy()
- end)
- repeat wait() until close.TimePosition >= 2
- click.MaxActivationDistance = 15
- clicked = false
- else
- game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 0,Brightness = 0}):Play()
- pcall(function()
- weapon.obj:Destroy()
- end)
- for i = 1,10 do
- local center = hinge.CFrame
- local newcenter
- newcenter = center*CFrame.Angles(math.rad(-12), 0, 0)
- lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
- wait()
- end
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("BasePart") and v ~= bottom then
- local weld = Instance.new("Weld")
- weld.Part0 = bottom
- weld.Part1 = v
- weld.C0 = bottom.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- weld.Parent = v
- v.Anchored = false
- end
- end
- spawn(function()
- game:GetService("TweenService"):Create(bottom,TweenInfo.new(1),{CFrame = bottom.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-25))}):Play()
- for i = 1,2 do
- game:GetService("TweenService"):Create(bottom,TweenInfo.new(1),{CFrame = bottom.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(25*2))}):Play()
- wait(1)
- game:GetService("TweenService"):Create(bottom,TweenInfo.new(1),{CFrame = bottom.CFrame*CFrame.new(0,1,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-25*2))}):Play()
- wait(1)
- end
- end)
- for i,v in pairs(Model0:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
- game:GetService("TweenService"):Create(v,TweenInfo.new(4),{Transparency = 1}):Play()
- end
- end
- game:GetService("Debris"):AddItem(Model0,10)
- wait(30)
- local spawned = Instance.new("Sound")
- spawned.SoundId = "rbxassetid://1302431409"
- spawned.Volume = 4
- spawned.Parent = script
- spawned:Play()
- spawn_box()
- end
- end
- end)
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("BasePart") and v ~= bottom then
- local weld = Instance.new("Weld")
- weld.Part0 = bottom
- weld.Part1 = v
- weld.C0 = bottom.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- weld.Parent = v
- v.Anchored = false
- end
- end
- Model0.Parent = script
- local mbp_t = {}
- for i,v in pairs(mbp:GetChildren()) do
- if v:IsA("BasePart") then
- table.insert(mbp_t,1,v)
- end
- end
- print(Model0.Parent)
- print'a'
- bottom.CFrame = mbp_t[math.random(1,#mbp_t)].CFrame
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("BasePart") and v ~= bottom then
- v.Anchored = true
- v:BreakJoints()
- end
- end
- end
- spawn_box()
Add Comment
Please, Sign In to add comment