KrYn0MoRe

box core v1.5

Sep 4th, 2020 (edited)
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 39.35 KB | None | 0 0
  1. local pfolder,mbp
  2. local guns = script.guns
  3. guns.Parent = nil
  4. spawn(function()
  5.     pfolder = Instance.new("Folder")
  6.     local Model1 = Instance.new("Model")
  7.     local Part2 = Instance.new("Part")
  8.     local Part3 = Instance.new("Part")
  9.     local Part4 = Instance.new("Part")
  10.     local Part5 = Instance.new("Part")
  11.     local Part6 = Instance.new("Part")
  12.     local Part7 = Instance.new("Part")
  13.     local Part8 = Instance.new("Part")
  14.     local Part9 = Instance.new("Part")
  15.     local Part10 = Instance.new("Part")
  16.     local Part11 = Instance.new("Part")
  17.     local Part12 = Instance.new("Part")
  18.     local Part13 = Instance.new("Part")
  19.     local Part14 = Instance.new("Part")
  20.     local Part15 = Instance.new("Part")
  21.     local Part16 = Instance.new("Part")
  22.     mbp = Instance.new("Model")
  23.     local Part18 = Instance.new("Part")
  24.     local Part19 = Instance.new("Part")
  25.     local Part20 = Instance.new("Part")
  26.     local Part21 = Instance.new("Part")
  27.     local Part22 = Instance.new("Part")
  28.     pfolder.Name = "pfolder"
  29.     pfolder.Parent = workspace
  30.     Model1.Name = "Rock"
  31.     Model1.Parent = pfolder
  32.     Part2.Parent = Model1
  33.     Part2.CFrame = CFrame.new(86.5298386, 0.50503701, 42.1592216, 0.867853105, 0, 0.496821046, 0, 1, 0, -0.496821046, 0, 0.867853105)
  34.     Part2.Orientation = Vector3.new(0, 29.7900009, 0)
  35.     Part2.Position = Vector3.new(86.5298386, 0.50503701, 42.1592216)
  36.     Part2.Rotation = Vector3.new(0, 29.7900009, 0)
  37.     Part2.Size = Vector3.new(2, 1, 2)
  38.     Part2.Anchored = true
  39.     Part2.BottomSurface = Enum.SurfaceType.Smooth
  40.     Part2.Locked = true
  41.     Part2.Material = Enum.Material.Slate
  42.     Part2.TopSurface = Enum.SurfaceType.Smooth
  43.     Part3.Parent = Model1
  44.     Part3.CFrame = CFrame.new(88.2387619, 0.505035996, 40.4426765, 0.715739965, 0, 0.69836694, 0, 1, 0, -0.69836694, 0, 0.715739965)
  45.     Part3.Orientation = Vector3.new(0, 44.2999992, 0)
  46.     Part3.Position = Vector3.new(88.2387619, 0.505035996, 40.4426765)
  47.     Part3.Rotation = Vector3.new(0, 44.2999992, 0)
  48.     Part3.Size = Vector3.new(2, 1, 2)
  49.     Part3.Anchored = true
  50.     Part3.BottomSurface = Enum.SurfaceType.Smooth
  51.     Part3.Locked = true
  52.     Part3.Material = Enum.Material.Slate
  53.     Part3.TopSurface = Enum.SurfaceType.Smooth
  54.     Part4.Parent = Model1
  55.     Part4.CFrame = CFrame.new(84.4354324, 0.505035996, 43.1957359, 0.924940109, 0, 0.380113095, 0, 1, 0, -0.380113065, 0, 0.924940109)
  56.     Part4.Orientation = Vector3.new(0, 22.3400002, 0)
  57.     Part4.Position = Vector3.new(84.4354324, 0.505035996, 43.1957359)
  58.     Part4.Rotation = Vector3.new(0, 22.3400002, 0)
  59.     Part4.Size = Vector3.new(2, 1, 2)
  60.     Part4.Anchored = true
  61.     Part4.BottomSurface = Enum.SurfaceType.Smooth
  62.     Part4.Locked = true
  63.     Part4.Material = Enum.Material.Slate
  64.     Part4.TopSurface = Enum.SurfaceType.Smooth
  65.     Part5.Parent = Model1
  66.     Part5.CFrame = CFrame.new(-23.8199978, 0.50503701, 51.9700127, 0.981351733, 0, 0.192220956, 0, 1, 0, -0.192220956, 0, 0.981351733)
  67.     Part5.Orientation = Vector3.new(0, 11.0799999, 0)
  68.     Part5.Position = Vector3.new(-23.8199978, 0.50503701, 51.9700127)
  69.     Part5.Rotation = Vector3.new(0, 11.0799999, 0)
  70.     Part5.Size = Vector3.new(2, 1, 2)
  71.     Part5.Anchored = true
  72.     Part5.BottomSurface = Enum.SurfaceType.Smooth
  73.     Part5.Locked = true
  74.     Part5.Material = Enum.Material.Slate
  75.     Part5.TopSurface = Enum.SurfaceType.Smooth
  76.     Part6.Parent = Model1
  77.     Part6.CFrame = CFrame.new(-26.1899986, 0.50503701, 52.4700203, 0.998215616, 0, -0.0597139783, 0, 1, 0, 0.0597139783, 0, 0.998215616)
  78.     Part6.Orientation = Vector3.new(0, -3.42000008, 0)
  79.     Part6.Position = Vector3.new(-26.1899986, 0.50503701, 52.4700203)
  80.     Part6.Rotation = Vector3.new(0, -3.42000008, 0)
  81.     Part6.Size = Vector3.new(2, 1, 2)
  82.     Part6.Anchored = true
  83.     Part6.BottomSurface = Enum.SurfaceType.Smooth
  84.     Part6.Locked = true
  85.     Part6.Material = Enum.Material.Slate
  86.     Part6.TopSurface = Enum.SurfaceType.Smooth
  87.     Part7.Parent = Model1
  88.     Part7.CFrame = CFrame.new(-28.5100021, 0.50503701, 52.1900101, 0.982047737, 0, -0.18863295, 0, 1, 0, 0.18863295, 0, 0.982047737)
  89.     Part7.Orientation = Vector3.new(0, -10.8699999, 0)
  90.     Part7.Position = Vector3.new(-28.5100021, 0.50503701, 52.1900101)
  91.     Part7.Rotation = Vector3.new(0, -10.8699999, 0)
  92.     Part7.Size = Vector3.new(2, 1, 2)
  93.     Part7.Anchored = true
  94.     Part7.BottomSurface = Enum.SurfaceType.Smooth
  95.     Part7.Locked = true
  96.     Part7.Material = Enum.Material.Slate
  97.     Part7.TopSurface = Enum.SurfaceType.Smooth
  98.     Part8.Parent = Model1
  99.     Part8.CFrame = CFrame.new(-78.7601852, 0.50503701, -28.5131321, -0.505992115, 0, -0.862538159, 0, 1, 0, 0.862538159, 0, -0.505992115)
  100.     Part8.Orientation = Vector3.new(0, -120.400002, 0)
  101.     Part8.Position = Vector3.new(-78.7601852, 0.50503701, -28.5131321)
  102.     Part8.Rotation = Vector3.new(-180, -59.5999985, -180)
  103.     Part8.Size = Vector3.new(2, 1, 2)
  104.     Part8.Anchored = true
  105.     Part8.BottomSurface = Enum.SurfaceType.Smooth
  106.     Part8.Locked = true
  107.     Part8.Material = Enum.Material.Slate
  108.     Part8.TopSurface = Enum.SurfaceType.Smooth
  109.     Part9.Parent = Model1
  110.     Part9.CFrame = CFrame.new(-80.1203232, 0.50503701, -24.0192909, -0.146806061, 0, -0.989165366, 0, 1, 0, 0.989165366, 0, -0.146806076)
  111.     Part9.Orientation = Vector3.new(0, -98.4400024, 0)
  112.     Part9.Position = Vector3.new(-80.1203232, 0.50503701, -24.0192909)
  113.     Part9.Rotation = Vector3.new(-180, -81.5599976, -180)
  114.     Part9.Size = Vector3.new(2, 1, 2)
  115.     Part9.Anchored = true
  116.     Part9.BottomSurface = Enum.SurfaceType.Smooth
  117.     Part9.Locked = true
  118.     Part9.Material = Enum.Material.Slate
  119.     Part9.TopSurface = Enum.SurfaceType.Smooth
  120.     Part10.Parent = Model1
  121.     Part10.CFrame = CFrame.new(-79.7994766, 0.50503701, -26.4200993, -0.389895141, 0, -0.920859337, 0, 1, 0, 0.920859337, 0, -0.389895141)
  122.     Part10.Orientation = Vector3.new(0, -112.949997, 0)
  123.     Part10.Position = Vector3.new(-79.7994766, 0.50503701, -26.4200993)
  124.     Part10.Rotation = Vector3.new(-180, -67.0500031, -180)
  125.     Part10.Size = Vector3.new(2, 1, 2)
  126.     Part10.Anchored = true
  127.     Part10.BottomSurface = Enum.SurfaceType.Smooth
  128.     Part10.Locked = true
  129.     Part10.Material = Enum.Material.Slate
  130.     Part10.TopSurface = Enum.SurfaceType.Smooth
  131.     Part11.Parent = Model1
  132.     Part11.CFrame = CFrame.new(-20.2814064, 0.50503701, -90.4255371, -0.876103699, 0, -0.482122779, 0, 1, 0, 0.482122809, 0, -0.876103699)
  133.     Part11.Orientation = Vector3.new(0, -151.179993, 0)
  134.     Part11.Position = Vector3.new(-20.2814064, 0.50503701, -90.4255371)
  135.     Part11.Rotation = Vector3.new(-180, -28.8199997, -180)
  136.     Part11.Size = Vector3.new(2, 1, 2)
  137.     Part11.Anchored = true
  138.     Part11.BottomSurface = Enum.SurfaceType.Smooth
  139.     Part11.Locked = true
  140.     Part11.Material = Enum.Material.Slate
  141.     Part11.TopSurface = Enum.SurfaceType.Smooth
  142.     Part12.Parent = Model1
  143.     Part12.CFrame = CFrame.new(-18.169836, 0.505034983, -91.4266129, -0.931215525, 0, -0.3644692, 0, 1, 0, 0.3644692, 0, -0.931215525)
  144.     Part12.Orientation = Vector3.new(0, -158.630005, 0)
  145.     Part12.Position = Vector3.new(-18.169836, 0.505034983, -91.4266129)
  146.     Part12.Rotation = Vector3.new(-180, -21.3700008, -180)
  147.     Part12.Size = Vector3.new(2, 1, 2)
  148.     Part12.Anchored = true
  149.     Part12.BottomSurface = Enum.SurfaceType.Smooth
  150.     Part12.Locked = true
  151.     Part12.Material = Enum.Material.Slate
  152.     Part12.TopSurface = Enum.SurfaceType.Smooth
  153.     Part13.Parent = Model1
  154.     Part13.CFrame = CFrame.new(-22.0190544, 0.50503701, -88.7380981, -0.727411985, 0, -0.686200976, 0, 1, 0, 0.686200976, 0, -0.727411985)
  155.     Part13.Orientation = Vector3.new(0, -136.669998, 0)
  156.     Part13.Position = Vector3.new(-22.0190544, 0.50503701, -88.7380981)
  157.     Part13.Rotation = Vector3.new(-180, -43.3300018, -180)
  158.     Part13.Size = Vector3.new(2, 1, 2)
  159.     Part13.Anchored = true
  160.     Part13.BottomSurface = Enum.SurfaceType.Smooth
  161.     Part13.Locked = true
  162.     Part13.Material = Enum.Material.Slate
  163.     Part13.TopSurface = Enum.SurfaceType.Smooth
  164.     Part14.Parent = Model1
  165.     Part14.CFrame = CFrame.new(88.8612671, 0.50503701, -76.5153656, -0.737185001, 0, 0.675691009, 0, 1, 0, -0.675691009, 0, -0.737185001)
  166.     Part14.Orientation = Vector3.new(0, 137.490005, 0)
  167.     Part14.Position = Vector3.new(88.8612671, 0.50503701, -76.5153656)
  168.     Part14.Rotation = Vector3.new(-180, 42.5099983, -180)
  169.     Part14.Size = Vector3.new(2, 1, 2)
  170.     Part14.Anchored = true
  171.     Part14.BottomSurface = Enum.SurfaceType.Smooth
  172.     Part14.Locked = true
  173.     Part14.Material = Enum.Material.Slate
  174.     Part14.TopSurface = Enum.SurfaceType.Smooth
  175.     Part15.Parent = Model1
  176.     Part15.CFrame = CFrame.new(90.6704178, 0.50503701, -74.9047775, -0.544433177, 0, 0.838804305, 0, 1, 0, -0.838804305, 0, -0.544433177)
  177.     Part15.Orientation = Vector3.new(0, 122.989998, 0)
  178.     Part15.Position = Vector3.new(90.6704178, 0.50503701, -74.9047775)
  179.     Part15.Rotation = Vector3.new(-180, 57.0099983, -180)
  180.     Part15.Size = Vector3.new(2, 1, 2)
  181.     Part15.Anchored = true
  182.     Part15.BottomSurface = Enum.SurfaceType.Smooth
  183.     Part15.Locked = true
  184.     Part15.Material = Enum.Material.Slate
  185.     Part15.TopSurface = Enum.SurfaceType.Smooth
  186.     Part16.Parent = Model1
  187.     Part16.CFrame = CFrame.new(91.8220673, 0.505034983, -72.8714371, -0.431093216, 0, 0.902307391, 0, 1, 0, -0.902307391, 0, -0.431093216)
  188.     Part16.Orientation = Vector3.new(0, 115.540001, 0)
  189.     Part16.Position = Vector3.new(91.8220673, 0.505034983, -72.8714371)
  190.     Part16.Rotation = Vector3.new(-180, 64.4599991, -180)
  191.     Part16.Size = Vector3.new(2, 1, 2)
  192.     Part16.Anchored = true
  193.     Part16.BottomSurface = Enum.SurfaceType.Smooth
  194.     Part16.Locked = true
  195.     Part16.Material = Enum.Material.Slate
  196.     Part16.TopSurface = Enum.SurfaceType.Smooth
  197.     mbp.Name = "mbp"
  198.     mbp.Parent = pfolder
  199.     Part18.Name = "pos"
  200.     Part18.Parent = mbp
  201.     Part18.CFrame = CFrame.new(-79.7098083, 1.47504401, -26.2905579, 0.334208131, 0, 0.94249934, 0, 1, 0, -0.94249934, 0, 0.334208131)
  202.     Part18.Orientation = Vector3.new(0, 70.4800034, 0)
  203.     Part18.Position = Vector3.new(-79.7098083, 1.47504401, -26.2905579)
  204.     Part18.Rotation = Vector3.new(0, 70.4800034, 0)
  205.     Part18.Color = Color3.new(0.486275, 0.360784, 0.27451)
  206.     Part18.Transparency = 1
  207.     Part18.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  208.     Part18.Anchored = true
  209.     Part18.BottomSurface = Enum.SurfaceType.Smooth
  210.     Part18.BrickColor = BrickColor.new("Brown")
  211.     Part18.CanCollide = false
  212.     Part18.Material = Enum.Material.Wood
  213.     Part18.TopSurface = Enum.SurfaceType.Smooth
  214.     Part18.brickColor = BrickColor.new("Brown")
  215.     Part18.FormFactor = Enum.FormFactor.Custom
  216.     Part18.formFactor = Enum.FormFactor.Custom
  217.     Part19.Name = "pos"
  218.     Part19.Parent = mbp
  219.     Part19.CFrame = CFrame.new(-26.0978794, 1.47504401, 52.3421745, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  220.     Part19.Orientation = Vector3.new(0, 180, 0)
  221.     Part19.Position = Vector3.new(-26.0978794, 1.47504401, 52.3421745)
  222.     Part19.Rotation = Vector3.new(-180, 0, -180)
  223.     Part19.Color = Color3.new(0.486275, 0.360784, 0.27451)
  224.     Part19.Transparency = 1
  225.     Part19.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  226.     Part19.Anchored = true
  227.     Part19.BottomSurface = Enum.SurfaceType.Smooth
  228.     Part19.BrickColor = BrickColor.new("Brown")
  229.     Part19.CanCollide = false
  230.     Part19.Material = Enum.Material.Wood
  231.     Part19.TopSurface = Enum.SurfaceType.Smooth
  232.     Part19.brickColor = BrickColor.new("Brown")
  233.     Part19.FormFactor = Enum.FormFactor.Custom
  234.     Part19.formFactor = Enum.FormFactor.Custom
  235.     Part20.Name = "pos"
  236.     Part20.Parent = mbp
  237.     Part20.CFrame = CFrame.new(86.536911, 1.47504401, 42.001812, -0.836634159, 0, -0.547762096, 0, 1, 0, 0.547762096, 0, -0.836634159)
  238.     Part20.Orientation = Vector3.new(0, -146.789993, 0)
  239.     Part20.Position = Vector3.new(86.536911, 1.47504401, 42.001812)
  240.     Part20.Rotation = Vector3.new(-180, -33.2099991, -180)
  241.     Part20.Color = Color3.new(0.486275, 0.360784, 0.27451)
  242.     Part20.Transparency = 1
  243.     Part20.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  244.     Part20.Anchored = true
  245.     Part20.BottomSurface = Enum.SurfaceType.Smooth
  246.     Part20.BrickColor = BrickColor.new("Brown")
  247.     Part20.CanCollide = false
  248.     Part20.Material = Enum.Material.Wood
  249.     Part20.TopSurface = Enum.SurfaceType.Smooth
  250.     Part20.brickColor = BrickColor.new("Brown")
  251.     Part20.FormFactor = Enum.FormFactor.Custom
  252.     Part20.formFactor = Enum.FormFactor.Custom
  253.     Part21.Name = "pos"
  254.     Part21.Parent = mbp
  255.     Part21.CFrame = CFrame.new(-20.2911301, 1.47504401, -90.2683029, 0.845749021, 0, 0.533581018, 0, 1, 0, -0.533581018, 0, 0.845749021)
  256.     Part21.Orientation = Vector3.new(0, 32.25, 0)
  257.     Part21.Position = Vector3.new(-20.2911301, 1.47504401, -90.2683029)
  258.     Part21.Rotation = Vector3.new(0, 32.25, 0)
  259.     Part21.Color = Color3.new(0.486275, 0.360784, 0.27451)
  260.     Part21.Transparency = 1
  261.     Part21.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  262.     Part21.Anchored = true
  263.     Part21.BottomSurface = Enum.SurfaceType.Smooth
  264.     Part21.BrickColor = BrickColor.new("Brown")
  265.     Part21.CanCollide = false
  266.     Part21.Material = Enum.Material.Wood
  267.     Part21.TopSurface = Enum.SurfaceType.Smooth
  268.     Part21.brickColor = BrickColor.new("Brown")
  269.     Part21.FormFactor = Enum.FormFactor.Custom
  270.     Part21.formFactor = Enum.FormFactor.Custom
  271.     Part22.Name = "pos"
  272.     Part22.Parent = mbp
  273.     Part22.CFrame = CFrame.new(90.5128632, 1.47504401, -74.9030685, 0.593558788, 0, -0.804790676, 0, 1, 0, 0.804790676, 0, 0.593558788)
  274.     Part22.Orientation = Vector3.new(0, -53.5900002, 0)
  275.     Part22.Position = Vector3.new(90.5128632, 1.47504401, -74.9030685)
  276.     Part22.Rotation = Vector3.new(0, -53.5900002, 0)
  277.     Part22.Color = Color3.new(0.486275, 0.360784, 0.27451)
  278.     Part22.Transparency = 1
  279.     Part22.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  280.     Part22.Anchored = true
  281.     Part22.BottomSurface = Enum.SurfaceType.Smooth
  282.     Part22.BrickColor = BrickColor.new("Brown")
  283.     Part22.CanCollide = false
  284.     Part22.Material = Enum.Material.Wood
  285.     Part22.TopSurface = Enum.SurfaceType.Smooth
  286.     Part22.brickColor = BrickColor.new("Brown")
  287.     Part22.FormFactor = Enum.FormFactor.Custom
  288.     Part22.formFactor = Enum.FormFactor.Custom
  289. end)
  290. wait(0.1)
  291. function spawn_box()
  292.     Model0 = Instance.new("Model")
  293.     Part1 = Instance.new("Part")
  294.     Decal2 = Instance.new("Decal")
  295.     Decal3 = Instance.new("Decal")
  296.     Decal4 = Instance.new("Decal")
  297.     Decal5 = Instance.new("Decal")
  298.     Decal6 = Instance.new("Decal")
  299.     Decal7 = Instance.new("Decal")
  300.     ManualWeld8 = Instance.new("ManualWeld")
  301.     Part9 = Instance.new("Part")
  302.     Decal10 = Instance.new("Decal")
  303.     Decal11 = Instance.new("Decal")
  304.     Decal12 = Instance.new("Decal")
  305.     Decal13 = Instance.new("Decal")
  306.     Decal14 = Instance.new("Decal")
  307.     Decal15 = Instance.new("Decal")
  308.     Part16 = Instance.new("Part")
  309.     Decal17 = Instance.new("Decal")
  310.     Decal18 = Instance.new("Decal")
  311.     Decal19 = Instance.new("Decal")
  312.     Decal20 = Instance.new("Decal")
  313.     Decal21 = Instance.new("Decal")
  314.     Decal22 = Instance.new("Decal")
  315.     ManualWeld23 = Instance.new("ManualWeld")
  316.     Part24 = Instance.new("Part")
  317.     Decal25 = Instance.new("Decal")
  318.     Decal26 = Instance.new("Decal")
  319.     Decal27 = Instance.new("Decal")
  320.     Decal28 = Instance.new("Decal")
  321.     Decal29 = Instance.new("Decal")
  322.     Decal30 = Instance.new("Decal")
  323.     ManualWeld31 = Instance.new("ManualWeld")
  324.     Part32 = Instance.new("Part")
  325.     Decal33 = Instance.new("Decal")
  326.     Decal34 = Instance.new("Decal")
  327.     Decal35 = Instance.new("Decal")
  328.     Decal36 = Instance.new("Decal")
  329.     Decal37 = Instance.new("Decal")
  330.     Decal38 = Instance.new("Decal")
  331.     ManualWeld39 = Instance.new("ManualWeld")
  332.     Part40 = Instance.new("Part")
  333.     Decal41 = Instance.new("Decal")
  334.     Decal42 = Instance.new("Decal")
  335.     Decal43 = Instance.new("Decal")
  336.     Decal44 = Instance.new("Decal")
  337.     Decal45 = Instance.new("Decal")
  338.     Decal46 = Instance.new("Decal")
  339.     ClickDetector47 = Instance.new("ClickDetector")
  340.     Part49 = Instance.new("Part")
  341.     Decal50 = Instance.new("Decal")
  342.     Decal51 = Instance.new("Decal")
  343.     Decal52 = Instance.new("Decal")
  344.     Decal53 = Instance.new("Decal")
  345.     Decal54 = Instance.new("Decal")
  346.     Decal55 = Instance.new("Decal")
  347.     ManualWeld56 = Instance.new("ManualWeld")
  348.     Part57 = Instance.new("Part")
  349.     Model0.Name = "Mystery Box"
  350.     Model0.Parent = nil
  351.     Part1.Name = "Box"
  352.     Part1.Parent = Model0
  353.     Part1.CFrame = CFrame.new(-23.7628765, 0.830034077, 23.0021744, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  354.     Part1.Orientation = Vector3.new(-90, 0, 0)
  355.     Part1.Position = Vector3.new(-23.7628765, 0.830034077, 23.0021744)
  356.     Part1.Rotation = Vector3.new(-90, 0, 0)
  357.     Part1.Color = Color3.new(0.486275, 0.360784, 0.27451)
  358.     Part1.Size = Vector3.new(5.78999758, 0.200000003, 1.63000035)
  359.     Part1.Anchored = true
  360.     Part1.BottomSurface = Enum.SurfaceType.Smooth
  361.     Part1.BrickColor = BrickColor.new("Brown")
  362.     Part1.Material = Enum.Material.Wood
  363.     Part1.TopSurface = Enum.SurfaceType.Smooth
  364.     Part1.brickColor = BrickColor.new("Brown")
  365.     Part1.FormFactor = Enum.FormFactor.Custom
  366.     Part1.formFactor = Enum.FormFactor.Custom
  367.     Decal2.Parent = Part1
  368.     Decal2.Texture = "http://www.roblox.com/asset/?id=27920169"
  369.     Decal2.Face = Enum.NormalId.Top
  370.     Decal3.Parent = Part1
  371.     Decal3.Texture = "http://www.roblox.com/asset/?id=27920146"
  372.     Decal3.Face = Enum.NormalId.Back
  373.     Decal4.Parent = Part1
  374.     Decal4.Texture = "http://www.roblox.com/asset/?id=27920146"
  375.     Decal4.Face = Enum.NormalId.Bottom
  376.     Decal5.Parent = Part1
  377.     Decal5.Texture = "http://www.roblox.com/asset/?id=27920146"
  378.     Decal6.Parent = Part1
  379.     Decal6.Texture = "http://www.roblox.com/asset/?id=27920146"
  380.     Decal6.Face = Enum.NormalId.Left
  381.     Decal7.Parent = Part1
  382.     Decal7.Texture = "http://www.roblox.com/asset/?id=27920146"
  383.     Decal7.Face = Enum.NormalId.Right
  384.     ManualWeld8.Name = "Box-to-Lid1 Strong Joint"
  385.     ManualWeld8.Parent = Part1
  386.     ManualWeld8.C0 = CFrame.new(-2.89499879, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  387.     ManualWeld8.C1 = CFrame.new(-2.89499879, -0.124962807, -0.910106659, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  388.     ManualWeld8.Part0 = Part1
  389.     ManualWeld8.Part1 = Part40
  390.     ManualWeld8.part1 = Part40
  391.     Part9.Name = "Bottom"
  392.     Part9.Parent = Model0
  393.     Part9.CFrame = CFrame.new(-23.74786, 0.465044022, 23.9921646, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  394.     Part9.Orientation = Vector3.new(0, 180, 0)
  395.     Part9.Position = Vector3.new(-23.74786, 0.465044022, 23.9921646)
  396.     Part9.Rotation = Vector3.new(-180, 0, -180)
  397.     Part9.Color = Color3.new(0.486275, 0.360784, 0.27451)
  398.     Part9.Size = Vector3.new(5.81000376, 0.930002034, 1.84000027)
  399.     Part9.Anchored = true
  400.     Part9.BottomSurface = Enum.SurfaceType.Smooth
  401.     Part9.BrickColor = BrickColor.new("Brown")
  402.     Part9.Material = Enum.Material.Wood
  403.     Part9.TopSurface = Enum.SurfaceType.Smooth
  404.     Part9.brickColor = BrickColor.new("Brown")
  405.     Part9.FormFactor = Enum.FormFactor.Custom
  406.     Part9.formFactor = Enum.FormFactor.Custom
  407.     Decal10.Parent = Part9
  408.     Decal10.Texture = "http://www.roblox.com/asset/?id=27920146"
  409.     Decal10.Face = Enum.NormalId.Bottom
  410.     Decal11.Parent = Part9
  411.     Decal11.Texture = "http://www.roblox.com/asset/?id=27920146"
  412.     Decal11.Face = Enum.NormalId.Back
  413.     Decal12.Parent = Part9
  414.     Decal12.Texture = "http://www.roblox.com/asset/?id=27920146"
  415.     Decal12.Face = Enum.NormalId.Right
  416.     Decal13.Parent = Part9
  417.     Decal13.Texture = "http://www.roblox.com/asset/?id=27920146"
  418.     Decal13.Face = Enum.NormalId.Left
  419.     Decal14.Parent = Part9
  420.     Decal14.Texture = "http://www.roblox.com/asset/?id=27920146"
  421.     Decal15.Parent = Part9
  422.     Decal15.Texture = "http://www.roblox.com/asset/?id=27862801"
  423.     Decal15.Face = Enum.NormalId.Top
  424.     Part16.Name = "Box"
  425.     Part16.Parent = Model0
  426.     Part16.CFrame = CFrame.new(-20.7628765, 0.815035045, 24.0121841, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  427.     Part16.Orientation = Vector3.new(-90, 90, 0)
  428.     Part16.Position = Vector3.new(-20.7628765, 0.815035045, 24.0121841)
  429.     Part16.Rotation = Vector3.new(-90, 0, 90)
  430.     Part16.Color = Color3.new(0.486275, 0.360784, 0.27451)
  431.     Part16.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
  432.     Part16.Anchored = true
  433.     Part16.BottomSurface = Enum.SurfaceType.Smooth
  434.     Part16.BrickColor = BrickColor.new("Brown")
  435.     Part16.Material = Enum.Material.Wood
  436.     Part16.TopSurface = Enum.SurfaceType.Smooth
  437.     Part16.brickColor = BrickColor.new("Brown")
  438.     Part16.FormFactor = Enum.FormFactor.Custom
  439.     Part16.formFactor = Enum.FormFactor.Custom
  440.     Decal17.Parent = Part16
  441.     Decal17.Texture = "http://www.roblox.com/asset/?id=27920146"
  442.     Decal17.Face = Enum.NormalId.Bottom
  443.     Decal18.Parent = Part16
  444.     Decal18.Texture = "http://www.roblox.com/asset/?id=27920146"
  445.     Decal18.Face = Enum.NormalId.Back
  446.     Decal19.Parent = Part16
  447.     Decal19.Texture = "http://www.roblox.com/asset/?id=27920146"
  448.     Decal19.Face = Enum.NormalId.Right
  449.     Decal20.Parent = Part16
  450.     Decal20.Texture = "http://www.roblox.com/asset/?id=27920146"
  451.     Decal20.Face = Enum.NormalId.Left
  452.     Decal21.Parent = Part16
  453.     Decal21.Texture = "http://www.roblox.com/asset/?id=27920146"
  454.     Decal21.Face = Enum.NormalId.Top
  455.     Decal22.Parent = Part16
  456.     Decal22.Texture = "http://www.roblox.com/asset/?id=27920146"
  457.     ManualWeld23.Name = "Box-to-Lid1 Strong Joint"
  458.     ManualWeld23.Parent = Part16
  459.     ManualWeld23.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  460.     ManualWeld23.C1 = CFrame.new(3.10000014, -0.13996172, 1.08990288, 0, -1, 0, 0, 0, 1, -1, 0, 0)
  461.     ManualWeld23.Part0 = Part16
  462.     ManualWeld23.Part1 = Part40
  463.     ManualWeld23.part1 = Part40
  464.     Part24.Name = "Box"
  465.     Part24.Parent = Model0
  466.     Part24.CFrame = CFrame.new(-23.7628765, 0.830034077, 25.0021744, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  467.     Part24.Orientation = Vector3.new(-90, 0, 0)
  468.     Part24.Position = Vector3.new(-23.7628765, 0.830034077, 25.0021744)
  469.     Part24.Rotation = Vector3.new(-90, 0, 0)
  470.     Part24.Color = Color3.new(0.486275, 0.360784, 0.27451)
  471.     Part24.Size = Vector3.new(5.78999758, 0.200000003, 1.63000035)
  472.     Part24.Anchored = true
  473.     Part24.BottomSurface = Enum.SurfaceType.Smooth
  474.     Part24.BrickColor = BrickColor.new("Brown")
  475.     Part24.Material = Enum.Material.Wood
  476.     Part24.TopSurface = Enum.SurfaceType.Smooth
  477.     Part24.brickColor = BrickColor.new("Brown")
  478.     Part24.FormFactor = Enum.FormFactor.Custom
  479.     Part24.formFactor = Enum.FormFactor.Custom
  480.     Decal25.Parent = Part24
  481.     Decal25.Texture = "http://www.roblox.com/asset/?id=27920146"
  482.     Decal25.Face = Enum.NormalId.Back
  483.     Decal26.Parent = Part24
  484.     Decal26.Texture = "http://www.roblox.com/asset/?id=27920146"
  485.     Decal26.Face = Enum.NormalId.Top
  486.     Decal27.Parent = Part24
  487.     Decal27.Texture = "http://www.roblox.com/asset/?id=27920146"
  488.     Decal28.Parent = Part24
  489.     Decal28.Texture = "http://www.roblox.com/asset/?id=27920146"
  490.     Decal28.Face = Enum.NormalId.Left
  491.     Decal29.Parent = Part24
  492.     Decal29.Texture = "http://www.roblox.com/asset/?id=27920146"
  493.     Decal29.Face = Enum.NormalId.Right
  494.     Decal30.Parent = Part24
  495.     Decal30.Texture = "http://www.roblox.com/asset/?id=27920199"
  496.     Decal30.Face = Enum.NormalId.Bottom
  497.     ManualWeld31.Name = "Box-to-Lid1 Strong Joint"
  498.     ManualWeld31.Parent = Part24
  499.     ManualWeld31.C0 = CFrame.new(-2.89499879, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  500.     ManualWeld31.C1 = CFrame.new(-2.89499879, -0.124962807, 1.08989334, 1, 0, -0, 0, 0, 1, 0, -1, 0)
  501.     ManualWeld31.Part0 = Part24
  502.     ManualWeld31.Part1 = Part40
  503.     ManualWeld31.part1 = Part40
  504.     Part32.Name = "Box"
  505.     Part32.Parent = Model0
  506.     Part32.CFrame = CFrame.new(-26.7628746, 0.830034077, 24.0021744, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  507.     Part32.Orientation = Vector3.new(-90, -90, 0)
  508.     Part32.Position = Vector3.new(-26.7628746, 0.830034077, 24.0021744)
  509.     Part32.Rotation = Vector3.new(-90, 0, -90)
  510.     Part32.Color = Color3.new(0.486275, 0.360784, 0.27451)
  511.     Part32.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
  512.     Part32.Anchored = true
  513.     Part32.BottomSurface = Enum.SurfaceType.Smooth
  514.     Part32.BrickColor = BrickColor.new("Brown")
  515.     Part32.Material = Enum.Material.Wood
  516.     Part32.TopSurface = Enum.SurfaceType.Smooth
  517.     Part32.brickColor = BrickColor.new("Brown")
  518.     Part32.FormFactor = Enum.FormFactor.Custom
  519.     Part32.formFactor = Enum.FormFactor.Custom
  520.     Decal33.Parent = Part32
  521.     Decal33.Texture = "http://www.roblox.com/asset/?id=27920146"
  522.     Decal33.Face = Enum.NormalId.Bottom
  523.     Decal34.Parent = Part32
  524.     Decal34.Texture = "http://www.roblox.com/asset/?id=27920146"
  525.     Decal34.Face = Enum.NormalId.Back
  526.     Decal35.Parent = Part32
  527.     Decal35.Texture = "http://www.roblox.com/asset/?id=27920146"
  528.     Decal35.Face = Enum.NormalId.Right
  529.     Decal36.Parent = Part32
  530.     Decal36.Texture = "http://www.roblox.com/asset/?id=27920146"
  531.     Decal36.Face = Enum.NormalId.Left
  532.     Decal37.Parent = Part32
  533.     Decal37.Texture = "http://www.roblox.com/asset/?id=27920146"
  534.     Decal37.Face = Enum.NormalId.Top
  535.     Decal38.Parent = Part32
  536.     Decal38.Texture = "http://www.roblox.com/asset/?id=27920146"
  537.     ManualWeld39.Name = "Box-to-Lid1 Strong Joint"
  538.     ManualWeld39.Parent = Part32
  539.     ManualWeld39.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  540.     ManualWeld39.C1 = CFrame.new(-3.09999967, -0.124962807, -1.10010719, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  541.     ManualWeld39.Part0 = Part32
  542.     ManualWeld39.Part1 = Part40
  543.     ManualWeld39.part1 = Part40
  544.     Part40.Name = "Lid"
  545.     Part40.Parent = Model0
  546.     Part40.CFrame = CFrame.new(-23.7629948, 1.77503204, 23.9999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  547.     Part40.Position = Vector3.new(-23.7629948, 1.77503204, 23.9999962)
  548.     Part40.Color = Color3.new(0.486275, 0.360784, 0.27451)
  549.     Part40.Size = Vector3.new(6.20000172, 0.280000001, 2.17999887)
  550.     Part40.Anchored = true
  551.     Part40.BottomSurface = Enum.SurfaceType.Smooth
  552.     Part40.BrickColor = BrickColor.new("Brown")
  553.     Part40.Material = Enum.Material.Wood
  554.     Part40.TopSurface = Enum.SurfaceType.Smooth
  555.     Part40.brickColor = BrickColor.new("Brown")
  556.     Part40.FormFactor = Enum.FormFactor.Custom
  557.     Part40.formFactor = Enum.FormFactor.Custom
  558.     Decal41.Parent = Part40
  559.     Decal41.Texture = "http://www.roblox.com/asset/?id=27921107"
  560.     Decal41.Face = Enum.NormalId.Top
  561.     Decal42.Parent = Part40
  562.     Decal42.Texture = "http://www.roblox.com/asset/?id=27920199"
  563.     Decal42.Face = Enum.NormalId.Right
  564.     Decal43.Parent = Part40
  565.     Decal43.Texture = "http://www.roblox.com/asset/?id=27920199"
  566.     Decal44.Parent = Part40
  567.     Decal44.Texture = "http://www.roblox.com/asset/?id=27920199"
  568.     Decal44.Face = Enum.NormalId.Left
  569.     Decal45.Parent = Part40
  570.     Decal45.Texture = "http://www.roblox.com/asset/?id=27920199"
  571.     Decal45.Face = Enum.NormalId.Back
  572.     Decal46.Parent = Part40
  573.     Decal46.Texture = "http://www.roblox.com/asset/?id=27920146"
  574.     Decal46.Face = Enum.NormalId.Bottom
  575.     ClickDetector47.Parent = Part40
  576.     ClickDetector47.MaxActivationDistance = 15
  577.     Part49.Name = "Box"
  578.     Part49.Parent = Model0
  579.     Part49.CFrame = CFrame.new(-26.7628746, 0.830034077, 24.0021744, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  580.     Part49.Orientation = Vector3.new(-90, -90, 0)
  581.     Part49.Position = Vector3.new(-26.7628746, 0.830034077, 24.0021744)
  582.     Part49.Rotation = Vector3.new(-90, 0, -90)
  583.     Part49.Color = Color3.new(0.486275, 0.360784, 0.27451)
  584.     Part49.Size = Vector3.new(2.17999935, 0.200000003, 1.63000035)
  585.     Part49.Anchored = true
  586.     Part49.BottomSurface = Enum.SurfaceType.Smooth
  587.     Part49.BrickColor = BrickColor.new("Brown")
  588.     Part49.Material = Enum.Material.Wood
  589.     Part49.TopSurface = Enum.SurfaceType.Smooth
  590.     Part49.brickColor = BrickColor.new("Brown")
  591.     Part49.FormFactor = Enum.FormFactor.Custom
  592.     Part49.formFactor = Enum.FormFactor.Custom
  593.     Decal50.Parent = Part49
  594.     Decal50.Texture = "http://www.roblox.com/asset/?id=27920146"
  595.     Decal50.Face = Enum.NormalId.Bottom
  596.     Decal51.Parent = Part49
  597.     Decal51.Texture = "http://www.roblox.com/asset/?id=27920146"
  598.     Decal51.Face = Enum.NormalId.Back
  599.     Decal52.Parent = Part49
  600.     Decal52.Texture = "http://www.roblox.com/asset/?id=27920146"
  601.     Decal52.Face = Enum.NormalId.Right
  602.     Decal53.Parent = Part49
  603.     Decal53.Texture = "http://www.roblox.com/asset/?id=27920146"
  604.     Decal53.Face = Enum.NormalId.Left
  605.     Decal54.Parent = Part49
  606.     Decal54.Texture = "http://www.roblox.com/asset/?id=27920146"
  607.     Decal54.Face = Enum.NormalId.Top
  608.     Decal55.Parent = Part49
  609.     Decal55.Texture = "http://www.roblox.com/asset/?id=27920146"
  610.     ManualWeld56.Name = "Box-to-Lid1 Strong Joint"
  611.     ManualWeld56.Parent = Part49
  612.     ManualWeld56.C0 = CFrame.new(-1.08999968, -0.100000001, 0.815000176, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  613.     ManualWeld56.C1 = CFrame.new(-3.09999967, -0.124962807, -1.10010719, 0, 1, 0, 0, 0, 1, 1, 0, 0)
  614.     ManualWeld56.Part0 = Part49
  615.     ManualWeld56.Part1 = Part40
  616.     ManualWeld56.part1 = Part40
  617.     Part57.Name = "hinge"
  618.     Part57.Parent = Model0
  619.     Part57.Position = Vector3.new(-23.763, 1.775, 24.95)
  620.     Part57.Color = Color3.new(0.486275, 0.360784, 0.27451)
  621.     Part57.Transparency = 1
  622.     Part57.Size = Vector3.new(6.19999981, 0.100000001, 0.100000001)
  623.     Part57.Anchored = true
  624.     Part57.BottomSurface = Enum.SurfaceType.Smooth
  625.     Part57.BrickColor = BrickColor.new("Brown")
  626.     Part57.CanCollide = false
  627.     Part57.Material = Enum.Material.Wood
  628.     Part57.TopSurface = Enum.SurfaceType.Smooth
  629.     Part57.brickColor = BrickColor.new("Brown")
  630.     Part57.FormFactor = Enum.FormFactor.Custom
  631.     Part57.formFactor = Enum.FormFactor.Custom
  632.    
  633.     local click,lid,hinge,bottom
  634.    
  635.     for i,v in pairs(Model0:GetChildren()) do
  636.         if v.Name == 'Lid' then
  637.             lid = v
  638.             click = v:FindFirstChildOfClass("ClickDetector")
  639.         elseif v.Name == 'hinge' then
  640.             hinge = v
  641.         elseif v.Name == 'Bottom' then
  642.             bottom = v
  643.         end
  644.     end
  645.    
  646.     local light = Instance.new("PointLight")
  647.     light.Parent = hinge
  648.     light.Color = Color3.new(1, 1, 0)
  649.     light.Enabled = true
  650.     light.Range = 0 -- 8
  651.     light.Brightness = 0 -- 10
  652.    
  653.     local clicked = false
  654.    
  655.     local weapons = {
  656.         {
  657.             name = 'ak 47';
  658.             obj = function()
  659.                 local han = Instance.new("Part")
  660.                 local SpecialMesh2 = Instance.new("SpecialMesh")
  661.                 han.Name = "Handle"
  662.                 han.Parent = nil
  663.                 han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664.                 han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  665.                 han.Size = Vector3.new(5.579, 1.578, 0.256)
  666.                 han.Color = Color3.fromRGB(91, 93, 105)
  667.                 han.BottomSurface = Enum.SurfaceType.Smooth
  668.                 han.TopSurface = Enum.SurfaceType.Smooth
  669.                 SpecialMesh2.Parent = han
  670.                 SpecialMesh2.MeshId = "rbxassetid://1877846291"
  671.                 SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
  672.                 SpecialMesh2.TextureId = ""
  673.                 SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  674.                 return han
  675.             end;
  676.         };
  677.         {
  678.             name = 'aug a2';
  679.             obj = function()
  680.                 local han = Instance.new("Part")
  681.                 local SpecialMesh2 = Instance.new("SpecialMesh")
  682.                 han.Name = "Handle"
  683.                 han.Parent = nil
  684.                 han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  685.                 han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  686.                 han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
  687.                 han.Color = Color3.fromRGB(75, 151, 75)
  688.                 han.BottomSurface = Enum.SurfaceType.Smooth
  689.                 han.TopSurface = Enum.SurfaceType.Smooth
  690.                 SpecialMesh2.Parent = han
  691.                 SpecialMesh2.MeshId = "rbxassetid://1877851197"
  692.                 SpecialMesh2.Scale = Vector3.new(0.006, 0.006, 0.006)
  693.                 SpecialMesh2.TextureId = ""
  694.                 SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  695.                 return han
  696.             end;
  697.         };
  698.         {
  699.             name = 'bfg 50';
  700.             obj = function()
  701.                 local han = Instance.new("Part")
  702.                 local SpecialMesh2 = Instance.new("SpecialMesh")
  703.                 han.Name = "Handle"
  704.                 han.Parent = nil
  705.                 han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  706.                 han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  707.                 han.Size = Vector3.new(1.44, 0.6, 7.19)
  708.                 han.BrickColor = BrickColor.Random()
  709.                 han.BottomSurface = Enum.SurfaceType.Smooth
  710.                 han.TopSurface = Enum.SurfaceType.Smooth
  711.                 SpecialMesh2.Parent = han
  712.                 SpecialMesh2.MeshId = "rbxassetid://450273008"
  713.                 SpecialMesh2.Scale = Vector3.new(0.03, 0.03, 0.03)
  714.                 SpecialMesh2.TextureId = ""
  715.                 SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  716.                 return han,CFrame.Angles(math.rad(0),math.rad(-90),math.rad(90))
  717.             end;
  718.         };
  719.         {
  720.             name = 'deagle';
  721.             obj = function()
  722.                 local han = Instance.new("Part")
  723.                 local SpecialMesh2 = Instance.new("SpecialMesh")
  724.                 han.Name = "Handle"
  725.                 han.Parent = nil
  726.                 han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  727.                 han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  728.                 han.Size = Vector3.new(3.46399999, 2.14199996, 0.529999971)
  729.                 han.BottomSurface = Enum.SurfaceType.Smooth
  730.                 han.TopSurface = Enum.SurfaceType.Smooth
  731.                 SpecialMesh2.Parent = han
  732.                 SpecialMesh2.MeshId = "rbxassetid://464797091"
  733.                 SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  734.                 SpecialMesh2.TextureId = "rbxassetid://464797118"
  735.                 SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  736.                 return han
  737.             end;
  738.         };
  739.         {
  740.             name = 'famas g2';
  741.             obj = function()
  742.                 local han = Instance.new("Part")
  743.                 local SpecialMesh2 = Instance.new("SpecialMesh")
  744.                 han.Name = "Handle"
  745.                 han.Parent = nil
  746.                 han.CFrame = CFrame.new(-12.4460001, 1.07099998, -5.64400005, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  747.                 han.Position = Vector3.new(-12.4460001, 1.07099998, -5.64400005)
  748.                 han.Size = Vector3.new(5.08, 1.824, 0.21)
  749.                 han.Color = Color3.fromRGB(27, 42, 53)
  750.                 han.BottomSurface = Enum.SurfaceType.Smooth
  751.                 han.TopSurface = Enum.SurfaceType.Smooth
  752.                 SpecialMesh2.Parent = han
  753.                 SpecialMesh2.MeshId = "rbxassetid://1877852381"
  754.                 SpecialMesh2.Scale = Vector3.new(0.007, 0.007, 0.007)
  755.                 SpecialMesh2.TextureId = ""
  756.                 SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  757.                 return han
  758.             end;
  759.         };
  760.         {
  761.             name = 'teddy';
  762.             obj = function()
  763.                 local teddy = Instance.new("Part")
  764.                 local SpecialMesh1 = Instance.new("SpecialMesh")
  765.                 teddy.Name = "Teddybear"
  766.                 teddy.Parent = nil
  767.                 teddy.CFrame = CFrame.new(-4.81353617, 6.18395519, 17.2851868)
  768.                 teddy.Position = Vector3.new(-4.81353617, 6.18395519, 17.2851868)
  769.                 teddy.Color = Color3.new(0.388235, 0.372549, 0.384314)
  770.                 teddy.Size = Vector3.new(1, 1.60000002, 3)
  771.                 teddy.Anchored = true
  772.                 teddy.CanCollide = false
  773.                 teddy.BottomSurface = Enum.SurfaceType.Smooth
  774.                 teddy.BrickColor = BrickColor.new("Dark stone grey")
  775.                 teddy.Reflectance = 0.40000000596046
  776.                 teddy.TopSurface = Enum.SurfaceType.Smooth
  777.                 teddy.brickColor = BrickColor.new("Dark stone grey")
  778.                 SpecialMesh1.Parent = teddy
  779.                 SpecialMesh1.MeshId = "http://www.roblox.com/asset/?id=12218321"
  780.                 SpecialMesh1.TextureId = "http://www.roblox.com/asset/?id=12218077"
  781.                 SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  782.                 return teddy,CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))
  783.             end;
  784.         };
  785.     }
  786.    
  787.     local weapon = {}
  788.     local rid = false
  789.    
  790.     local function random_item(id)
  791.         spawn(function()
  792.             if not rid or id then
  793.                 rid = true
  794.                 pcall(function()
  795.                     weapon.obj:Destroy()
  796.                 end)
  797.                 local wep = weapons[id or math.random(1,#weapons-1)]
  798.                 local obj,rot = wep.obj()
  799.                 if rot then else rot = CFrame.Angles(0,0,0); end;
  800.                 obj.CFrame = bottom.CFrame*CFrame.new(0,3,0)*rot
  801.                 obj.Anchored = true
  802.                 obj.CanCollide = false
  803.                 obj.Parent = script
  804.                 weapon = {obj = obj,name = wep.name,rot = rot}
  805.                 wait(0.1)
  806.                 rid = false
  807.             end
  808.         end)
  809.     end
  810.    
  811.     click.MaxActivationDistance = 15
  812.     click.MouseClick:Connect(function(clicker)
  813.         if not clicked then
  814.             clicked = true
  815.             local open = Instance.new("Sound")
  816.             open.SoundId = "rbxassetid://3140021223"
  817.             open.Volume = 3
  818.             open.Parent = hinge
  819.             open:Play()
  820.             for i = 1,5 do
  821.                 local center = hinge.CFrame
  822.                 local newcenter
  823.                 newcenter = center*CFrame.Angles(math.rad(12), 0, 0)
  824.                 lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
  825.                 wait()
  826.             end
  827.             game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 8,Brightness = 10}):Play()
  828.             spawn(function()
  829.                 for i = 1,5 do
  830.                     local center = hinge.CFrame
  831.                     local newcenter
  832.                     newcenter = center*CFrame.Angles(math.rad(12), 0, 0)
  833.                     lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
  834.                     wait()
  835.                 end
  836.             end)
  837.             click.MaxActivationDistance = 0
  838.             repeat random_item(); wait(0.1); until open.TimePosition >= 4.8
  839.             wait(0.1)
  840.             random_item(math.random(1,#weapons))
  841.             wait(0.1)
  842.             local taken = false
  843.             local done = false
  844.             if weapon.name ~= 'teddy' then
  845.                 weapon.obj.Touched:Connect(function(obj)
  846.                     local plr,char,hum
  847.                     pcall(function()
  848.                         char = obj.Parent
  849.                     end)
  850.                     pcall(function()
  851.                         plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  852.                     end)
  853.                     pcall(function()
  854.                         hum = char:FindFirstChildOfClass("Humanoid")
  855.                     end)
  856.                     if plr and (plr == clicker) and char and hum and hum.Health > 0 and not taken and not done then
  857.                         taken = true
  858.                         pcall(function()
  859.                             local s = guns:FindFirstChild(weapon.name):Clone()
  860.                             s.Disabled = false
  861.                             s.Parent = clicker:FindFirstChild("Backpack")
  862.                         end)
  863.                     end
  864.                 end)
  865.                 game:GetService("TweenService"):Create(weapon.obj,TweenInfo.new(12),{CFrame = bottom.CFrame*weapon.rot*CFrame.new(0,-0.25,0)}):Play()
  866.                 spawn(function()
  867.                     wait(12)
  868.                     done = true
  869.                 end)
  870.             else
  871.                 done = true; taken = true;
  872.                 local teddy = Instance.new("Sound")
  873.                 teddy.SoundId = "rbxassetid://131142784"
  874.                 teddy.Volume = 4
  875.                 teddy.Parent = script
  876.                 teddy:Play()
  877.                 wait(4)
  878.             end
  879.             repeat wait() until taken or done
  880.             game:GetService("TweenService"):Create(weapon.obj,TweenInfo.new(1),{Transparency = 1}):Play()
  881.             wait(1)
  882.             local close = Instance.new("Sound")
  883.             close.SoundId = "rbxassetid://3140021639"
  884.             close.Volume = 3
  885.             close.Parent = hinge
  886.             close:Play()
  887.             if weapon.name ~= 'teddy' then
  888.                 spawn(function()
  889.                     for i = 1,10 do
  890.                         local center = hinge.CFrame
  891.                         local newcenter
  892.                         newcenter = center*CFrame.Angles(math.rad(-12), 0, 0)
  893.                         lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
  894.                         wait()
  895.                     end
  896.                 end)
  897.                 game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 0,Brightness = 0}):Play()
  898.                 pcall(function()
  899.                     weapon.obj:Destroy()
  900.                 end)
  901.                 repeat wait() until close.TimePosition >= 2
  902.                 click.MaxActivationDistance = 15
  903.                 clicked = false
  904.             else
  905.                 game:GetService("TweenService"):Create(light,TweenInfo.new(1),{Range = 0,Brightness = 0}):Play()
  906.                 pcall(function()
  907.                     weapon.obj:Destroy()
  908.                 end)
  909.                 for i = 1,10 do
  910.                     local center = hinge.CFrame
  911.                     local newcenter
  912.                     newcenter = center*CFrame.Angles(math.rad(-12), 0, 0)
  913.                     lid.CFrame = (newcenter*(center:Inverse()*lid.CFrame))
  914.                     wait()
  915.                 end
  916.                 for i,v in pairs(Model0:GetChildren()) do
  917.                     if v:IsA("BasePart") and v ~= bottom then
  918.                         local weld = Instance.new("Weld")
  919.                         weld.Part0 = bottom
  920.                         weld.Part1 = v
  921.                         weld.C0 = bottom.CFrame:Inverse()
  922.                         weld.C1 = v.CFrame:Inverse()
  923.                         weld.Parent = v
  924.                         v.Anchored = false
  925.                     end
  926.                 end
  927.                 spawn(function()
  928.                     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()
  929.                     for i = 1,2 do
  930.                         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()
  931.                         wait(1)
  932.                         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()
  933.                         wait(1)
  934.                     end
  935.                 end)
  936.                 for i,v in pairs(Model0:GetDescendants()) do
  937.                     if v:IsA("BasePart") then
  938.                         v.CanCollide = false
  939.                     end
  940.                     if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
  941.                         game:GetService("TweenService"):Create(v,TweenInfo.new(4),{Transparency = 1}):Play()
  942.                     end
  943.                 end
  944.                 game:GetService("Debris"):AddItem(Model0,10)
  945.                 wait(30)
  946.                 local spawned = Instance.new("Sound")
  947.                 spawned.SoundId = "rbxassetid://1302431409"
  948.                 spawned.Volume = 4
  949.                 spawned.Parent = script
  950.                 spawned:Play()
  951.                 spawn_box()
  952.             end
  953.         end
  954.     end)
  955.     for i,v in pairs(Model0:GetChildren()) do
  956.         if v:IsA("BasePart") and v ~= bottom then
  957.             local weld = Instance.new("Weld")
  958.             weld.Part0 = bottom
  959.             weld.Part1 = v
  960.             weld.C0 = bottom.CFrame:Inverse()
  961.             weld.C1 = v.CFrame:Inverse()
  962.             weld.Parent = v
  963.             v.Anchored = false
  964.         end
  965.     end
  966.     Model0.Parent = script
  967.     local mbp_t = {}
  968.     for i,v in pairs(mbp:GetChildren()) do
  969.         if v:IsA("BasePart") then
  970.             table.insert(mbp_t,1,v)
  971.         end
  972.     end
  973.     print(Model0.Parent)
  974.     print'a'
  975.     bottom.CFrame = mbp_t[math.random(1,#mbp_t)].CFrame
  976.     for i,v in pairs(Model0:GetChildren()) do
  977.         if v:IsA("BasePart") and v ~= bottom then
  978.             v.Anchored = true
  979.             v:BreakJoints()
  980.         end
  981.     end
  982. end
  983.  
  984. spawn_box()
Add Comment
Please, Sign In to add comment