soins1

Yeah a guitar but is not a fucking skid script it cant kill

Apr 14th, 2018
704
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print('Guitar')--an edit of my Flute Script
  2. print('By slenercat5')
  3. print('F to toggle Camera perspectives')--FANCY :D
  4. Player=game.Players.LocalPlayer
  5. Character=Player.Character
  6. Character.Animate.Disabled=true
  7. local LeftArm = Character["Left Arm"]
  8. local RightArm = Character["Right Arm"]
  9. local LeftLeg = Character["Left Leg"]
  10. local RightLeg = Character["Right Leg"]
  11. local Head = Character.Head
  12. local Torso = Character.Torso
  13. local Camera = game.Workspace.CurrentCamera
  14. local RootPart = Character.HumanoidRootPart
  15. local RootJoint = RootPart.RootJoint
  16. local Humanoid=Character.Humanoid
  17. CAM=Camera
  18. FF=Instance.new('ForceField',Character)
  19. FF.Visible=false
  20. Humanoid.Name='LOLOL YOU CANT HIT ME'
  21. Character.
  22. Health:remove()
  23. for i,v in pairs (Humanoid:GetPlayingAnimationTracks()) do
  24. v:Stop()
  25. end
  26.  
  27. local newMotor = function(part0, part1, c0, c1)
  28. w = Instance.new('Motor')
  29. w.Parent = part0
  30. w.Part0 = part0
  31. w.Part1 = part1
  32. w.C0 = c0
  33. w.C1 = c1
  34.  
  35. return w
  36. end
  37.  
  38.  
  39.  
  40.  
  41. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  42. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  43.  
  44. local RW = newMotor(Torso, RightArm, CFrame.new(2.5, 0, 0), CFrame.new(0, 0, 0))
  45. local LW = newMotor(Torso, LeftArm, CFrame.new(-2.5, 0, 0), CFrame.new(0, 0, 0))
  46. local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0))
  47. local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0))
  48. RootJoint.C1 = CFrame.new(0, 0, 0)
  49. RootJoint.C0 = CFrame.new(0, 0, 0)
  50. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  51. Torso.Neck.C0 = CFrame.new(0, 2.5, 0)
  52.  
  53. local rarmc1 = RW.C1
  54. local larmc1 = LW.C1
  55. local rlegc1 = RH.C1
  56. local llegc1 = LH.C1
  57.  
  58. local resetc1 = false
  59.  
  60. function clerp(a, b, t)
  61. return a:lerp(b, t)
  62. end
  63. function AutoWeld(Foop, OOF)
  64. local W = Instance.new("Weld")
  65. W.Part0 = Foop
  66. W.Part1 = OOF
  67. local CJ = CFrame.new(Foop.Position)
  68. local C0 = Foop.CFrame:inverse()*CJ
  69. local C1 = OOF.CFrame:inverse()*CJ
  70. W.C0 = C0
  71. W.C1 = C1
  72. W.Name='o0o'
  73. W.Parent = Foop
  74.  
  75. end
  76.  
  77.  
  78.  
  79. function PlayAnimationFromTable(table, speed, bool)
  80. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  81. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  82. RW.C0 = clerp(RW.C0, table[3], speed)
  83. LW.C0 = clerp(LW.C0, table[4], speed)
  84. RH.C0 = clerp(RH.C0, table[5], speed)
  85. LH.C0 = clerp(LH.C0, table[6], speed)
  86. if bool == true then
  87. if resetc1 == false then
  88. resetc1 = true
  89. RootJoint.C1 = RootJoint.C1
  90. Torso.Neck.C1 = Torso.Neck.C1
  91. RW.C1 = rarmc1
  92. LW.C1 = larmc1
  93. RH.C1 = rlegc1
  94. LH.C1 = llegc1
  95. end
  96. end
  97. end
  98. sine=1
  99.  
  100. Torso.CFrame=Torso.CFrame*CFrame.new(0,1,0)
  101.  
  102.  
  103. Grass=Instance.new('Part',Character)
  104. Grass.Name='Grass'
  105. Grass.Anchored=true
  106. Grass.Size=Vector3.new(11.42, 0.17, 17.6)
  107. Grass.CFrame=Torso.CFrame*CFrame.new(-0.43, -3.905, -0.1)
  108. Grass.Material='Grass'
  109. Grass.BrickColor=BrickColor.new('Bright green')
  110. m=Instance.new('CylinderMesh',Grass)
  111. White=Instance.new('Part',Character)
  112. White.Name='White Space'
  113. White.Anchored=true
  114. White.Size=Vector3.new(35.2, 0.05, 17.6)
  115. White.CFrame=Torso.CFrame*CFrame.new(0.39, -3.965, -0.1)
  116. White.Material='Neon'
  117. while true do wait(0.2)
  118. White.BrickColor=BrickColor.random()
  119.  
  120. m=Instance.new('CylinderMesh',White)
  121.  
  122.  
  123. Humanoid.AutoRotate=false
  124. Humanoid.WalkSpeed=0
  125. Humanoid.JumpPower=0
  126.  
  127. Flute=Instance.new('Part',Character)
  128. Flute.Name='Flute'
  129. Flute.CFrame=Torso.CFrame*CFrame.new(-0.5,-.5,-1)*CFrame.Angles(0,0,-2.5)
  130. m=Instance.new('SpecialMesh',Flute)
  131. m.MeshId='http://www.roblox.com/asset/?id=161269074'
  132. m.TextureId='http://www.roblox.com/asset/?id=228874694'
  133. m.Scale=Vector3.new(0.922, 0.922, 0.922)
  134. Flute.Size=Vector3.new(.5,2,.5)
  135.  
  136. AutoWeld(Flute,Torso)
  137. THEME=Instance.new('Sound',Character.Torso)
  138. music=nil
  139. firsttype=false
  140. Player.Chatted:connect(function(msg)
  141. for def in string.gmatch(msg, "%d+") do
  142. print(def)
  143.  
  144. if def~=nil then
  145. music=def
  146. end
  147. end
  148.  
  149. for def in string.gmatch(msg,"[%u%l%p]+") do
  150. print(def)
  151. if def=='Play/' and music~=nil then
  152. THEME:stop()
  153. THEME.SoundId='rbxassetid://'.. music
  154. THEME:play()
  155. elseif def=='Play/Demo' then
  156. THEME:stop()
  157. THEME.SoundId='rbxassetid://'.. 164167420
  158. THEME:play()
  159. elseif def=='S_Guitar' then
  160. THEME:stop()
  161. end
  162. end
  163. music=nil
  164. end)
  165. Ms=Player:GetMouse()
  166. Ms.KeyDown:connect(function(key)
  167. if key=='f' then
  168. if cam then
  169. cam=false
  170. CAM.CameraType='Custom'
  171. else
  172. cam=true
  173. CAM.CameraType='Scriptable'
  174. end
  175. end
  176. end)
  177.  
  178.  
  179. cam=true--Custom Camera Perspectives
  180. if cam==true then
  181. CAM.CameraType=Enum.CameraType.Scriptable
  182.  
  183. end
  184. Campart1=Instance.new('Part',Character)
  185. Campart1.Transparency=1
  186. Campart1.Anchored=true
  187. Campart1.CanCollide=false
  188. Campart2=Campart1:clone()
  189. Campart2.Parent=Character
  190. Campart3=Campart1:clone()
  191. Campart3.Parent=Character
  192.  
  193. camtime=0
  194. camphase=0
  195.  
  196. while 1 do
  197. wait()
  198. sine=sine+1
  199. PlayAnimationFromTable({
  200. CFrame.new(-math.cos(sine/16)*.2, math.cos(sine/8)/8, 0) * CFrame.Angles(0, 0, 0),
  201. CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, -.3) * CFrame.Angles(-.5,0.5-THEME.PlaybackLoudness/150, 0),
  202. CFrame.new(1.5-THEME.PlaybackLoudness/700, .5, -.5)*CFrame.Angles(1.5+THEME.PlaybackLoudness/700,0,0-THEME.PlaybackLoudness/700),
  203. CFrame.new(-1.5+THEME.PlaybackLoudness/700, 0, -.5)*CFrame.Angles(1-THEME.PlaybackLoudness/700,0,0+THEME.PlaybackLoudness/700),
  204. CFrame.new(1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8, 0)*CFrame.Angles(0,0,0.5) ,
  205. CFrame.new(-1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8,0)*CFrame.Angles(0,0,-0.5),
  206. }, .3, false)
  207.  
  208. White.Size=Vector3.new(35.2+THEME.PlaybackLoudness/10, 0.05, 17.6+THEME.PlaybackLoudness/10)
  209. Campart1=Instance.new('Part')
  210. if cam==true then
  211. CAM.CameraType='Scriptable'
  212. Campart1.CFrame=Torso.CFrame*CFrame.new(8,8,8)*CFrame.Angles(-0.5,.5,-0.5)
  213. Campart2.CFrame=Torso.CFrame*CFrame.new(-8,-3,-5)*CFrame.Angles(-1,-2,-1)
  214. Campart3.CFrame=Flute.CFrame*CFrame.new(1.5,0,-1)*CFrame.Angles(0,1.8,3)
  215. if camphase==0 then
  216. if camtime<20+math.random(-2,2) then
  217. CAM.CFrame=Campart1.CFrame
  218. camtime=camtime+1
  219. else
  220. camtime=0
  221. camphase=camphase+1
  222. end
  223. elseif camphase==1 then
  224. if camtime<40+math.random(-8,12) then
  225. CAM.CFrame=Campart2.CFrame
  226. camtime=camtime+1
  227. else
  228. camtime=0
  229. camphase=camphase+1
  230. end
  231. elseif camphase==2 then
  232. if camtime<50+math.random(-2,5) then
  233. CAM.CFrame=Campart3.CFrame
  234. camtime=camtime+1
  235. else
  236. camtime=0
  237. camphase=camphase+1
  238. end
  239.  
  240. elseif camphase==3 then
  241. camphase=0
  242. end
  243.  
  244.  
  245. end
  246. end
  247. end
Advertisement
Add Comment
Please, Sign In to add comment