Walterin0

Untitled

Jan 25th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.31 KB | None | 0 0
  1. --[[
  2. Added r15 mode by Walterin0
  3. --]]
  4.  
  5. -- visualizer
  6. local Parts = {}
  7. local Parts2 = {}
  8. local Direction = 1
  9. local loudness = 0
  10. local TColor = BrickColor.new("Black")
  11. for i = 1, 100 do
  12. local p = Instance.new("Part", game.Players.LocalPlayer.Character.UpperTorso)
  13. p.Size = Vector3.new(0.2, 0.2, 0.2)
  14. p.Anchored = true
  15. p.CanCollide = false
  16. p.Material = "Neon"
  17. p.Position = game.Players.LocalPlayer.Character.UpperTorso.Position
  18. table.insert(Parts, p)
  19. end
  20. for i = 1, 100 do
  21. local p = Instance.new("Part", game.Players.LocalPlayer.Character.UpperTorso)
  22. p.Size = Vector3.new(0.2, 0.2, 0.2)
  23. p.Anchored = true
  24. p.CanCollide = false
  25. p.Material = "Neon"
  26. p.Position = game.Players.LocalPlayer.Character.UpperTorso.Position
  27. table.insert(Parts2, p)
  28. end
  29. local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.UpperTorso)
  30. sound.SoundId = "rbxassetid://574539049"
  31. sound.Volume = 1
  32. sound:Play()
  33. spawn(function()
  34. local SelectedPart = 0
  35. while true do
  36. if Direction == 1 then
  37. if SelectedPart < #Parts then
  38. SelectedPart = SelectedPart + Direction
  39. else
  40. Direction = -1
  41. TColor = BrickColor.Random()
  42. end
  43. elseif Direction == -1 then
  44. if SelectedPart > 1 then
  45. SelectedPart = SelectedPart + Direction
  46. else
  47. Direction = 1
  48. TColor = BrickColor.Random()
  49. end
  50. end
  51. local sel = Parts[SelectedPart]
  52. local sel2 = Parts2[SelectedPart]
  53. sel.BrickColor = BrickColor.Random()
  54. sel2.BrickColor = BrickColor.Random()
  55. loudness = sound.PlaybackLoudness / 500
  56. sel.Size = Vector3.new(loudness, loudness, 0.2)
  57. sel2.Size = Vector3.new(loudness, loudness, 0.2)
  58. wait()
  59. sel.BrickColor = TColor
  60. sel2.BrickColor = TColor
  61. end
  62. end)
  63. game:GetService("RunService").RenderStepped:connect(function()
  64. for i = 1, #Parts do
  65. if i == 1 then
  66. Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.UpperTorso.CFrame, 0.9)
  67. else
  68. Parts[i].CFrame = Parts[i].CFrame:lerp(Parts[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(-loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  69. end
  70. end
  71. for i = 1, #Parts2 do
  72. if i == 1 then
  73. Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.UpperTorso.CFrame, 0.9)
  74. else
  75. Parts2[i].CFrame = Parts2[i].CFrame:lerp(Parts2[i - 1].CFrame * CFrame.Angles(-loudness / 20, math.sin(loudness / 50), 0) * CFrame.new(0, 0, 0.15), 0.8)
  76. end
  77. end
  78. end)
  79.  
  80. -- visualizer gui
  81.  
  82. local visualizergui = Instance.new("ScreenGui")
  83. local Frame = Instance.new("Frame")
  84. local idvalue = Instance.new("TextBox")
  85. local play = Instance.new("TextButton")
  86. local volume = Instance.new("TextBox")
  87. local pitch = Instance.new("TextBox")
  88. local close = Instance.new("TextButton")
  89. local min = Instance.new("TextButton")
  90. local credits = Instance.new("TextLabel")
  91. local open = Instance.new("TextButton")
  92. local set2 = Instance.new("TextButton")
  93. local set1 = Instance.new("TextButton")
  94. local loop = Instance.new("TextButton")
  95.  
  96. --properties xd
  97. visualizergui.Name = "visualizergui"
  98. visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
  99.  
  100. Frame.Parent = visualizergui
  101. Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
  102. Frame.BackgroundTransparency = 0.20000000298023
  103. Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
  104. Frame.BorderSizePixel = 8
  105. Frame.Position = UDim2.new(0, 51, 0, 213)
  106. Frame.Size = UDim2.new(0, 418, 0, 213)
  107. Frame.Active = true
  108. Frame.Draggable = true
  109. Frame.Visible = false
  110.  
  111. idvalue.Name = "idvalue"
  112. idvalue.Parent = Frame
  113. idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  114. idvalue.BackgroundTransparency = 0.5
  115. idvalue.Size = UDim2.new(0, 418, 0, 50)
  116. idvalue.Font = Enum.Font.Fantasy
  117. idvalue.FontSize = Enum.FontSize.Size24
  118. idvalue.Text = "Put ID plz"
  119. idvalue.TextSize = 24
  120.  
  121. play.Name = "play"
  122. play.Parent = Frame
  123. play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  124. play.BackgroundTransparency = 0.44999998807907
  125. play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  126. play.BorderSizePixel = 3
  127. play.Position = UDim2.new(0, 9, 0, 82)
  128. play.Size = UDim2.new(0, 117, 0, 50)
  129. play.Font = Enum.Font.SourceSans
  130. play.FontSize = Enum.FontSize.Size28
  131. play.Text = "Play"
  132. play.TextSize = 28
  133.  
  134. volume.Name = "volume"
  135. volume.Parent = Frame
  136. volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  137. volume.BackgroundTransparency = 0.44999998807907
  138. volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  139. volume.BorderSizePixel = 3
  140. volume.Position = UDim2.new(0, 151, 0, 82)
  141. volume.Size = UDim2.new(0, 117, 0, 50)
  142. volume.Font = Enum.Font.SourceSans
  143. volume.FontSize = Enum.FontSize.Size28
  144. volume.Text = "Volume"
  145. volume.TextSize = 28
  146.  
  147. pitch.Name = "pitch"
  148. pitch.Parent = Frame
  149. pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  150. pitch.BackgroundTransparency = 0.44999998807907
  151. pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  152. pitch.BorderSizePixel = 3
  153. pitch.Position = UDim2.new(0, 291, 0, 82)
  154. pitch.Size = UDim2.new(0, 117, 0, 50)
  155. pitch.Font = Enum.Font.SourceSans
  156. pitch.FontSize = Enum.FontSize.Size28
  157. pitch.Text = "Pitch"
  158. pitch.TextSize = 28
  159.  
  160. close.Name = "close"
  161. close.Parent = Frame
  162. close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
  163. close.BackgroundTransparency = 0.40000000596046
  164. close.Position = UDim2.new(0, 393, 0, 190)
  165. close.Size = UDim2.new(0, 25, 0, 23)
  166. close.Font = Enum.Font.SourceSans
  167. close.FontSize = Enum.FontSize.Size28
  168. close.Text = "X"
  169. close.TextSize = 28
  170.  
  171. min.Name = "min"
  172. min.Parent = Frame
  173. min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
  174. min.BackgroundTransparency = 0.40000000596046
  175. min.Position = UDim2.new(0, 357, 0, 190)
  176. min.Size = UDim2.new(0, 25, 0, 23)
  177. min.Font = Enum.Font.SourceSans
  178. min.FontSize = Enum.FontSize.Size36
  179. min.Text = "-"
  180. min.TextSize = 36
  181.  
  182. credits.Name = "credits"
  183. credits.Parent = Frame
  184. credits.BackgroundColor3 = Color3.new(1, 1, 1)
  185. credits.BackgroundTransparency = 1
  186. credits.Position = UDim2.new(0, 0, 0, 161)
  187. credits.Size = UDim2.new(0, 200, 0, 52)
  188. credits.Font = Enum.Font.SourceSans
  189. credits.FontSize = Enum.FontSize.Size14
  190. credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  191. credits.TextSize = 14
  192. credits.TextWrapped = true
  193.  
  194. open.Name = "open"
  195. open.Parent = visualizergui
  196. open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  197. open.BackgroundTransparency = 0.44999998807907
  198. open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  199. open.BorderSizePixel = 3
  200. open.Position = UDim2.new(0, 0, 0, 400)
  201. open.Size = UDim2.new(0, 59, 0, 50)
  202. open.Font = Enum.Font.SourceSans
  203. open.FontSize = Enum.FontSize.Size28
  204. open.Text = "Open"
  205. open.TextSize = 28
  206. open.Visible = false
  207.  
  208. set2.Name = "set2"
  209. set2.Parent = Frame
  210. set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  211. set2.BackgroundTransparency = 0.44999998807907
  212. set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  213. set2.BorderSizePixel = 3
  214. set2.Position = UDim2.new(0, 325, 0, 136)
  215. set2.Size = UDim2.new(0, 55, 0, 25)
  216. set2.Font = Enum.Font.SourceSans
  217. set2.FontSize = Enum.FontSize.Size24
  218. set2.Text = "Set"
  219. set2.TextSize = 24
  220. set2.TextWrapped = true
  221.  
  222. set1.Name = "set1"
  223. set1.Parent = Frame
  224. set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  225. set1.BackgroundTransparency = 0.44999998807907
  226. set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  227. set1.BorderSizePixel = 3
  228. set1.Position = UDim2.new(0, 181, 0, 136)
  229. set1.Size = UDim2.new(0, 55, 0, 25)
  230. set1.Font = Enum.Font.SourceSans
  231. set1.FontSize = Enum.FontSize.Size24
  232. set1.Text = "Set"
  233. set1.TextSize = 24
  234. set1.TextWrapped = true
  235.  
  236. loop.Name = "loop"
  237. loop.Parent = Frame
  238. loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  239. loop.BackgroundTransparency = 0.44999998807907
  240. loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
  241. loop.BorderSizePixel = 3
  242. loop.Position = UDim2.new(0, 241, 0, 188)
  243. loop.Size = UDim2.new(0, 84, 0, 25)
  244. loop.Font = Enum.Font.SourceSans
  245. loop.FontSize = Enum.FontSize.Size18
  246. loop.Text = "Loop : OFF"
  247. loop.TextSize = 18
  248. loop.TextWrapped = true
  249.  
  250. -- functions
  251. function start()
  252. wait(0.5)
  253. Frame.Position = UDim2.new(0, -500, 0, 400)
  254. Frame.Visible = true
  255. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  256. end
  257.  
  258. if game.Players.LocalPlayer.Character then
  259. start()
  260. else
  261. print'character not found plz try again XD'
  262. end
  263.  
  264. function minimize()
  265. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  266. credits.Text = ""
  267. min.Text = ""
  268. close.Text = ""
  269. play.Text = ""
  270. pitch.Text = ""
  271. volume.Text = ""
  272. idvalue.Text = ""
  273. set1.Text = ""
  274. set2.Text = ""
  275. loop.Text = ""
  276. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  277. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  278. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  279. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  280. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  281. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  282. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  283. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  284. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  285. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  286. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  287. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  288. wait(0.5)
  289. Frame.Visible = false
  290. open.Visible = true
  291. end
  292.  
  293. function show()
  294. open.Visible = false
  295. Frame.Position = UDim2.new(0, -500, 0, 400)
  296. Frame.Visible = true
  297. credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
  298. min.Text = "-"
  299. close.Text = "X"
  300. play.Text = "Play"
  301. pitch.Text = "Pitch"
  302. volume.Text = "Volume"
  303. idvalue.Text = "Put ID plz"
  304. set1.Text = "Set"
  305. set2.Text = "Set"
  306. loop.Text = "Loop : OFF"
  307. Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  308. credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  309. min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  310. close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  311. idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  312. volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  313. play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  314. pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  315. set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  316. loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  317. set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  318. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
  319. end
  320.  
  321. function exitdatshit()
  322. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
  323. credits.Text = ""
  324. min.Text = ""
  325. close.Text = ""
  326. play.Text = ""
  327. pitch.Text = ""
  328. volume.Text = ""
  329. idvalue.Text = ""
  330. Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  331. credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  332. min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  333. close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  334. idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  335. volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  336. play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  337. pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  338. set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  339. set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  340. loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  341. Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
  342. wait(0.5)
  343. visualizergui:Destroy()
  344. end
  345.  
  346. -- events
  347. wait(1)
  348. min.MouseButton1Down:connect(function()
  349. minimize()
  350. end)
  351.  
  352. open.MouseButton1Down:connect(function()
  353. show()
  354. end)
  355.  
  356. close.MouseButton1Down:connect(function()
  357. exitdatshit()
  358. end)
  359.  
  360. set1.MouseButton1Down:connect(function()
  361. sound.Volume = volume.Text
  362. end)
  363.  
  364. set2.MouseButton1Down:connect(function()
  365. sound.Pitch = pitch.Text
  366. end)
  367.  
  368. play.MouseButton1Down:connect(function()
  369. sound.TimePosition = 0
  370. sound.SoundId = "rbxassetid://" .. idvalue.Text
  371. end)
  372.  
  373. loop.MouseButton1Down:connect(function()
  374. if loop.Text == "Loop : OFF" then
  375. sound.Looped = true
  376. loop.Text = "Loop : ON"
  377. else
  378. sound.Looped = false
  379. loop.Text = "Loop : OFF"
  380. end
  381. end)
Advertisement
Add Comment
Please, Sign In to add comment