Advertisement
refrop

box house v5

Jun 4th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.36 KB | None | 0 0
  1. local runDummyScript = function(f,scri)
  2. local oldenv = getfenv(f)
  3. local newenv = setmetatable({}, {
  4. __index = function(_, k)
  5. if k:lower() == 'script' then
  6. return script
  7. else
  8. return oldenv[k]
  9. end
  10. end
  11. })
  12. setfenv(f, newenv)
  13. ypcall(function() f() end)
  14. end
  15. cors = {}
  16. Wo = Instance.new("Model",game:GetService("Lighting"))
  17. Wo.Name = "CompiledModel"
  18.  
  19. local b1 = Instance.new("Part")
  20. b1.Name = "b1"
  21. local b2 = Instance.new("Part")
  22. b2.Name = "b2"
  23. local b3 = Instance.new("Part")
  24. b3.Name = "b3"
  25. local b4 = Instance.new("Part")
  26. b4.Name = "b4"
  27. local b5 = Instance.new("Part")
  28. b5.Name = "b5"
  29. local b6 = Instance.new("Part")
  30. b6.Name = "b6"
  31. local b7 = Instance.new("Part")
  32. b7.Name = "b7"
  33. local b8 = Instance.new("Part")
  34. b8.Name = "b8"
  35.  
  36. local bp = Instance.new("Part")
  37. local Shrek = Instance.new("Decal")
  38. bp.Name = "bp"
  39.  
  40.  
  41.  
  42. local truss = Instance.new("TrussPart")
  43. truss.Name = "truss"
  44. local bn = Instance.new("Part")
  45. bn.Name = "bn"
  46. local bnl = Instance.new("PointLight")
  47. local bnd = Instance.new("Decal")
  48. local sound = Instance.new("Sound")
  49. local sound2 = Instance.new("Sound")
  50. sound2.Name = "Sound2"
  51.  
  52. local sp = Instance.new("Part")
  53. sp.Name = "GameSpawn"
  54.  
  55.  
  56.  
  57. local tp = Instance.new("Part")
  58. tp.Name = "tp"
  59.  
  60.  
  61.  
  62. local sz = Instance.new("Part")
  63. sz.Name = "safezone"
  64.  
  65.  
  66. local bfloor = Instance.new("Part")
  67. bfloor.Name = "bfloor"
  68.  
  69.  
  70.  
  71. local srch = Instance.new("Part")
  72. srch.Name = "srch"
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80. --Wo.Parent = workspace
  81. wait(0.2)
  82. local W = Wo
  83.  
  84. b1.Parent = W
  85. b1.Position = Vector3.new(-53.949, 21.553, -79.903)
  86. b1.Orientation = Vector3.new(0, 0, 0)
  87. b1.Size = Vector3.new(0.543, 43.105, 45.265)
  88. b1.Anchored = true
  89. b1.BrickColor = BrickColor.new("Cork")
  90. b1.Material = Enum.Material.SmoothPlastic
  91.  
  92. b2.Parent = W
  93. b2.Position = Vector3.new(-30.621, 22.409, -101.942)
  94. b2.Orientation = Vector3.new(0, 0, 0)
  95. b2.Size = Vector3.new(47.199, 43.105, 1.186)
  96. b2.Anchored = true
  97. b2.BrickColor = BrickColor.new("Cork")
  98. b2.Material = Enum.Material.SmoothPlastic
  99.  
  100. b3.Parent = W
  101. b3.Position = Vector3.new(-7.424, 22.409, -79.903)
  102. b3.Orientation = Vector3.new(0, 0, 0)
  103. b3.Size = Vector3.new(0.543, 43.105, 45.265)
  104. b3.Anchored = true
  105. b3.BrickColor = BrickColor.new("Cork")
  106. b3.Material = Enum.Material.SmoothPlastic
  107.  
  108. b4.Parent = W
  109. b4.Position = Vector3.new(-30.621, 29.006, -57.776)
  110. b4.Orientation = Vector3.new(0, 0, 0)
  111. b4.Size = Vector3.new(47.199, 29.912, 1.186)
  112. b4.Anchored = true
  113. b4.BrickColor = BrickColor.new("Cork")
  114. b4.Material = Enum.Material.SmoothPlastic
  115.  
  116. b5.Parent = W
  117. b5.Position = Vector3.new(-47.034, 7.05, -57.776)
  118. b5.Orientation = Vector3.new(0, 0, 0)
  119. b5.Size = Vector3.new(14.373, 14.1, 1.186)
  120. b5.Anchored = true
  121. b5.BrickColor = BrickColor.new("Cork")
  122. b5.Material = Enum.Material.SmoothPlastic
  123.  
  124. b6.Parent = W
  125. b6.Position = Vector3.new(-14.358, 7.05, -57.776)
  126. b6.Orientation = Vector3.new(0, 0, 0)
  127. b6.Size = Vector3.new(14.373, 14.1, 1.186)
  128. b6.Anchored = true
  129. b6.BrickColor = BrickColor.new("Cork")
  130. b6.Material = Enum.Material.SmoothPlastic
  131.  
  132. b7.Parent = W
  133. b7.Position = Vector3.new(2.166, 50.652, -79.903)
  134. b7.Orientation = Vector3.new(0, 0, -55)
  135. b7.Size = Vector3.new(0.543, 23.464, 45.265)
  136. b7.Anchored = true
  137. b7.BrickColor = BrickColor.new("Cork")
  138. b7.Material = Enum.Material.SmoothPlastic
  139.  
  140. b8.Parent = W
  141. b8.Position = Vector3.new(-63.741, 50.53, -79.903)
  142. b8.Orientation = Vector3.new(0, 0, -35)
  143. b8.Size = Vector3.new(24.45, 0.577, 45.265)
  144. b8.Anchored = true
  145. b8.BrickColor = BrickColor.new("Cork")
  146. b8.Material = Enum.Material.SmoothPlastic
  147.  
  148.  
  149.  
  150. bp.Parent = W
  151. bp.Position = Vector3.new(-41.371, 9.227, -101.324)
  152. bp.Orientation = Vector3.new(0, 180, -15)
  153. bp.Size = Vector3.new(6.56, 6.084, 0.05)
  154. bp.Anchored = true
  155. bp.BrickColor = BrickColor.new("Institutional white")
  156. bp.Material = Enum.Material.SmoothPlastic
  157.  
  158. Shrek.Parent = bp
  159. Shrek.Texture = "http://www.roblox.com/asset/?id=4673386763"
  160.  
  161.  
  162.  
  163. bn.Parent = W
  164. bn.Position = Vector3.new(-31.213, 6.875, -100.017)
  165. bn.Orientation = Vector3.new(0, 180, 0)
  166. bn.Size = Vector3.new(16.282, 10.896, 1.459)
  167. bn.Anchored = true
  168. bn.Transparency = 1
  169. bn.BrickColor = BrickColor.new("Institutional white")
  170. bn.Material = Enum.Material.SmoothPlastic
  171.  
  172.  
  173.  
  174. bnl.Parent = bn
  175. bnl.Brightness = 2
  176. bnl.Range = 18
  177.  
  178.  
  179. bnd.Parent = bn
  180. bnd.Texture = "http://www.roblox.com/asset/?id=6357211783"
  181.  
  182. sound.Parent = bn
  183. sound.Volume = 5
  184. sound.Looped = true
  185. sound.Playing = true
  186. sound.SoundId = "http://www.roblox.com/asset/?id=504876952"
  187.  
  188. sound2.Parent = bn
  189. sound2.Volume = 5
  190. sound2.Looped = true
  191. sound2.Playing = false
  192. sound2.SoundId = "http://www.roblox.com/asset/?id=6868809977"
  193.  
  194.  
  195.  
  196. truss.Parent = W
  197. truss.Position = Vector3.new(-12.262, 22.19, -99.505)
  198. truss.Orientation = Vector3.new(0, 0, 0)
  199. truss.Size = Vector3.new(2, 42.64, 2)
  200. truss.Anchored = true
  201. truss.BrickColor = BrickColor.new("Cork")
  202. truss.Material = Enum.Material.Neon
  203.  
  204.  
  205. sp.Parent = W
  206. sp.Position = Vector3.new(-30.767, 18.679, -79.903)
  207. sp.Orientation = Vector3.new(0, 0, 0)
  208. sp.Size = Vector3.new(12, 1, 12)
  209. sp.Anchored = true
  210. sp.BrickColor = BrickColor.new("Cork")
  211. sp.Material = Enum.Material.SmoothPlastic
  212. sp.Transparency = 1
  213. sp.CanCollide = false
  214.  
  215.  
  216.  
  217. tp.Parent = W
  218. tp.Position = Vector3.new(-9.75, 0.5, 66.38)
  219. tp.Orientation = Vector3.new(0, 0, 0)
  220. tp.Size = Vector3.new(5000, 1, 5000)
  221. tp.Anchored = true
  222. tp.BrickColor = BrickColor.new("Bright green")
  223. tp.Material = Enum.Material.Neon
  224.  
  225.  
  226.  
  227. sz.Parent = W
  228. sz.Position = Vector3.new(-9.176, 2.304, -78.906)
  229. sz.Orientation = Vector3.new(0, 0, 0)
  230. sz.Size = Vector3.new(2.854, 0.869, 3.605)
  231. sz.Anchored = true
  232. sz.BrickColor = tp.BrickColor
  233. sz.Material = Enum.Material.Neon
  234.  
  235.  
  236. -------
  237.  
  238.  
  239.  
  240. ----------
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. bfloor.Parent = W
  249. bfloor.Position = Vector3.new(-30.767, 1.291, -79.903)
  250. bfloor.Orientation = Vector3.new(0, 0, 0)
  251. bfloor.Size = Vector3.new(46.905, 0.869, 45.265)
  252. bfloor.Anchored = true
  253. bfloor.BrickColor = BrickColor.new("Cork")
  254. bfloor.Material = Enum.Material.SmoothPlastic
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265. ----search for refrop---------
  266.  
  267.  
  268. srch.Parent = W
  269. srch.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(0, 0, 5)
  270. srch.Orientation = Vector3.new(0, 0, 0)
  271. srch.Size = Vector3.new(4, 4, 4)
  272. srch.Anchored = true
  273. srch.CanCollide = false
  274. srch.BrickColor = BrickColor.new("Really red")
  275. srch.Material = Enum.Material.Neon
  276.  
  277.  
  278.  
  279.  
  280. ----search for refrop---------
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288. print("end")
  289.  
  290.  
  291. Wo.Parent = workspace
  292. Wo:MakeJoints()
  293. local mas1 = Wo:GetChildren()
  294. for i=1,#mas1 do
  295. mas1[i].Parent = workspace
  296. ypcall(function() mas1[i]:MakeJoints() end)
  297. end
  298. Wo:Destroy()
  299. for i=1,#cors do
  300. coroutine.resume(cors[i])
  301. end
  302.  
  303. local safezone = true
  304. local boom = true
  305.  
  306. game.Workspace.tp.Touched:Connect(function(hit)
  307.  
  308. if safezone == false then
  309.  
  310.  
  311. local char = hit.Parent
  312.  
  313. char.HumanoidRootPart.CFrame = game.Workspace.GameSpawn.CFrame
  314.  
  315.  
  316. else
  317.  
  318.  
  319.  
  320.  
  321. end
  322.  
  323. end)
  324.  
  325. game.Workspace.safezone.Touched:Connect(function(hit)
  326.  
  327.  
  328. if safezone == true then
  329.  
  330. safezone = false
  331.  
  332. game.Workspace.safezone.BrickColor = BrickColor.new("Really red")
  333. game.Workspace.tp.BrickColor = BrickColor.new("Really red")
  334.  
  335. wait(1)
  336.  
  337. safezone = false
  338.  
  339. else
  340.  
  341.  
  342.  
  343.  
  344. game.Workspace.safezone.BrickColor = BrickColor.new("Bright green")
  345. game.Workspace.tp.BrickColor = BrickColor.new("Bright green")
  346.  
  347. wait(1)
  348.  
  349. safezone = true
  350.  
  351. end
  352.  
  353. -----------------------------------------------------
  354.  
  355.  
  356.  
  357. end)
  358.  
  359.  
  360.  
  361. ----boombox-------
  362.  
  363. game.Workspace.bn.Touched:Connect(function(hit)
  364.  
  365.  
  366. if boom == true then
  367.  
  368.  
  369.  
  370. game.Workspace.bn.PointLight.Color = Color3.new(0, 1, 1)
  371. game.Workspace.bn.Sound.Playing = false
  372. game.Workspace.bn.Sound2.Playing = true
  373.  
  374. wait(2)
  375. boom = false
  376.  
  377. else
  378.  
  379.  
  380. boom = true
  381.  
  382. game.Workspace.bn.PointLight.Color = Color3.new(1, 1, 1)
  383. game.Workspace.bn.Sound.Playing = true
  384. game.Workspace.bn.Sound2.Playing = false
  385.  
  386. wait(2)
  387. boom = true
  388.  
  389. end
  390.  
  391. -----------------------------------------------------
  392.  
  393.  
  394.  
  395. end)
  396.  
  397. ----boombox-------
  398.  
  399. ----search for refrop---------
  400.  
  401. game.Workspace.srch.Touched:Connect(function(hit)
  402.  
  403.  
  404. local char = hit.Parent
  405.  
  406. char.HumanoidRootPart.CFrame = game.Workspace.GameSpawn.CFrame
  407.  
  408.  
  409. char.Humanoid.MaxHealth = math.huge
  410. char.Humanoid.Health = math.huge
  411. char.Humanoid.WalkSpeed = 100
  412. char.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  413.  
  414.  
  415. end)
  416. ----search for refrop---------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement