Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("FE code by Starzozero, Thanks to him!")
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros, Edited by StarzoZero")
- local rp = RealPlayer
- script.Parent = rp.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,Functions={},Connect=function(self,f)table.insert(self.Functions,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(),Button2Up=fakeEvent(),Button2Down=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 then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- if io.UserInputType == Enum.UserInputType.MouseButton2 then
- return m:TrigEvent(b and "Button2Down" or "Button2Up")
- 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 Mouse = Player:GetMouse()
- 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,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- 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)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then
- return typeof(s[k])=="function"
- and function(_,...)return s[k](s,...)end or s[k]
- end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return rawget(self,s) or _rg:GetService(s)
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- RunService = FakeService({
- _btrs = {},
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- FakeService(g,game)
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- warn("Z to start playing.")
- warn("C - Beethoven's moon sonata.")
- warn("V - Giorno meme")
- warn("M - InSaNiTy")
- warn("L - Can Can 1")
- warn("G - Can Can 2")
- warn("N - Megalovania")
- warn("B - We ArE NuMbEr LaSt")
- warn("X to stop.")
- warn("Made by Reset5017577.Edited by Xavier(added Giorno, InSaNiTy and Megalovania(b))")
- plr = game.Players.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- hum = char.HumanoidRootPart
- root = char.Torso
- left = char["Left Arm"]
- right = char["Right Arm"]
- rightl = char["Right Leg"]
- leftl = char["Left Leg"]
- tors = char["Torso"]
- piano = false
- MUSIK2 = Instance.new("Sound",tors)
- MUSIK2.Playing = false
- MUSIK2.Looped = true
- MUSIK2.Pitch = 1
- MUSIK2.SoundId = "rbxassetid://282692567"
- MUSIK2.Volume = 10
- MUSIK5 = Instance.new("Sound",tors)
- MUSIK5.Playing = false
- MUSIK5.Looped = true
- MUSIK5.Pitch = 1
- MUSIK5.SoundId = "rbxassetid://2297862957"
- MUSIK5.Volume = 10
- MUSIK8 = Instance.new("Sound",tors)
- MUSIK8.Playing = false
- MUSIK8.Looped = true
- MUSIK8.Pitch = 1
- MUSIK8.SoundId = "rbxassetid://3182300166"
- MUSIK8.Volume = 10
- MUSIK9 = Instance.new("Sound",tors)
- MUSIK8.Playing = false
- MUSIK8.Looped = true
- MUSIK8.Pitch = 1
- MUSIK8.SoundId = "rbxassetid://698929986"
- MUSIK8.Volume = 10
- MUSIK6 = Instance.new("Sound",tors)
- MUSIK6.Playing = false
- MUSIK6.Looped = true
- MUSIK6.Pitch = 1
- MUSIK6.SoundId = "rbxassetid://290101447"
- MUSIK6.Volume = 10
- MUSIK7 = Instance.new("Sound",tors)
- MUSIK7.Playing = false
- MUSIK7.Looped = true
- MUSIK7.Pitch = 1
- MUSIK7.SoundId = "rbxassetid://164854108"
- MUSIK7.Volume = 10
- MUSIK = Instance.new("Sound",tors)
- MUSIK.Playing = false
- MUSIK.Looped = true
- MUSIK.Pitch = 1
- MUSIK.SoundId = "rbxassetid://234659695"
- MUSIK.Volume = 10
- MUSIK3 = Instance.new("Sound",tors)
- MUSIK3.Playing = false
- MUSIK3.Looped = true
- MUSIK3.Pitch = 1
- MUSIK3.SoundId = "rbxassetid://4456886461"
- MUSIK3.Volume = 10
- MUSIK4 = Instance.new("Sound",tors)
- MUSIK4.Playing = false
- MUSIK4.Looped = true
- MUSIK4.Pitch = 1
- MUSIK4.SoundId = "rbxassetid://336265697"
- MUSIK4.Volume = 10
- gutf = Instance.new("Part")
- gutf.Parent = tors
- gutf.Size = Vector3.new(1, 1, 1)
- gutf.CanCollide = false
- wldf = Instance.new("Weld",owner.Character)
- wldf.Parent = gutf
- wldf.Part0 = gutf
- wldf.Part1 = root
- wldf.C0 = CFrame.new(0, 0.42,-3.5)
- wldf.C1 = CFrame.Angles(0, 9.45, 0)
- utm = Instance.new("SpecialMesh",gutf)
- utm.MeshId = "rbxassetid://280038600"
- utm.TextureId = "rbxassetid://280038797"
- utm.Scale = Vector3.new(1, 1, 1)
- arm1 = Instance.new("Weld")
- arm1.Parent = left
- arm1.Part0 = left
- arm1.Part1 = root
- arm2 = Instance.new("Weld")
- arm2.Parent = right
- arm2.Part0 = right
- arm2.Part1 = root
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- function pianop()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK2:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop2()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK:Play()
- while piano do
- wait(0.3)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.3)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop3()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK3:Play()
- while piano do
- wait(0.3)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.3)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop4()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK4:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop5()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK5:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop6()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK6:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop7()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK7:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop8()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK8:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- function pianop9()
- char.Humanoid.WalkSpeed = 0
- piano = true
- MUSIK9:Play()
- while piano do
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1.3, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1.3, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- wait(0.1)
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- end
- shirt = Instance.new("Shirt", Character)
- shirt.Name = "Shirt"
- pants = Instance.new("Pants", Character)
- pants.Name = "Pants"
- Character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=3466467576"
- Character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=2620599974"
- Head.face.Texture = "http://www.roblox.com/asset/?id=1676553712"
- Head.BrickColor = BrickColor.new("Pastel brown")
- for i,v in pairs(Character:GetChildren()) do
- if v.ClassName == "Accessory" or v.ClassName == "Hat" then
- v:destroy()
- end
- end
- Humanoid.Health = Humanoid.MaxHealth
- local BC = Character["Body Colors"]
- BC.HeadColor = BrickColor.new("Pastel brown")
- BC.LeftArmColor = BrickColor.new("Pastel brown")
- BC.LeftLegColor = BrickColor.new("Pastel brown")
- BC.RightArmColor = BrickColor.new("Pastel brown")
- BC.RightLegColor = BrickColor.new("Pastel brown")
- BC.TorsoColor = BrickColor.new("Pastel brown")
- local Hair = Instance.new("Part")
- Hair.Parent = Character
- Hair.Name = "Hair"
- Hair.Size = Vector3.new(1, 1, 1)
- Hair.CFrame = Head.CFrame
- Hair:BreakJoints()
- Hair.CanCollide = false
- Hair.TopSurface = "Smooth"
- Hair.BottomSurface = "Smooth"
- Hair.BrickColor = BrickColor.new("White")
- Weld = Instance.new("Weld")
- Weld.Name = "Weld"
- Weld.Part0 = Head
- Weld.Part1 = Hair
- Weld.Parent = Head
- Weld.C0 = CFrame.new(0.01,0.05,0.099)*CFrame.fromEulerAnglesXYZ(0,3,-3.2)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hair
- Mesh.MeshId = "rbxassetid://901575276"
- Mesh.TextureId = "rbxassetid://901575299"
- Mesh.Scale = Vector3.new(-0.03,-0.03,-0.03)
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local Music = Instance.new("Sound",RootPart)
- Music.Pitch = 1
- Music.Volume = 5
- Music.Looped = true
- Music.SoundId = "rbxassetid://3481175850"
- Music:play()
- end
- function stop2()
- char.Humanoid.WalkSpeed = 16
- MUSIK2:Stop()
- MUSIK:Stop()
- MUSIK3:Stop()
- MUSIK4:Stop()
- MUSIK5:Stop()
- MUSIK6:Stop()
- MUSIK7:Stop()
- MUSIK8:Stop()
- MUSIK9:Stop()
- piano = false
- arm2.C0 = CFrame.new(1.5, 1, 0.5)
- arm2.C1 = CFrame.Angles(20, 0, 0)
- arm1.C0 = CFrame.new(-1.5, 1, 0.5)
- arm1.C1 = CFrame.Angles(20, 0, 0)
- end
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=="z" and piano == false then
- pianop()
- end
- if Press=="c" and piano == false then
- pianop2()
- end
- if Press=="v" and piano == false then
- pianop3()
- end
- if Press=="b" and piano == false then
- pianop4()
- end
- if Press=="m" and piano == false then
- pianop5()
- end
- if Press=="l" and piano == false then
- pianop6()
- end
- if Press=="g" and piano == false then
- pianop7()
- end
- if Press=="n" and piano == false then
- pianop8()
- end
- if Press=="b" and piano == false then
- pianop9()
- end
- if Press=="x" and piano == true then
- stop2()
- end
- end)
Add Comment
Please, Sign In to add comment