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