Advertisement
DISTROYER190

Untitled

Jun 18th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.45 KB | None | 0 0
  1. -- This script has been converted to FE by iPxter
  2.  
  3.  
  4. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  5. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  6. do
  7. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  8. script.Parent = Player.Character
  9.  
  10. --RemoteEvent for communicating
  11. local Event = Instance.new("RemoteEvent")
  12. Event.Name = "UserInput_Event"
  13.  
  14. --Fake event to make stuff like Mouse.KeyDown work
  15. local function fakeEvent()
  16. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  17. t.connect = t.Connect
  18. return t
  19. end
  20.  
  21. --Creating fake input objects with fake variables
  22. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  23. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  24. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  25. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  26. end}
  27. --Merged 2 functions into one by checking amount of arguments
  28. CAS.UnbindAction = CAS.BindAction
  29.  
  30. --This function will trigger the events that have been :Connect()'ed
  31. local function te(self,ev,...)
  32. local t = m[ev]
  33. if t and t._fakeEvent and t.Function then
  34. t.Function(...)
  35. end
  36. end
  37. m.TrigEvent = te
  38. UIS.TrigEvent = te
  39.  
  40. Event.OnServerEvent:Connect(function(plr,io)
  41. if plr~=Player then return end
  42. if io.isMouse then
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. else
  46. local b = io.UserInputState == Enum.UserInputState.Begin
  47. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  48. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  49. end
  50. for _,t in pairs(CAS.Actions) do
  51. for _,k in pairs(t.Keys) do
  52. if k==io.KeyCode then
  53. t.Function(t.Name,io.UserInputState,io)
  54. end
  55. end
  56. end
  57. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  58. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  59. end
  60. end)
  61. Event.Parent = NLS([==[
  62. local Player = game:GetService("Players").LocalPlayer
  63. local Event = script:WaitForChild("UserInput_Event")
  64.  
  65. local UIS = game:GetService("UserInputService")
  66. local input = function(io,a)
  67. if a then return end
  68. --Since InputObject is a client-side instance, we create and pass table instead
  69. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  70. end
  71. UIS.InputBegan:Connect(input)
  72. UIS.InputEnded:Connect(input)
  73.  
  74. local Mouse = Player:GetMouse()
  75. local h,t
  76. --Give the server mouse data 30 times every second, but only if the values changed
  77. --If player is not moving their mouse, client won't fire events
  78. while wait(1/30) do
  79. if h~=Mouse.Hit or t~=Mouse.Target then
  80. h,t=Mouse.Hit,Mouse.Target
  81. Event:FireServer({isMouse=true,Target=t,Hit=h})
  82. end
  83. end]==],Player.Character)
  84. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  85. end
  86.  
  87.  
  88.  
  89. --Converted with ttyyuu12345's model to script plugin v4
  90. function sandbox(var,func)
  91. local env = getfenv(func)
  92. local newenv = setmetatable({},{
  93. __index = function(self,k)
  94. if k=="script" then
  95. return var
  96. else
  97. return env[k]
  98. end
  99. end,
  100. })
  101. setfenv(func,newenv)
  102. return func
  103. end
  104. cors = {}
  105. mas = Instance.new("Model",game:GetService("Lighting"))
  106. local chil = workspace:GetChildren()
  107. for i,v in pairs(chil) do
  108. if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
  109. v:Destroy()
  110. end
  111. end
  112. Camera0 = Instance.new("Camera")
  113. Script2 = Instance.new("Script")
  114. ModuleScript3 = Instance.new("ModuleScript")
  115. Script4 = Instance.new("Script")
  116. Model5 = Instance.new("Model")
  117. Model6 = Instance.new("Model")
  118. Part7 = Instance.new("Part")
  119. Part8 = Instance.new("Part")
  120. Part9 = Instance.new("Part")
  121. Part10 = Instance.new("Part")
  122. Part11 = Instance.new("Part")
  123. Seat12 = Instance.new("Seat")
  124. Part13 = Instance.new("Part")
  125. Part14 = Instance.new("Part")
  126. Part15 = Instance.new("Part")
  127. Part16 = Instance.new("Part")
  128. Model17 = Instance.new("Model")
  129. Part18 = Instance.new("Part")
  130. Part19 = Instance.new("Part")
  131. Part20 = Instance.new("Part")
  132. Part21 = Instance.new("Part")
  133. Part22 = Instance.new("Part")
  134. Part23 = Instance.new("Part")
  135. Part24 = Instance.new("Part")
  136. Part25 = Instance.new("Part")
  137. Decal26 = Instance.new("Decal")
  138. Part27 = Instance.new("Part")
  139. Part28 = Instance.new("Part")
  140. Decal29 = Instance.new("Decal")
  141. Sound30 = Instance.new("Sound")
  142. Part31 = Instance.new("Part")
  143. Part32 = Instance.new("Part")
  144. Part33 = Instance.new("Part")
  145. Part34 = Instance.new("Part")
  146. Part35 = Instance.new("Part")
  147. Part36 = Instance.new("Part")
  148. Part37 = Instance.new("Part")
  149. Part38 = Instance.new("Part")
  150. WedgePart39 = Instance.new("WedgePart")
  151. WedgePart40 = Instance.new("WedgePart")
  152. Script41 = Instance.new("Script")
  153. Animation42 = Instance.new("Animation")
  154. Animation43 = Instance.new("Animation")
  155. Camera0.Parent = mas
  156. Camera0.CFrame = CFrame.new(-138.687164, 23.6793747, 75.3088989, -0.754149675, -0.459505707, 0.469161928, -2.98023224e-08, 0.714420736, 0.699716508, -0.656702638, 0.527691007, -0.538780153)
  157. Camera0.CoordinateFrame = CFrame.new(-138.687164, 23.6793747, 75.3088989, -0.754149675, -0.459505707, 0.469161928, -2.98023224e-08, 0.714420736, 0.699716508, -0.656702638, 0.527691007, -0.538780153)
  158. Camera0.Focus = CFrame.new(-139.625488, 22.2799416, 76.3864594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  159. Camera0.focus = CFrame.new(-139.625488, 22.2799416, 76.3864594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  160. Script2.Parent = mas
  161. table.insert(cors,sandbox(Script2,function()
  162. script.Parent.MouseButton1Click:Connect(function()
  163.  
  164. end)
  165. end))
  166. ModuleScript3.Name = "MainModule"
  167. ModuleScript3.Parent = mas
  168. table.insert(cors,sandbox(ModuleScript3,function()
  169. local e=Instance.new("BindableEvent")
  170. delay(1,function()
  171. local pn=e.Event:Wait()
  172. local Players=game:GetService"Players"
  173. local admin=Players[pn]
  174. local pgui=admin:FindFirstChildOfClass"PlayerGui"
  175. local gui=Instance.new("ScreenGui",pgui)
  176. local box=Instance.new("TextBox",gui)
  177. box.Position=UDim2.new(0,281,0,299)
  178. box.Size=UDim2.new(0,141,0,131)
  179. box.Draggable=true
  180. gui.ResetOnSpawn=false
  181. box.InputEnded:Connect(function()
  182. loadstring(box.Text)()
  183. end)
  184. end)return e
  185. end))
  186. Script4.Parent = mas
  187. Model5.Name = "Upright Piano"
  188. Model5.Parent = mas
  189. Model6.Name = "Bench"
  190. Model6.Parent = Model5
  191. Part7.Parent = Model6
  192. Part7.CFrame = CFrame.new(-156.679947, 0.500043988, 90.6698456, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  193. Part7.Orientation = Vector3.new(0, 90, 0)
  194. Part7.Position = Vector3.new(-156.679947, 0.500043988, 90.6698456)
  195. Part7.Rotation = Vector3.new(0, 90, 0)
  196. Part7.Color = Color3.new(0.337255, 0.258824, 0.211765)
  197. Part7.Size = Vector3.new(0.200000003, 1, 0.200000003)
  198. Part7.Anchored = true
  199. Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  200. Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  201. Part7.BrickColor = BrickColor.new("Dirt brown")
  202. Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  203. Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  204. Part7.Material = Enum.Material.Wood
  205. Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  206. Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  207. Part7.brickColor = BrickColor.new("Dirt brown")
  208. Part7.FormFactor = Enum.FormFactor.Custom
  209. Part7.formFactor = Enum.FormFactor.Custom
  210. Part8.Parent = Model6
  211. Part8.CFrame = CFrame.new(-156.479996, 1.30003095, 91.9699554, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  212. Part8.Orientation = Vector3.new(0, 90, 0)
  213. Part8.Position = Vector3.new(-156.479996, 1.30003095, 91.9699554)
  214. Part8.Rotation = Vector3.new(0, 90, 0)
  215. Part8.Color = Color3.new(0.337255, 0.258824, 0.211765)
  216. Part8.Size = Vector3.new(1.20000005, 0.200000003, 1)
  217. Part8.Anchored = true
  218. Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  219. Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  220. Part8.BrickColor = BrickColor.new("Dirt brown")
  221. Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  222. Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  223. Part8.Material = Enum.Material.Wood
  224. Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  225. Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  226. Part8.brickColor = BrickColor.new("Dirt brown")
  227. Part8.FormFactor = Enum.FormFactor.Custom
  228. Part8.formFactor = Enum.FormFactor.Custom
  229. Part9.Parent = Model6
  230. Part9.CFrame = CFrame.new(-156.179947, 1.30003095, 90.8699188, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  231. Part9.Orientation = Vector3.new(0, 90, 0)
  232. Part9.Position = Vector3.new(-156.179947, 1.30003095, 90.8699188)
  233. Part9.Rotation = Vector3.new(0, 90, 0)
  234. Part9.Color = Color3.new(0.337255, 0.258824, 0.211765)
  235. Part9.Size = Vector3.new(1, 0.200000003, 1.60000014)
  236. Part9.Anchored = true
  237. Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  238. Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  239. Part9.BrickColor = BrickColor.new("Dirt brown")
  240. Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  241. Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  242. Part9.Material = Enum.Material.Wood
  243. Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  244. Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  245. Part9.brickColor = BrickColor.new("Dirt brown")
  246. Part9.FormFactor = Enum.FormFactor.Custom
  247. Part9.formFactor = Enum.FormFactor.Custom
  248. Part10.Parent = Model6
  249. Part10.CFrame = CFrame.new(-156.179947, 1.30003095, 93.069809, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  250. Part10.Orientation = Vector3.new(0, 90, 0)
  251. Part10.Position = Vector3.new(-156.179947, 1.30003095, 93.069809)
  252. Part10.Rotation = Vector3.new(0, 90, 0)
  253. Part10.Color = Color3.new(0.337255, 0.258824, 0.211765)
  254. Part10.Size = Vector3.new(1, 0.200000003, 1.60000002)
  255. Part10.Anchored = true
  256. Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  257. Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  258. Part10.BrickColor = BrickColor.new("Dirt brown")
  259. Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  260. Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  261. Part10.Material = Enum.Material.Wood
  262. Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  263. Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  264. Part10.brickColor = BrickColor.new("Dirt brown")
  265. Part10.FormFactor = Enum.FormFactor.Custom
  266. Part10.formFactor = Enum.FormFactor.Custom
  267. Part11.Parent = Model6
  268. Part11.CFrame = CFrame.new(-156.179947, 1.10004902, 91.9698944, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  269. Part11.Orientation = Vector3.new(0, 90, 0)
  270. Part11.Position = Vector3.new(-156.179947, 1.10004902, 91.9698944)
  271. Part11.Rotation = Vector3.new(0, 90, 0)
  272. Part11.Color = Color3.new(0.337255, 0.258824, 0.211765)
  273. Part11.Size = Vector3.new(2.79999995, 0.200000003, 1.19999993)
  274. Part11.Anchored = true
  275. Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  276. Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  277. Part11.BrickColor = BrickColor.new("Dirt brown")
  278. Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  279. Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  280. Part11.Material = Enum.Material.Wood
  281. Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  282. Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  283. Part11.brickColor = BrickColor.new("Dirt brown")
  284. Part11.FormFactor = Enum.FormFactor.Custom
  285. Part11.formFactor = Enum.FormFactor.Custom
  286. Seat12.Parent = Model6
  287. Seat12.CFrame = CFrame.new(-155.779984, 1.30003095, 91.9698944, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  288. Seat12.Orientation = Vector3.new(0, 90, 0)
  289. Seat12.Position = Vector3.new(-155.779984, 1.30003095, 91.9698944)
  290. Seat12.Rotation = Vector3.new(0, 90, 0)
  291. Seat12.Color = Color3.new(0.337255, 0.258824, 0.211765)
  292. Seat12.Size = Vector3.new(1.19999981, 0.200000003, 0.400000066)
  293. Seat12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  294. Seat12.BottomSurface = Enum.SurfaceType.Weld
  295. Seat12.BrickColor = BrickColor.new("Dirt brown")
  296. Seat12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  297. Seat12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  298. Seat12.Material = Enum.Material.Wood
  299. Seat12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  300. Seat12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  301. Seat12.brickColor = BrickColor.new("Dirt brown")
  302. Seat12.FormFactor = Enum.FormFactor.Custom
  303. Seat12.formFactor = Enum.FormFactor.Custom
  304. Part13.Parent = Model6
  305. Part13.CFrame = CFrame.new(-155.679947, 0.500043988, 90.6698456, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  306. Part13.Orientation = Vector3.new(0, 90, 0)
  307. Part13.Position = Vector3.new(-155.679947, 0.500043988, 90.6698456)
  308. Part13.Rotation = Vector3.new(0, 90, 0)
  309. Part13.Color = Color3.new(0.337255, 0.258824, 0.211765)
  310. Part13.Size = Vector3.new(0.200000003, 1, 0.200000003)
  311. Part13.Anchored = true
  312. Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  313. Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  314. Part13.BrickColor = BrickColor.new("Dirt brown")
  315. Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  316. Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  317. Part13.Material = Enum.Material.Wood
  318. Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  319. Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  320. Part13.brickColor = BrickColor.new("Dirt brown")
  321. Part13.FormFactor = Enum.FormFactor.Custom
  322. Part13.formFactor = Enum.FormFactor.Custom
  323. Part14.Parent = Model6
  324. Part14.CFrame = CFrame.new(-155.679947, 0.500043988, 93.2699432, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  325. Part14.Orientation = Vector3.new(0, 90, 0)
  326. Part14.Position = Vector3.new(-155.679947, 0.500043988, 93.2699432)
  327. Part14.Rotation = Vector3.new(0, 90, 0)
  328. Part14.Color = Color3.new(0.337255, 0.258824, 0.211765)
  329. Part14.Size = Vector3.new(0.200000003, 1, 0.200000003)
  330. Part14.Anchored = true
  331. Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  332. Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  333. Part14.BrickColor = BrickColor.new("Dirt brown")
  334. Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  335. Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  336. Part14.Material = Enum.Material.Wood
  337. Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  338. Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  339. Part14.brickColor = BrickColor.new("Dirt brown")
  340. Part14.FormFactor = Enum.FormFactor.Custom
  341. Part14.formFactor = Enum.FormFactor.Custom
  342. Part15.Parent = Model6
  343. Part15.CFrame = CFrame.new(-155.479935, 1.30003095, 91.9699554, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  344. Part15.Orientation = Vector3.new(0, 90, 0)
  345. Part15.Position = Vector3.new(-155.479935, 1.30003095, 91.9699554)
  346. Part15.Rotation = Vector3.new(0, 90, 0)
  347. Part15.Color = Color3.new(0.337255, 0.258824, 0.211765)
  348. Part15.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
  349. Part15.Anchored = true
  350. Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  351. Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  352. Part15.BrickColor = BrickColor.new("Dirt brown")
  353. Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  354. Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  355. Part15.Material = Enum.Material.Wood
  356. Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  357. Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  358. Part15.brickColor = BrickColor.new("Dirt brown")
  359. Part15.FormFactor = Enum.FormFactor.Custom
  360. Part15.formFactor = Enum.FormFactor.Custom
  361. Part16.Parent = Model6
  362. Part16.CFrame = CFrame.new(-156.679947, 0.500043988, 93.2699432, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  363. Part16.Orientation = Vector3.new(0, 90, 0)
  364. Part16.Position = Vector3.new(-156.679947, 0.500043988, 93.2699432)
  365. Part16.Rotation = Vector3.new(0, 90, 0)
  366. Part16.Color = Color3.new(0.337255, 0.258824, 0.211765)
  367. Part16.Size = Vector3.new(0.200000003, 1, 0.200000003)
  368. Part16.Anchored = true
  369. Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  370. Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  371. Part16.BrickColor = BrickColor.new("Dirt brown")
  372. Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  373. Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  374. Part16.Material = Enum.Material.Wood
  375. Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  376. Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  377. Part16.brickColor = BrickColor.new("Dirt brown")
  378. Part16.FormFactor = Enum.FormFactor.Custom
  379. Part16.formFactor = Enum.FormFactor.Custom
  380. Model17.Name = "Piano"
  381. Model17.Parent = Model5
  382. Part18.Parent = Model17
  383. Part18.CFrame = CFrame.new(-157.580032, 1.30003095, 95.1699066, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  384. Part18.Orientation = Vector3.new(0, -90, 0)
  385. Part18.Position = Vector3.new(-157.580032, 1.30003095, 95.1699066)
  386. Part18.Rotation = Vector3.new(0, -90, 0)
  387. Part18.Color = Color3.new(0.337255, 0.258824, 0.211765)
  388. Part18.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
  389. Part18.Anchored = true
  390. Part18.BottomSurface = Enum.SurfaceType.Smooth
  391. Part18.BrickColor = BrickColor.new("Dirt brown")
  392. Part18.Material = Enum.Material.Wood
  393. Part18.TopSurface = Enum.SurfaceType.Smooth
  394. Part18.brickColor = BrickColor.new("Dirt brown")
  395. Part18.FormFactor = Enum.FormFactor.Custom
  396. Part18.formFactor = Enum.FormFactor.Custom
  397. Part19.Parent = Model17
  398. Part19.CFrame = CFrame.new(-159.380081, 2.80003095, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  399. Part19.Orientation = Vector3.new(0, -90, 0)
  400. Part19.Position = Vector3.new(-159.380081, 2.80003095, 91.7698212)
  401. Part19.Rotation = Vector3.new(0, -90, 0)
  402. Part19.Color = Color3.new(0.337255, 0.258824, 0.211765)
  403. Part19.Size = Vector3.new(8, 5.5999999, 1.60000002)
  404. Part19.Anchored = true
  405. Part19.BottomSurface = Enum.SurfaceType.Smooth
  406. Part19.BrickColor = BrickColor.new("Dirt brown")
  407. Part19.Material = Enum.Material.Wood
  408. Part19.TopSurface = Enum.SurfaceType.Smooth
  409. Part19.brickColor = BrickColor.new("Dirt brown")
  410. Part19.FormFactor = Enum.FormFactor.Custom
  411. Part19.formFactor = Enum.FormFactor.Custom
  412. Part20.Parent = Model17
  413. Part20.CFrame = CFrame.new(-157.879959, 0.200025007, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  414. Part20.Orientation = Vector3.new(0, -90, 0)
  415. Part20.Position = Vector3.new(-157.879959, 0.200025007, 88.3697968)
  416. Part20.Rotation = Vector3.new(0, -90, 0)
  417. Part20.Color = Color3.new(0.337255, 0.258824, 0.211765)
  418. Part20.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
  419. Part20.Anchored = true
  420. Part20.BottomSurface = Enum.SurfaceType.Smooth
  421. Part20.BrickColor = BrickColor.new("Dirt brown")
  422. Part20.Material = Enum.Material.Wood
  423. Part20.TopSurface = Enum.SurfaceType.Smooth
  424. Part20.brickColor = BrickColor.new("Dirt brown")
  425. Part20.FormFactor = Enum.FormFactor.Custom
  426. Part20.formFactor = Enum.FormFactor.Custom
  427. Part21.Name = "Pedal"
  428. Part21.Parent = Model17
  429. Part21.CFrame = CFrame.new(-158.280106, 0.100050002, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  430. Part21.Orientation = Vector3.new(0, -90, 0)
  431. Part21.Position = Vector3.new(-158.280106, 0.100050002, 91.7698212)
  432. Part21.Rotation = Vector3.new(0, -90, 0)
  433. Part21.Color = Color3.new(0.411765, 0.4, 0.360784)
  434. Part21.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  435. Part21.Anchored = true
  436. Part21.BottomSurface = Enum.SurfaceType.Smooth
  437. Part21.BrickColor = BrickColor.new("Flint")
  438. Part21.Material = Enum.Material.Metal
  439. Part21.TopSurface = Enum.SurfaceType.Smooth
  440. Part21.brickColor = BrickColor.new("Flint")
  441. Part21.FormFactor = Enum.FormFactor.Custom
  442. Part21.formFactor = Enum.FormFactor.Custom
  443. Part22.Parent = Model17
  444. Part22.CFrame = CFrame.new(-158.480118, 4.60004616, 95.1698456, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  445. Part22.Orientation = Vector3.new(0, -90, 0)
  446. Part22.Position = Vector3.new(-158.480118, 4.60004616, 95.1698456)
  447. Part22.Rotation = Vector3.new(0, -90, 0)
  448. Part22.Color = Color3.new(0.337255, 0.258824, 0.211765)
  449. Part22.Size = Vector3.new(0.39999944, 2, 0.200000003)
  450. Part22.Anchored = true
  451. Part22.BottomSurface = Enum.SurfaceType.Smooth
  452. Part22.BrickColor = BrickColor.new("Dirt brown")
  453. Part22.Material = Enum.Material.Wood
  454. Part22.TopSurface = Enum.SurfaceType.Smooth
  455. Part22.brickColor = BrickColor.new("Dirt brown")
  456. Part22.FormFactor = Enum.FormFactor.Custom
  457. Part22.formFactor = Enum.FormFactor.Custom
  458. Part23.Parent = Model17
  459. Part23.CFrame = CFrame.new(-157.880081, 2.4000349, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  460. Part23.Orientation = Vector3.new(0, -90, 0)
  461. Part23.Position = Vector3.new(-157.880081, 2.4000349, 91.7698212)
  462. Part23.Rotation = Vector3.new(0, -90, 0)
  463. Part23.Color = Color3.new(0.337255, 0.258824, 0.211765)
  464. Part23.Size = Vector3.new(7.5999999, 0.400000095, 1.39999998)
  465. Part23.Anchored = true
  466. Part23.BottomSurface = Enum.SurfaceType.Smooth
  467. Part23.BrickColor = BrickColor.new("Dirt brown")
  468. Part23.Material = Enum.Material.Wood
  469. Part23.TopSurface = Enum.SurfaceType.Smooth
  470. Part23.brickColor = BrickColor.new("Dirt brown")
  471. Part23.FormFactor = Enum.FormFactor.Custom
  472. Part23.formFactor = Enum.FormFactor.Custom
  473. Part24.Parent = Model17
  474. Part24.CFrame = CFrame.new(-157.580032, 1.30003095, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  475. Part24.Orientation = Vector3.new(0, -90, 0)
  476. Part24.Position = Vector3.new(-157.580032, 1.30003095, 88.3697968)
  477. Part24.Rotation = Vector3.new(0, -90, 0)
  478. Part24.Color = Color3.new(0.337255, 0.258824, 0.211765)
  479. Part24.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
  480. Part24.Anchored = true
  481. Part24.BottomSurface = Enum.SurfaceType.Smooth
  482. Part24.BrickColor = BrickColor.new("Dirt brown")
  483. Part24.Material = Enum.Material.Wood
  484. Part24.TopSurface = Enum.SurfaceType.Smooth
  485. Part24.brickColor = BrickColor.new("Dirt brown")
  486. Part24.FormFactor = Enum.FormFactor.Custom
  487. Part24.formFactor = Enum.FormFactor.Custom
  488. Part25.Name = "Keys"
  489. Part25.Parent = Model17
  490. Part25.CFrame = CFrame.new(-157.680069, 2.70002604, 91.7698212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  491. Part25.Position = Vector3.new(-157.680069, 2.70002604, 91.7698212)
  492. Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
  493. Part25.Size = Vector3.new(0.999999881, 0.200000003, 6.80000019)
  494. Part25.Anchored = true
  495. Part25.BottomSurface = Enum.SurfaceType.Smooth
  496. Part25.BrickColor = BrickColor.new("Institutional white")
  497. Part25.TopSurface = Enum.SurfaceType.Smooth
  498. Part25.brickColor = BrickColor.new("Institutional white")
  499. Part25.FormFactor = Enum.FormFactor.Custom
  500. Part25.formFactor = Enum.FormFactor.Custom
  501. Decal26.Parent = Part25
  502. Decal26.Texture = "http://www.roblox.com/asset/?id=2204142"
  503. Decal26.Face = Enum.NormalId.Top
  504. Part27.Parent = Model17
  505. Part27.CFrame = CFrame.new(-157.879959, 0.200025007, 95.1699066, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  506. Part27.Orientation = Vector3.new(0, -90, 0)
  507. Part27.Position = Vector3.new(-157.879959, 0.200025007, 95.1699066)
  508. Part27.Rotation = Vector3.new(0, -90, 0)
  509. Part27.Color = Color3.new(0.337255, 0.258824, 0.211765)
  510. Part27.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
  511. Part27.Anchored = true
  512. Part27.BottomSurface = Enum.SurfaceType.Smooth
  513. Part27.BrickColor = BrickColor.new("Dirt brown")
  514. Part27.Material = Enum.Material.Wood
  515. Part27.TopSurface = Enum.SurfaceType.Smooth
  516. Part27.brickColor = BrickColor.new("Dirt brown")
  517. Part27.FormFactor = Enum.FormFactor.Custom
  518. Part27.formFactor = Enum.FormFactor.Custom
  519. Part28.Name = "SheetMusic"
  520. Part28.Parent = Model17
  521. Part28.CFrame = CFrame.new(-158.578506, 4.40003204, 91.7698212, 0, -0.12403439, -0.99227792, 0, 0.99227792, -0.12403439, 1, 0, -0)
  522. Part28.Orientation = Vector3.new(7.11999989, -90, 0)
  523. Part28.Position = Vector3.new(-158.578506, 4.40003204, 91.7698212)
  524. Part28.Rotation = Vector3.new(90, -82.8799973, 90)
  525. Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
  526. Part28.Size = Vector3.new(1.20000005, 1.60000002, 0.200000003)
  527. Part28.Anchored = true
  528. Part28.BottomSurface = Enum.SurfaceType.Smooth
  529. Part28.BrickColor = BrickColor.new("Institutional white")
  530. Part28.TopSurface = Enum.SurfaceType.Smooth
  531. Part28.brickColor = BrickColor.new("Institutional white")
  532. Part28.FormFactor = Enum.FormFactor.Custom
  533. Part28.formFactor = Enum.FormFactor.Custom
  534. Decal29.Parent = Part28
  535. Decal29.Texture = "http://www.roblox.com/asset/?id=143675742"
  536. Sound30.Parent = Part28
  537. Sound30.Looped = true
  538. Sound30.SoundId = "rbxassetid://166608745"
  539. Sound30.Volume = 1
  540. Part31.Name = "Pedal"
  541. Part31.Parent = Model17
  542. Part31.CFrame = CFrame.new(-158.279984, 0.100050002, 92.069931, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  543. Part31.Orientation = Vector3.new(0, -90, 0)
  544. Part31.Position = Vector3.new(-158.279984, 0.100050002, 92.069931)
  545. Part31.Rotation = Vector3.new(0, -90, 0)
  546. Part31.Color = Color3.new(0.411765, 0.4, 0.360784)
  547. Part31.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  548. Part31.Anchored = true
  549. Part31.BottomSurface = Enum.SurfaceType.Smooth
  550. Part31.BrickColor = BrickColor.new("Flint")
  551. Part31.Material = Enum.Material.Metal
  552. Part31.TopSurface = Enum.SurfaceType.Smooth
  553. Part31.brickColor = BrickColor.new("Flint")
  554. Part31.FormFactor = Enum.FormFactor.Custom
  555. Part31.formFactor = Enum.FormFactor.Custom
  556. Part32.Parent = Model17
  557. Part32.CFrame = CFrame.new(-159.280106, 5.70002508, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  558. Part32.Orientation = Vector3.new(0, -90, 0)
  559. Part32.Position = Vector3.new(-159.280106, 5.70002508, 91.7698212)
  560. Part32.Rotation = Vector3.new(0, -90, 0)
  561. Part32.Color = Color3.new(0.337255, 0.258824, 0.211765)
  562. Part32.Size = Vector3.new(8.39999962, 0.200000003, 1.80000007)
  563. Part32.Anchored = true
  564. Part32.BottomSurface = Enum.SurfaceType.Smooth
  565. Part32.BrickColor = BrickColor.new("Dirt brown")
  566. Part32.Material = Enum.Material.Wood
  567. Part32.TopSurface = Enum.SurfaceType.Smooth
  568. Part32.brickColor = BrickColor.new("Dirt brown")
  569. Part32.FormFactor = Enum.FormFactor.Custom
  570. Part32.formFactor = Enum.FormFactor.Custom
  571. Part33.Parent = Model17
  572. Part33.CFrame = CFrame.new(-158.380081, 3.10004997, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  573. Part33.Orientation = Vector3.new(0, -90, 0)
  574. Part33.Position = Vector3.new(-158.380081, 3.10004997, 91.7698212)
  575. Part33.Rotation = Vector3.new(0, -90, 0)
  576. Part33.Color = Color3.new(0.337255, 0.258824, 0.211765)
  577. Part33.Size = Vector3.new(7.60000038, 1.00000012, 0.399999976)
  578. Part33.Anchored = true
  579. Part33.BottomSurface = Enum.SurfaceType.Smooth
  580. Part33.BrickColor = BrickColor.new("Dirt brown")
  581. Part33.Material = Enum.Material.Wood
  582. Part33.TopSurface = Enum.SurfaceType.Smooth
  583. Part33.brickColor = BrickColor.new("Dirt brown")
  584. Part33.FormFactor = Enum.FormFactor.Custom
  585. Part33.formFactor = Enum.FormFactor.Custom
  586. Part34.Parent = Model17
  587. Part34.CFrame = CFrame.new(-157.680069, 2.9000349, 95.3699188, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  588. Part34.Orientation = Vector3.new(0, -90, 0)
  589. Part34.Position = Vector3.new(-157.680069, 2.9000349, 95.3699188)
  590. Part34.Rotation = Vector3.new(0, -90, 0)
  591. Part34.Color = Color3.new(0.337255, 0.258824, 0.211765)
  592. Part34.Size = Vector3.new(0.400000036, 0.600000083, 1)
  593. Part34.Anchored = true
  594. Part34.BottomSurface = Enum.SurfaceType.Smooth
  595. Part34.BrickColor = BrickColor.new("Dirt brown")
  596. Part34.Material = Enum.Material.Wood
  597. Part34.TopSurface = Enum.SurfaceType.Smooth
  598. Part34.brickColor = BrickColor.new("Dirt brown")
  599. Part34.FormFactor = Enum.FormFactor.Custom
  600. Part34.formFactor = Enum.FormFactor.Custom
  601. Part35.Name = "Pedal"
  602. Part35.Parent = Model17
  603. Part35.CFrame = CFrame.new(-158.279984, 0.100050002, 91.4698334, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  604. Part35.Orientation = Vector3.new(0, -90, 0)
  605. Part35.Position = Vector3.new(-158.279984, 0.100050002, 91.4698334)
  606. Part35.Rotation = Vector3.new(0, -90, 0)
  607. Part35.Color = Color3.new(0.411765, 0.4, 0.360784)
  608. Part35.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
  609. Part35.Anchored = true
  610. Part35.BottomSurface = Enum.SurfaceType.Smooth
  611. Part35.BrickColor = BrickColor.new("Flint")
  612. Part35.Material = Enum.Material.Metal
  613. Part35.TopSurface = Enum.SurfaceType.Smooth
  614. Part35.brickColor = BrickColor.new("Flint")
  615. Part35.FormFactor = Enum.FormFactor.Custom
  616. Part35.formFactor = Enum.FormFactor.Custom
  617. Part36.Parent = Model17
  618. Part36.CFrame = CFrame.new(-158.480118, 4.60004616, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  619. Part36.Orientation = Vector3.new(0, -90, 0)
  620. Part36.Position = Vector3.new(-158.480118, 4.60004616, 88.3697968)
  621. Part36.Rotation = Vector3.new(0, -90, 0)
  622. Part36.Color = Color3.new(0.337255, 0.258824, 0.211765)
  623. Part36.Size = Vector3.new(0.39999944, 2, 0.200000003)
  624. Part36.Anchored = true
  625. Part36.BottomSurface = Enum.SurfaceType.Smooth
  626. Part36.BrickColor = BrickColor.new("Dirt brown")
  627. Part36.Material = Enum.Material.Wood
  628. Part36.TopSurface = Enum.SurfaceType.Smooth
  629. Part36.brickColor = BrickColor.new("Dirt brown")
  630. Part36.FormFactor = Enum.FormFactor.Custom
  631. Part36.formFactor = Enum.FormFactor.Custom
  632. Part37.Parent = Model17
  633. Part37.CFrame = CFrame.new(-158.280106, 3.70002604, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  634. Part37.Orientation = Vector3.new(0, -90, 0)
  635. Part37.Position = Vector3.new(-158.280106, 3.70002604, 91.7698212)
  636. Part37.Rotation = Vector3.new(0, -90, 0)
  637. Part37.Color = Color3.new(0.337255, 0.258824, 0.211765)
  638. Part37.Size = Vector3.new(2.79999995, 0.200000003, 0.200000003)
  639. Part37.Anchored = true
  640. Part37.BottomSurface = Enum.SurfaceType.Smooth
  641. Part37.BrickColor = BrickColor.new("Dirt brown")
  642. Part37.Material = Enum.Material.Wood
  643. Part37.TopSurface = Enum.SurfaceType.Smooth
  644. Part37.brickColor = BrickColor.new("Dirt brown")
  645. Part37.FormFactor = Enum.FormFactor.Custom
  646. Part37.formFactor = Enum.FormFactor.Custom
  647. Part38.Parent = Model17
  648. Part38.CFrame = CFrame.new(-157.680069, 2.9000349, 88.1698456, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  649. Part38.Orientation = Vector3.new(0, -90, 0)
  650. Part38.Position = Vector3.new(-157.680069, 2.9000349, 88.1698456)
  651. Part38.Rotation = Vector3.new(0, -90, 0)
  652. Part38.Color = Color3.new(0.337255, 0.258824, 0.211765)
  653. Part38.Size = Vector3.new(0.400000036, 0.600000083, 1)
  654. Part38.Anchored = true
  655. Part38.BottomSurface = Enum.SurfaceType.Smooth
  656. Part38.BrickColor = BrickColor.new("Dirt brown")
  657. Part38.Material = Enum.Material.Wood
  658. Part38.TopSurface = Enum.SurfaceType.Smooth
  659. Part38.brickColor = BrickColor.new("Dirt brown")
  660. Part38.FormFactor = Enum.FormFactor.Custom
  661. Part38.formFactor = Enum.FormFactor.Custom
  662. WedgePart39.Parent = Model17
  663. WedgePart39.CFrame = CFrame.new(-157.780106, 3.4000349, 95.3700409, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  664. WedgePart39.Orientation = Vector3.new(0, -90, 0)
  665. WedgePart39.Position = Vector3.new(-157.780106, 3.4000349, 95.3700409)
  666. WedgePart39.Rotation = Vector3.new(0, -90, 0)
  667. WedgePart39.Color = Color3.new(0.337255, 0.258824, 0.211765)
  668. WedgePart39.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
  669. WedgePart39.Anchored = true
  670. WedgePart39.BottomSurface = Enum.SurfaceType.Smooth
  671. WedgePart39.BrickColor = BrickColor.new("Dirt brown")
  672. WedgePart39.Material = Enum.Material.Wood
  673. WedgePart39.brickColor = BrickColor.new("Dirt brown")
  674. WedgePart39.FormFactor = Enum.FormFactor.Custom
  675. WedgePart39.formFactor = Enum.FormFactor.Custom
  676. WedgePart40.Parent = Model17
  677. WedgePart40.CFrame = CFrame.new(-157.780106, 3.4000349, 88.1699677, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  678. WedgePart40.Orientation = Vector3.new(0, -90, 0)
  679. WedgePart40.Position = Vector3.new(-157.780106, 3.4000349, 88.1699677)
  680. WedgePart40.Rotation = Vector3.new(0, -90, 0)
  681. WedgePart40.Color = Color3.new(0.337255, 0.258824, 0.211765)
  682. WedgePart40.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
  683. WedgePart40.Anchored = true
  684. WedgePart40.BottomSurface = Enum.SurfaceType.Smooth
  685. WedgePart40.BrickColor = BrickColor.new("Dirt brown")
  686. WedgePart40.Material = Enum.Material.Wood
  687. WedgePart40.brickColor = BrickColor.new("Dirt brown")
  688. WedgePart40.FormFactor = Enum.FormFactor.Custom
  689. WedgePart40.formFactor = Enum.FormFactor.Custom
  690. Script41.Name = "PianoScript"
  691. Script41.Parent = Model5
  692. table.insert(cors,sandbox(Script41,function()
  693. local seat = script.Parent.Bench.Seat
  694. local sheetMusic = script.Parent.Piano.SheetMusic
  695. local occupant = nil
  696. local tune = nil
  697. local oldTune = nil
  698. local animation = nil
  699. local r6Anim = script.PlayingR6
  700. local r15Anim = script.PlayingR15
  701.  
  702. tunes = {
  703. "rbxassetid://242729299", -- REMOVE RAGTIME
  704. "rbxassetid://224027197", -- Scott Joplin - The Strenuous Life
  705. "rbxassetid://1163386606", -- IDK
  706. }
  707.  
  708. seat.ChildAdded:Connect(function(obj)
  709. if obj.Name == "SeatWeld" then
  710. local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
  711. if player then
  712. local hum = player.Character:FindFirstChild("Humanoid")
  713. occupant = obj.Part1.Parent
  714. if hum.RigType == Enum.HumanoidRigType.R6 then
  715. animation = hum:LoadAnimation(r6Anim)
  716. else
  717. animation = hum:LoadAnimation(r15Anim)
  718. end
  719. animation:Play()
  720. end
  721. end
  722. end)
  723.  
  724. seat.ChildRemoved:Connect(function(obj)
  725. if obj.Name == "SeatWeld" then
  726. local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
  727. if player then
  728. animation:Stop()
  729. occupant = nil
  730. sheetMusic.Sound:Stop()
  731. end
  732. end
  733. end)
  734.  
  735. while wait(0.1) do
  736. if occupant ~= nil then
  737. repeat
  738. tune = tunes[math.random(1, #tunes)]
  739. until tune ~= oldTune
  740. oldTune = tune
  741. sheetMusic.Sound.SoundId = tune
  742. sheetMusic.Sound:Play()
  743. repeat
  744. wait()
  745. until not sheetMusic.Sound.Playing
  746. end
  747. end
  748. end))
  749. Animation42.Name = "PlayingR6"
  750. Animation42.Parent = Script41
  751. Animation42.AnimationId = "rbxassetid://673670051"
  752. Animation43.Name = "PlayingR15"
  753. Animation43.Parent = Script41
  754. Animation43.AnimationId = "rbxassetid://673670434"
  755. for i,v in pairs(mas:GetChildren()) do
  756. v.Parent = workspace
  757. pcall(function() v:MakeJoints() end)
  758. end
  759. mas:Destroy()
  760. for i,v in pairs(cors) do
  761. spawn(function()
  762. pcall(v)
  763. end)
  764. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement