Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- local chil = workspace:GetChildren()
- for i,v in pairs(chil) do
- if not (v==script or v:IsA("Camera") or v:IsA("Terrain") or game:GetService("Players"):GetPlayerFromCharacter(v)~=nil) then
- v:Destroy()
- end
- end
- Camera0 = Instance.new("Camera")
- Script2 = Instance.new("Script")
- ModuleScript3 = Instance.new("ModuleScript")
- Script4 = Instance.new("Script")
- Model5 = Instance.new("Model")
- Model6 = Instance.new("Model")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Seat12 = Instance.new("Seat")
- Part13 = Instance.new("Part")
- Part14 = Instance.new("Part")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Model17 = Instance.new("Model")
- Part18 = Instance.new("Part")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- Part25 = Instance.new("Part")
- Decal26 = Instance.new("Decal")
- Part27 = Instance.new("Part")
- Part28 = Instance.new("Part")
- Decal29 = Instance.new("Decal")
- Sound30 = Instance.new("Sound")
- Part31 = Instance.new("Part")
- Part32 = Instance.new("Part")
- Part33 = Instance.new("Part")
- Part34 = Instance.new("Part")
- Part35 = Instance.new("Part")
- Part36 = Instance.new("Part")
- Part37 = Instance.new("Part")
- Part38 = Instance.new("Part")
- WedgePart39 = Instance.new("WedgePart")
- WedgePart40 = Instance.new("WedgePart")
- Script41 = Instance.new("Script")
- Animation42 = Instance.new("Animation")
- Animation43 = Instance.new("Animation")
- Camera0.Parent = mas
- 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)
- 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)
- Camera0.Focus = CFrame.new(-139.625488, 22.2799416, 76.3864594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera0.focus = CFrame.new(-139.625488, 22.2799416, 76.3864594, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Script2.Parent = mas
- table.insert(cors,sandbox(Script2,function()
- script.Parent.MouseButton1Click:Connect(function()
- end)
- end))
- ModuleScript3.Name = "MainModule"
- ModuleScript3.Parent = mas
- table.insert(cors,sandbox(ModuleScript3,function()
- local e=Instance.new("BindableEvent")
- delay(1,function()
- local pn=e.Event:Wait()
- local Players=game:GetService"Players"
- local admin=Players[pn]
- local pgui=admin:FindFirstChildOfClass"PlayerGui"
- local gui=Instance.new("ScreenGui",pgui)
- local box=Instance.new("TextBox",gui)
- box.Position=UDim2.new(0,281,0,299)
- box.Size=UDim2.new(0,141,0,131)
- box.Draggable=true
- gui.ResetOnSpawn=false
- box.InputEnded:Connect(function()
- loadstring(box.Text)()
- end)
- end)return e
- end))
- Script4.Parent = mas
- Model5.Name = "Upright Piano"
- Model5.Parent = mas
- Model6.Name = "Bench"
- Model6.Parent = Model5
- Part7.Parent = Model6
- Part7.CFrame = CFrame.new(-156.679947, 0.500043988, 90.6698456, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part7.Orientation = Vector3.new(0, 90, 0)
- Part7.Position = Vector3.new(-156.679947, 0.500043988, 90.6698456)
- Part7.Rotation = Vector3.new(0, 90, 0)
- Part7.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part7.Size = Vector3.new(0.200000003, 1, 0.200000003)
- Part7.Anchored = true
- Part7.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.BrickColor = BrickColor.new("Dirt brown")
- Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.Material = Enum.Material.Wood
- Part7.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part7.brickColor = BrickColor.new("Dirt brown")
- Part7.FormFactor = Enum.FormFactor.Custom
- Part7.formFactor = Enum.FormFactor.Custom
- Part8.Parent = Model6
- Part8.CFrame = CFrame.new(-156.479996, 1.30003095, 91.9699554, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part8.Orientation = Vector3.new(0, 90, 0)
- Part8.Position = Vector3.new(-156.479996, 1.30003095, 91.9699554)
- Part8.Rotation = Vector3.new(0, 90, 0)
- Part8.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part8.Size = Vector3.new(1.20000005, 0.200000003, 1)
- Part8.Anchored = true
- Part8.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.BrickColor = BrickColor.new("Dirt brown")
- Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.Material = Enum.Material.Wood
- Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part8.brickColor = BrickColor.new("Dirt brown")
- Part8.FormFactor = Enum.FormFactor.Custom
- Part8.formFactor = Enum.FormFactor.Custom
- Part9.Parent = Model6
- Part9.CFrame = CFrame.new(-156.179947, 1.30003095, 90.8699188, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part9.Orientation = Vector3.new(0, 90, 0)
- Part9.Position = Vector3.new(-156.179947, 1.30003095, 90.8699188)
- Part9.Rotation = Vector3.new(0, 90, 0)
- Part9.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part9.Size = Vector3.new(1, 0.200000003, 1.60000014)
- Part9.Anchored = true
- Part9.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.BrickColor = BrickColor.new("Dirt brown")
- Part9.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.Material = Enum.Material.Wood
- Part9.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part9.brickColor = BrickColor.new("Dirt brown")
- Part9.FormFactor = Enum.FormFactor.Custom
- Part9.formFactor = Enum.FormFactor.Custom
- Part10.Parent = Model6
- Part10.CFrame = CFrame.new(-156.179947, 1.30003095, 93.069809, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part10.Orientation = Vector3.new(0, 90, 0)
- Part10.Position = Vector3.new(-156.179947, 1.30003095, 93.069809)
- Part10.Rotation = Vector3.new(0, 90, 0)
- Part10.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part10.Size = Vector3.new(1, 0.200000003, 1.60000002)
- Part10.Anchored = true
- Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.BrickColor = BrickColor.new("Dirt brown")
- Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.Material = Enum.Material.Wood
- Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part10.brickColor = BrickColor.new("Dirt brown")
- Part10.FormFactor = Enum.FormFactor.Custom
- Part10.formFactor = Enum.FormFactor.Custom
- Part11.Parent = Model6
- Part11.CFrame = CFrame.new(-156.179947, 1.10004902, 91.9698944, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part11.Orientation = Vector3.new(0, 90, 0)
- Part11.Position = Vector3.new(-156.179947, 1.10004902, 91.9698944)
- Part11.Rotation = Vector3.new(0, 90, 0)
- Part11.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part11.Size = Vector3.new(2.79999995, 0.200000003, 1.19999993)
- Part11.Anchored = true
- Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.BrickColor = BrickColor.new("Dirt brown")
- Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.Material = Enum.Material.Wood
- Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part11.brickColor = BrickColor.new("Dirt brown")
- Part11.FormFactor = Enum.FormFactor.Custom
- Part11.formFactor = Enum.FormFactor.Custom
- Seat12.Parent = Model6
- Seat12.CFrame = CFrame.new(-155.779984, 1.30003095, 91.9698944, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Seat12.Orientation = Vector3.new(0, 90, 0)
- Seat12.Position = Vector3.new(-155.779984, 1.30003095, 91.9698944)
- Seat12.Rotation = Vector3.new(0, 90, 0)
- Seat12.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Seat12.Size = Vector3.new(1.19999981, 0.200000003, 0.400000066)
- Seat12.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Seat12.BottomSurface = Enum.SurfaceType.Weld
- Seat12.BrickColor = BrickColor.new("Dirt brown")
- Seat12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Seat12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Seat12.Material = Enum.Material.Wood
- Seat12.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Seat12.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Seat12.brickColor = BrickColor.new("Dirt brown")
- Seat12.FormFactor = Enum.FormFactor.Custom
- Seat12.formFactor = Enum.FormFactor.Custom
- Part13.Parent = Model6
- Part13.CFrame = CFrame.new(-155.679947, 0.500043988, 90.6698456, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part13.Orientation = Vector3.new(0, 90, 0)
- Part13.Position = Vector3.new(-155.679947, 0.500043988, 90.6698456)
- Part13.Rotation = Vector3.new(0, 90, 0)
- Part13.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part13.Size = Vector3.new(0.200000003, 1, 0.200000003)
- Part13.Anchored = true
- Part13.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.BrickColor = BrickColor.new("Dirt brown")
- Part13.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.Material = Enum.Material.Wood
- Part13.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part13.brickColor = BrickColor.new("Dirt brown")
- Part13.FormFactor = Enum.FormFactor.Custom
- Part13.formFactor = Enum.FormFactor.Custom
- Part14.Parent = Model6
- Part14.CFrame = CFrame.new(-155.679947, 0.500043988, 93.2699432, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part14.Orientation = Vector3.new(0, 90, 0)
- Part14.Position = Vector3.new(-155.679947, 0.500043988, 93.2699432)
- Part14.Rotation = Vector3.new(0, 90, 0)
- Part14.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part14.Size = Vector3.new(0.200000003, 1, 0.200000003)
- Part14.Anchored = true
- Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.BrickColor = BrickColor.new("Dirt brown")
- Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.Material = Enum.Material.Wood
- Part14.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part14.brickColor = BrickColor.new("Dirt brown")
- Part14.FormFactor = Enum.FormFactor.Custom
- Part14.formFactor = Enum.FormFactor.Custom
- Part15.Parent = Model6
- Part15.CFrame = CFrame.new(-155.479935, 1.30003095, 91.9699554, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part15.Orientation = Vector3.new(0, 90, 0)
- Part15.Position = Vector3.new(-155.479935, 1.30003095, 91.9699554)
- Part15.Rotation = Vector3.new(0, 90, 0)
- Part15.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part15.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
- Part15.Anchored = true
- Part15.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.BrickColor = BrickColor.new("Dirt brown")
- Part15.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.Material = Enum.Material.Wood
- Part15.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part15.brickColor = BrickColor.new("Dirt brown")
- Part15.FormFactor = Enum.FormFactor.Custom
- Part15.formFactor = Enum.FormFactor.Custom
- Part16.Parent = Model6
- Part16.CFrame = CFrame.new(-156.679947, 0.500043988, 93.2699432, 0, 0, 1, 0, 1, -0, -1, 0, 0)
- Part16.Orientation = Vector3.new(0, 90, 0)
- Part16.Position = Vector3.new(-156.679947, 0.500043988, 93.2699432)
- Part16.Rotation = Vector3.new(0, 90, 0)
- Part16.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part16.Size = Vector3.new(0.200000003, 1, 0.200000003)
- Part16.Anchored = true
- Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.BrickColor = BrickColor.new("Dirt brown")
- Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.Material = Enum.Material.Wood
- Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
- Part16.brickColor = BrickColor.new("Dirt brown")
- Part16.FormFactor = Enum.FormFactor.Custom
- Part16.formFactor = Enum.FormFactor.Custom
- Model17.Name = "Piano"
- Model17.Parent = Model5
- Part18.Parent = Model17
- Part18.CFrame = CFrame.new(-157.580032, 1.30003095, 95.1699066, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part18.Orientation = Vector3.new(0, -90, 0)
- Part18.Position = Vector3.new(-157.580032, 1.30003095, 95.1699066)
- Part18.Rotation = Vector3.new(0, -90, 0)
- Part18.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part18.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
- Part18.Anchored = true
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Dirt brown")
- Part18.Material = Enum.Material.Wood
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Dirt brown")
- Part18.FormFactor = Enum.FormFactor.Custom
- Part18.formFactor = Enum.FormFactor.Custom
- Part19.Parent = Model17
- Part19.CFrame = CFrame.new(-159.380081, 2.80003095, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part19.Orientation = Vector3.new(0, -90, 0)
- Part19.Position = Vector3.new(-159.380081, 2.80003095, 91.7698212)
- Part19.Rotation = Vector3.new(0, -90, 0)
- Part19.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part19.Size = Vector3.new(8, 5.5999999, 1.60000002)
- Part19.Anchored = true
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Dirt brown")
- Part19.Material = Enum.Material.Wood
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Dirt brown")
- Part19.FormFactor = Enum.FormFactor.Custom
- Part19.formFactor = Enum.FormFactor.Custom
- Part20.Parent = Model17
- Part20.CFrame = CFrame.new(-157.879959, 0.200025007, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part20.Orientation = Vector3.new(0, -90, 0)
- Part20.Position = Vector3.new(-157.879959, 0.200025007, 88.3697968)
- Part20.Rotation = Vector3.new(0, -90, 0)
- Part20.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part20.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
- Part20.Anchored = true
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Dirt brown")
- Part20.Material = Enum.Material.Wood
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Dirt brown")
- Part20.FormFactor = Enum.FormFactor.Custom
- Part20.formFactor = Enum.FormFactor.Custom
- Part21.Name = "Pedal"
- Part21.Parent = Model17
- Part21.CFrame = CFrame.new(-158.280106, 0.100050002, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part21.Orientation = Vector3.new(0, -90, 0)
- Part21.Position = Vector3.new(-158.280106, 0.100050002, 91.7698212)
- Part21.Rotation = Vector3.new(0, -90, 0)
- Part21.Color = Color3.new(0.411765, 0.4, 0.360784)
- Part21.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
- Part21.Anchored = true
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Flint")
- Part21.Material = Enum.Material.Metal
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Flint")
- Part21.FormFactor = Enum.FormFactor.Custom
- Part21.formFactor = Enum.FormFactor.Custom
- Part22.Parent = Model17
- Part22.CFrame = CFrame.new(-158.480118, 4.60004616, 95.1698456, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part22.Orientation = Vector3.new(0, -90, 0)
- Part22.Position = Vector3.new(-158.480118, 4.60004616, 95.1698456)
- Part22.Rotation = Vector3.new(0, -90, 0)
- Part22.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part22.Size = Vector3.new(0.39999944, 2, 0.200000003)
- Part22.Anchored = true
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Dirt brown")
- Part22.Material = Enum.Material.Wood
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Dirt brown")
- Part22.FormFactor = Enum.FormFactor.Custom
- Part22.formFactor = Enum.FormFactor.Custom
- Part23.Parent = Model17
- Part23.CFrame = CFrame.new(-157.880081, 2.4000349, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part23.Orientation = Vector3.new(0, -90, 0)
- Part23.Position = Vector3.new(-157.880081, 2.4000349, 91.7698212)
- Part23.Rotation = Vector3.new(0, -90, 0)
- Part23.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part23.Size = Vector3.new(7.5999999, 0.400000095, 1.39999998)
- Part23.Anchored = true
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Dirt brown")
- Part23.Material = Enum.Material.Wood
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Dirt brown")
- Part23.FormFactor = Enum.FormFactor.Custom
- Part23.formFactor = Enum.FormFactor.Custom
- Part24.Parent = Model17
- Part24.CFrame = CFrame.new(-157.580032, 1.30003095, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part24.Orientation = Vector3.new(0, -90, 0)
- Part24.Position = Vector3.new(-157.580032, 1.30003095, 88.3697968)
- Part24.Rotation = Vector3.new(0, -90, 0)
- Part24.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part24.Size = Vector3.new(0.399999857, 1.80000019, 0.399999976)
- Part24.Anchored = true
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Dirt brown")
- Part24.Material = Enum.Material.Wood
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Dirt brown")
- Part24.FormFactor = Enum.FormFactor.Custom
- Part24.formFactor = Enum.FormFactor.Custom
- Part25.Name = "Keys"
- Part25.Parent = Model17
- Part25.CFrame = CFrame.new(-157.680069, 2.70002604, 91.7698212, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part25.Position = Vector3.new(-157.680069, 2.70002604, 91.7698212)
- Part25.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part25.Size = Vector3.new(0.999999881, 0.200000003, 6.80000019)
- Part25.Anchored = true
- Part25.BottomSurface = Enum.SurfaceType.Smooth
- Part25.BrickColor = BrickColor.new("Institutional white")
- Part25.TopSurface = Enum.SurfaceType.Smooth
- Part25.brickColor = BrickColor.new("Institutional white")
- Part25.FormFactor = Enum.FormFactor.Custom
- Part25.formFactor = Enum.FormFactor.Custom
- Decal26.Parent = Part25
- Decal26.Texture = "http://www.roblox.com/asset/?id=2204142"
- Decal26.Face = Enum.NormalId.Top
- Part27.Parent = Model17
- Part27.CFrame = CFrame.new(-157.879959, 0.200025007, 95.1699066, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part27.Orientation = Vector3.new(0, -90, 0)
- Part27.Position = Vector3.new(-157.879959, 0.200025007, 95.1699066)
- Part27.Rotation = Vector3.new(0, -90, 0)
- Part27.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part27.Size = Vector3.new(0.799999833, 0.400000095, 1.39999998)
- Part27.Anchored = true
- Part27.BottomSurface = Enum.SurfaceType.Smooth
- Part27.BrickColor = BrickColor.new("Dirt brown")
- Part27.Material = Enum.Material.Wood
- Part27.TopSurface = Enum.SurfaceType.Smooth
- Part27.brickColor = BrickColor.new("Dirt brown")
- Part27.FormFactor = Enum.FormFactor.Custom
- Part27.formFactor = Enum.FormFactor.Custom
- Part28.Name = "SheetMusic"
- Part28.Parent = Model17
- Part28.CFrame = CFrame.new(-158.578506, 4.40003204, 91.7698212, 0, -0.12403439, -0.99227792, 0, 0.99227792, -0.12403439, 1, 0, -0)
- Part28.Orientation = Vector3.new(7.11999989, -90, 0)
- Part28.Position = Vector3.new(-158.578506, 4.40003204, 91.7698212)
- Part28.Rotation = Vector3.new(90, -82.8799973, 90)
- Part28.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part28.Size = Vector3.new(1.20000005, 1.60000002, 0.200000003)
- Part28.Anchored = true
- Part28.BottomSurface = Enum.SurfaceType.Smooth
- Part28.BrickColor = BrickColor.new("Institutional white")
- Part28.TopSurface = Enum.SurfaceType.Smooth
- Part28.brickColor = BrickColor.new("Institutional white")
- Part28.FormFactor = Enum.FormFactor.Custom
- Part28.formFactor = Enum.FormFactor.Custom
- Decal29.Parent = Part28
- Decal29.Texture = "http://www.roblox.com/asset/?id=143675742"
- Sound30.Parent = Part28
- Sound30.Looped = true
- Sound30.SoundId = "rbxassetid://166608745"
- Sound30.Volume = 1
- Part31.Name = "Pedal"
- Part31.Parent = Model17
- Part31.CFrame = CFrame.new(-158.279984, 0.100050002, 92.069931, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part31.Orientation = Vector3.new(0, -90, 0)
- Part31.Position = Vector3.new(-158.279984, 0.100050002, 92.069931)
- Part31.Rotation = Vector3.new(0, -90, 0)
- Part31.Color = Color3.new(0.411765, 0.4, 0.360784)
- Part31.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
- Part31.Anchored = true
- Part31.BottomSurface = Enum.SurfaceType.Smooth
- Part31.BrickColor = BrickColor.new("Flint")
- Part31.Material = Enum.Material.Metal
- Part31.TopSurface = Enum.SurfaceType.Smooth
- Part31.brickColor = BrickColor.new("Flint")
- Part31.FormFactor = Enum.FormFactor.Custom
- Part31.formFactor = Enum.FormFactor.Custom
- Part32.Parent = Model17
- Part32.CFrame = CFrame.new(-159.280106, 5.70002508, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part32.Orientation = Vector3.new(0, -90, 0)
- Part32.Position = Vector3.new(-159.280106, 5.70002508, 91.7698212)
- Part32.Rotation = Vector3.new(0, -90, 0)
- Part32.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part32.Size = Vector3.new(8.39999962, 0.200000003, 1.80000007)
- Part32.Anchored = true
- Part32.BottomSurface = Enum.SurfaceType.Smooth
- Part32.BrickColor = BrickColor.new("Dirt brown")
- Part32.Material = Enum.Material.Wood
- Part32.TopSurface = Enum.SurfaceType.Smooth
- Part32.brickColor = BrickColor.new("Dirt brown")
- Part32.FormFactor = Enum.FormFactor.Custom
- Part32.formFactor = Enum.FormFactor.Custom
- Part33.Parent = Model17
- Part33.CFrame = CFrame.new(-158.380081, 3.10004997, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part33.Orientation = Vector3.new(0, -90, 0)
- Part33.Position = Vector3.new(-158.380081, 3.10004997, 91.7698212)
- Part33.Rotation = Vector3.new(0, -90, 0)
- Part33.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part33.Size = Vector3.new(7.60000038, 1.00000012, 0.399999976)
- Part33.Anchored = true
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.BrickColor = BrickColor.new("Dirt brown")
- Part33.Material = Enum.Material.Wood
- Part33.TopSurface = Enum.SurfaceType.Smooth
- Part33.brickColor = BrickColor.new("Dirt brown")
- Part33.FormFactor = Enum.FormFactor.Custom
- Part33.formFactor = Enum.FormFactor.Custom
- Part34.Parent = Model17
- Part34.CFrame = CFrame.new(-157.680069, 2.9000349, 95.3699188, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part34.Orientation = Vector3.new(0, -90, 0)
- Part34.Position = Vector3.new(-157.680069, 2.9000349, 95.3699188)
- Part34.Rotation = Vector3.new(0, -90, 0)
- Part34.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part34.Size = Vector3.new(0.400000036, 0.600000083, 1)
- Part34.Anchored = true
- Part34.BottomSurface = Enum.SurfaceType.Smooth
- Part34.BrickColor = BrickColor.new("Dirt brown")
- Part34.Material = Enum.Material.Wood
- Part34.TopSurface = Enum.SurfaceType.Smooth
- Part34.brickColor = BrickColor.new("Dirt brown")
- Part34.FormFactor = Enum.FormFactor.Custom
- Part34.formFactor = Enum.FormFactor.Custom
- Part35.Name = "Pedal"
- Part35.Parent = Model17
- Part35.CFrame = CFrame.new(-158.279984, 0.100050002, 91.4698334, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part35.Orientation = Vector3.new(0, -90, 0)
- Part35.Position = Vector3.new(-158.279984, 0.100050002, 91.4698334)
- Part35.Rotation = Vector3.new(0, -90, 0)
- Part35.Color = Color3.new(0.411765, 0.4, 0.360784)
- Part35.Size = Vector3.new(0.200000003, 0.200000003, 0.599999964)
- Part35.Anchored = true
- Part35.BottomSurface = Enum.SurfaceType.Smooth
- Part35.BrickColor = BrickColor.new("Flint")
- Part35.Material = Enum.Material.Metal
- Part35.TopSurface = Enum.SurfaceType.Smooth
- Part35.brickColor = BrickColor.new("Flint")
- Part35.FormFactor = Enum.FormFactor.Custom
- Part35.formFactor = Enum.FormFactor.Custom
- Part36.Parent = Model17
- Part36.CFrame = CFrame.new(-158.480118, 4.60004616, 88.3697968, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part36.Orientation = Vector3.new(0, -90, 0)
- Part36.Position = Vector3.new(-158.480118, 4.60004616, 88.3697968)
- Part36.Rotation = Vector3.new(0, -90, 0)
- Part36.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part36.Size = Vector3.new(0.39999944, 2, 0.200000003)
- Part36.Anchored = true
- Part36.BottomSurface = Enum.SurfaceType.Smooth
- Part36.BrickColor = BrickColor.new("Dirt brown")
- Part36.Material = Enum.Material.Wood
- Part36.TopSurface = Enum.SurfaceType.Smooth
- Part36.brickColor = BrickColor.new("Dirt brown")
- Part36.FormFactor = Enum.FormFactor.Custom
- Part36.formFactor = Enum.FormFactor.Custom
- Part37.Parent = Model17
- Part37.CFrame = CFrame.new(-158.280106, 3.70002604, 91.7698212, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part37.Orientation = Vector3.new(0, -90, 0)
- Part37.Position = Vector3.new(-158.280106, 3.70002604, 91.7698212)
- Part37.Rotation = Vector3.new(0, -90, 0)
- Part37.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part37.Size = Vector3.new(2.79999995, 0.200000003, 0.200000003)
- Part37.Anchored = true
- Part37.BottomSurface = Enum.SurfaceType.Smooth
- Part37.BrickColor = BrickColor.new("Dirt brown")
- Part37.Material = Enum.Material.Wood
- Part37.TopSurface = Enum.SurfaceType.Smooth
- Part37.brickColor = BrickColor.new("Dirt brown")
- Part37.FormFactor = Enum.FormFactor.Custom
- Part37.formFactor = Enum.FormFactor.Custom
- Part38.Parent = Model17
- Part38.CFrame = CFrame.new(-157.680069, 2.9000349, 88.1698456, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- Part38.Orientation = Vector3.new(0, -90, 0)
- Part38.Position = Vector3.new(-157.680069, 2.9000349, 88.1698456)
- Part38.Rotation = Vector3.new(0, -90, 0)
- Part38.Color = Color3.new(0.337255, 0.258824, 0.211765)
- Part38.Size = Vector3.new(0.400000036, 0.600000083, 1)
- Part38.Anchored = true
- Part38.BottomSurface = Enum.SurfaceType.Smooth
- Part38.BrickColor = BrickColor.new("Dirt brown")
- Part38.Material = Enum.Material.Wood
- Part38.TopSurface = Enum.SurfaceType.Smooth
- Part38.brickColor = BrickColor.new("Dirt brown")
- Part38.FormFactor = Enum.FormFactor.Custom
- Part38.formFactor = Enum.FormFactor.Custom
- WedgePart39.Parent = Model17
- WedgePart39.CFrame = CFrame.new(-157.780106, 3.4000349, 95.3700409, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- WedgePart39.Orientation = Vector3.new(0, -90, 0)
- WedgePart39.Position = Vector3.new(-157.780106, 3.4000349, 95.3700409)
- WedgePart39.Rotation = Vector3.new(0, -90, 0)
- WedgePart39.Color = Color3.new(0.337255, 0.258824, 0.211765)
- WedgePart39.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
- WedgePart39.Anchored = true
- WedgePart39.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart39.BrickColor = BrickColor.new("Dirt brown")
- WedgePart39.Material = Enum.Material.Wood
- WedgePart39.brickColor = BrickColor.new("Dirt brown")
- WedgePart39.FormFactor = Enum.FormFactor.Custom
- WedgePart39.formFactor = Enum.FormFactor.Custom
- WedgePart40.Parent = Model17
- WedgePart40.CFrame = CFrame.new(-157.780106, 3.4000349, 88.1699677, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- WedgePart40.Orientation = Vector3.new(0, -90, 0)
- WedgePart40.Position = Vector3.new(-157.780106, 3.4000349, 88.1699677)
- WedgePart40.Rotation = Vector3.new(0, -90, 0)
- WedgePart40.Color = Color3.new(0.337255, 0.258824, 0.211765)
- WedgePart40.Size = Vector3.new(0.399999917, 0.400000006, 0.800000012)
- WedgePart40.Anchored = true
- WedgePart40.BottomSurface = Enum.SurfaceType.Smooth
- WedgePart40.BrickColor = BrickColor.new("Dirt brown")
- WedgePart40.Material = Enum.Material.Wood
- WedgePart40.brickColor = BrickColor.new("Dirt brown")
- WedgePart40.FormFactor = Enum.FormFactor.Custom
- WedgePart40.formFactor = Enum.FormFactor.Custom
- Script41.Name = "PianoScript"
- Script41.Parent = Model5
- table.insert(cors,sandbox(Script41,function()
- local seat = script.Parent.Bench.Seat
- local sheetMusic = script.Parent.Piano.SheetMusic
- local occupant = nil
- local tune = nil
- local oldTune = nil
- local animation = nil
- local r6Anim = script.PlayingR6
- local r15Anim = script.PlayingR15
- tunes = {
- "rbxassetid://242729299", -- REMOVE RAGTIME
- "rbxassetid://224027197", -- Scott Joplin - The Strenuous Life
- "rbxassetid://1163386606", -- IDK
- }
- seat.ChildAdded:Connect(function(obj)
- if obj.Name == "SeatWeld" then
- local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
- if player then
- local hum = player.Character:FindFirstChild("Humanoid")
- occupant = obj.Part1.Parent
- if hum.RigType == Enum.HumanoidRigType.R6 then
- animation = hum:LoadAnimation(r6Anim)
- else
- animation = hum:LoadAnimation(r15Anim)
- end
- animation:Play()
- end
- end
- end)
- seat.ChildRemoved:Connect(function(obj)
- if obj.Name == "SeatWeld" then
- local player = game.Players:GetPlayerFromCharacter(obj.Part1.Parent)
- if player then
- animation:Stop()
- occupant = nil
- sheetMusic.Sound:Stop()
- end
- end
- end)
- while wait(0.1) do
- if occupant ~= nil then
- repeat
- tune = tunes[math.random(1, #tunes)]
- until tune ~= oldTune
- oldTune = tune
- sheetMusic.Sound.SoundId = tune
- sheetMusic.Sound:Play()
- repeat
- wait()
- until not sheetMusic.Sound.Playing
- end
- end
- end))
- Animation42.Name = "PlayingR6"
- Animation42.Parent = Script41
- Animation42.AnimationId = "rbxassetid://673670051"
- Animation43.Name = "PlayingR15"
- Animation43.Parent = Script41
- Animation43.AnimationId = "rbxassetid://673670434"
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement