Advertisement
refrop

box house but called

Jun 3rd, 2021 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.96 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.  
  59.  
  60. local srch = Instance.new("Part")
  61. srch.Name = "srch"
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. --Wo.Parent = workspace
  70. wait(0.2)
  71. local W = Wo
  72.  
  73. b1.Parent = W
  74. b1.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-53.949, 21.553, -79.903)
  75. b1.Orientation = Vector3.new(0, 0, 0)
  76. b1.Size = Vector3.new(0.543, 43.105, 45.265)
  77. b1.Anchored = true
  78. b1.BrickColor = BrickColor.new("Cork")
  79. b1.Material = Enum.Material.SmoothPlastic
  80.  
  81. b2.Parent = W
  82. b2.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-30.621, 22.409, -101.942)
  83. b2.Orientation = Vector3.new(0, 0, 0)
  84. b2.Size = Vector3.new(47.199, 43.105, 1.186)
  85. b2.Anchored = true
  86. b2.BrickColor = BrickColor.new("Cork")
  87. b2.Material = Enum.Material.SmoothPlastic
  88.  
  89. b3.Parent = W
  90. b3.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-7.424, 22.409, -79.903)
  91. b3.Orientation = Vector3.new(0, 0, 0)
  92. b3.Size = Vector3.new(0.543, 43.105, 45.265)
  93. b3.Anchored = true
  94. b3.BrickColor = BrickColor.new("Cork")
  95. b3.Material = Enum.Material.SmoothPlastic
  96.  
  97. b4.Parent = W
  98. b4.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-30.621, 29.006, -57.776)
  99. b4.Orientation = Vector3.new(0, 0, 0)
  100. b4.Size = Vector3.new(47.199, 29.912, 1.186)
  101. b4.Anchored = true
  102. b4.BrickColor = BrickColor.new("Cork")
  103. b4.Material = Enum.Material.SmoothPlastic
  104.  
  105. b5.Parent = W
  106. b5.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-47.034, 7.05, -57.776)
  107. b5.Orientation = Vector3.new(0, 0, 0)
  108. b5.Size = Vector3.new(14.373, 14.1, 1.186)
  109. b5.Anchored = true
  110. b5.BrickColor = BrickColor.new("Cork")
  111. b5.Material = Enum.Material.SmoothPlastic
  112.  
  113. b6.Parent = W
  114. b6.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-14.358, 7.05, -57.776)
  115. b6.Orientation = Vector3.new(0, 0, 0)
  116. b6.Size = Vector3.new(14.373, 14.1, 1.186)
  117. b6.Anchored = true
  118. b6.BrickColor = BrickColor.new("Cork")
  119. b6.Material = Enum.Material.SmoothPlastic
  120.  
  121. b7.Parent = W
  122. b7.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(2.166, 50.652, -79.903)
  123. b7.Orientation = Vector3.new(0, 0, -55)
  124. b7.Size = Vector3.new(0.543, 23.464, 45.265)
  125. b7.Anchored = true
  126. b7.BrickColor = BrickColor.new("Cork")
  127. b7.Material = Enum.Material.SmoothPlastic
  128.  
  129. b8.Parent = W
  130. b8.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-63.741, 50.53, -79.903)
  131. b8.Orientation = Vector3.new(0, 0, -35)
  132. b8.Size = Vector3.new(24.45, 0.577, 45.265)
  133. b8.Anchored = true
  134. b8.BrickColor = BrickColor.new("Cork")
  135. b8.Material = Enum.Material.SmoothPlastic
  136.  
  137.  
  138.  
  139. bp.Parent = W
  140. bp.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-41.371, 9.227, -101.324)
  141. bp.Orientation = Vector3.new(0, 180, -15)
  142. bp.Size = Vector3.new(6.56, 6.084, 0.05)
  143. bp.Anchored = true
  144. bp.BrickColor = BrickColor.new("Institutional white")
  145. bp.Material = Enum.Material.SmoothPlastic
  146.  
  147. Shrek.Parent = bp
  148. Shrek.Texture = "http://www.roblox.com/asset/?id=4673386763"
  149.  
  150.  
  151.  
  152. bn.Parent = W
  153. bn.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-31.213, 6.875, -100.017)
  154. bn.Orientation = Vector3.new(0, 180, 0)
  155. bn.Size = Vector3.new(16.282, 10.896, 1.459)
  156. bn.Anchored = true
  157. bn.Transparency = 1
  158. bn.BrickColor = BrickColor.new("Institutional white")
  159. bn.Material = Enum.Material.SmoothPlastic
  160.  
  161.  
  162.  
  163. bnl.Parent = bn
  164. bnl.Brightness = 1
  165. bnl.Range = 18
  166.  
  167.  
  168. bnd.Parent = bn
  169. bnd.Texture = "http://www.roblox.com/asset/?id=6357211783"
  170.  
  171. sound.Parent = bn
  172. sound.Volume = 5
  173. sound.Looped = true
  174. sound.Playing = true
  175. sound.SoundId = "http://www.roblox.com/asset/?id=504876952"
  176.  
  177.  
  178.  
  179. truss.Parent = W
  180. truss.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-12.262, 22.19, -99.505)
  181. truss.Orientation = Vector3.new(0, 0, 0)
  182. truss.Size = Vector3.new(2, 42.64, 2)
  183. truss.Anchored = true
  184. truss.BrickColor = BrickColor.new("Cork")
  185. truss.Material = Enum.Material.Neon
  186.  
  187.  
  188. sp.Parent = W
  189. sp.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-30.767, 18.679, -79.903)
  190. sp.Orientation = Vector3.new(0, 0, 0)
  191. sp.Size = Vector3.new(12, 1, 12)
  192. sp.Anchored = true
  193. sp.BrickColor = BrickColor.new("Cork")
  194. sp.Material = Enum.Material.SmoothPlastic
  195. sp.Transparency = 1
  196. sp.CanCollide = false
  197.  
  198.  
  199.  
  200. tp.Parent = W
  201. tp.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-9.75, 0.5, 66.38)
  202. tp.Orientation = Vector3.new(0, 0, 0)
  203. tp.Size = Vector3.new(5000, 1, 5000)
  204. tp.Anchored = true
  205. tp.BrickColor = BrickColor.new("Bright green")
  206. tp.Material = Enum.Material.Neon
  207.  
  208.  
  209.  
  210. sz.Parent = W
  211. sz.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-9.176, 2.304, -78.906)
  212. sz.Orientation = Vector3.new(0, 0, 0)
  213. sz.Size = Vector3.new(2.854, 0.869, 3.605)
  214. sz.Anchored = true
  215. sz.BrickColor = tp.BrickColor
  216. sz.Material = Enum.Material.Neon
  217.  
  218.  
  219. -------
  220.  
  221.  
  222.  
  223. ----------
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231. bfloor.Parent = W
  232. bfloor.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(-30.767, 1.291, -79.903)
  233. bfloor.Orientation = Vector3.new(0, 0, 0)
  234. bfloor.Size = Vector3.new(46.905, 0.869, 45.265)
  235. bfloor.Anchored = true
  236. bfloor.BrickColor = BrickColor.new("Cork")
  237. bfloor.Material = Enum.Material.SmoothPlastic
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248. ----search for refrop---------
  249.  
  250.  
  251. srch.Parent = W
  252. srch.Position = game.Workspace:WaitForChild("refrop").Head.Position + Vector3.new(0, 0, 5)
  253. srch.Orientation = Vector3.new(0, 0, 0)
  254. srch.Size = Vector3.new(4, 4, 4)
  255. srch.Anchored = true
  256. srch.CanCollide = false
  257. srch.BrickColor = BrickColor.new("Really red")
  258. srch.Material = Enum.Material.Neon
  259.  
  260.  
  261.  
  262.  
  263. ----search for refrop---------
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271. print("end")
  272.  
  273.  
  274. Wo.Parent = workspace
  275. Wo:MakeJoints()
  276. local mas1 = Wo:GetChildren()
  277. for i=1,#mas1 do
  278. mas1[i].Parent = workspace
  279. ypcall(function() mas1[i]:MakeJoints() end)
  280. end
  281. Wo:Destroy()
  282. for i=1,#cors do
  283. coroutine.resume(cors[i])
  284. end
  285.  
  286. local safezone = true
  287.  
  288. game.Workspace.tp.Touched:Connect(function(hit)
  289.  
  290. if safezone == false then
  291.  
  292.  
  293. local char = hit.Parent
  294.  
  295. char.HumanoidRootPart.CFrame = game.Workspace.GameSpawn.CFrame
  296.  
  297.  
  298. else
  299.  
  300.  
  301.  
  302.  
  303. end
  304.  
  305. end)
  306.  
  307. game.Workspace.safezone.Touched:Connect(function(hit)
  308.  
  309.  
  310. if safezone == true then
  311.  
  312. safezone = false
  313.  
  314. game.Workspace.safezone.BrickColor = BrickColor.new("Really red")
  315. game.Workspace.tp.BrickColor = BrickColor.new("Really red")
  316.  
  317. wait(1)
  318.  
  319. else
  320.  
  321.  
  322. safezone = true
  323.  
  324. game.Workspace.safezone.BrickColor = BrickColor.new("Bright green")
  325. game.Workspace.tp.BrickColor = BrickColor.new("Bright green")
  326. wait(1)
  327. end
  328.  
  329. -----------------------------------------------------
  330.  
  331.  
  332.  
  333. end)
  334.  
  335. ----search for refrop---------
  336.  
  337. game.Workspace.srch.Touched:Connect(function(hit)
  338.  
  339.  
  340. local char = hit.Parent
  341.  
  342. char.HumanoidRootPart.CFrame = game.Workspace.GameSpawn.CFrame
  343.  
  344.  
  345.  
  346. end)
  347. ----search for refrop---------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement