Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- 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
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
- print('Guitar')
- print('By slenercat5')
- print('F to toggle Camera perspectives')--FANCY :D
- Player=game.Players.LocalPlayer
- Character=Player.Character
- Character.Animate.Disabled=true
- local LeftArm = Character["Left Arm"]
- local RightArm = Character["Right Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightLeg = Character["Right Leg"]
- local Head = Character.Head
- local Torso = Character.Torso
- local Camera = game.Workspace.CurrentCamera
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local Humanoid=Character.Humanoid
- CAM=Camera
- FF=Instance.new('ForceField',Character)
- FF.Visible=false
- Humanoid.Name='LOLOL YOU CANT HIT ME'
- Character.
- Health:remove()
- for i,v in pairs (Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- local newMotor = function(part0, part1, c0, c1)
- w = Instance.new('Motor')
- w.Parent = part0
- w.Part0 = part0
- w.Part1 = part1
- w.C0 = c0
- w.C1 = c1
- return w
- end
- RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- local RW = newMotor(Torso, RightArm, CFrame.new(2.5, 0, 0), CFrame.new(0, 0, 0))
- local LW = newMotor(Torso, LeftArm, CFrame.new(-2.5, 0, 0), CFrame.new(0, 0, 0))
- local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0))
- local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0))
- RootJoint.C1 = CFrame.new(0, 0, 0)
- RootJoint.C0 = CFrame.new(0, 0, 0)
- Torso.Neck.C1 = CFrame.new(0, 0, 0)
- Torso.Neck.C0 = CFrame.new(0, 2.5, 0)
- local rarmc1 = RW.C1
- local larmc1 = LW.C1
- local rlegc1 = RH.C1
- local llegc1 = LH.C1
- local resetc1 = false
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- function AutoWeld(Foop, OOF)
- local W = Instance.new("Weld")
- W.Part0 = Foop
- W.Part1 = OOF
- local CJ = CFrame.new(Foop.Position)
- local C0 = Foop.CFrame:inverse()*CJ
- local C1 = OOF.CFrame:inverse()*CJ
- W.C0 = C0
- W.C1 = C1
- W.Name='o0o'
- W.Parent = Foop
- end
- function PlayAnimationFromTable(table, speed, bool)
- RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
- Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
- RW.C0 = clerp(RW.C0, table[3], speed)
- LW.C0 = clerp(LW.C0, table[4], speed)
- RH.C0 = clerp(RH.C0, table[5], speed)
- LH.C0 = clerp(LH.C0, table[6], speed)
- if bool == true then
- if resetc1 == false then
- resetc1 = true
- RootJoint.C1 = RootJoint.C1
- Torso.Neck.C1 = Torso.Neck.C1
- RW.C1 = rarmc1
- LW.C1 = larmc1
- RH.C1 = rlegc1
- LH.C1 = llegc1
- end
- end
- end
- sine=1
- Torso.CFrame=Torso.CFrame*CFrame.new(0,1,0)
- Grass=Instance.new('Part',Character)
- Grass.Name='Grass'
- Grass.Anchored=true
- Grass.Size=Vector3.new(11.42, 0.17, 17.6)
- Grass.CFrame=Torso.CFrame*CFrame.new(-0.43, -3.905, -0.1)
- Grass.Material='Grass'
- Grass.BrickColor=BrickColor.new('Bright green')
- m=Instance.new('CylinderMesh',Grass)
- White=Instance.new('Part',Character)
- White.Name='White Space'
- White.Anchored=true
- White.Size=Vector3.new(35.2, 0.05, 17.6)
- White.CFrame=Torso.CFrame*CFrame.new(0.39, -3.965, -0.1)
- White.Material='Neon'
- White.BrickColor=BrickColor.new('Medium stone grey')
- m=Instance.new('CylinderMesh',White)
- Humanoid.AutoRotate=false
- Humanoid.WalkSpeed=0
- Humanoid.JumpPower=0
- Flute=Instance.new('Part',Character)
- Flute.Name='Flute'
- Flute.CFrame=Torso.CFrame*CFrame.new(-0.5,-.5,-1)*CFrame.Angles(0,0,-2.5)
- m=Instance.new('SpecialMesh',Flute)
- m.MeshId='http://www.roblox.com/asset/?id=161269074'
- m.TextureId='http://www.roblox.com/asset/?id=228874694'
- m.Scale=Vector3.new(0.922, 0.922, 0.922)
- Flute.Size=Vector3.new(.5,2,.5)
- AutoWeld(Flute,Torso)
- THEME=Instance.new('Sound',Character.Torso)
- music=nil
- firsttype=false
- Player.Chatted:connect(function(msg)
- for def in string.gmatch(msg, "%d+") do
- print(def)
- if def~=nil then
- music=def
- end
- end
- for def in string.gmatch(msg,"[%u%l%p]+") do
- print(def)
- if def=='Play/' and music~=nil then
- THEME:stop()
- THEME.SoundId='rbxassetid://'.. music
- THEME:play()
- elseif def=='Play/Demo' then
- THEME:stop()
- THEME.SoundId='rbxassetid://'.. 164167420
- THEME:play()
- elseif def=='S_Guitar' then
- THEME:stop()
- end
- end
- music=nil
- end)
- Ms=Player:GetMouse()
- Ms.KeyDown:connect(function(key)
- if key=='f' then
- if cam then
- cam=false
- CAM.CameraType='Custom'
- else
- cam=true
- CAM.CameraType='Scriptable'
- end
- end
- end)
- cam=true--Custom Camera Perspectives
- if cam==true then
- CAM.CameraType=Enum.CameraType.Scriptable
- end
- Campart1=Instance.new('Part',Character)
- Campart1.Transparency=1
- Campart1.Anchored=true
- Campart1.CanCollide=false
- Campart2=Campart1:clone()
- Campart2.Parent=Character
- Campart3=Campart1:clone()
- Campart3.Parent=Character
- camtime=0
- camphase=0
- while 1 do
- wait()
- sine=sine+1
- PlayAnimationFromTable({
- CFrame.new(-math.cos(sine/16)*.2, math.cos(sine/8)/8, 0) * CFrame.Angles(0, 0, 0),
- CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, -.3) * CFrame.Angles(-.5,0.5-THEME.PlaybackLoudness/150, 0),
- CFrame.new(1.5-THEME.PlaybackLoudness/700, .5, -.5)*CFrame.Angles(1.5+THEME.PlaybackLoudness/700,0,0-THEME.PlaybackLoudness/700),
- CFrame.new(-1.5+THEME.PlaybackLoudness/700, 0, -.5)*CFrame.Angles(1-THEME.PlaybackLoudness/700,0,0+THEME.PlaybackLoudness/700),
- CFrame.new(1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8, 0)*CFrame.Angles(0,0,0.5) ,
- CFrame.new(-1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8,0)*CFrame.Angles(0,0,-0.5),
- }, .3, false)
- White.Size=Vector3.new(35.2+THEME.PlaybackLoudness/10, 0.05, 17.6+THEME.PlaybackLoudness/10)
- Campart1=Instance.new('Part')
- if cam==true then
- CAM.CameraType='Scriptable'
- Campart1.CFrame=Torso.CFrame*CFrame.new(8,8,8)*CFrame.Angles(-0.5,.5,-0.5)
- Campart2.CFrame=Torso.CFrame*CFrame.new(-8,-3,-5)*CFrame.Angles(-1,-2,-1)
- Campart3.CFrame=Flute.CFrame*CFrame.new(1.5,0,-1)*CFrame.Angles(0,1.8,3)
- if camphase==0 then
- if camtime<20+math.random(-2,2) then
- CAM.CFrame=Campart1.CFrame
- camtime=camtime+1
- else
- camtime=0
- camphase=camphase+1
- end
- elseif camphase==1 then
- if camtime<40+math.random(-8,12) then
- CAM.CFrame=Campart2.CFrame
- camtime=camtime+1
- else
- camtime=0
- camphase=camphase+1
- end
- elseif camphase==2 then
- if camtime<50+math.random(-2,5) then
- CAM.CFrame=Campart3.CFrame
- camtime=camtime+1
- else
- camtime=0
- camphase=camphase+1
- end
- elseif camphase==3 then
- camphase=0
- end
- end
- end
Add Comment
Please, Sign In to add comment