Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
662
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. ---by quuisiYT
  2. --RULES: DO NOT MODIFIY, DO NOT COPY, DO NOT REUPLOAD(u can only cange ID of song)
  3. --Thank you for reading this c:
  4.  
  5.  
  6. --Variables
  7. local plr = game.Players.LocalPlayer
  8. repeat wait(.2) until plr.Character
  9. local char = plr.Character
  10. local song = Instance.new("Sound")
  11. song.Parent = char.Torso
  12. song.SoundId = "rbxassetid://592306650"
  13. local distort = Instance.new("DistortionSoundEffect",char.Torso)
  14. distort.Priority = 100
  15. song:Play()
  16. song.Looped = true
  17. song.Volume = 10
  18. local speed = song.PlaybackLoudness
  19. local runsrv = game:GetService("RunService")
  20. local canbam = false
  21. local bamcolour = BrickColor.new("New Yeller")
  22. local finishedpose1 = false
  23. local finishedpose2 = false
  24. local legright = char.Torso["Right Hip"]
  25. local legleft = char.Torso["Left Hip"]
  26. local armright = char.Torso["Right Shoulder"]
  27. local armleft = char.Torso["Left Shoulder"]
  28. local neck = char.Torso.Neck
  29. char.Animate:Destroy()
  30. for i,v in pairs (char.Humanoid:GetPlayingAnimationTracks()) do
  31. v:Stop()
  32. end
  33. local legrightold = legright.C0
  34. local legleftold = legleft.C0
  35. local armrightold = armright.C0
  36. local armleftold = armleft.C0
  37. --Functions
  38. local creatortag = Instance.new("BillboardGui")
  39. creatortag.Size = UDim2.new(0,200,0,100)
  40. creatortag.Parent = plr.Character.Head
  41. creatortag.StudsOffset = Vector3.new(0,3,0)
  42. local createtext = Instance.new("TextLabel")
  43. createtext.Parent = creatortag
  44. createtext:TweenSize(UDim2.new(1,0,1,0))
  45. createtext.BackgroundTransparency = 1
  46. createtext.TextColor3 = Color3.new(255,255,255)
  47. createtext.Text = ":b ereh saw uuq:"
  48. function createbeat()
  49. local beat = Instance.new("Part")
  50. beat.Parent = workspace
  51. beat.Anchored = true
  52. beat.Size = Vector3.new(2,2,2)
  53. beat.Transparency = 0.55
  54.  
  55. beat.Shape = "Ball"
  56. beat.CanCollide = false
  57. beat.Name = plr.Name.."Beat"
  58. beat.CFrame = char.Torso.CFrame * CFrame.new(0,-.5,0)
  59. if song.TimePosition > 30 then
  60. beat.BrickColor = BrickColor.Random()
  61. else
  62. beat.BrickColor = bamcolour
  63. end
  64. beat.Material = Enum.Material.Neon
  65. end
  66.  
  67. workspace.ChildAdded:Connect(function(child)
  68. wait()
  69.  
  70. if child.Name == plr.Name.."Beat" then
  71. --print("yey?")
  72. for i = 1,6 do
  73. child.Size = child.Size + Vector3.new(1,1,1)
  74. wait()
  75. end
  76. for i = 1,4 do
  77. child.Transparency = child.Transparency + .1
  78. wait()
  79. end
  80. child:Destroy()
  81. end
  82. end)
  83.  
  84.  
  85.  
  86. function pose1()
  87. local i = .06
  88. while runsrv.RenderStepped:wait() do
  89. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  90. i = i - song.PlaybackLoudness
  91. else
  92. i = i - .01
  93. end
  94. legright.C0 = legright.C0:Lerp(legright.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  95. legleft.C0 = legleft.C0:Lerp(legleft.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  96. armright.C0 = armright.C0:Lerp(armright.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  97. armleft.C0 = armleft.C0:Lerp(armleft.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  98. if i < 0 then
  99. break
  100. end
  101. end
  102. wait(.1)
  103. --pose2()
  104. end
  105.  
  106.  
  107. function pose2()
  108. local i = .1
  109. while runsrv.RenderStepped:wait() do
  110. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  111. i = i - song.PlaybackLoudness
  112. else
  113. i = i - .01
  114. end
  115. legright.C0 = legright.C0:Lerp(legrightold * CFrame.Angles(1,0,.9), i)
  116. legleft.C0 = legleft.C0:Lerp(legleftold * CFrame.Angles(1,0,.9), i)
  117. armright.C0 = armright.C0:Lerp(armrightold * CFrame.Angles(1,0,0), i)
  118. armleft.C0 = armleft.C0:Lerp(armleftold* CFrame.Angles(1,0,0), i)
  119. if i < 0 then
  120. break
  121. end
  122. end
  123. wait(.1)
  124. --pose3()
  125. end
  126.  
  127.  
  128. function pose3()
  129. local i = .1
  130. while runsrv.RenderStepped:wait() do
  131. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  132. i = i - song.PlaybackLoudness
  133. else
  134. i = i - .01
  135. end
  136. legright.C0 = legright.C0:Lerp(legrightold, i)
  137. legleft.C0 = legleft.C0:Lerp(legleftold, i)
  138. armright.C0 = armright.C0:Lerp(armrightold, i)
  139. armleft.C0 = armleft.C0:Lerp(armleftold, i)
  140. if i < 0 then
  141. break
  142. end
  143. end
  144. wait(.1)
  145. --pose1()
  146. end
  147. --Main Programm
  148. runsrv.RenderStepped:Connect(function()
  149. speed = song.PlaybackLoudness
  150. --print(speed)
  151. if speed > 426 then
  152. if canbam == false then
  153. canbam = true
  154. char.Humanoid.Health = 1e43535
  155. char.Humanoid.MaxHealth = 1e43535
  156. --print("BAM!")
  157. createbeat()
  158. ---wait()
  159. wait(.01)
  160. canbam = false
  161. end
  162. end
  163. end)
  164. plr.Chatted:Connect(function(message)
  165. if char.Head:FindFirstChild("Message") then
  166. char.Head:FindFirstChild("Message"):Destroy()
  167. end
  168. local messagebill = Instance.new("BillboardGui")
  169. messagebill.Size = UDim2.new(0,200,0,100)
  170. messagebill.Parent = plr.Character.Head
  171. messagebill.StudsOffset = Vector3.new(0,4,0)
  172. messagebill.Name = "Message"
  173. local chattext = Instance.new("TextLabel")
  174. chattext.Parent = messagebill
  175. chattext.Size = UDim2.new(1,0,1,0)
  176. chattext.BackgroundTransparency = 1
  177. chattext.TextColor3 = Color3.new(60,0,100)
  178. chattext.TextScaled = true
  179. local length = string.len(message)
  180. chattext.Text = ""
  181. for i = 1, length do
  182. wait(.05)
  183. local subText = string.sub(message, 1, i)
  184.  
  185. chattext.Text = subText
  186. end
  187. wait(3)
  188. if messagebill then
  189. for i = length,1,-1 do
  190. wait(.1)
  191. local subText = string.sub(message, 1, i)
  192.  
  193. chattext.Text = subText
  194. end
  195. wait(.1)
  196. messagebill:Destroy()
  197. end
  198. end)
  199.  
  200. wait(3)
  201. pose1()
  202.  
  203. while wait() do
  204. local i = .06
  205. while runsrv.RenderStepped:wait() do
  206. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  207. i = i - song.PlaybackLoudness
  208. else
  209. i = i - .01
  210. end
  211. legright.C0 = legright.C0:Lerp(legright.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  212. legleft.C0 = legleft.C0:Lerp(legleft.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  213. armright.C0 = armright.C0:Lerp(armright.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  214. armleft.C0 = armleft.C0:Lerp(armleft.C0 * CFrame.Angles(12.18, 2.17, 10.19), i)
  215. if i < 0 then
  216. break
  217. end
  218. end
  219. wait(.1)
  220. local i = .1
  221. while runsrv.RenderStepped:wait() do
  222. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  223. i = i - song.PlaybackLoudness
  224. else
  225. i = i - .01
  226. end
  227. legright.C0 = legright.C0:Lerp(legrightold * CFrame.Angles(1,0,.9), i)
  228. legleft.C0 = legleft.C0:Lerp(legleftold * CFrame.Angles(1,0,.9), i)
  229. armright.C0 = armright.C0:Lerp(armrightold * CFrame.Angles(1,0,0), i)
  230. armleft.C0 = armleft.C0:Lerp(armleftold* CFrame.Angles(1,0,0), i)
  231. if i < 0 then
  232. break
  233. end
  234. end
  235. wait(.1)
  236. local i = .1
  237. while runsrv.RenderStepped:wait() do
  238. if song.PlaybackLoudness > 426 and song.TimePosition > 95 then
  239. i = i - song.PlaybackLoudness
  240. else
  241. i = i - .01
  242. end
  243. legright.C0 = legright.C0:Lerp(legrightold, i)
  244. legleft.C0 = legleft.C0:Lerp(legleftold, i)
  245. armright.C0 = armright.C0:Lerp(armrightold, i)
  246. armleft.C0 = armleft.C0:Lerp(armleftold, i)
  247. if i < 0 then
  248. break
  249. end
  250. end
  251. wait(.1)
  252.  
  253. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement