refrop

box house v3.2

Jun 3rd, 2021 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.39 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. local b2 = Instance.new("Part")
  21. local b3 = Instance.new("Part")
  22. local b4 = Instance.new("Part")
  23. local b5 = Instance.new("Part")
  24. local b6 = Instance.new("Part")
  25. local b7 = Instance.new("Part")
  26. local b8 = Instance.new("Part")
  27.  
  28. local bp = Instance.new("Part")
  29. local Shrek = Instance.new("Decal")
  30.  
  31.  
  32.  
  33. local truss = Instance.new("TrussPart")
  34.  
  35. local bn = Instance.new("Part")
  36. bn.Name = "bn"
  37. local bnl = Instance.new("PointLight")
  38. local bnd = Instance.new("Decal")
  39. local sound = Instance.new("Sound")
  40.  
  41. local sp = Instance.new("Part")
  42. sp.Name = "GameSpawn"
  43.  
  44.  
  45.  
  46. local tp = Instance.new("Part")
  47. tp.Name = "tp"
  48.  
  49.  
  50.  
  51. local sz = Instance.new("Part")
  52. sz.Name = "safezone"
  53.  
  54.  
  55. local bfloor = Instance.new("Part")
  56.  
  57.  
  58. --Wo.Parent = workspace
  59. wait(0.2)
  60. local W = Wo
  61.  
  62. b1.Parent = W
  63. b1.Position = Vector3.new(-53.949, 21.553, -79.903)
  64. b1.Orientation = Vector3.new(0, 0, 0)
  65. b1.Size = Vector3.new(0.543, 43.105, 45.265)
  66. b1.Anchored = true
  67. b1.BrickColor = BrickColor.new("Cork")
  68. b1.Material = Enum.Material.SmoothPlastic
  69.  
  70. b2.Parent = W
  71. b2.Position = Vector3.new(-30.621, 22.409, -101.942)
  72. b2.Orientation = Vector3.new(0, 0, 0)
  73. b2.Size = Vector3.new(47.199, 43.105, 1.186)
  74. b2.Anchored = true
  75. b2.BrickColor = BrickColor.new("Cork")
  76. b2.Material = Enum.Material.SmoothPlastic
  77.  
  78. b3.Parent = W
  79. b3.Position = Vector3.new(-7.424, 22.409, -79.903)
  80. b3.Orientation = Vector3.new(0, 0, 0)
  81. b3.Size = Vector3.new(0.543, 43.105, 45.265)
  82. b3.Anchored = true
  83. b3.BrickColor = BrickColor.new("Cork")
  84. b3.Material = Enum.Material.SmoothPlastic
  85.  
  86. b4.Parent = W
  87. b4.Position = Vector3.new(-30.621, 29.006, -57.776)
  88. b4.Orientation = Vector3.new(0, 0, 0)
  89. b4.Size = Vector3.new(47.199, 29.912, 1.186)
  90. b4.Anchored = true
  91. b4.BrickColor = BrickColor.new("Cork")
  92. b4.Material = Enum.Material.SmoothPlastic
  93.  
  94. b5.Parent = W
  95. b5.Position = Vector3.new(-47.034, 7.05, -57.776)
  96. b5.Orientation = Vector3.new(0, 0, 0)
  97. b5.Size = Vector3.new(14.373, 14.1, 1.186)
  98. b5.Anchored = true
  99. b5.BrickColor = BrickColor.new("Cork")
  100. b5.Material = Enum.Material.SmoothPlastic
  101.  
  102. b6.Parent = W
  103. b6.Position = Vector3.new(-14.358, 7.05, -57.776)
  104. b6.Orientation = Vector3.new(0, 0, 0)
  105. b6.Size = Vector3.new(14.373, 14.1, 1.186)
  106. b6.Anchored = true
  107. b6.BrickColor = BrickColor.new("Cork")
  108. b6.Material = Enum.Material.SmoothPlastic
  109.  
  110. b7.Parent = W
  111. b7.Position = Vector3.new(2.166, 50.652, -79.903)
  112. b7.Orientation = Vector3.new(0, 0, -55)
  113. b7.Size = Vector3.new(0.543, 23.464, 45.265)
  114. b7.Anchored = true
  115. b7.BrickColor = BrickColor.new("Cork")
  116. b7.Material = Enum.Material.SmoothPlastic
  117.  
  118. b8.Parent = W
  119. b8.Position = Vector3.new(-63.741, 50.53, -79.903)
  120. b8.Orientation = Vector3.new(0, 0, -35)
  121. b8.Size = Vector3.new(24.45, 0.577, 45.265)
  122. b8.Anchored = true
  123. b8.BrickColor = BrickColor.new("Cork")
  124. b8.Material = Enum.Material.SmoothPlastic
  125.  
  126.  
  127.  
  128. bp.Parent = W
  129. bp.Position = Vector3.new(-41.371, 9.227, -101.324)
  130. bp.Orientation = Vector3.new(0, 180, -15)
  131. bp.Size = Vector3.new(6.56, 6.084, 0.05)
  132. bp.Anchored = true
  133. bp.BrickColor = BrickColor.new("Institutional white")
  134. bp.Material = Enum.Material.SmoothPlastic
  135.  
  136. Shrek.Parent = bp
  137. Shrek.Texture = "http://www.roblox.com/asset/?id=4673386763"
  138.  
  139.  
  140.  
  141. bn.Parent = W
  142. bn.Position = Vector3.new(-31.213, 6.875, -100.017)
  143. bn.Orientation = Vector3.new(0, 180, 0)
  144. bn.Size = Vector3.new(16.282, 10.896, 1.459)
  145. bn.Anchored = true
  146. bn.Transparency = 1
  147. bn.BrickColor = BrickColor.new("Institutional white")
  148. bn.Material = Enum.Material.SmoothPlastic
  149.  
  150.  
  151.  
  152. bnl.Parent = bn
  153. bnl.Brightness = 1
  154. bnl.Range = 18
  155.  
  156.  
  157. bnd.Parent = bn
  158. bnd.Texture = "http://www.roblox.com/asset/?id=6357211783"
  159.  
  160. sound.Parent = bn
  161. sound.Volume = 5
  162. sound.Looped = true
  163. sound.Playing = true
  164. sound.SoundId = "http://www.roblox.com/asset/?id=504876952"
  165.  
  166.  
  167.  
  168. truss.Parent = W
  169. truss.Position = Vector3.new(-12.262, 22.19, -99.505)
  170. truss.Orientation = Vector3.new(0, 0, 0)
  171. truss.Size = Vector3.new(2, 42.64, 2)
  172. truss.Anchored = true
  173. truss.BrickColor = BrickColor.new("Cork")
  174. truss.Material = Enum.Material.Neon
  175.  
  176.  
  177. sp.Parent = W
  178. sp.Position = Vector3.new(-30.767, 18.679, -79.903)
  179. sp.Orientation = Vector3.new(0, 0, 0)
  180. sp.Size = Vector3.new(12, 1, 12)
  181. sp.Anchored = true
  182. sp.BrickColor = BrickColor.new("Cork")
  183. sp.Material = Enum.Material.SmoothPlastic
  184. sp.Transparency = 1
  185. sp.CanCollide = false
  186.  
  187.  
  188.  
  189. tp.Parent = W
  190. tp.Position = Vector3.new(-9.75, 0.5, 66.38)
  191. tp.Orientation = Vector3.new(0, 0, 0)
  192. tp.Size = Vector3.new(2048, 1, 2027.976)
  193. tp.Anchored = true
  194. tp.BrickColor = BrickColor.new("Bright green")
  195. tp.Material = Enum.Material.Neon
  196.  
  197.  
  198.  
  199. sz.Parent = W
  200. sz.Position = Vector3.new(-9.176, 1.304, -78.906)
  201. sz.Orientation = Vector3.new(0, 0, 0)
  202. sz.Size = Vector3.new(2.854, 0.869, 3.605)
  203. sz.Anchored = true
  204. sz.BrickColor = tp.BrickColor
  205. sz.Material = Enum.Material.Neon
  206.  
  207.  
  208. -------
  209.  
  210.  
  211.  
  212. ----------
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220. bfloor.Parent = W
  221. bfloor.Position = Vector3.new(-30.767, 1.291, -79.903)
  222. bfloor.Orientation = Vector3.new(0, 0, 0)
  223. bfloor.Size = Vector3.new(46.905, 0.869, 45.265)
  224. bfloor.Anchored = true
  225. bfloor.BrickColor = BrickColor.new("Cork")
  226. bfloor.Material = Enum.Material.SmoothPlastic
  227. print("end")
  228.  
  229.  
  230. Wo.Parent = workspace
  231. Wo:MakeJoints()
  232. local mas1 = Wo:GetChildren()
  233. for i=1,#mas1 do
  234. mas1[i].Parent = workspace
  235. ypcall(function() mas1[i]:MakeJoints() end)
  236. end
  237. Wo:Destroy()
  238. for i=1,#cors do
  239. coroutine.resume(cors[i])
  240. end
  241.  
  242. local safezone = true
  243.  
  244. game.Workspace.tp.Touched:Connect(function(hit)
  245.  
  246. if safezone == false then
  247.  
  248.  
  249. local char = hit.Parent
  250.  
  251. char.HumanoidRootPart.CFrame = game.Workspace.GameSpawn.CFrame
  252.  
  253.  
  254. else
  255.  
  256.  
  257.  
  258.  
  259. end
  260.  
  261. end)
  262.  
  263. game.Workspace.safezone.Touched:Connect(function(hit)
  264.  
  265.  
  266. if safezone == true then
  267.  
  268. safezone = false
  269.  
  270. game.Workspace.safezone.BrickColor = BrickColor.new("Really red")
  271. game.Workspace.tp.BrickColor = BrickColor.new("Really red")
  272.  
  273. else
  274.  
  275.  
  276. safezone = true
  277.  
  278. game.Workspace.safezone.BrickColor = BrickColor.new("Bright green")
  279. game.Workspace.tp.BrickColor = BrickColor.new("Bright green")
  280.  
  281. end
  282.  
  283.  
  284.  
  285.  
  286. end)
Add Comment
Please, Sign In to add comment