Advertisement
lafur

Untitled

Jul 30th, 2020 (edited)
1,744
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sandbox(var,func)
  2.     local env = getfenv(func)
  3.     local newenv = setmetatable({},{
  4.         __index = function(self,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. Model0 = Instance.new("Model")
  18. Model1 = Instance.new("Model")
  19. Part2 = Instance.new("Part")
  20. Part3 = Instance.new("Part")
  21. Part4 = Instance.new("Part")
  22. Part5 = Instance.new("Part")
  23. Part6 = Instance.new("Part")
  24. Seat7 = Instance.new("Seat")
  25. Part8 = Instance.new("Part")
  26. Part9 = Instance.new("Part")
  27. Part10 = Instance.new("Part")
  28. Part11 = Instance.new("Part")
  29. Model12 = Instance.new("Model")
  30. Part13 = Instance.new("Part")
  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. Part19 = Instance.new("Part")
  37. Part20 = Instance.new("Part")
  38. Decal21 = Instance.new("Decal")
  39. Part22 = Instance.new("Part")
  40. Part23 = Instance.new("Part")
  41. Decal24 = Instance.new("Decal")
  42. Sound25 = Instance.new("Sound")
  43. Part26 = Instance.new("Part")
  44. Part27 = Instance.new("Part")
  45. Part28 = Instance.new("Part")
  46. Part29 = Instance.new("Part")
  47. Part30 = Instance.new("Part")
  48. Part31 = Instance.new("Part")
  49. Part32 = Instance.new("Part")
  50. Part33 = Instance.new("Part")
  51. WedgePart34 = Instance.new("WedgePart")
  52. WedgePart35 = Instance.new("WedgePart")
  53. Script36 = Instance.new("Script")
  54. Animation37 = Instance.new("Animation")
  55. Animation38 = Instance.new("Animation")
  56. Model0.Name = "Upright Piano"
  57. Model0.Parent = mas
  58. Model1.Name = "Bench"
  59. Model1.Parent = Model0
  60. Part2.Parent = Model1
  61. Part2.CFrame = CFrame.new(-21.6999512, 0.500072002, -27.1001587, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  62. Part2.Orientation = Vector3.new(0, 90, 0)
  63. Part2.Position = Vector3.new(-21.6999512, 0.500072002, -27.1001587)
  64. Part2.Rotation = Vector3.new(0, 90, 0)
  65. Part2.Color = Color3.new(0.337255, 0.258824, 0.211765)
  66. Part2.Size = Vector3.new(0.200000003, 1, 0.200000003)
  67. Part2.Anchored = true
  68. Part2.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  69. Part2.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  70. Part2.BrickColor = BrickColor.new("Dirt brown")
  71. Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  72. Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  73. Part2.Material = Enum.Material.Wood
  74. Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  75. Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  76. Part2.brickColor = BrickColor.new("Dirt brown")
  77. Part2.FormFactor = Enum.FormFactor.Custom
  78. Part2.formFactor = Enum.FormFactor.Custom
  79. Part3.Parent = Model1
  80. Part3.CFrame = CFrame.new(-21.5, 1.30005896, -25.8000488, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  81. Part3.Orientation = Vector3.new(0, 90, 0)
  82. Part3.Position = Vector3.new(-21.5, 1.30005896, -25.8000488)
  83. Part3.Rotation = Vector3.new(0, 90, 0)
  84. Part3.Color = Color3.new(0.337255, 0.258824, 0.211765)
  85. Part3.Size = Vector3.new(1.20000005, 0.200000003, 1)
  86. Part3.Anchored = true
  87. Part3.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  88. Part3.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  89. Part3.BrickColor = BrickColor.new("Dirt brown")
  90. Part3.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  91. Part3.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  92. Part3.Material = Enum.Material.Wood
  93. Part3.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  94. Part3.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  95. Part3.brickColor = BrickColor.new("Dirt brown")
  96. Part3.FormFactor = Enum.FormFactor.Custom
  97. Part3.formFactor = Enum.FormFactor.Custom
  98. Part4.Parent = Model1
  99. Part4.CFrame = CFrame.new(-21.1999512, 1.30005896, -26.9000854, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  100. Part4.Orientation = Vector3.new(0, 90, 0)
  101. Part4.Position = Vector3.new(-21.1999512, 1.30005896, -26.9000854)
  102. Part4.Rotation = Vector3.new(0, 90, 0)
  103. Part4.Color = Color3.new(0.337255, 0.258824, 0.211765)
  104. Part4.Size = Vector3.new(1, 0.200000003, 1.60000014)
  105. Part4.Anchored = true
  106. Part4.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  107. Part4.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  108. Part4.BrickColor = BrickColor.new("Dirt brown")
  109. Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  110. Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  111. Part4.Material = Enum.Material.Wood
  112. Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  113. Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  114. Part4.brickColor = BrickColor.new("Dirt brown")
  115. Part4.FormFactor = Enum.FormFactor.Custom
  116. Part4.formFactor = Enum.FormFactor.Custom
  117. Part5.Parent = Model1
  118. Part5.CFrame = CFrame.new(-21.1999512, 1.30005896, -24.7001953, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  119. Part5.Orientation = Vector3.new(0, 90, 0)
  120. Part5.Position = Vector3.new(-21.1999512, 1.30005896, -24.7001953)
  121. Part5.Rotation = Vector3.new(0, 90, 0)
  122. Part5.Color = Color3.new(0.337255, 0.258824, 0.211765)
  123. Part5.Size = Vector3.new(1, 0.200000003, 1.60000002)
  124. Part5.Anchored = true
  125. Part5.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  126. Part5.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  127. Part5.BrickColor = BrickColor.new("Dirt brown")
  128. Part5.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  129. Part5.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  130. Part5.Material = Enum.Material.Wood
  131. Part5.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  132. Part5.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  133. Part5.brickColor = BrickColor.new("Dirt brown")
  134. Part5.FormFactor = Enum.FormFactor.Custom
  135. Part5.formFactor = Enum.FormFactor.Custom
  136. Part6.Parent = Model1
  137. Part6.CFrame = CFrame.new(-21.1999512, 1.10007596, -25.8001099, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  138. Part6.Orientation = Vector3.new(0, 90, 0)
  139. Part6.Position = Vector3.new(-21.1999512, 1.10007596, -25.8001099)
  140. Part6.Rotation = Vector3.new(0, 90, 0)
  141. Part6.Color = Color3.new(0.337255, 0.258824, 0.211765)
  142. Part6.Size = Vector3.new(2.79999995, 0.200000003, 1.19999993)
  143. Part6.Anchored = true
  144. Part6.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  145. Part6.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  146. Part6.BrickColor = BrickColor.new("Dirt brown")
  147. Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  148. Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  149. Part6.Material = Enum.Material.Wood
  150. Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  151. Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  152. Part6.brickColor = BrickColor.new("Dirt brown")
  153. Part6.FormFactor = Enum.FormFactor.Custom
  154. Part6.formFactor = Enum.FormFactor.Custom
  155. Seat7.Parent = Model1
  156. Seat7.CFrame = CFrame.new(-20.7999878, 1.30005896, -25.8001099, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  157. Seat7.Orientation = Vector3.new(0, 90, 0)
  158. Seat7.Position = Vector3.new(-20.7999878, 1.30005896, -25.8001099)
  159. Seat7.Rotation = Vector3.new(0, 90, 0)
  160. Seat7.Color = Color3.new(0.337255, 0.258824, 0.211765)
  161. Seat7.Size = Vector3.new(1.19999981, 0.200000003, 0.400000066)
  162. Seat7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  163. Seat7.BottomSurface = Enum.SurfaceType.Weld
  164. Seat7.BrickColor = BrickColor.new("Dirt brown")
  165. Seat7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  166. Seat7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  167. Seat7.Material = Enum.Material.Wood
  168. Seat7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  169. Seat7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  170. Seat7.brickColor = BrickColor.new("Dirt brown")
  171. Seat7.FormFactor = Enum.FormFactor.Custom
  172. Seat7.formFactor = Enum.FormFactor.Custom
  173. Part8.Parent = Model1
  174. Part8.CFrame = CFrame.new(-20.6999512, 0.500072002, -27.1001587, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  175. Part8.Orientation = Vector3.new(0, 90, 0)
  176. Part8.Position = Vector3.new(-20.6999512, 0.500072002, -27.1001587)
  177. Part8.Rotation = Vector3.new(0, 90, 0)
  178. Part8.Color = Color3.new(0.337255, 0.258824, 0.211765)
  179. Part8.Size = Vector3.new(0.200000003, 1, 0.200000003)
  180. Part8.Anchored = true
  181. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  182. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  183. Part8.BrickColor = BrickColor.new("Dirt brown")
  184. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  185. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  186. Part8.Material = Enum.Material.Wood
  187. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  188. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  189. Part8.brickColor = BrickColor.new("Dirt brown")
  190. Part8.FormFactor = Enum.FormFactor.Custom
  191. Part8.formFactor = Enum.FormFactor.Custom
  192. Part9.Parent = Model1
  193. Part9.CFrame = CFrame.new(-20.6999512, 0.500072002, -24.5000629, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  194. Part9.Orientation = Vector3.new(0, 90, 0)
  195. Part9.Position = Vector3.new(-20.6999512, 0.500072002, -24.5000629)
  196. Part9.Rotation = Vector3.new(0, 90, 0)
  197. Part9.Color = Color3.new(0.337255, 0.258824, 0.211765)
  198. Part9.Size = Vector3.new(0.200000003, 1, 0.200000003)
  199. Part9.Anchored = true
  200. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  201. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  202. Part9.BrickColor = BrickColor.new("Dirt brown")
  203. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  204. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  205. Part9.Material = Enum.Material.Wood
  206. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  207. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  208. Part9.brickColor = BrickColor.new("Dirt brown")
  209. Part9.FormFactor = Enum.FormFactor.Custom
  210. Part9.formFactor = Enum.FormFactor.Custom
  211. Part10.Parent = Model1
  212. Part10.CFrame = CFrame.new(-20.4999371, 1.30005896, -25.8000488, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  213. Part10.Orientation = Vector3.new(0, 90, 0)
  214. Part10.Position = Vector3.new(-20.4999371, 1.30005896, -25.8000488)
  215. Part10.Rotation = Vector3.new(0, 90, 0)
  216. Part10.Color = Color3.new(0.337255, 0.258824, 0.211765)
  217. Part10.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
  218. Part10.Anchored = true
  219. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  220. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  221. Part10.BrickColor = BrickColor.new("Dirt brown")
  222. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  223. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  224. Part10.Material = Enum.Material.Wood
  225. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  226. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  227. Part10.brickColor = BrickColor.new("Dirt brown")
  228. Part10.FormFactor = Enum.FormFactor.Custom
  229. Part10.formFactor = Enum.FormFactor.Custom
  230. Part11.Parent = Model1
  231. Part11.CFrame = CFrame.new(-21.6999512, 0.500072002, -24.5000629, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  232. Part11.Orientation = Vector3.new(0, 90, 0)
  233. Part11.Position = Vector3.new(-21.6999512, 0.500072002, -24.5000629)
  234. Part11.Rotation = Vector3.new(0, 90, 0)
  235. Part11.Color = Color3.new(0.337255, 0.258824, 0.211765)
  236. Part11.Size = Vector3.new(0.200000003, 1, 0.200000003)
  237. Part11.Anchored = true
  238. Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  239. Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  240. Part11.BrickColor = BrickColor.new("Dirt brown")
  241. Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  243. Part11.Material = Enum.Material.Wood
  244. Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  245. Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  246. Part11.brickColor = BrickColor.new("Dirt brown")
  247. Part11.FormFactor = Enum.FormFactor.Custom
  248. Part11.formFactor = Enum.FormFactor.Custom
  249. Model12.Name = "Piano"
  250. Model12.Parent = Model0
  251. Part13.Parent = Model12
  252. Part13.CFrame = CFrame.new(-22.6000366, 1.30005896, -22.6000977, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  253. Part13.Orientation = Vector3.new(0, -90, 0)
  254. Part13.Position = Vector3.new(-22.6000366, 1.30005896, -22.6000977)
  255. Part13.Rotation = Vector3.new(0, -90, 0)
  256. Part13.Color = Color3.new(0.337255, 0.258824, 0.211765)
  257. Part13.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
  258. Part13.Anchored = true
  259. Part13.BottomSurface = Enum.SurfaceType.Smooth
  260. Part13.BrickColor = BrickColor.new("Dirt brown")
  261. Part13.Material = Enum.Material.Wood
  262. Part13.TopSurface = Enum.SurfaceType.Smooth
  263. Part13.brickColor = BrickColor.new("Dirt brown")
  264. Part13.FormFactor = Enum.FormFactor.Custom
  265. Part13.formFactor = Enum.FormFactor.Custom
  266. Part14.Parent = Model12
  267. Part14.CFrame = CFrame.new(-24.4000854, 2.80001307, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  268. Part14.Orientation = Vector3.new(0, -90, 0)
  269. Part14.Position = Vector3.new(-24.4000854, 2.80001307, -26.0001831)
  270. Part14.Rotation = Vector3.new(0, -90, 0)
  271. Part14.Color = Color3.new(0.337255, 0.258824, 0.211765)
  272. Part14.Size = Vector3.new(8, 5.5999999, 1.60000002)
  273. Part14.Anchored = true
  274. Part14.BottomSurface = Enum.SurfaceType.Smooth
  275. Part14.BrickColor = BrickColor.new("Dirt brown")
  276. Part14.Material = Enum.Material.Wood
  277. Part14.TopSurface = Enum.SurfaceType.Smooth
  278. Part14.brickColor = BrickColor.new("Dirt brown")
  279. Part14.FormFactor = Enum.FormFactor.Custom
  280. Part14.formFactor = Enum.FormFactor.Custom
  281. Part15.Parent = Model12
  282. Part15.CFrame = CFrame.new(-22.8999634, 0.200047001, -29.4002075, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  283. Part15.Orientation = Vector3.new(0, -90, 0)
  284. Part15.Position = Vector3.new(-22.8999634, 0.200047001, -29.4002075)
  285. Part15.Rotation = Vector3.new(0, -90, 0)
  286. Part15.Color = Color3.new(0.337255, 0.258824, 0.211765)
  287. Part15.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
  288. Part15.Anchored = true
  289. Part15.BottomSurface = Enum.SurfaceType.Smooth
  290. Part15.BrickColor = BrickColor.new("Dirt brown")
  291. Part15.Material = Enum.Material.Wood
  292. Part15.TopSurface = Enum.SurfaceType.Smooth
  293. Part15.brickColor = BrickColor.new("Dirt brown")
  294. Part15.FormFactor = Enum.FormFactor.Custom
  295. Part15.formFactor = Enum.FormFactor.Custom
  296. Part16.Name = "Pedal"
  297. Part16.Parent = Model12
  298. Part16.CFrame = CFrame.new(-23.3001099, 0.100079, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  299. Part16.Orientation = Vector3.new(0, -90, 0)
  300. Part16.Position = Vector3.new(-23.3001099, 0.100079, -26.0001831)
  301. Part16.Rotation = Vector3.new(0, -90, 0)
  302. Part16.Color = Color3.new(0.411765, 0.4, 0.360784)
  303. Part16.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  304. Part16.Anchored = true
  305. Part16.BottomSurface = Enum.SurfaceType.Smooth
  306. Part16.BrickColor = BrickColor.new("Flint")
  307. Part16.Material = Enum.Material.Metal
  308. Part16.TopSurface = Enum.SurfaceType.Smooth
  309. Part16.brickColor = BrickColor.new("Flint")
  310. Part16.FormFactor = Enum.FormFactor.Custom
  311. Part16.formFactor = Enum.FormFactor.Custom
  312. Part17.Parent = Model12
  313. Part17.CFrame = CFrame.new(-23.5001221, 4.60000801, -22.6001625, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  314. Part17.Orientation = Vector3.new(0, -90, 0)
  315. Part17.Position = Vector3.new(-23.5001221, 4.60000801, -22.6001625)
  316. Part17.Rotation = Vector3.new(0, -90, 0)
  317. Part17.Color = Color3.new(0.337255, 0.258824, 0.211765)
  318. Part17.Size = Vector3.new(0.39999944, 2, 0.200000003)
  319. Part17.Anchored = true
  320. Part17.BottomSurface = Enum.SurfaceType.Smooth
  321. Part17.BrickColor = BrickColor.new("Dirt brown")
  322. Part17.Material = Enum.Material.Wood
  323. Part17.TopSurface = Enum.SurfaceType.Smooth
  324. Part17.brickColor = BrickColor.new("Dirt brown")
  325. Part17.FormFactor = Enum.FormFactor.Custom
  326. Part17.formFactor = Enum.FormFactor.Custom
  327. Part18.Parent = Model12
  328. Part18.CFrame = CFrame.new(-22.9000854, 2.40001392, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  329. Part18.Orientation = Vector3.new(0, -90, 0)
  330. Part18.Position = Vector3.new(-22.9000854, 2.40001392, -26.0001831)
  331. Part18.Rotation = Vector3.new(0, -90, 0)
  332. Part18.Color = Color3.new(0.337255, 0.258824, 0.211765)
  333. Part18.Size = Vector3.new(7.5999999, 0.400000095, 1.39999998)
  334. Part18.Anchored = true
  335. Part18.BottomSurface = Enum.SurfaceType.Smooth
  336. Part18.BrickColor = BrickColor.new("Dirt brown")
  337. Part18.Material = Enum.Material.Wood
  338. Part18.TopSurface = Enum.SurfaceType.Smooth
  339. Part18.brickColor = BrickColor.new("Dirt brown")
  340. Part18.FormFactor = Enum.FormFactor.Custom
  341. Part18.formFactor = Enum.FormFactor.Custom
  342. Part19.Parent = Model12
  343. Part19.CFrame = CFrame.new(-22.6000366, 1.30005896, -29.4002075, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  344. Part19.Orientation = Vector3.new(0, -90, 0)
  345. Part19.Position = Vector3.new(-22.6000366, 1.30005896, -29.4002075)
  346. Part19.Rotation = Vector3.new(0, -90, 0)
  347. Part19.Color = Color3.new(0.337255, 0.258824, 0.211765)
  348. Part19.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
  349. Part19.Anchored = true
  350. Part19.BottomSurface = Enum.SurfaceType.Smooth
  351. Part19.BrickColor = BrickColor.new("Dirt brown")
  352. Part19.Material = Enum.Material.Wood
  353. Part19.TopSurface = Enum.SurfaceType.Smooth
  354. Part19.brickColor = BrickColor.new("Dirt brown")
  355. Part19.FormFactor = Enum.FormFactor.Custom
  356. Part19.formFactor = Enum.FormFactor.Custom
  357. Part20.Name = "Keys"
  358. Part20.Parent = Model12
  359. Part20.CFrame = CFrame.new(-22.7000732, 2.70000696, -26.0001831, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  360. Part20.Position = Vector3.new(-22.7000732, 2.70000696, -26.0001831)
  361. Part20.Color = Color3.new(0.972549, 0.972549, 0.972549)
  362. Part20.Size = Vector3.new(0.999999881, 0.200000003, 6.80000019)
  363. Part20.Anchored = true
  364. Part20.BottomSurface = Enum.SurfaceType.Smooth
  365. Part20.BrickColor = BrickColor.new("Institutional white")
  366. Part20.TopSurface = Enum.SurfaceType.Smooth
  367. Part20.brickColor = BrickColor.new("Institutional white")
  368. Part20.FormFactor = Enum.FormFactor.Custom
  369. Part20.formFactor = Enum.FormFactor.Custom
  370. Decal21.Parent = Part20
  371. Decal21.Texture = "http://www.roblox.com/asset/?id=2204142"
  372. Decal21.Face = Enum.NormalId.Top
  373. Part22.Parent = Model12
  374. Part22.CFrame = CFrame.new(-22.8999634, 0.200047001, -22.6000977, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  375. Part22.Orientation = Vector3.new(0, -90, 0)
  376. Part22.Position = Vector3.new(-22.8999634, 0.200047001, -22.6000977)
  377. Part22.Rotation = Vector3.new(0, -90, 0)
  378. Part22.Color = Color3.new(0.337255, 0.258824, 0.211765)
  379. Part22.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
  380. Part22.Anchored = true
  381. Part22.BottomSurface = Enum.SurfaceType.Smooth
  382. Part22.BrickColor = BrickColor.new("Dirt brown")
  383. Part22.Material = Enum.Material.Wood
  384. Part22.TopSurface = Enum.SurfaceType.Smooth
  385. Part22.brickColor = BrickColor.new("Dirt brown")
  386. Part22.FormFactor = Enum.FormFactor.Custom
  387. Part22.formFactor = Enum.FormFactor.Custom
  388. Part23.Name = "SheetMusic"
  389. Part23.Parent = Model12
  390. Part23.CFrame = CFrame.new(-23.5985107, 4.39999819, -26.0001831, 0, -0.12403439, -0.99227792, 0, 0.99227792, -0.12403439, 1, 0, -0)
  391. Part23.Orientation = Vector3.new(7.11999989, -90, 0)
  392. Part23.Position = Vector3.new(-23.5985107, 4.39999819, -26.0001831)
  393. Part23.Rotation = Vector3.new(90, -82.8799973, 90)
  394. Part23.Color = Color3.new(0.972549, 0.972549, 0.972549)
  395. Part23.Size = Vector3.new(1.20000005, 1.60000002, 0.200000003)
  396. Part23.Anchored = true
  397. Part23.BottomSurface = Enum.SurfaceType.Smooth
  398. Part23.BrickColor = BrickColor.new("Institutional white")
  399. Part23.TopSurface = Enum.SurfaceType.Smooth
  400. Part23.brickColor = BrickColor.new("Institutional white")
  401. Part23.FormFactor = Enum.FormFactor.Custom
  402. Part23.formFactor = Enum.FormFactor.Custom
  403. Decal24.Parent = Part23
  404. Decal24.Texture = "http://www.roblox.com/asset/?id=143675742"
  405. Sound25.Parent = Part23
  406. Sound25.Looped = true
  407. Sound25.SoundId = "rbxassetid://3749844870"
  408. Sound25.Volume = 1
  409. Part26.Name = "Pedal"
  410. Part26.Parent = Model12
  411. Part26.CFrame = CFrame.new(-23.2999878, 0.100079, -25.7000732, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  412. Part26.Orientation = Vector3.new(0, -90, 0)
  413. Part26.Position = Vector3.new(-23.2999878, 0.100079, -25.7000732)
  414. Part26.Rotation = Vector3.new(0, -90, 0)
  415. Part26.Color = Color3.new(0.411765, 0.4, 0.360784)
  416. Part26.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  417. Part26.Anchored = true
  418. Part26.BottomSurface = Enum.SurfaceType.Smooth
  419. Part26.BrickColor = BrickColor.new("Flint")
  420. Part26.Material = Enum.Material.Metal
  421. Part26.TopSurface = Enum.SurfaceType.Smooth
  422. Part26.brickColor = BrickColor.new("Flint")
  423. Part26.FormFactor = Enum.FormFactor.Custom
  424. Part26.formFactor = Enum.FormFactor.Custom
  425. Part27.Parent = Model12
  426. Part27.CFrame = CFrame.new(-24.3001099, 5.69997978, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  427. Part27.Orientation = Vector3.new(0, -90, 0)
  428. Part27.Position = Vector3.new(-24.3001099, 5.69997978, -26.0001831)
  429. Part27.Rotation = Vector3.new(0, -90, 0)
  430. Part27.Color = Color3.new(0.337255, 0.258824, 0.211765)
  431. Part27.Size = Vector3.new(8.39999962, 0.200000003, 1.80000007)
  432. Part27.Anchored = true
  433. Part27.BottomSurface = Enum.SurfaceType.Smooth
  434. Part27.BrickColor = BrickColor.new("Dirt brown")
  435. Part27.Material = Enum.Material.Wood
  436. Part27.TopSurface = Enum.SurfaceType.Smooth
  437. Part27.brickColor = BrickColor.new("Dirt brown")
  438. Part27.FormFactor = Enum.FormFactor.Custom
  439. Part27.formFactor = Enum.FormFactor.Custom
  440. Part28.Parent = Model12
  441. Part28.CFrame = CFrame.new(-23.4000854, 3.10002995, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  442. Part28.Orientation = Vector3.new(0, -90, 0)
  443. Part28.Position = Vector3.new(-23.4000854, 3.10002995, -26.0001831)
  444. Part28.Rotation = Vector3.new(0, -90, 0)
  445. Part28.Color = Color3.new(0.337255, 0.258824, 0.211765)
  446. Part28.Size = Vector3.new(7.60000038, 1.00000012, 0.399999976)
  447. Part28.Anchored = true
  448. Part28.BottomSurface = Enum.SurfaceType.Smooth
  449. Part28.BrickColor = BrickColor.new("Dirt brown")
  450. Part28.Material = Enum.Material.Wood
  451. Part28.TopSurface = Enum.SurfaceType.Smooth
  452. Part28.brickColor = BrickColor.new("Dirt brown")
  453. Part28.FormFactor = Enum.FormFactor.Custom
  454. Part28.formFactor = Enum.FormFactor.Custom
  455. Part29.Parent = Model12
  456. Part29.CFrame = CFrame.new(-22.7000732, 2.90001392, -22.4000854, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  457. Part29.Orientation = Vector3.new(0, -90, 0)
  458. Part29.Position = Vector3.new(-22.7000732, 2.90001392, -22.4000854)
  459. Part29.Rotation = Vector3.new(0, -90, 0)
  460. Part29.Color = Color3.new(0.337255, 0.258824, 0.211765)
  461. Part29.Size = Vector3.new(0.400000036, 0.600000083, 1)
  462. Part29.Anchored = true
  463. Part29.BottomSurface = Enum.SurfaceType.Smooth
  464. Part29.BrickColor = BrickColor.new("Dirt brown")
  465. Part29.Material = Enum.Material.Wood
  466. Part29.TopSurface = Enum.SurfaceType.Smooth
  467. Part29.brickColor = BrickColor.new("Dirt brown")
  468. Part29.FormFactor = Enum.FormFactor.Custom
  469. Part29.formFactor = Enum.FormFactor.Custom
  470. Part30.Name = "Pedal"
  471. Part30.Parent = Model12
  472. Part30.CFrame = CFrame.new(-23.2999878, 0.100079, -26.3001709, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  473. Part30.Orientation = Vector3.new(0, -90, 0)
  474. Part30.Position = Vector3.new(-23.2999878, 0.100079, -26.3001709)
  475. Part30.Rotation = Vector3.new(0, -90, 0)
  476. Part30.Color = Color3.new(0.411765, 0.4, 0.360784)
  477. Part30.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  478. Part30.Anchored = true
  479. Part30.BottomSurface = Enum.SurfaceType.Smooth
  480. Part30.BrickColor = BrickColor.new("Flint")
  481. Part30.Material = Enum.Material.Metal
  482. Part30.TopSurface = Enum.SurfaceType.Smooth
  483. Part30.brickColor = BrickColor.new("Flint")
  484. Part30.FormFactor = Enum.FormFactor.Custom
  485. Part30.formFactor = Enum.FormFactor.Custom
  486. Part31.Parent = Model12
  487. Part31.CFrame = CFrame.new(-23.5001221, 4.60000801, -29.4002075, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  488. Part31.Orientation = Vector3.new(0, -90, 0)
  489. Part31.Position = Vector3.new(-23.5001221, 4.60000801, -29.4002075)
  490. Part31.Rotation = Vector3.new(0, -90, 0)
  491. Part31.Color = Color3.new(0.337255, 0.258824, 0.211765)
  492. Part31.Size = Vector3.new(0.39999944, 2, 0.200000003)
  493. Part31.Anchored = true
  494. Part31.BottomSurface = Enum.SurfaceType.Smooth
  495. Part31.BrickColor = BrickColor.new("Dirt brown")
  496. Part31.Material = Enum.Material.Wood
  497. Part31.TopSurface = Enum.SurfaceType.Smooth
  498. Part31.brickColor = BrickColor.new("Dirt brown")
  499. Part31.FormFactor = Enum.FormFactor.Custom
  500. Part31.formFactor = Enum.FormFactor.Custom
  501. Part32.Parent = Model12
  502. Part32.CFrame = CFrame.new(-23.3001099, 3.6999929, -26.0001831, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  503. Part32.Orientation = Vector3.new(0, -90, 0)
  504. Part32.Position = Vector3.new(-23.3001099, 3.6999929, -26.0001831)
  505. Part32.Rotation = Vector3.new(0, -90, 0)
  506. Part32.Color = Color3.new(0.337255, 0.258824, 0.211765)
  507. Part32.Size = Vector3.new(2.79999995, 0.200000003, 0.200000003)
  508. Part32.Anchored = true
  509. Part32.BottomSurface = Enum.SurfaceType.Smooth
  510. Part32.BrickColor = BrickColor.new("Dirt brown")
  511. Part32.Material = Enum.Material.Wood
  512. Part32.TopSurface = Enum.SurfaceType.Smooth
  513. Part32.brickColor = BrickColor.new("Dirt brown")
  514. Part32.FormFactor = Enum.FormFactor.Custom
  515. Part32.formFactor = Enum.FormFactor.Custom
  516. Part33.Parent = Model12
  517. Part33.CFrame = CFrame.new(-22.7000732, 2.90001392, -29.6001587, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  518. Part33.Orientation = Vector3.new(0, -90, 0)
  519. Part33.Position = Vector3.new(-22.7000732, 2.90001392, -29.6001587)
  520. Part33.Rotation = Vector3.new(0, -90, 0)
  521. Part33.Color = Color3.new(0.337255, 0.258824, 0.211765)
  522. Part33.Size = Vector3.new(0.400000036, 0.600000083, 1)
  523. Part33.Anchored = true
  524. Part33.BottomSurface = Enum.SurfaceType.Smooth
  525. Part33.BrickColor = BrickColor.new("Dirt brown")
  526. Part33.Material = Enum.Material.Wood
  527. Part33.TopSurface = Enum.SurfaceType.Smooth
  528. Part33.brickColor = BrickColor.new("Dirt brown")
  529. Part33.FormFactor = Enum.FormFactor.Custom
  530. Part33.formFactor = Enum.FormFactor.Custom
  531. WedgePart34.Parent = Model12
  532. WedgePart34.CFrame = CFrame.new(-22.8001099, 3.40000296, -22.3999634, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  533. WedgePart34.Orientation = Vector3.new(0, -90, 0)
  534. WedgePart34.Position = Vector3.new(-22.8001099, 3.40000296, -22.3999634)
  535. WedgePart34.Rotation = Vector3.new(0, -90, 0)
  536. WedgePart34.Color = Color3.new(0.337255, 0.258824, 0.211765)
  537. WedgePart34.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
  538. WedgePart34.Anchored = true
  539. WedgePart34.BottomSurface = Enum.SurfaceType.Smooth
  540. WedgePart34.BrickColor = BrickColor.new("Dirt brown")
  541. WedgePart34.Material = Enum.Material.Wood
  542. WedgePart34.brickColor = BrickColor.new("Dirt brown")
  543. WedgePart34.FormFactor = Enum.FormFactor.Custom
  544. WedgePart34.formFactor = Enum.FormFactor.Custom
  545. WedgePart35.Parent = Model12
  546. WedgePart35.CFrame = CFrame.new(-22.8001099, 3.40000296, -29.6000366, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  547. WedgePart35.Orientation = Vector3.new(0, -90, 0)
  548. WedgePart35.Position = Vector3.new(-22.8001099, 3.40000296, -29.6000366)
  549. WedgePart35.Rotation = Vector3.new(0, -90, 0)
  550. WedgePart35.Color = Color3.new(0.337255, 0.258824, 0.211765)
  551. WedgePart35.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
  552. WedgePart35.Anchored = true
  553. WedgePart35.BottomSurface = Enum.SurfaceType.Smooth
  554. WedgePart35.BrickColor = BrickColor.new("Dirt brown")
  555. WedgePart35.Material = Enum.Material.Wood
  556. WedgePart35.brickColor = BrickColor.new("Dirt brown")
  557. WedgePart35.FormFactor = Enum.FormFactor.Custom
  558. WedgePart35.formFactor = Enum.FormFactor.Custom
  559. Script36.Name = "PianoScript"
  560. Script36.Parent = Model0
  561. table.insert(cors,sandbox(Script36,function()
  562. local seat = script.Parent.Bench.Seat
  563. local sheetMusic = script.Parent.Piano.SheetMusic
  564. local occupant = nil
  565. local tune = nil
  566. local oldTune = nil
  567. local animation = nil
  568. local r6Anim = script.PlayingR6
  569. local r15Anim = script.PlayingR15
  570.  
  571. tunes = {
  572.     "rbxassetid://3749844870", -- REMOVE RAGTIME
  573.     "rbxassetid://224027197", -- Scott Joplin - The Strenuous Life
  574.     "rbxassetid://912184820", -- USSR ANTHEM
  575. }
  576.  
  577. seat.ChildAdded:Connect(function(obj)
  578.     if obj.Name == "SeatWeld" then
  579.         local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
  580.         if player then
  581.             local hum = player.Character:FindFirstChild("Humanoid")
  582.             occupant = obj.Part1.Parent
  583.             if hum.RigType == Enum.HumanoidRigType.R6 then
  584.                 animation = hum:LoadAnimation(r6Anim)
  585.             else
  586.                 animation = hum:LoadAnimation(r15Anim)
  587.             end
  588.             animation:Play()
  589.         end
  590.     end
  591. end)
  592.  
  593. seat.ChildRemoved:Connect(function(obj)
  594.     if obj.Name == "SeatWeld" then
  595.         local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
  596.         if player then
  597.             animation:Stop()
  598.             occupant = nil
  599.             sheetMusic.Sound:Stop()
  600.         end
  601.     end
  602. end)
  603.  
  604. while wait(0.1) do
  605.     if occupant ~= nil then
  606.         repeat
  607.             tune = tunes[math.random(1, #tunes)]
  608.         until tune ~= oldTune
  609.         oldTune = tune
  610.         sheetMusic.Sound.SoundId = tune
  611.         sheetMusic.Sound:Play()
  612.         repeat
  613.             wait()
  614.         until not sheetMusic.Sound.Playing
  615.     end
  616. end
  617. end))
  618. Animation37.Name = "PlayingR6"
  619. Animation37.Parent = Script36
  620. Animation37.AnimationId = "rbxassetid://673670051"
  621. Animation38.Name = "PlayingR15"
  622. Animation38.Parent = Script36
  623. Animation38.AnimationId = "rbxassetid://673670434"
  624. for i,v in pairs(mas:GetChildren()) do
  625.     v.Parent = workspace
  626.     pcall(function() v:MakeJoints() end)
  627. end
  628. mas:Destroy()
  629. for i,v in pairs(cors) do
  630.     spawn(function()
  631.         pcall(v)
  632.     end)
  633. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement