Advertisement
bobopopcornboy

bigboxserver

Sep 6th, 2024
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. --out box
  2. Folder = Instance.new('Folder')
  3. Folder.Parent = workspace
  4. Folder.Name = 'bigin'
  5. obox = Folder
  6. pos = Vector3.new(200,0,0)
  7. ro = Vector3.new(0,0,0)
  8. Part = Instance.new('Part')
  9. Part.Parent = Folder
  10. Part.Size = Vector3.new(1,8,6)
  11. Part.Position = Vector3.new(pos.X + 4,pos.Y + 3.5,pos.Z + -0.5)
  12. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  13. Part.Anchored = true
  14. back = Instance.new('Part')
  15. back.Parent = Folder
  16. back.Size = Vector3.new(8,8,1)
  17. back.Position = Vector3.new(pos.X + 0.5,pos.Y + 3.5,pos.Z + 3)
  18. back.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  19. back.Anchored = true
  20. inn = Instance.new('Part')
  21. inn.Parent = Folder
  22. inn.Size = Vector3.new(6,8,6)
  23. inn.Position = Vector3.new(pos.X + 0.5,pos.Y + 3.5,pos.Z + -0.5)
  24. inn.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  25. inn.Anchored = true
  26. Part = Instance.new('Part')
  27. Part.Parent = Folder
  28. Part.Size = Vector3.new(2,8,6)
  29. Part.Position = Vector3.new(pos.X + -3.5,pos.Y + 3.5,pos.Z + -0.5)
  30. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  31. Part.Anchored = true
  32. Part = Instance.new('Part')
  33. Part.Parent = Folder
  34. Part.Size = Vector3.new(6,1,7)
  35. Part.Position = Vector3.new(pos.X + 0.5,pos.Y + 8,pos.Z + 0)
  36. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  37. Part.Anchored = true
  38. front = Instance.new('Part')
  39. front.Parent = Folder
  40. front.Size = Vector3.new(6,8,1)
  41. front.Position = Vector3.new(pos.X + 0.5,pos.Y + 3.5,pos.Z + -4)
  42. front.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  43. front.Anchored = true
  44. b1 = Instance.new('Part')
  45. b1.Parent = Folder
  46. b1.Size = Vector3.new(1,1,1)
  47. b1.Position = Vector3.new(pos.X + -4,pos.Y + 4,pos.Z + -4)
  48. b1.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  49. b1.Anchored = true
  50. --out box
  51. Folder = Instance.new('Folder')
  52. Folder.Parent = obox
  53. Folder.Name = "room"
  54. Part = Instance.new('Part')
  55. Part.Parent = Folder
  56. Part.Size = Vector3.new(10,6,1)
  57. Part.Position = Vector3.new(pos.X + 0.5,pos.Y + 10.5,pos.Z + 3)
  58. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  59. Part.Anchored = true
  60. Part = Instance.new('Part')
  61. Part.Parent = Folder
  62. Part.Size = Vector3.new(7,14,1)
  63. Part.Position = Vector3.new(pos.X + 8,pos.Y + 6.5,pos.Z + 3)
  64. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  65. Part.Anchored = true
  66. Part = Instance.new('Part')
  67. Part.Parent = Folder
  68. Part.Size = Vector3.new(14,14,1)
  69. Part.Position = Vector3.new(pos.X + -10.500001907348633,pos.Y + 6.5,pos.Z + 3)
  70. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  71. Part.Anchored = true
  72. Part = Instance.new('Part')
  73. Part.Parent = Folder
  74. Part.Size = Vector3.new(1,14,32)
  75. Part.Position = Vector3.new(pos.X + 11,pos.Y + 6.5,pos.Z + 18.5)
  76. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  77. Part.Anchored = true
  78. Part = Instance.new('Part')
  79. Part.Parent = Folder
  80. Part.Size = Vector3.new(29,14,1)
  81. Part.Position = Vector3.new(pos.X + -3,pos.Y + 6.5,pos.Z + 34)
  82. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  83. Part.Anchored = true
  84. Part = Instance.new('Part')
  85. Part.Parent = Folder
  86. Part.Size = Vector3.new(1,14,32)
  87. Part.Position = Vector3.new(pos.X + -18,pos.Y + 6.5,pos.Z + 18.5)
  88. Part.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  89. Part.Anchored = true
  90. b2 = Instance.new('Part')
  91. b2.Parent = Folder
  92. b2.Size = Vector3.new(2,1,1)
  93. b2.Position = Vector3.new(pos.X + -4.500001907348633,pos.Y + 5,pos.Z + 4)
  94. b2.Rotation = Vector3.new(ro.X + 0,ro.Y + 0,ro.Z + 0)
  95. b2.Anchored = true
  96. --code
  97. inbox = inn
  98. inn.Transparency = 1
  99. inn.CanCollide = false
  100. see = {}
  101. state = 0
  102. event = Instance.new("RemoteEvent")
  103. event.Name = 'event'
  104. event.Parent = obox
  105.  
  106. wait(15)
  107. lscript = owner.PlayerGui.bigboxLocal
  108.  
  109. local players = game.Players:GetChildren()
  110. for i =1, #players do
  111. local c = lscript:Clone()
  112. c.Parent = players[i].PlayerGui
  113. see[players[i].Name] = false
  114. end
  115.  
  116. cd1 = Instance.new("ClickDetector")
  117. cd1.Parent = b1
  118.  
  119. cd2 = Instance.new("ClickDetector")
  120. cd2.Parent = b2
  121.  
  122. inbox.Touched:Connect(function(Part)
  123. local pa = Part.Parent
  124. if game.Players:GetPlayerFromCharacter(pa) then
  125. local player = game.Players:GetPlayerFromCharacter(pa)
  126. if not see[player.Name] then
  127. see[player.Name] = true
  128. else
  129. if state == 11 then
  130. see[player.Name] = true
  131. elseif state == 21 then
  132. see[player.Name] = false
  133. end
  134.  
  135. end
  136. end
  137. end)
  138.  
  139. cd1.MouseClick:Connect(function(plyr)
  140. if state == 0 then
  141. state = 1
  142. front.Transparency = 1
  143. front.CanCollide = false
  144. wait(2)
  145. front.Transparency = 0
  146. front.CanCollide = true
  147. state = 11
  148. wait(2)
  149. back.Transparency = 1
  150. back.CanCollide = false
  151. wait(2)
  152. back.Transparency = 0
  153. back.CanCollide = true
  154. state = 0
  155. end
  156. end)
  157.  
  158. cd2.MouseClick:Connect(function(plyr)
  159. if state == 0 then
  160. state = 2
  161. back.Transparency = 1
  162. back.CanCollide = false
  163. wait(2)
  164. state = 21
  165. back.Transparency = 0
  166. back.CanCollide = true
  167. wait(2)
  168. front.Transparency = 1
  169. front.CanCollide = false
  170. wait(2)
  171. front.Transparency = 0
  172. front.CanCollide = true
  173. state = 0
  174. end
  175. end)
  176.  
  177. while wait() do
  178. for i,v in pairs(see) do
  179. local player = game.Players:FindFirstChild(i)
  180. if player then
  181. event:FireClient(player,v)
  182. end
  183. end
  184. end
Tags: Roblox
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement