Advertisement
Kyutatsuki

Kyu's Music Player

Dec 21st, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.02 KB | None | 0 0
  1. player = game:GetService("Players").LocalPlayer
  2. char = player.Character
  3. root = char:WaitForChild("HumanoidRootPart")
  4. rs = game:GetService("RunService").RenderStepped
  5. mouse = player:GetMouse()
  6.  
  7. parent = player.PlayerGui
  8. ScreenGui0 = Instance.new("ScreenGui")
  9. TextButton1 = Instance.new("TextButton")
  10. Frame2 = Instance.new("Frame")
  11. TextBox3 = Instance.new("TextBox")
  12. TextButton4 = Instance.new("TextButton")
  13. Frame5 = Instance.new("Frame")
  14. Frame6 = Instance.new("Frame")
  15. Frame7 = Instance.new("Frame")
  16. TextLabel8 = Instance.new("TextLabel")
  17. TextButton9 = Instance.new("TextButton")
  18. Frame10 = Instance.new("Frame")
  19. Frame11 = Instance.new("Frame")
  20. TextLabel12 = Instance.new("TextLabel")
  21. TextButton13 = Instance.new("TextButton")
  22. TextButton14 = Instance.new("TextButton")
  23. Frame15 = Instance.new("Frame")
  24. Frame16 = Instance.new("Frame")
  25. Frame17 = Instance.new("Frame")
  26. TextButton18 = Instance.new("TextButton")
  27. TextLabel19 = Instance.new("TextLabel")
  28. Frame20 = Instance.new("Frame")
  29. Frame21 = Instance.new("Frame")
  30. TextButton22 = Instance.new("TextButton")
  31. TextLabel23 = Instance.new("TextLabel")
  32. Frame24 = Instance.new("Frame")
  33. Frame25 = Instance.new("Frame")
  34. TextButton26 = Instance.new("TextButton")
  35. TextLabel27 = Instance.new("TextLabel")
  36. Frame28 = Instance.new("Frame")
  37. Frame29 = Instance.new("Frame")
  38. TextButton30 = Instance.new("TextButton")
  39. TextLabel31 = Instance.new("TextLabel")
  40. Frame32 = Instance.new("Frame")
  41. TextButton33 = Instance.new("TextButton")
  42. TextButton34 = Instance.new("TextButton")
  43. ScreenGui0.Name = "MusicPlayerKyu"
  44. ScreenGui0.Parent = parent
  45. TextButton1.Name = "Open/Close"
  46. TextButton1.Parent = ScreenGui0
  47. TextButton1.Size = UDim2.new(0, 20, 0, 300)
  48. TextButton1.Text = ">>"
  49. TextButton1.Position = UDim2.new(0, 0, 0, 250)
  50. TextButton1.BackgroundColor3 = Color3.new(1, 1, 1)
  51. TextButton1.SizeConstraint = Enum.SizeConstraint.RelativeXX
  52. TextButton1.Font = Enum.Font.Code
  53. Frame2.Name = "Core"
  54. Frame2.Parent = ScreenGui0
  55. Frame2.Size = UDim2.new(0, 500, 0, 300)
  56. Frame2.Position = UDim2.new(0, 20, 0, 250)
  57. Frame2.BackgroundColor3 = Color3.new(0.615686, 0.615686, 0.615686)
  58. Frame2.SizeConstraint = Enum.SizeConstraint.RelativeXX
  59. TextBox3.Name = "ID"
  60. TextBox3.Parent = Frame2
  61. TextBox3.Size = UDim2.new(0, 100, 0, 100)
  62. TextBox3.Text = "ID"
  63. TextBox3.Position = UDim2.new(0, 50, 0, 20)
  64. TextBox3.BackgroundColor3 = Color3.new(1, 1, 1)
  65. TextBox3.SizeConstraint = Enum.SizeConstraint.RelativeXX
  66. TextBox3.Font = Enum.Font.SciFi
  67. TextBox3.FontSize = Enum.FontSize.Size14
  68. TextButton4.Name = "Play"
  69. TextButton4.Parent = TextBox3
  70. TextButton4.Size = UDim2.new(1, 0, 0, 20)
  71. TextButton4.Text = "PLAY"
  72. TextButton4.Position = UDim2.new(0.5, 0, 1, 0)
  73. TextButton4.BackgroundColor3 = Color3.new(1, 1, 1)
  74. TextButton4.Font = Enum.Font.SciFi
  75. TextButton4.FontSize = Enum.FontSize.Size14
  76. TextButton4.AnchorPoint = Vector2.new(0.5, 0)
  77. Frame5.Name = "SettingsPanel"
  78. Frame5.Parent = Frame2
  79. Frame5.Size = UDim2.new(0, 300, 0, 150)
  80. Frame5.Position = UDim2.new(1, -20, 0, 20)
  81. Frame5.BackgroundColor3 = Color3.new(0.345098, 0.345098, 0.345098)
  82. Frame5.AnchorPoint = Vector2.new(1, 0)
  83. Frame6.Name = "Volume"
  84. Frame6.Parent = Frame5
  85. Frame6.Transparency = 0
  86. Frame6.Size = UDim2.new(0, 100, 0, 100)
  87. Frame6.Position = UDim2.new(0, 100, 0.5, 0)
  88. Frame6.BackgroundColor3 = Color3.new(1, 1, 1)
  89. Frame6.BackgroundTransparency = 1
  90. Frame6.AnchorPoint = Vector2.new(0.5, 0.5)
  91. Frame7.Name = "Line"
  92. Frame7.Parent = Frame6
  93. Frame7.Size = UDim2.new(0, 1, 1, 0)
  94. Frame7.Position = UDim2.new(0.5, 0, 0, 0)
  95. Frame7.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  96. Frame7.BorderSizePixel = 0
  97. Frame7.AnchorPoint = Vector2.new(0.5, 0)
  98. TextLabel8.Name = "Text"
  99. TextLabel8.Parent = Frame6
  100. TextLabel8.Transparency = 0
  101. TextLabel8.Text = "Volume"
  102. TextLabel8.Position = UDim2.new(0.5, 0, 1, 10)
  103. TextLabel8.BackgroundColor3 = Color3.new(1, 1, 1)
  104. TextLabel8.BackgroundTransparency = 1
  105. TextLabel8.Font = Enum.Font.SourceSans
  106. TextLabel8.FontSize = Enum.FontSize.Size10
  107. TextLabel8.AnchorPoint = Vector2.new(0.5, 0)
  108. TextButton9.Name = "DragVol"
  109. TextButton9.Parent = Frame6
  110. TextButton9.Size = UDim2.new(0, 20, 0, 10)
  111. TextButton9.Text = ""
  112. TextButton9.Position = UDim2.new(0.5, 0, 0.5, 0)
  113. TextButton9.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  114. TextButton9.Font = Enum.Font.SourceSans
  115. TextButton9.AnchorPoint = Vector2.new(0.5, 0.5)
  116. Frame10.Name = "Pitch"
  117. Frame10.Parent = Frame5
  118. Frame10.Transparency = 0
  119. Frame10.Size = UDim2.new(0, 100, 0, 100)
  120. Frame10.Position = UDim2.new(0, 50, 0.5, 0)
  121. Frame10.BackgroundColor3 = Color3.new(1, 1, 1)
  122. Frame10.BackgroundTransparency = 1
  123. Frame10.AnchorPoint = Vector2.new(0.5, 0.5)
  124. Frame11.Name = "Line"
  125. Frame11.Parent = Frame10
  126. Frame11.Size = UDim2.new(0, 1, 1, 0)
  127. Frame11.Position = UDim2.new(0.5, 0, 0, 0)
  128. Frame11.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  129. Frame11.BorderSizePixel = 0
  130. Frame11.AnchorPoint = Vector2.new(0.5, 0)
  131. TextLabel12.Name = "Text"
  132. TextLabel12.Parent = Frame10
  133. TextLabel12.Transparency = 0
  134. TextLabel12.Text = "Pitch"
  135. TextLabel12.Position = UDim2.new(0.5, 0, 1, 10)
  136. TextLabel12.BackgroundColor3 = Color3.new(1, 1, 1)
  137. TextLabel12.BackgroundTransparency = 1
  138. TextLabel12.Font = Enum.Font.SourceSans
  139. TextLabel12.FontSize = Enum.FontSize.Size10
  140. TextLabel12.AnchorPoint = Vector2.new(0.5, 0)
  141. TextButton13.Name = "DragPitch"
  142. TextButton13.Parent = Frame10
  143. TextButton13.Size = UDim2.new(0, 20, 0, 10)
  144. TextButton13.Text = ""
  145. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  146. TextButton13.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  147. TextButton13.Font = Enum.Font.SourceSans
  148. TextButton13.AnchorPoint = Vector2.new(0.5, 0.5)
  149. TextButton14.Name = "Reset"
  150. TextButton14.Parent = Frame10
  151. TextButton14.Size = UDim2.new(0, 20, 0, 20)
  152. TextButton14.Text = ""
  153. TextButton14.Position = UDim2.new(0.5, -15, 0.5, 0)
  154. TextButton14.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  155. TextButton14.Font = Enum.Font.SourceSans
  156. TextButton14.FontSize = Enum.FontSize.Size14
  157. TextButton14.AnchorPoint = Vector2.new(1, 0.5)
  158. Frame15.Name = "Others"
  159. Frame15.Parent = Frame5
  160. Frame15.Transparency = 0
  161. Frame15.Size = UDim2.new(0, 100, 0, 100)
  162. Frame15.Position = UDim2.new(0, 210, 0.5, 0)
  163. Frame15.BackgroundColor3 = Color3.new(1, 1, 1)
  164. Frame15.BackgroundTransparency = 1
  165. Frame15.AnchorPoint = Vector2.new(0.5, 0.5)
  166. Frame16.Name = "Low"
  167. Frame16.Parent = Frame15
  168. Frame16.Transparency = 0
  169. Frame16.Size = UDim2.new(0, 0, 1, 0)
  170. Frame16.BackgroundColor3 = Color3.new(1, 1, 1)
  171. Frame16.BackgroundTransparency = 1
  172. Frame17.Name = "Line"
  173. Frame17.Parent = Frame16
  174. Frame17.Size = UDim2.new(0, 1, 1, 0)
  175. Frame17.Position = UDim2.new(0.5, 0, 0, 0)
  176. Frame17.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  177. Frame17.BorderSizePixel = 0
  178. Frame17.AnchorPoint = Vector2.new(0.5, 0)
  179. TextButton18.Name = "DragLow"
  180. TextButton18.Parent = Frame16
  181. TextButton18.Size = UDim2.new(0, 20, 0, 10)
  182. TextButton18.Text = ""
  183. TextButton18.Position = UDim2.new(0.5, 0, 0.5, -25)
  184. TextButton18.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  185. TextButton18.Font = Enum.Font.SourceSans
  186. TextButton18.AnchorPoint = Vector2.new(0.5, 0.5)
  187. TextLabel19.Name = "Text"
  188. TextLabel19.Parent = Frame16
  189. TextLabel19.Transparency = 0
  190. TextLabel19.Text = "Low"
  191. TextLabel19.Position = UDim2.new(0.5, 0, 1, 10)
  192. TextLabel19.BackgroundColor3 = Color3.new(1, 1, 1)
  193. TextLabel19.BackgroundTransparency = 1
  194. TextLabel19.Font = Enum.Font.SourceSans
  195. TextLabel19.FontSize = Enum.FontSize.Size10
  196. TextLabel19.AnchorPoint = Vector2.new(0.5, 0)
  197. Frame20.Name = "Medium"
  198. Frame20.Parent = Frame15
  199. Frame20.Transparency = 0
  200. Frame20.Size = UDim2.new(0, 0, 1, 0)
  201. Frame20.Position = UDim2.new(0, 40, 0, 0)
  202. Frame20.BackgroundColor3 = Color3.new(1, 1, 1)
  203. Frame20.BackgroundTransparency = 1
  204. Frame21.Name = "Line"
  205. Frame21.Parent = Frame20
  206. Frame21.Size = UDim2.new(0, 1, 1, 0)
  207. Frame21.Position = UDim2.new(0.5, 0, 0, 0)
  208. Frame21.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  209. Frame21.BorderSizePixel = 0
  210. Frame21.AnchorPoint = Vector2.new(0.5, 0)
  211. TextButton22.Name = "DragMed"
  212. TextButton22.Parent = Frame20
  213. TextButton22.Size = UDim2.new(0, 20, 0, 10)
  214. TextButton22.Text = ""
  215. TextButton22.Position = UDim2.new(0.5, 0, 0.5, -25)
  216. TextButton22.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  217. TextButton22.Font = Enum.Font.SourceSans
  218. TextButton22.AnchorPoint = Vector2.new(0.5, 0.5)
  219. TextLabel23.Name = "Text"
  220. TextLabel23.Parent = Frame20
  221. TextLabel23.Transparency = 0
  222. TextLabel23.Text = "Medium"
  223. TextLabel23.Position = UDim2.new(0.5, 0, 1, 10)
  224. TextLabel23.BackgroundColor3 = Color3.new(1, 1, 1)
  225. TextLabel23.BackgroundTransparency = 1
  226. TextLabel23.Font = Enum.Font.SourceSans
  227. TextLabel23.FontSize = Enum.FontSize.Size10
  228. TextLabel23.AnchorPoint = Vector2.new(0.5, 0)
  229. Frame24.Name = "High"
  230. Frame24.Parent = Frame15
  231. Frame24.Transparency = 0
  232. Frame24.Size = UDim2.new(0, 0, 1, 0)
  233. Frame24.Position = UDim2.new(0, 80, 0, 0)
  234. Frame24.BackgroundColor3 = Color3.new(1, 1, 1)
  235. Frame24.BackgroundTransparency = 1
  236. Frame25.Name = "Line"
  237. Frame25.Parent = Frame24
  238. Frame25.Size = UDim2.new(0, 1, 1, 0)
  239. Frame25.Position = UDim2.new(0.5, 0, 0, 0)
  240. Frame25.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  241. Frame25.BorderSizePixel = 0
  242. Frame25.AnchorPoint = Vector2.new(0.5, 0)
  243. TextButton26.Name = "DragHigh"
  244. TextButton26.Parent = Frame24
  245. TextButton26.Size = UDim2.new(0, 20, 0, 10)
  246. TextButton26.Text = ""
  247. TextButton26.Position = UDim2.new(0.5, 0, 0.5, -25)
  248. TextButton26.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  249. TextButton26.Font = Enum.Font.SourceSans
  250. TextButton26.AnchorPoint = Vector2.new(0.5, 0.5)
  251. TextLabel27.Name = "Text"
  252. TextLabel27.Parent = Frame24
  253. TextLabel27.Transparency = 0
  254. TextLabel27.Text = "High"
  255. TextLabel27.Position = UDim2.new(0.5, 0, 1, 10)
  256. TextLabel27.BackgroundColor3 = Color3.new(1, 1, 1)
  257. TextLabel27.BackgroundTransparency = 1
  258. TextLabel27.Font = Enum.Font.SourceSans
  259. TextLabel27.FontSize = Enum.FontSize.Size10
  260. TextLabel27.AnchorPoint = Vector2.new(0.5, 0)
  261. Frame28.Name = "Distortion"
  262. Frame28.Parent = Frame15
  263. Frame28.Transparency = 0
  264. Frame28.Size = UDim2.new(0, 0, 1, 0)
  265. Frame28.Position = UDim2.new(0, 120, 0, 0)
  266. Frame28.BackgroundColor3 = Color3.new(1, 1, 1)
  267. Frame28.BackgroundTransparency = 1
  268. Frame29.Name = "Line"
  269. Frame29.Parent = Frame28
  270. Frame29.Size = UDim2.new(0, 1, 1, 0)
  271. Frame29.Position = UDim2.new(0.5, 0, 0, 0)
  272. Frame29.BackgroundColor3 = Color3.new(0.290196, 0.290196, 0.290196)
  273. Frame29.BorderSizePixel = 0
  274. Frame29.AnchorPoint = Vector2.new(0.5, 0)
  275. TextButton30.Name = "DragDist"
  276. TextButton30.Parent = Frame28
  277. TextButton30.Size = UDim2.new(0, 20, 0, 10)
  278. TextButton30.Text = ""
  279. TextButton30.Position = UDim2.new(0.5, 0, 0.5, 50)
  280. TextButton30.BackgroundColor3 = Color3.new(0.588235, 0.588235, 0.588235)
  281. TextButton30.Font = Enum.Font.SourceSans
  282. TextButton30.AnchorPoint = Vector2.new(0.5, 0.5)
  283. TextLabel31.Name = "Text"
  284. TextLabel31.Parent = Frame28
  285. TextLabel31.Transparency = 0
  286. TextLabel31.Text = "Dist"
  287. TextLabel31.Position = UDim2.new(0.5, 0, 1, 10)
  288. TextLabel31.BackgroundColor3 = Color3.new(1, 1, 1)
  289. TextLabel31.BackgroundTransparency = 1
  290. TextLabel31.Font = Enum.Font.SourceSans
  291. TextLabel31.FontSize = Enum.FontSize.Size10
  292. TextLabel31.AnchorPoint = Vector2.new(0.5, 0)
  293. Frame32.Name = "Line"
  294. Frame32.Parent = Frame5
  295. Frame32.Size = UDim2.new(0, 1, 1, -20)
  296. Frame32.Position = UDim2.new(0.5, -20, 0.5, 0)
  297. Frame32.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  298. Frame32.BorderSizePixel = 0
  299. Frame32.AnchorPoint = Vector2.new(0.5, 0.5)
  300. TextButton33.Name = "Global/Local"
  301. TextButton33.Parent = Frame2
  302. TextButton33.Size = UDim2.new(0, 100, 0, 100)
  303. TextButton33.Text = "LOCAL"
  304. TextButton33.Position = UDim2.new(0, 50, 0, 180)
  305. TextButton33.BackgroundColor3 = Color3.new(1, 1, 1)
  306. TextButton33.Font = Enum.Font.SciFi
  307. TextButton33.FontSize = Enum.FontSize.Size14
  308. TextButton34.Name = "Style"
  309. TextButton34.Parent = Frame2
  310. TextButton34.Size = UDim2.new(0.5, 50, 0, 100)
  311. TextButton34.Text = "Comming Soon"
  312. TextButton34.Position = UDim2.new(0.5, 80, 0, 180)
  313. TextButton34.BackgroundColor3 = Color3.new(0.211765, 0.211765, 0.211765)
  314. TextButton34.Font = Enum.Font.SciFi
  315. TextButton34.FontSize = Enum.FontSize.Size14
  316. TextButton34.TextColor3 = Color3.new(1, 1, 0)
  317. TextButton34.AnchorPoint = Vector2.new(0.5, 0)
  318. Frame2.Visible = false
  319.  
  320. draggable = {TextButton9;TextButton13;TextButton18;TextButton22;TextButton26;TextButton30}
  321. mode = "local"
  322. held = false
  323. trigger = nil
  324. base = UDim2.new(0,0,0,0)
  325.  
  326. function CreateSound()
  327. if mode == "local" then
  328. soundparent=char:WaitForChild("Torso")
  329. else
  330. soundparent=char
  331. end
  332. sound = Instance.new("Sound",soundparent)
  333. sound.Name = "KyuSound"
  334. sound.Looped = true
  335. effect = Instance.new("EqualizerSoundEffect",sound)
  336. distort = Instance.new("DistortionSoundEffect",sound)
  337. end
  338.  
  339. TextButton1.MouseButton1Click:connect(function()
  340. if Frame2.Visible == true then
  341. Frame2.Visible = false
  342. TextButton1.Text = ">>"
  343. else
  344. Frame2.Visible = true
  345. TextButton1.Text = "<<"
  346. end
  347. end)
  348.  
  349. TextButton4.MouseButton1Click:connect(function()
  350. if mode == "local" then
  351. if not char:WaitForChild("Torso"):FindFirstChild("KyuSound") then CreateSound() end
  352. else
  353. if not char:FindFirstChild("KyuSound") then CreateSound() end
  354. end
  355. sound:Stop()
  356. sound.SoundId = "rbxassetid://"..TextBox3.Text
  357. sound:Play()
  358. end)
  359.  
  360. TextButton14.MouseButton1Click:connect(function()
  361. TextButton13.Position = UDim2.new(0.5, 0, 0.5, 0)
  362. end)
  363.  
  364. TextButton33.MouseButton1Click:connect(function()
  365. if mode == "local" then
  366. mode = "global"
  367. TextButton33.Text = "GLOBAL"
  368. if char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  369. sound:Pause()
  370. sound.Parent = char
  371. sound:Resume()
  372. end
  373. else
  374. mode = "local"
  375. TextButton33.Text = "LOCAL"
  376. if char:FindFirstChild("KyuSound") then
  377. sound:Pause()
  378. sound.Parent = char:WaitForChild("Torso")
  379. sound:Resume()
  380. end
  381. end
  382. end)
  383.  
  384. for i,v in pairs(draggable) do
  385. v.MouseButton1Down:connect(function()
  386.     trigger = v
  387.     base = UDim2.new(0.5,0,0.5,mouse.y) - trigger.Position
  388.     held = true
  389. end)
  390. v.MouseButton1Up:connect(function()
  391.     base = UDim2.new(0.5,0,0.5,0)
  392.     trigger = nil
  393.     held = false
  394. end)
  395. end
  396.  
  397. mouse.Button1Up:connect(function()
  398.     base = UDim2.new(0.5,0,0.5,0)
  399.     trigger = nil
  400.     held = false
  401. end)
  402.  
  403. mouse.Move:connect(function()
  404.     if held then
  405.         trigger.Position = UDim2.new(0.5,0,0.5,mouse.y) - base
  406.         if trigger.Position.Y.Offset > 50 then
  407.         trigger.Position = UDim2.new(0.5, 0,0.5, 50)
  408.         end
  409.         if trigger.Position.Y.Offset < -50 then
  410.         trigger.Position = UDim2.new(0.5, 0,0.5, -50)
  411.         end
  412.         if trigger.Position.X.Offset ~= 0 then
  413.         trigger.Position = UDim2.new(0.5, 0,0.5, trigger.Position.Y.Offset)
  414.         end
  415.     end
  416. end)
  417. max = 0
  418. Visualiser = Instance.new("Model",char)
  419. Visualiser2 = Instance.new("Model",Visualiser)
  420. Main = Instance.new("Part",Visualiser)
  421. Main.CanCollide = false
  422. Main.Size = Vector3.new(1,1,1)
  423. Main.Transparency = 1
  424. Visualiserpos = Instance.new("Attachment",Main)
  425. Visualiserpos.Position = Vector3.new(5,0,0)
  426. bp = Instance.new("BodyPosition",Main)
  427. ba = Instance.new("BodyAngularVelocity",Main)
  428. coroutine.resume(coroutine.create(function()
  429. while wait(0.03) do
  430. block = Instance.new("Part",Visualiser2)
  431. blockm = Instance.new("BlockMesh",block)
  432. if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  433. change = sound.PlaybackLoudness/80
  434. blockm.Scale = Vector3.new(1+change,1+change,1+change)
  435. end
  436. block.Anchored = true
  437. block.CanCollide = false
  438. block.Material = Enum.Material.Neon
  439. block.Size = Vector3.new(1,1,1)
  440. block.Orientation = Vector3.new(math.random(0,360),math.random(0,360),math.random(0,360))
  441. block.Position = Visualiserpos.WorldPosition
  442. end
  443. end))
  444. while rs:wait() do
  445. char = player.Character
  446. root = char:WaitForChild("HumanoidRootPart")
  447. if char:FindFirstChild("KyuSound") or char:WaitForChild("Torso"):FindFirstChild("KyuSound") then
  448. if max < sound.PlaybackLoudness then
  449. if sound.PlaybackLoudness <= 300 then
  450. max = 300
  451. else
  452. max = sound.PlaybackLoudness
  453. end
  454. else
  455. if sound.PlaybackLoudness < 0 then
  456. max = max -1
  457. end
  458. end
  459. sound.Volume = 5-(TextButton9.Position.Y.Offset/10)
  460. sound.PlaybackSpeed = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
  461. distort.Level = 0.5+(-TextButton30.Position.Y.Offset/50)
  462. effect.HighGain = -(TextButton26.Position.Y.Offset*1.2)
  463. effect.MidGain = -(TextButton22.Position.Y.Offset*1.2)
  464. effect.LowGain = -(TextButton18.Position.Y.Offset*1.2)
  465. Visualiserpos.Position = Vector3.new(5+(max/20),0,0)
  466. ba.AngularVelocity = Vector3.new(0,0.2+(max/180),0)
  467. for i,v in pairs(Visualiser2:GetChildren()) do
  468. local change = 0.1+(max/5000)
  469. v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
  470. v.Transparency = v.Transparency + 0.05
  471. if v.Transparency >= 1 then
  472. v:Destroy()
  473. end
  474. end
  475. else
  476. Visualiserpos.Position = Vector3.new(5,0,0)
  477. ba.AngularVelocity = Vector3.new(0,0.2,0)
  478. for i,v in pairs(Visualiser2:GetChildren()) do
  479. local change = 0.1
  480. v.Mesh.Scale = v.Mesh.Scale+Vector3.new(change,change,change)
  481. v.Transparency = v.Transparency + 0.05
  482. if v.Transparency >= 1 then
  483. v:Destroy()
  484. end
  485. end
  486. end
  487. Main:BreakJoints()
  488. bp.Position = char.Head.Position+Vector3.new(0,2,0)
  489. TextButton14.Text = math.ceil((1-(TextButton13.Position.Y.Offset/50))*10)/10
  490. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement