Advertisement
Dark_EccentricYT

Untitled

May 1st, 2018
18,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.40 KB | None | 0 0
  1. print('Guitar')
  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. White.BrickColor=BrickColor.new('Medium stone grey')
  118. m=Instance.new('CylinderMesh',White)
  119.  
  120.  
  121. Humanoid.AutoRotate=false
  122. Humanoid.WalkSpeed=0
  123. Humanoid.JumpPower=0
  124.  
  125. Flute=Instance.new('Part',Character)
  126. Flute.Name='Flute'
  127. Flute.CFrame=Torso.CFrame*CFrame.new(-0.5,-.5,-1)*CFrame.Angles(0,0,-2.5)
  128. m=Instance.new('SpecialMesh',Flute)
  129. m.MeshId='http://www.roblox.com/asset/?id=161269074'
  130. m.TextureId='http://www.roblox.com/asset/?id=228874694'
  131. m.Scale=Vector3.new(0.922, 0.922, 0.922)
  132. Flute.Size=Vector3.new(.5,2,.5)
  133.  
  134. AutoWeld(Flute,Torso)
  135. THEME=Instance.new('Sound',Character.Torso)
  136. music=nil
  137. firsttype=false
  138. Player.Chatted:connect(function(msg)
  139. for def in string.gmatch(msg, "%d+") do
  140. print(def)
  141.  
  142. if def~=nil then
  143. music=def
  144. end
  145. end
  146.  
  147. for def in string.gmatch(msg,"[%u%l%p]+") do
  148. print(def)
  149. if def=='Play/' and music~=nil then
  150. THEME:stop()
  151. THEME.SoundId='rbxassetid://'.. music
  152. THEME:play()
  153. elseif def=='Play/Demo' then
  154. THEME:stop()
  155. THEME.SoundId='rbxassetid://'.. 164167420
  156. THEME:play()
  157. elseif def=='S_Guitar' then
  158. THEME:stop()
  159. end
  160. end
  161. music=nil
  162. end)
  163. Ms=Player:GetMouse()
  164. Ms.KeyDown:connect(function(key)
  165. if key=='f' then
  166. if cam then
  167. cam=false
  168. CAM.CameraType='Custom'
  169. else
  170. cam=true
  171. CAM.CameraType='Scriptable'
  172. end
  173. end
  174. end)
  175.  
  176.  
  177. cam=true--Custom Camera Perspectives
  178. if cam==true then
  179. CAM.CameraType=Enum.CameraType.Scriptable
  180.  
  181. end
  182. Campart1=Instance.new('Part',Character)
  183. Campart1.Transparency=1
  184. Campart1.Anchored=true
  185. Campart1.CanCollide=false
  186. Campart2=Campart1:clone()
  187. Campart2.Parent=Character
  188. Campart3=Campart1:clone()
  189. Campart3.Parent=Character
  190.  
  191. camtime=0
  192. camphase=0
  193.  
  194. while 1 do
  195. wait()
  196. sine=sine+1
  197. PlayAnimationFromTable({
  198. CFrame.new(-math.cos(sine/16)*.2, math.cos(sine/8)/8, 0) * CFrame.Angles(0, 0, 0),
  199. CFrame.new(0, 1.5, 0) * CFrame.new(0, 0, -.3) * CFrame.Angles(-.5,0.5-THEME.PlaybackLoudness/150, 0),
  200. CFrame.new(1.5-THEME.PlaybackLoudness/700, .5, -.5)*CFrame.Angles(1.5+THEME.PlaybackLoudness/700,0,0-THEME.PlaybackLoudness/700),
  201. CFrame.new(-1.5+THEME.PlaybackLoudness/700, 0, -.5)*CFrame.Angles(1-THEME.PlaybackLoudness/700,0,0+THEME.PlaybackLoudness/700),
  202. CFrame.new(1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8, 0)*CFrame.Angles(0,0,0.5) ,
  203. CFrame.new(-1+math.cos(sine/16)*.2,-2-math.cos(sine/8)/8,0)*CFrame.Angles(0,0,-0.5),
  204. }, .3, false)
  205.  
  206. White.Size=Vector3.new(35.2+THEME.PlaybackLoudness/10, 0.05, 17.6+THEME.PlaybackLoudness/10)
  207. Campart1=Instance.new('Part')
  208. if cam==true then
  209. CAM.CameraType='Scriptable'
  210. Campart1.CFrame=Torso.CFrame*CFrame.new(8,8,8)*CFrame.Angles(-0.5,.5,-0.5)
  211. Campart2.CFrame=Torso.CFrame*CFrame.new(-8,-3,-5)*CFrame.Angles(-1,-2,-1)
  212. Campart3.CFrame=Flute.CFrame*CFrame.new(1.5,0,-1)*CFrame.Angles(0,1.8,3)
  213. if camphase==0 then
  214. if camtime<20+math.random(-2,2) then
  215. CAM.CFrame=Campart1.CFrame
  216. camtime=camtime+1
  217. else
  218. camtime=0
  219. camphase=camphase+1
  220. end
  221. elseif camphase==1 then
  222. if camtime<40+math.random(-8,12) then
  223. CAM.CFrame=Campart2.CFrame
  224. camtime=camtime+1
  225. else
  226. camtime=0
  227. camphase=camphase+1
  228. end
  229. elseif camphase==2 then
  230. if camtime<50+math.random(-2,5) then
  231. CAM.CFrame=Campart3.CFrame
  232. camtime=camtime+1
  233. else
  234. camtime=0
  235. camphase=camphase+1
  236. end
  237.  
  238. elseif camphase==3 then
  239. camphase=0
  240. end
  241.  
  242.  
  243. end
  244. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement