Advertisement
Diamond_Nicholas

moveing blocks

Feb 8th, 2020
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.41 KB | None | 0 0
  1. function sandbox(var,func)
  2. local env = getfenv(func)
  3. local newenv = setmetatable({},{
  4. __index = function(Enum,k)
  5. if k=="script" then
  6. return var
  7. else
  8. return env[k]
  9. end
  10. end,
  11. })
  12. setfenv(func,newenv)
  13. return func
  14. end
  15. cors = {}
  16. mas = Instance.new("Model",game:GetService("Lighting"))
  17. Part0 = Instance.new("Part")
  18. Part1 = Instance.new("Part")
  19. Part2 = Instance.new("Part")
  20. Part3 = Instance.new("Part")
  21. Part4 = Instance.new("Part")
  22. Part5 = Instance.new("Part")
  23. Script6 = Instance.new("Script")
  24. ClickDetector7 = Instance.new("ClickDetector")
  25. Script8 = Instance.new("Script")
  26. Script9 = Instance.new("Script")
  27. Script10 = Instance.new("Script")
  28. Script11 = Instance.new("Script")
  29. Script12 = Instance.new("Script")
  30. Script13 = Instance.new("Script")
  31. Part14 = Instance.new("Part")
  32. Part15 = Instance.new("Part")
  33. Part16 = Instance.new("Part")
  34. Part17 = Instance.new("Part")
  35. Part18 = Instance.new("Part")
  36. Part0.Name = "Part4"
  37. Part0.Parent = mas
  38. Part0.CFrame = CFrame.new(-24.5267982, 11.167964, 18.7039452, 0, -0.406737089, 0.913545251, 0, 0.913545251, 0.406737089, -1, 0, 0)
  39. Part0.Orientation = Vector3.new(-24, 90, 0)
  40. Part0.Position = Vector3.new(-24.5267982, 11.167964, 18.7039452)
  41. Part0.Rotation = Vector3.new(-90, 66, 90)
  42. Part0.Transparency = 1
  43. Part0.Size = Vector3.new(2.73488593, 12.8770266, 1.93403089)
  44. Part0.Anchored = true
  45. Part0.BottomSurface = Enum.SurfaceType.Smooth
  46. Part0.CanCollide = false
  47. Part0.TopSurface = Enum.SurfaceType.Smooth
  48. Part1.Parent = mas
  49. Part1.CFrame = CFrame.new(-27.5500107, 0.310303211, 1.72000897, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  50. Part1.Position = Vector3.new(-27.5500107, 0.310303211, 1.72000897)
  51. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  52. Part1.Size = Vector3.new(2.3600018, 4.82000065, 2.33999896)
  53. Part1.Anchored = true
  54. Part1.BottomSurface = Enum.SurfaceType.Smooth
  55. Part1.BrickColor = BrickColor.new("Dark stone grey")
  56. Part1.Material = Enum.Material.DiamondPlate
  57. Part1.TopSurface = Enum.SurfaceType.Smooth
  58. Part1.brickColor = BrickColor.new("Dark stone grey")
  59. Part2.Name = "Part5"
  60. Part2.Parent = mas
  61. Part2.CFrame = CFrame.new(-29.0737762, 10.8674326, 18.7039452, 0, 0.453991115, 0.891006231, 0, 0.891006231, -0.453991115, -1, 0, 0)
  62. Part2.Orientation = Vector3.new(27, 90, 0)
  63. Part2.Position = Vector3.new(-29.0737762, 10.8674326, 18.7039452)
  64. Part2.Rotation = Vector3.new(90, 63, -90)
  65. Part2.Transparency = 1
  66. Part2.Size = Vector3.new(2.73488593, 13.6270266, 1.93403089)
  67. Part2.Anchored = true
  68. Part2.BottomSurface = Enum.SurfaceType.Smooth
  69. Part2.CanCollide = false
  70. Part2.TopSurface = Enum.SurfaceType.Smooth
  71. Part3.Name = "Part3"
  72. Part3.Parent = mas
  73. Part3.CFrame = CFrame.new(-22.0277748, 2.74812078, 18.7039452, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  74. Part3.Orientation = Vector3.new(0, 90, 0)
  75. Part3.Position = Vector3.new(-22.0277748, 2.74812078, 18.7039452)
  76. Part3.Rotation = Vector3.new(0, 90, 0)
  77. Part3.Transparency = 1
  78. Part3.Size = Vector3.new(2.73488593, 5.73701859, 1.93403089)
  79. Part3.Anchored = true
  80. Part3.BottomSurface = Enum.SurfaceType.Smooth
  81. Part3.CanCollide = false
  82. Part3.TopSurface = Enum.SurfaceType.Smooth
  83. Part4.Name = "Part2"
  84. Part4.Parent = mas
  85. Part4.CFrame = CFrame.new(-31.9432678, 2.73829317, 18.7039452, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  86. Part4.Orientation = Vector3.new(0, 90, 0)
  87. Part4.Position = Vector3.new(-31.9432678, 2.73829317, 18.7039452)
  88. Part4.Rotation = Vector3.new(0, 90, 0)
  89. Part4.Transparency = 1
  90. Part4.Size = Vector3.new(2.73488593, 5.6370182, 1.93403089)
  91. Part4.Anchored = true
  92. Part4.BottomSurface = Enum.SurfaceType.Smooth
  93. Part4.CanCollide = false
  94. Part4.TopSurface = Enum.SurfaceType.Smooth
  95. Part5.Name = "y"
  96. Part5.Parent = mas
  97. Part5.CFrame = CFrame.new(-27.5200005, 4.60090303, 0.919701695, 1, 0, 0, 0, 0.933580399, 0.358368009, 0, -0.358368009, 0.933580399)
  98. Part5.Orientation = Vector3.new(-21, 0, 0)
  99. Part5.Position = Vector3.new(-27.5200005, 4.60090303, 0.919701695)
  100. Part5.Rotation = Vector3.new(-21, 0, 0)
  101. Part5.Color = Color3.new(0.431373, 1, 0.227451)
  102. Part5.Size = Vector3.new(1.01999938, 0.256205767, 1.07275915)
  103. Part5.Anchored = true
  104. Part5.BottomSurface = Enum.SurfaceType.Smooth
  105. Part5.BrickColor = BrickColor.new("Br. yellowish green")
  106. Part5.CanCollide = false
  107. Part5.TopSurface = Enum.SurfaceType.Smooth
  108. Part5.brickColor = BrickColor.new("Br. yellowish green")
  109. Script6.Parent = Part5
  110. table.insert(cors,sandbox(Script6,function()
  111. function onClicked(y)
  112.  
  113. for i=0,1,0.001 do
  114. wait()
  115. workspace.h.CFrame = workspace.h.CFrame:lerp(workspace.Part1.CFrame,0.01)
  116. end
  117.  
  118. end
  119.  
  120. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  121.  
  122. end))
  123. ClickDetector7.Parent = Part5
  124. Script8.Parent = Part5
  125. table.insert(cors,sandbox(Script8,function()
  126.  
  127. function onClicked(y)
  128. local s = Instance.new("Sound")
  129.  
  130. s.Name = "Sound"
  131. s.SoundId = "rbxassetid://582374365"
  132. s.Volume = 2
  133. s.Looped = false
  134. s.archivable = false
  135.  
  136. s.Parent = game.Workspace
  137.  
  138. wait()
  139.  
  140. s:play()
  141.  
  142. end
  143.  
  144. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  145.  
  146. end))
  147. Script9.Parent = Part5
  148. table.insert(cors,sandbox(Script9,function()
  149. function onClicked(y)
  150. script.Parent.Parent.BrickColor = BrickColor.new(255,0,0)
  151. end
  152.  
  153. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  154. end))
  155. Script10.Parent = Part5
  156. table.insert(cors,sandbox(Script10,function()
  157. function onClicked(y)
  158.  
  159. for i=0,1,0.001 do
  160. wait()
  161. workspace.o.CFrame = workspace.o.CFrame:lerp(workspace.Part5.CFrame,0.01)
  162. end
  163.  
  164. end
  165.  
  166. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  167.  
  168. end))
  169. Script11.Parent = Part5
  170. table.insert(cors,sandbox(Script11,function()
  171. function onClicked(y)
  172.  
  173. for i=0,1,0.001 do
  174. wait()
  175. workspace.g.CFrame = workspace.g.CFrame:lerp(workspace.Part2.CFrame,0.01)
  176. end
  177.  
  178. end
  179.  
  180. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  181.  
  182. end))
  183. Script12.Parent = Part5
  184. table.insert(cors,sandbox(Script12,function()
  185. function onClicked(y)
  186.  
  187. for i=0,1,0.001 do
  188. wait()
  189. workspace.t.CFrame = workspace.t.CFrame:lerp(workspace.Part3.CFrame,0.01)
  190. end
  191.  
  192. end
  193.  
  194. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  195.  
  196. end))
  197. Script13.Parent = Part5
  198. table.insert(cors,sandbox(Script13,function()
  199. function onClicked(y)
  200.  
  201. for i=0,1,0.001 do
  202. wait()
  203. workspace.c.CFrame = workspace.c.CFrame:lerp(workspace.Part4.CFrame,0.01)
  204. end
  205.  
  206. end
  207.  
  208. script.Parent.ClickDetector.MouseClick:connect(onClicked)
  209.  
  210. end))
  211. Part14.Name = "o"
  212. Part14.Parent = mas
  213. Part14.CFrame = CFrame.new(-293.068359, 78.2584915, -209.21431, 0.991200984, 0.00770544447, 0.132141575, -0.129557997, -0.14806208, 0.980455279, 0.0271199998, -0.988948107, -0.145760968)
  214. Part14.Orientation = Vector3.new(-78.6500015, 137.809998, -138.809998)
  215. Part14.Position = Vector3.new(-293.068359, 78.2584915, -209.21431)
  216. Part14.Rotation = Vector3.new(-98.4599991, 7.59000015, -0.449999988)
  217. Part14.Size = Vector3.new(2.73488593, 13.6270266, 1.93403089)
  218. Part14.Anchored = true
  219. Part14.BottomSurface = Enum.SurfaceType.Smooth
  220. Part14.TopSurface = Enum.SurfaceType.Smooth
  221. Part15.Name = "g"
  222. Part15.Parent = mas
  223. Part15.CFrame = CFrame.new(-65.9208908, -31.9413261, -58.1106377, 0, 0.309017062, 0.95105654, 0.866025388, 0.475528449, -0.154508576, -0.500000238, 0.823638976, -0.2676166)
  224. Part15.Orientation = Vector3.new(8.89000034, 105.720001, 61.2299995)
  225. Part15.Position = Vector3.new(-65.9208908, -31.9413261, -58.1106377)
  226. Part15.Rotation = Vector3.new(150, 72, -90)
  227. Part15.Size = Vector3.new(2.73488593, 5.6370182, 1.93403089)
  228. Part15.Anchored = true
  229. Part15.BottomSurface = Enum.SurfaceType.Smooth
  230. Part15.TopSurface = Enum.SurfaceType.Smooth
  231. Part16.Name = "c"
  232. Part16.Parent = mas
  233. Part16.CFrame = CFrame.new(46.3540726, 34.8070564, -51.2212982, -0.028634008, 0.473889947, -0.88011843, -0.930789232, -0.333648115, -0.149366528, -0.36443308, 0.814927816, 0.450645328)
  234. Part16.Orientation = Vector3.new(8.59000015, -62.8899994, -109.720001)
  235. Part16.Position = Vector3.new(46.3540726, 34.8070564, -51.2212982)
  236. Part16.Rotation = Vector3.new(18.3400002, -61.6599998, -93.4599991)
  237. Part16.Size = Vector3.new(2.73488593, 12.8770266, 1.93403089)
  238. Part16.Anchored = true
  239. Part16.BottomSurface = Enum.SurfaceType.Smooth
  240. Part16.TopSurface = Enum.SurfaceType.Smooth
  241. Part17.Name = "t"
  242. Part17.Parent = mas
  243. Part17.CFrame = CFrame.new(-79.5328064, 11.1313705, -181.122177, 0.0497760288, -0.949748397, -0.309031516, -0.99862957, -0.0523366258, -3.84721307e-06, -0.01617001, 0.308608145, -0.951051891)
  244. Part17.Orientation = Vector3.new(0, -162, -93)
  245. Part17.Position = Vector3.new(-79.5328064, 11.1313705, -181.122177)
  246. Part17.Rotation = Vector3.new(180, -18, 87)
  247. Part17.Size = Vector3.new(2.73488593, 5.73701859, 1.93403089)
  248. Part17.Anchored = true
  249. Part17.BottomSurface = Enum.SurfaceType.Smooth
  250. Part17.TopSurface = Enum.SurfaceType.Smooth
  251. Part18.Parent = mas
  252. Part18.CFrame = CFrame.new(-27.5449982, 3.319489, 1.39910603, 1, 0, 0, 0, 0.933580399, 0.358368158, 0, -0.358368188, 0.933580339)
  253. Part18.Orientation = Vector3.new(-21, 0, 0)
  254. Part18.Position = Vector3.new(-27.5449982, 3.319489, 1.39910603)
  255. Part18.Rotation = Vector3.new(-21, 0, 0)
  256. Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
  257. Part18.Size = Vector3.new(2.37000179, 2.48000169, 2.26999974)
  258. Part18.Anchored = true
  259. Part18.BottomSurface = Enum.SurfaceType.Smooth
  260. Part18.BrickColor = BrickColor.new("Dark stone grey")
  261. Part18.Material = Enum.Material.DiamondPlate
  262. Part18.TopSurface = Enum.SurfaceType.Smooth
  263. Part18.brickColor = BrickColor.new("Dark stone grey")
  264. for i,v in pairs(mas:GetChildren()) do
  265. v.Parent = workspace
  266. pcall(function() v:MakeJoints() end)
  267. end
  268. for i,v in pairs(cors) do
  269. spawn(function()
  270. pcall(v)
  271. end)
  272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement