View difference between Paste ID: tWY2NfUE and Xigb3Kc7
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,game,owner = owner,game
4
local RealPlayer = Player
5
do
6
	print("FE Compatibility code V2 by Mokiros")
7
	local RealPlayer = RealPlayer
8
	script.Parent = RealPlayer.Character
9
10
	--Fake event to make stuff like Mouse.KeyDown work
11
	local Disconnect_Function = function(this)
12
		this[1].Functions[this[2]] = nil
13-
 local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
13+
	end
14
	local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
15
	local FakeEvent_Metatable = {__index={
16
		Connect = function(this,f)
17
			local i = tostring(math.random(0,10000))
18-
 p.Position = game.Players.LocalPlayer.Character.Torso.Position
18+
			while this.Functions[i] do
19
				i = tostring(math.random(0,10000))
20
			end
21
			this.Functions[i] = f
22-
 local p = Instance.new("Part", game.Players.LocalPlayer.Character.Torso)
22+
			return setmetatable({this,i},Disconnect_Metatable)
23
		end
24
	}}
25
	FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
26
	local function fakeEvent()
27-
 p.Position = game.Players.LocalPlayer.Character.Torso.Position
27+
		return setmetatable({Functions={}},FakeEvent_Metatable)
28
	end
29
30-
local sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
30+
	--Creating fake input objects with fake variables
31
    local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
32
    FakeMouse.keyUp = FakeMouse.KeyUp
33
    FakeMouse.keyDown = FakeMouse.KeyDown
34
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
35
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
36
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
37
	end}
38
	--Merged 2 functions into one by checking amount of arguments
39
	CAS.UnbindAction = CAS.BindAction
40
41
	--This function will trigger the events that have been :Connect()'ed
42
	local function TriggerEvent(self,ev,...)
43
		for _,f in pairs(self[ev].Functions) do
44
			f(...)
45
		end
46
	end
47
	FakeMouse.TriggerEvent = TriggerEvent
48
	UIS.TriggerEvent = TriggerEvent
49
50
	--Client communication
51
	local Event = Instance.new("RemoteEvent")
52
	Event.Name = "UserInput_Event"
53
	Event.OnServerEvent:Connect(function(plr,io)
54
	    if plr~=RealPlayer then return end
55
		FakeMouse.Target = io.Target
56
		FakeMouse.Hit = io.Hit
57
		if not io.isMouse then
58
			local b = io.UserInputState == Enum.UserInputState.Begin
59
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
60
				return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
61
			end
62
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
63
				return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
64
			end
65
			for _,t in pairs(CAS.Actions) do
66
				for _,k in pairs(t.Keys) do
67-
     Parts[i].CFrame = Parts[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
67+
					if k==io.KeyCode then
68
						t.Function(t.Name,io.UserInputState,io)
69
					end
70
				end
71
			end
72
			FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
73
			UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
74-
     Parts2[i].CFrame = Parts2[i].CFrame:lerp(game.Players.LocalPlayer.Character.Torso.CFrame, 0.9)
74+
	    end
75
	end)
76
	Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
77
	local Mouse = owner:GetMouse()
78
	local UIS = game:GetService("UserInputService")
79
	local input = function(io,RobloxHandled)
80
		if RobloxHandled then return end
81
		--Since InputObject is a client-side instance, we create and pass table instead
82
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
83
	end
84
	UIS.InputBegan:Connect(input)
85
	UIS.InputEnded:Connect(input)
86
87
	local h,t
88
	--Give the server mouse data every second frame, but only if the values changed
89
	--If player is not moving their mouse, client won't fire events
90
	local HB = game:GetService("RunService").Heartbeat
91
	while true do
92
		if h~=Mouse.Hit or t~=Mouse.Target then
93
			h,t=Mouse.Hit,Mouse.Target
94
			Event:FireServer({isMouse=true,Target=t,Hit=h})
95
		end
96
		--Wait 2 frames
97
		for i=1,2 do
98
			HB:Wait()
99-
visualizergui.Parent = game.Players.LocalPlayer.PlayerGui
99+
		end
100
	end]==],script)
101
102
	----Sandboxed game object that allows the usage of client-side methods and services
103
	--Real game object
104
	local RealGame = game
105
106
	--Metatable for fake service
107
	local FakeService_Metatable = {
108
		__index = function(self,k)
109
			local s = rawget(self,"_RealService")
110
			if s then
111
				return typeof(s[k])=="function"
112
				and function(_,...)return s[k](s,...)end or s[k]
113
			end
114
		end,
115
		__newindex = function(self,k,v)
116
			local s = rawget(self,"_RealService")
117
			if s then s[k]=v end
118
		end
119
	}
120
	local function FakeService(t,RealService)
121
		t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
122
		return setmetatable(t,FakeService_Metatable)
123
	end
124
125
	--Fake game object
126
	local FakeGame = {
127
		GetService = function(self,s)
128
			return rawget(self,s) or RealGame:GetService(s)
129
		end,
130
		Players = FakeService({
131
			LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
132
		},"Players"),
133
		UserInputService = FakeService(UIS,"UserInputService"),
134
		ContextActionService = FakeService(CAS,"ContextActionService"),
135
		RunService = FakeService({
136
			_btrs = {},
137
			RenderStepped = RealGame:GetService("RunService").Heartbeat,
138
			BindToRenderStep = function(self,name,_,fun)
139
				self._btrs[name] = self.Heartbeat:Connect(fun)
140
			end,
141
			UnbindFromRenderStep = function(self,name)
142
				self._btrs[name]:Disconnect()
143
			end,
144
		},"RunService")
145
	}
146
	rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
147
	FakeGame.service = FakeGame.GetService
148
	FakeService(FakeGame,game)
149
	--Changing owner to fake player object to support owner:GetMouse()
150
	game,owner = FakeGame,FakeGame.Players.LocalPlayer
151
end
152
153
--[[ 
154
edited by mr steal yo bork with a sweet gui
155
credits goes to the original creators 
156
--]] 
157
158
-- visualizer
159
local Parts = {}
160
local Parts2 = {}
161
local Direction = 1
162
local loudness = 0
163
local TColor = BrickColor.new("Black")
164
for i = 1, 100 do
165
 local p = Instance.new("Part", owner.Character.Torso)
166
 p.Size = Vector3.new(0.2, 0.2, 0.2)
167
 p.Anchored = true
168
 p.CanCollide = false
169
 p.Material = "Neon"
170
 p.Position = owner.Character.Torso.Position
171
 table.insert(Parts, p)
172
end
173
for i = 1, 100 do
174
 local p = Instance.new("Part", owner.Character.Torso)
175
 p.Size = Vector3.new(0.2, 0.2, 0.2)
176
 p.Anchored = true
177
 p.CanCollide = false
178
 p.Material = "Neon"
179
 p.Position = owner.Character.Torso.Position
180
 table.insert(Parts2, p)
181
end
182
local sound = Instance.new("Sound", owner.Character.Torso)
183
sound.SoundId = "rbxassetid://574539049"
184
sound.Volume = 1
185
sound:Play()
186
spawn(function()
187
 local SelectedPart = 0
188
 while true do
189
   if Direction == 1 then
190
     if SelectedPart < #Parts then
191
       SelectedPart = SelectedPart + Direction
192
     else
193
       Direction = -1
194
       TColor = BrickColor.Random()
195
     end
196
   elseif Direction == -1 then
197
     if SelectedPart > 1 then
198
       SelectedPart = SelectedPart + Direction
199
     else
200
       Direction = 1
201
       TColor = BrickColor.Random()
202
     end
203
   end
204
   local sel = Parts[SelectedPart]
205
   local sel2 = Parts2[SelectedPart]
206
   sel.BrickColor = BrickColor.Random()
207
   sel2.BrickColor = BrickColor.Random()
208
   loudness = sound.PlaybackLoudness / 500
209
   sel.Size = Vector3.new(loudness, loudness, 0.2)
210
   sel2.Size = Vector3.new(loudness, loudness, 0.2)
211
   wait()
212
   sel.BrickColor = TColor
213
   sel2.BrickColor = TColor
214
 end
215
end)
216
game:GetService("RunService").RenderStepped:connect(function()
217
 for i = 1, #Parts do
218
   if i == 1 then
219
     Parts[i].CFrame = Parts[i].CFrame:lerp(owner.Character.Torso.CFrame, 0.9)
220
   else
221
     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)
222
   end
223
 end
224
 for i = 1, #Parts2 do
225
   if i == 1 then
226
     Parts2[i].CFrame = Parts2[i].CFrame:lerp(owner.Character.Torso.CFrame, 0.9)
227
   else
228
     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)
229
   end
230
 end
231
end)
232
233
-- visualizer gui
234
235
local visualizergui = Instance.new("ScreenGui")
236
local Frame = Instance.new("Frame")
237
local idvalue = Instance.new("TextBox")
238
local play = Instance.new("TextButton")
239
local volume = Instance.new("TextBox")
240
local pitch = Instance.new("TextBox")
241
local close = Instance.new("TextButton")
242
local min = Instance.new("TextButton")
243
local credits = Instance.new("TextLabel")
244
local open = Instance.new("TextButton")
245
local set2 = Instance.new("TextButton")
246
local set1 = Instance.new("TextButton")
247
local loop = Instance.new("TextButton")
248
249
--properties xd
250
visualizergui.Name = "visualizergui"
251
visualizergui.Parent = owner.PlayerGui
252
253
Frame.Parent = visualizergui
254
Frame.BackgroundColor3 = Color3.new(0.701961, 0.952941, 1)
255
Frame.BackgroundTransparency = 0.20000000298023
256
Frame.BorderColor3 = Color3.new(0.211765, 0.329412, 0.415686)
257
Frame.BorderSizePixel = 8
258
Frame.Position = UDim2.new(0, 51, 0, 213)
259-
if game.Players.LocalPlayer.Character then
259+
260
Frame.Active = true
261
Frame.Draggable = true
262
Frame.Visible = false
263
264
idvalue.Name = "idvalue"
265
idvalue.Parent = Frame
266
idvalue.BackgroundColor3 = Color3.new(0.666667, 1, 1)
267
idvalue.BackgroundTransparency = 0.5
268
idvalue.Size = UDim2.new(0, 418, 0, 50)
269
idvalue.Font = Enum.Font.Fantasy
270
idvalue.FontSize = Enum.FontSize.Size24
271
idvalue.Text = "Put ID plz"
272
idvalue.TextSize = 24
273
274
play.Name = "play"
275
play.Parent = Frame
276
play.BackgroundColor3 = Color3.new(0.666667, 1, 1)
277
play.BackgroundTransparency = 0.44999998807907
278
play.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
279
play.BorderSizePixel = 3
280
play.Position = UDim2.new(0, 9, 0, 82)
281
play.Size = UDim2.new(0, 117, 0, 50)
282
play.Font = Enum.Font.SourceSans
283
play.FontSize = Enum.FontSize.Size28
284
play.Text = "Play"
285
play.TextSize = 28
286
287
volume.Name = "volume"
288
volume.Parent = Frame
289
volume.BackgroundColor3 = Color3.new(0.666667, 1, 1)
290
volume.BackgroundTransparency = 0.44999998807907
291
volume.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
292
volume.BorderSizePixel = 3
293
volume.Position = UDim2.new(0, 151, 0, 82)
294
volume.Size = UDim2.new(0, 117, 0, 50)
295
volume.Font = Enum.Font.SourceSans
296
volume.FontSize = Enum.FontSize.Size28
297
volume.Text = "Volume"
298
volume.TextSize = 28
299
300
pitch.Name = "pitch"
301
pitch.Parent = Frame
302
pitch.BackgroundColor3 = Color3.new(0.666667, 1, 1)
303
pitch.BackgroundTransparency = 0.44999998807907
304
pitch.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
305
pitch.BorderSizePixel = 3
306
pitch.Position = UDim2.new(0, 291, 0, 82)
307
pitch.Size = UDim2.new(0, 117, 0, 50)
308
pitch.Font = Enum.Font.SourceSans
309
pitch.FontSize = Enum.FontSize.Size28
310
pitch.Text = "Pitch"
311
pitch.TextSize = 28
312
313
close.Name = "close"
314
close.Parent = Frame
315
close.BackgroundColor3 = Color3.new(1, 0, 0.0156863)
316
close.BackgroundTransparency = 0.40000000596046
317
close.Position = UDim2.new(0, 393, 0, 190)
318
close.Size = UDim2.new(0, 25, 0, 23)
319
close.Font = Enum.Font.SourceSans
320
close.FontSize = Enum.FontSize.Size28
321
close.Text = "X"
322
close.TextSize = 28
323
324
min.Name = "min"
325
min.Parent = Frame
326
min.BackgroundColor3 = Color3.new(0.286275, 0.286275, 1)
327
min.BackgroundTransparency = 0.40000000596046
328
min.Position = UDim2.new(0, 357, 0, 190)
329
min.Size = UDim2.new(0, 25, 0, 23)
330
min.Font = Enum.Font.SourceSans
331
min.FontSize = Enum.FontSize.Size36
332
min.Text = "-"
333
min.TextSize = 36
334
335
credits.Name = "credits"
336
credits.Parent = Frame
337
credits.BackgroundColor3 = Color3.new(1, 1, 1)
338
credits.BackgroundTransparency = 1
339
credits.Position = UDim2.new(0, 0, 0, 161)
340
credits.Size = UDim2.new(0, 200, 0, 52)
341
credits.Font = Enum.Font.SourceSans
342
credits.FontSize = Enum.FontSize.Size14
343
credits.Text = "credits to mr steal yo bork for gui, i didn't make the visualizer credits to whoever leaked it or made it."
344
credits.TextSize = 14
345
credits.TextWrapped = true
346
347
open.Name = "open"
348
open.Parent = visualizergui
349
open.BackgroundColor3 = Color3.new(0.666667, 1, 1)
350
open.BackgroundTransparency = 0.44999998807907
351
open.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
352
open.BorderSizePixel = 3
353
open.Position = UDim2.new(0, 0, 0, 400)
354
open.Size = UDim2.new(0, 59, 0, 50)
355
open.Font = Enum.Font.SourceSans
356
open.FontSize = Enum.FontSize.Size28
357
open.Text = "Open"
358
open.TextSize = 28
359
open.Visible = false
360
361
set2.Name = "set2"
362
set2.Parent = Frame
363
set2.BackgroundColor3 = Color3.new(0.666667, 1, 1)
364
set2.BackgroundTransparency = 0.44999998807907
365
set2.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
366
set2.BorderSizePixel = 3
367
set2.Position = UDim2.new(0, 325, 0, 136)
368
set2.Size = UDim2.new(0, 55, 0, 25)
369
set2.Font = Enum.Font.SourceSans
370
set2.FontSize = Enum.FontSize.Size24
371
set2.Text = "Set"
372
set2.TextSize = 24
373
set2.TextWrapped = true
374
375
set1.Name = "set1"
376
set1.Parent = Frame
377
set1.BackgroundColor3 = Color3.new(0.666667, 1, 1)
378
set1.BackgroundTransparency = 0.44999998807907
379
set1.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
380
set1.BorderSizePixel = 3
381
set1.Position = UDim2.new(0, 181, 0, 136)
382
set1.Size = UDim2.new(0, 55, 0, 25)
383
set1.Font = Enum.Font.SourceSans
384
set1.FontSize = Enum.FontSize.Size24
385
set1.Text = "Set"
386
set1.TextSize = 24
387
set1.TextWrapped = true
388
389
loop.Name = "loop"
390
loop.Parent = Frame
391
loop.BackgroundColor3 = Color3.new(0.666667, 1, 1)
392
loop.BackgroundTransparency = 0.44999998807907
393
loop.BorderColor3 = Color3.new(0.207843, 0.0901961, 0.0705882)
394
loop.BorderSizePixel = 3
395
loop.Position = UDim2.new(0, 241, 0, 188)
396
loop.Size = UDim2.new(0, 84, 0, 25)
397
loop.Font = Enum.Font.SourceSans
398
loop.FontSize = Enum.FontSize.Size18
399
loop.Text = "Loop : OFF"
400
loop.TextSize = 18
401
loop.TextWrapped = true
402
403
-- functions
404
function start()
405
wait(0.5)
406
Frame.Position = UDim2.new(0, -500, 0, 400)
407
Frame.Visible = true
408
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
409
end
410
411
if owner.Character then
412
start()
413
else 
414
print'character not found plz try again XD'
415
end
416
417
function minimize()
418
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
419
credits.Text = ""
420
min.Text = ""
421
close.Text = ""
422
play.Text = ""
423
pitch.Text = ""
424
volume.Text = ""
425
idvalue.Text = ""
426
set1.Text = ""
427
set2.Text = ""
428
loop.Text = ""
429
Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
430
credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
431
min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
432
close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
433
idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
434
volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
435
play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
436
pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
437
loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
438
set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
439
set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
440
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
441
   wait(0.5)
442
Frame.Visible = false
443
open.Visible = true
444
end
445
446
function show()
447
open.Visible = false
448
Frame.Position = UDim2.new(0, -500, 0, 400)
449
Frame.Visible = true
450
credits.Text = "credits to me for gui, i didn't make the visualizer credits to whoever leaked it or made it."
451
min.Text = "-"
452
close.Text = "X"
453
play.Text = "Play"
454
pitch.Text = "Pitch"
455
volume.Text = "Volume"
456
idvalue.Text = "Put ID plz"
457
set1.Text = "Set"
458
set2.Text = "Set" 
459
loop.Text = "Loop : OFF"
460
Frame:TweenSize(UDim2.new(0, 418, 0, 213),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
461
credits:TweenSize(UDim2.new(0, 200, 0, 52),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
462
min:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
463
close:TweenSize(UDim2.new(0, 25, 0, 23),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
464
idvalue:TweenSize(UDim2.new(0, 418, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
465
volume:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
466
play:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
467
pitch:TweenSize(UDim2.new(0, 117, 0, 50),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
468
set1:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
469
loop:TweenSize(UDim2.new(0, 84, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
470
set2:TweenSize(UDim2.new(0, 55, 0, 25),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
471
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint, 0.5)
472
end
473
474
function exitdatshit()
475
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,1)
476
credits.Text = ""
477
min.Text = ""
478
close.Text = ""
479
play.Text = ""
480
pitch.Text = ""
481
volume.Text = ""
482
idvalue.Text = ""
483
Frame:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
484
credits:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
485
min:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
486
close:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
487
idvalue:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
488
volume:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
489
play:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
490
pitch:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
491
set1:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
492
set2:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
493
loop:TweenSize(UDim2.new(0, 0, 0, 0),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
494
Frame:TweenPosition(UDim2.new(0, 0, 0, 400),Enum.EasingDirection.InOut,Enum.EasingStyle.Quint,0.5)
495
wait(0.5)
496
   visualizergui:Destroy()
497
end
498
499
-- events
500
wait(1)
501
min.MouseButton1Down:connect(function()
502
minimize()
503
end)
504
505
open.MouseButton1Down:connect(function()
506
show()
507
end)
508
509
close.MouseButton1Down:connect(function()
510
exitdatshit()
511
end)
512
513
set1.MouseButton1Down:connect(function()
514
sound.Volume = volume.Text
515
end)
516
517
set2.MouseButton1Down:connect(function()
518
sound.Pitch = pitch.Text
519
end)
520
521
play.MouseButton1Down:connect(function()
522
sound.TimePosition = 0
523
sound.SoundId = "rbxassetid://" .. idvalue.Text
524
end)
525
526
loop.MouseButton1Down:connect(function()
527
if loop.Text == "Loop : OFF" then
528
sound.Looped = true
529
loop.Text = "Loop : ON"
530
else
531
sound.Looped = false
532
loop.Text = "Loop : OFF"
533
end
534
end)