View difference between Paste ID: hJKCVeR1 and ZBM4AttP
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
wait()
84
for i,v in pairs(game.Workspace:GetChildren()) do
85
	if v.Name == "Soundbar" then
86
		v:Destroy()
87
	end
88
end
89
local runDummyScript = function(f,scri)
90
local oldenv = getfenv(f)
91
local newenv = setmetatable({}, {
92
__index = function(_, k)
93
if k:lower() == 'script' then
94
return scri
95
else
96
return oldenv[k]
97
end
98
end
99
})
100
setfenv(f, newenv)
101
ypcall(function() f() end)
102
end
103
function cycle(num)
104
	local section=num % 1 * 3;
105
	local secondary=0.5 * math.pi * (section % 1);
106
	if section < 1 then
107
		return 1,1 - math.cos(secondary),1 - math.sin(secondary);
108
	elseif section < 2 then
109
		return 1 - math.sin(secondary),1,1 - math.cos(secondary);
110
	else
111
		return 1 - math.cos(secondary),1 - math.sin(secondary),1;
112
	end
113
end
114
cors = {}
115
mas = Instance.new("Model",game:GetService("Lighting")) 
116
mas.Name = "CompiledModel"
117
o1 = Instance.new("Model")
118
o1.Name = "Soundbar"
119
o1.Parent = mas
120
o2 = Instance.new("Part")
121
o2.Name = "0"
122
o2.Parent = o1
123
o2.Position = Vector3.new(9.5, 0.200000018, 0)
124
o2.Anchored = true
125
o2.CFrame = CFrame.new(9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
126
o2.CanCollide = false
127
o2.Size = Vector3.new(0.5, 0.200000003, 0.5)
128
o2.BottomSurface = Enum.SurfaceType.Smooth
129
o2.TopSurface = Enum.SurfaceType.Smooth
130
o3 = Instance.new("SpecialMesh")
131
o3.Parent = o2
132
o3.MeshId = "rbxassetid://9856898"
133
o3.Scale = Vector3.new(1, 0.400000006, 1)
134
o3.TextureId = "rbxassetid://2114473"
135
o3.MeshType = Enum.MeshType.FileMesh
136
o4 = Instance.new("Part")
137
o4.Name = "9"
138
o4.Parent = o1
139
o4.Position = Vector3.new(5, 0.200000018, 0)
140
o4.Anchored = true
141
o4.CFrame = CFrame.new(5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
142
o4.CanCollide = false
143
o4.Size = Vector3.new(0.5, 0.200000003, 0.5)
144
o4.BottomSurface = Enum.SurfaceType.Smooth
145
o4.TopSurface = Enum.SurfaceType.Smooth
146
o5 = Instance.new("SpecialMesh")
147
o5.Parent = o4
148
o5.MeshId = "rbxassetid://9856898"
149
o5.Scale = Vector3.new(1, 0.400000006, 1)
150
o5.TextureId = "rbxassetid://2114473"
151
o5.MeshType = Enum.MeshType.FileMesh
152
o6 = Instance.new("Part")
153
o6.Name = "10"
154
o6.Parent = o1
155
o6.Position = Vector3.new(4.5, 0.200000018, 0)
156
o6.Anchored = true
157
o6.CFrame = CFrame.new(4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
158
o6.CanCollide = false
159
o6.Size = Vector3.new(0.5, 0.200000003, 0.5)
160
o6.BottomSurface = Enum.SurfaceType.Smooth
161
o6.TopSurface = Enum.SurfaceType.Smooth
162
o7 = Instance.new("SpecialMesh")
163
o7.Parent = o6
164
o7.MeshId = "rbxassetid://9856898"
165
o7.Scale = Vector3.new(1, 0.400000006, 1)
166
o7.TextureId = "rbxassetid://2114473"
167
o7.MeshType = Enum.MeshType.FileMesh
168
o8 = Instance.new("Part")
169
o8.Name = "11"
170
o8.Parent = o1
171
o8.Position = Vector3.new(4, 0.200000018, 0)
172
o8.Anchored = true
173
o8.CFrame = CFrame.new(4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
174
o8.CanCollide = false
175
o8.Size = Vector3.new(0.5, 0.200000003, 0.5)
176
o8.BottomSurface = Enum.SurfaceType.Smooth
177
o8.TopSurface = Enum.SurfaceType.Smooth
178
o9 = Instance.new("SpecialMesh")
179
o9.Parent = o8
180
o9.MeshId = "rbxassetid://9856898"
181
o9.Scale = Vector3.new(1, 0.400000006, 1)
182
o9.TextureId = "rbxassetid://2114473"
183
o9.MeshType = Enum.MeshType.FileMesh
184
o10 = Instance.new("Part")
185
o10.Name = "12"
186
o10.Parent = o1
187
o10.Position = Vector3.new(3.5, 0.200000018, 0)
188
o10.Anchored = true
189
o10.CFrame = CFrame.new(3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
190
o10.CanCollide = false
191
o10.Size = Vector3.new(0.5, 0.200000003, 0.5)
192
o10.BottomSurface = Enum.SurfaceType.Smooth
193
o10.TopSurface = Enum.SurfaceType.Smooth
194
o11 = Instance.new("SpecialMesh")
195
o11.Parent = o10
196
o11.MeshId = "rbxassetid://9856898"
197
o11.Scale = Vector3.new(1, 0.400000006, 1)
198
o11.TextureId = "rbxassetid://2114473"
199
o11.MeshType = Enum.MeshType.FileMesh
200
o12 = Instance.new("Part")
201
o12.Name = "13"
202
o12.Parent = o1
203
o12.Position = Vector3.new(3, 0.200000018, 0)
204
o12.Anchored = true
205
o12.CFrame = CFrame.new(3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
206
o12.CanCollide = false
207
o12.Size = Vector3.new(0.5, 0.200000003, 0.5)
208
o12.BottomSurface = Enum.SurfaceType.Smooth
209
o12.TopSurface = Enum.SurfaceType.Smooth
210
o13 = Instance.new("SpecialMesh")
211
o13.Parent = o12
212
o13.MeshId = "rbxassetid://9856898"
213
o13.Scale = Vector3.new(1, 0.400000006, 1)
214
o13.TextureId = "rbxassetid://2114473"
215
o13.MeshType = Enum.MeshType.FileMesh
216
o14 = Instance.new("Part")
217
o14.Name = "1"
218
o14.Parent = o1
219
o14.Position = Vector3.new(9, 0.200000018, 0)
220
o14.Anchored = true
221
o14.CFrame = CFrame.new(9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
222
o14.CanCollide = false
223
o14.Size = Vector3.new(0.5, 0.200000003, 0.5)
224
o14.BottomSurface = Enum.SurfaceType.Smooth
225
o14.TopSurface = Enum.SurfaceType.Smooth
226
o15 = Instance.new("SpecialMesh")
227
o15.Parent = o14
228
o15.MeshId = "rbxassetid://9856898"
229
o15.Scale = Vector3.new(1, 0.400000006, 1)
230
o15.TextureId = "rbxassetid://2114473"
231
o15.MeshType = Enum.MeshType.FileMesh
232
o16 = Instance.new("Part")
233
o16.Name = "19"
234
o16.Parent = o1
235
o16.Position = Vector3.new(0, 0.200000018, 0)
236
o16.Anchored = true
237
o16.CFrame = CFrame.new(0, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
238
o16.CanCollide = false
239
o16.Size = Vector3.new(0.5, 0.200000003, 0.5)
240
o16.BottomSurface = Enum.SurfaceType.Smooth
241
o16.TopSurface = Enum.SurfaceType.Smooth
242
o17 = Instance.new("SpecialMesh")
243
o17.Parent = o16
244
o17.MeshId = "rbxassetid://9856898"
245
o17.Scale = Vector3.new(1, 0.400000006, 1)
246
o17.TextureId = "rbxassetid://2114473"
247
o17.MeshType = Enum.MeshType.FileMesh
248
o18 = Instance.new("Part")
249
o18.Name = "20"
250
o18.Parent = o1
251
o18.Position = Vector3.new(-0.5, 0.200000018, 0)
252
o18.Anchored = true
253
o18.CFrame = CFrame.new(-0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
254
o18.CanCollide = false
255
o18.Size = Vector3.new(0.5, 0.200000003, 0.5)
256
o18.BottomSurface = Enum.SurfaceType.Smooth
257
o18.TopSurface = Enum.SurfaceType.Smooth
258
o19 = Instance.new("SpecialMesh")
259
o19.Parent = o18
260
o19.MeshId = "rbxassetid://9856898"
261
o19.Scale = Vector3.new(1, 0.400000006, 1)
262
o19.TextureId = "rbxassetid://2114473"
263
o19.MeshType = Enum.MeshType.FileMesh
264
o20 = Instance.new("Part")
265
o20.Name = "21"
266
o20.Parent = o1
267
o20.Position = Vector3.new(-1, 0.200000018, 0)
268
o20.Anchored = true
269
o20.CFrame = CFrame.new(-1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
270
o20.CanCollide = false
271
o20.Size = Vector3.new(0.5, 0.200000003, 0.5)
272
o20.BottomSurface = Enum.SurfaceType.Smooth
273
o20.TopSurface = Enum.SurfaceType.Smooth
274
o21 = Instance.new("SpecialMesh")
275
o21.Parent = o20
276
o21.MeshId = "rbxassetid://9856898"
277
o21.Scale = Vector3.new(1, 0.400000006, 1)
278
o21.TextureId = "rbxassetid://2114473"
279
o21.MeshType = Enum.MeshType.FileMesh
280
o22 = Instance.new("Part")
281
o22.Name = "22"
282
o22.Parent = o1
283
o22.Position = Vector3.new(-1.5, 0.200000018, 0)
284
o22.Anchored = true
285
o22.CFrame = CFrame.new(-1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
286
o22.CanCollide = false
287
o22.Size = Vector3.new(0.5, 0.200000003, 0.5)
288
o22.BottomSurface = Enum.SurfaceType.Smooth
289
o22.TopSurface = Enum.SurfaceType.Smooth
290
o23 = Instance.new("SpecialMesh")
291
o23.Parent = o22
292
o23.MeshId = "rbxassetid://9856898"
293
o23.Scale = Vector3.new(1, 0.400000006, 1)
294
o23.TextureId = "rbxassetid://2114473"
295
o23.MeshType = Enum.MeshType.FileMesh
296
o24 = Instance.new("Part")
297
o24.Name = "23"
298
o24.Parent = o1
299
o24.Position = Vector3.new(-2, 0.200000018, 0)
300
o24.Anchored = true
301
o24.CFrame = CFrame.new(-2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
302
o24.CanCollide = false
303
o24.Size = Vector3.new(0.5, 0.200000003, 0.5)
304
o24.BottomSurface = Enum.SurfaceType.Smooth
305
o24.TopSurface = Enum.SurfaceType.Smooth
306
o25 = Instance.new("SpecialMesh")
307
o25.Parent = o24
308
o25.MeshId = "rbxassetid://9856898"
309
o25.Scale = Vector3.new(1, 0.400000006, 1)
310
o25.TextureId = "rbxassetid://2114473"
311
o25.MeshType = Enum.MeshType.FileMesh
312
o26 = Instance.new("Part")
313
o26.Name = "2"
314
o26.Parent = o1
315
o26.Position = Vector3.new(8.5, 0.200000018, 0)
316
o26.Anchored = true
317
o26.CFrame = CFrame.new(8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
318
o26.CanCollide = false
319
o26.Size = Vector3.new(0.5, 0.200000003, 0.5)
320
o26.BottomSurface = Enum.SurfaceType.Smooth
321
o26.TopSurface = Enum.SurfaceType.Smooth
322
o27 = Instance.new("SpecialMesh")
323
o27.Parent = o26
324
o27.MeshId = "rbxassetid://9856898"
325
o27.Scale = Vector3.new(1, 0.400000006, 1)
326
o27.TextureId = "rbxassetid://2114473"
327
o27.MeshType = Enum.MeshType.FileMesh
328
o28 = Instance.new("Part")
329
o28.Name = "29"
330
o28.Parent = o1
331
o28.Position = Vector3.new(-5, 0.200000018, 0)
332
o28.Anchored = true
333
o28.CFrame = CFrame.new(-5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
334
o28.CanCollide = false
335
o28.Size = Vector3.new(0.5, 0.200000003, 0.5)
336
o28.BottomSurface = Enum.SurfaceType.Smooth
337
o28.TopSurface = Enum.SurfaceType.Smooth
338
o29 = Instance.new("SpecialMesh")
339
o29.Parent = o28
340
o29.MeshId = "rbxassetid://9856898"
341
o29.Scale = Vector3.new(1, 0.400000006, 1)
342
o29.TextureId = "rbxassetid://2114473"
343
o29.MeshType = Enum.MeshType.FileMesh
344
o30 = Instance.new("Part")
345
o30.Name = "30"
346
o30.Parent = o1
347
o30.Position = Vector3.new(-5.5, 0.200000018, 0)
348
o30.Anchored = true
349
o30.CFrame = CFrame.new(-5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
350
o30.CanCollide = false
351
o30.Size = Vector3.new(0.5, 0.200000003, 0.5)
352
o30.BottomSurface = Enum.SurfaceType.Smooth
353
o30.TopSurface = Enum.SurfaceType.Smooth
354
o31 = Instance.new("SpecialMesh")
355
o31.Parent = o30
356
o31.MeshId = "rbxassetid://9856898"
357
o31.Scale = Vector3.new(1, 0.400000006, 1)
358
o31.TextureId = "rbxassetid://2114473"
359
o31.MeshType = Enum.MeshType.FileMesh
360
o32 = Instance.new("Part")
361
o32.Name = "31"
362
o32.Parent = o1
363
o32.Position = Vector3.new(-6, 0.200000018, 0)
364
o32.Anchored = true
365
o32.CFrame = CFrame.new(-6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
366
o32.CanCollide = false
367
o32.Size = Vector3.new(0.5, 0.200000003, 0.5)
368
o32.BottomSurface = Enum.SurfaceType.Smooth
369
o32.TopSurface = Enum.SurfaceType.Smooth
370
o33 = Instance.new("SpecialMesh")
371
o33.Parent = o32
372
o33.MeshId = "rbxassetid://9856898"
373
o33.Scale = Vector3.new(1, 0.400000006, 1)
374
o33.TextureId = "rbxassetid://2114473"
375
o33.MeshType = Enum.MeshType.FileMesh
376
o34 = Instance.new("Part")
377
o34.Name = "32"
378
o34.Parent = o1
379
o34.Position = Vector3.new(-6.5, 0.200000018, 0)
380
o34.Anchored = true
381
o34.CFrame = CFrame.new(-6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
382
o34.CanCollide = false
383
o34.Size = Vector3.new(0.5, 0.200000003, 0.5)
384
o34.BottomSurface = Enum.SurfaceType.Smooth
385
o34.TopSurface = Enum.SurfaceType.Smooth
386
o35 = Instance.new("SpecialMesh")
387
o35.Parent = o34
388
o35.MeshId = "rbxassetid://9856898"
389
o35.Scale = Vector3.new(1, 0.400000006, 1)
390
o35.TextureId = "rbxassetid://2114473"
391
o35.MeshType = Enum.MeshType.FileMesh
392
o36 = Instance.new("Part")
393
o36.Name = "33"
394
o36.Parent = o1
395
o36.Position = Vector3.new(-7, 0.200000018, 0)
396
o36.Anchored = true
397
o36.CFrame = CFrame.new(-7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
398
o36.CanCollide = false
399
o36.Size = Vector3.new(0.5, 0.200000003, 0.5)
400
o36.BottomSurface = Enum.SurfaceType.Smooth
401
o36.TopSurface = Enum.SurfaceType.Smooth
402
o37 = Instance.new("SpecialMesh")
403
o37.Parent = o36
404
o37.MeshId = "rbxassetid://9856898"
405
o37.Scale = Vector3.new(1, 0.400000006, 1)
406
o37.TextureId = "rbxassetid://2114473"
407
o37.MeshType = Enum.MeshType.FileMesh
408
o38 = Instance.new("Part")
409
o38.Name = "3"
410
o38.Parent = o1
411
o38.Position = Vector3.new(8, 0.200000018, 0)
412
o38.Anchored = true
413
o38.CFrame = CFrame.new(8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
414
o38.CanCollide = false
415
o38.Size = Vector3.new(0.5, 0.200000003, 0.5)
416
o38.BottomSurface = Enum.SurfaceType.Smooth
417
o38.TopSurface = Enum.SurfaceType.Smooth
418
o39 = Instance.new("SpecialMesh")
419
o39.Parent = o38
420
o39.MeshId = "rbxassetid://9856898"
421
o39.Scale = Vector3.new(1, 0.400000006, 1)
422
o39.TextureId = "rbxassetid://2114473"
423
o39.MeshType = Enum.MeshType.FileMesh
424
o40 = Instance.new("Part")
425
o40.Name = "14"
426
o40.Parent = o1
427
o40.Position = Vector3.new(2.5, 0.200000018, 0)
428
o40.Anchored = true
429
o40.CFrame = CFrame.new(2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
430
o40.CanCollide = false
431
o40.Size = Vector3.new(0.5, 0.200000003, 0.5)
432
o40.BottomSurface = Enum.SurfaceType.Smooth
433
o40.TopSurface = Enum.SurfaceType.Smooth
434
o41 = Instance.new("SpecialMesh")
435
o41.Parent = o40
436
o41.MeshId = "rbxassetid://9856898"
437
o41.Scale = Vector3.new(1, 0.400000006, 1)
438
o41.TextureId = "rbxassetid://2114473"
439
o41.MeshType = Enum.MeshType.FileMesh
440
o42 = Instance.new("Part")
441
o42.Name = "24"
442
o42.Parent = o1
443
o42.Position = Vector3.new(-2.5, 0.200000018, 0)
444
o42.Anchored = true
445
o42.CFrame = CFrame.new(-2.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
446
o42.CanCollide = false
447
o42.Size = Vector3.new(0.5, 0.200000003, 0.5)
448
o42.BottomSurface = Enum.SurfaceType.Smooth
449
o42.TopSurface = Enum.SurfaceType.Smooth
450
o43 = Instance.new("SpecialMesh")
451
o43.Parent = o42
452
o43.MeshId = "rbxassetid://9856898"
453
o43.Scale = Vector3.new(1, 0.400000006, 1)
454
o43.TextureId = "rbxassetid://2114473"
455
o43.MeshType = Enum.MeshType.FileMesh
456
o44 = Instance.new("Part")
457
o44.Name = "4"
458
o44.Parent = o1
459
o44.Position = Vector3.new(7.5, 0.200000018, 0)
460
o44.Anchored = true
461
o44.CFrame = CFrame.new(7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
462
o44.CanCollide = false
463
o44.Size = Vector3.new(0.5, 0.200000003, 0.5)
464
o44.BottomSurface = Enum.SurfaceType.Smooth
465
o44.TopSurface = Enum.SurfaceType.Smooth
466
o45 = Instance.new("SpecialMesh")
467
o45.Parent = o44
468
o45.MeshId = "rbxassetid://9856898"
469
o45.Scale = Vector3.new(1, 0.400000006, 1)
470
o45.TextureId = "rbxassetid://2114473"
471
o45.MeshType = Enum.MeshType.FileMesh
472
o46 = Instance.new("Part")
473
o46.Name = "34"
474
o46.Parent = o1
475
o46.Position = Vector3.new(-7.5, 0.200000018, 0)
476
o46.Anchored = true
477
o46.CFrame = CFrame.new(-7.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
478
o46.CanCollide = false
479
o46.Size = Vector3.new(0.5, 0.200000003, 0.5)
480
o46.BottomSurface = Enum.SurfaceType.Smooth
481
o46.TopSurface = Enum.SurfaceType.Smooth
482
o47 = Instance.new("SpecialMesh")
483
o47.Parent = o46
484
o47.MeshId = "rbxassetid://9856898"
485
o47.Scale = Vector3.new(1, 0.400000006, 1)
486
o47.TextureId = "rbxassetid://2114473"
487
o47.MeshType = Enum.MeshType.FileMesh
488
o48 = Instance.new("Part")
489
o48.Name = "15"
490
o48.Parent = o1
491
o48.Position = Vector3.new(2, 0.200000018, 0)
492
o48.Anchored = true
493
o48.CFrame = CFrame.new(2, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
494
o48.CanCollide = false
495
o48.Size = Vector3.new(0.5, 0.200000003, 0.5)
496
o48.BottomSurface = Enum.SurfaceType.Smooth
497
o48.TopSurface = Enum.SurfaceType.Smooth
498
o49 = Instance.new("SpecialMesh")
499
o49.Parent = o48
500
o49.MeshId = "rbxassetid://9856898"
501
o49.Scale = Vector3.new(1, 0.400000006, 1)
502
o49.TextureId = "rbxassetid://2114473"
503
o49.MeshType = Enum.MeshType.FileMesh
504
o50 = Instance.new("Part")
505
o50.Name = "25"
506
o50.Parent = o1
507
o50.Position = Vector3.new(-3, 0.200000018, 0)
508
o50.Anchored = true
509
o50.CFrame = CFrame.new(-3, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
510
o50.CanCollide = false
511
o50.Size = Vector3.new(0.5, 0.200000003, 0.5)
512
o50.BottomSurface = Enum.SurfaceType.Smooth
513
o50.TopSurface = Enum.SurfaceType.Smooth
514
o51 = Instance.new("SpecialMesh")
515
o51.Parent = o50
516
o51.MeshId = "rbxassetid://9856898"
517
o51.Scale = Vector3.new(1, 0.400000006, 1)
518
o51.TextureId = "rbxassetid://2114473"
519
o51.MeshType = Enum.MeshType.FileMesh
520
o52 = Instance.new("Part")
521
o52.Name = "5"
522
o52.Parent = o1
523
o52.Position = Vector3.new(7, 0.200000018, 0)
524
o52.Anchored = true
525
o52.CFrame = CFrame.new(7, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
526
o52.CanCollide = false
527
o52.Size = Vector3.new(0.5, 0.200000003, 0.5)
528
o52.BottomSurface = Enum.SurfaceType.Smooth
529
o52.TopSurface = Enum.SurfaceType.Smooth
530
o53 = Instance.new("SpecialMesh")
531
o53.Parent = o52
532
o53.MeshId = "rbxassetid://9856898"
533
o53.Scale = Vector3.new(1, 0.400000006, 1)
534
o53.TextureId = "rbxassetid://2114473"
535
o53.MeshType = Enum.MeshType.FileMesh
536
o54 = Instance.new("Part")
537
o54.Name = "35"
538
o54.Parent = o1
539
o54.Position = Vector3.new(-8, 0.200000018, 0)
540
o54.Anchored = true
541
o54.CFrame = CFrame.new(-8, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
542
o54.CanCollide = false
543
o54.Size = Vector3.new(0.5, 0.200000003, 0.5)
544
o54.BottomSurface = Enum.SurfaceType.Smooth
545
o54.TopSurface = Enum.SurfaceType.Smooth
546
o55 = Instance.new("SpecialMesh")
547
o55.Parent = o54
548
o55.MeshId = "rbxassetid://9856898"
549
o55.Scale = Vector3.new(1, 0.400000006, 1)
550
o55.TextureId = "rbxassetid://2114473"
551
o55.MeshType = Enum.MeshType.FileMesh
552
o56 = Instance.new("Part")
553
o56.Name = "16"
554
o56.Parent = o1
555
o56.Position = Vector3.new(1.5, 0.200000018, 0)
556
o56.Anchored = true
557
o56.CFrame = CFrame.new(1.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
558
o56.CanCollide = false
559
o56.Size = Vector3.new(0.5, 0.200000003, 0.5)
560
o56.BottomSurface = Enum.SurfaceType.Smooth
561
o56.TopSurface = Enum.SurfaceType.Smooth
562
o57 = Instance.new("SpecialMesh")
563
o57.Parent = o56
564
o57.MeshId = "rbxassetid://9856898"
565
o57.Scale = Vector3.new(1, 0.400000006, 1)
566
o57.TextureId = "rbxassetid://2114473"
567
o57.MeshType = Enum.MeshType.FileMesh
568
o58 = Instance.new("Part")
569
o58.Name = "6"
570
o58.Parent = o1
571
o58.Position = Vector3.new(6.5, 0.200000018, 0)
572
o58.Anchored = true
573
o58.CFrame = CFrame.new(6.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
574
o58.CanCollide = false
575
o58.Size = Vector3.new(0.5, 0.200000003, 0.5)
576
o58.BottomSurface = Enum.SurfaceType.Smooth
577
o58.TopSurface = Enum.SurfaceType.Smooth
578
o59 = Instance.new("SpecialMesh")
579
o59.Parent = o58
580
o59.MeshId = "rbxassetid://9856898"
581
o59.Scale = Vector3.new(1, 0.400000006, 1)
582
o59.TextureId = "rbxassetid://2114473"
583
o59.MeshType = Enum.MeshType.FileMesh
584
o60 = Instance.new("Part")
585
o60.Name = "26"
586
o60.Parent = o1
587
o60.Position = Vector3.new(-3.5, 0.200000018, 0)
588
o60.Anchored = true
589
o60.CFrame = CFrame.new(-3.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
590
o60.CanCollide = false
591
o60.Size = Vector3.new(0.5, 0.200000003, 0.5)
592
o60.BottomSurface = Enum.SurfaceType.Smooth
593
o60.TopSurface = Enum.SurfaceType.Smooth
594
o61 = Instance.new("SpecialMesh")
595
o61.Parent = o60
596
o61.MeshId = "rbxassetid://9856898"
597
o61.Scale = Vector3.new(1, 0.400000006, 1)
598
o61.TextureId = "rbxassetid://2114473"
599
o61.MeshType = Enum.MeshType.FileMesh
600
o62 = Instance.new("Part")
601
o62.Name = "36"
602
o62.Parent = o1
603
o62.Position = Vector3.new(-8.5, 0.200000018, 0)
604
o62.Anchored = true
605
o62.CFrame = CFrame.new(-8.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
606
o62.CanCollide = false
607
o62.Size = Vector3.new(0.5, 0.200000003, 0.5)
608
o62.BottomSurface = Enum.SurfaceType.Smooth
609
o62.TopSurface = Enum.SurfaceType.Smooth
610
o63 = Instance.new("SpecialMesh")
611
o63.Parent = o62
612
o63.MeshId = "rbxassetid://9856898"
613
o63.Scale = Vector3.new(1, 0.400000006, 1)
614
o63.TextureId = "rbxassetid://2114473"
615
o63.MeshType = Enum.MeshType.FileMesh
616
o64 = Instance.new("Part")
617
o64.Name = "17"
618
o64.Parent = o1
619
o64.Position = Vector3.new(1, 0.200000018, 0)
620
o64.Anchored = true
621
o64.CFrame = CFrame.new(1, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
622
o64.CanCollide = false
623
o64.Size = Vector3.new(0.5, 0.200000003, 0.5)
624
o64.BottomSurface = Enum.SurfaceType.Smooth
625
o64.TopSurface = Enum.SurfaceType.Smooth
626
o65 = Instance.new("SpecialMesh")
627
o65.Parent = o64
628
o65.MeshId = "rbxassetid://9856898"
629
o65.Scale = Vector3.new(1, 0.400000006, 1)
630
o65.TextureId = "rbxassetid://2114473"
631
o65.MeshType = Enum.MeshType.FileMesh
632
o66 = Instance.new("Part")
633
o66.Name = "27"
634
o66.Parent = o1
635
o66.Position = Vector3.new(-4, 0.200000018, 0)
636
o66.Anchored = true
637
o66.CFrame = CFrame.new(-4, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
638
o66.CanCollide = false
639
o66.Size = Vector3.new(0.5, 0.200000003, 0.5)
640
o66.BottomSurface = Enum.SurfaceType.Smooth
641
o66.TopSurface = Enum.SurfaceType.Smooth
642
o67 = Instance.new("SpecialMesh")
643
o67.Parent = o66
644
o67.MeshId = "rbxassetid://9856898"
645
o67.Scale = Vector3.new(1, 0.400000006, 1)
646
o67.TextureId = "rbxassetid://2114473"
647
o67.MeshType = Enum.MeshType.FileMesh
648
o68 = Instance.new("Part")
649
o68.Name = "7"
650
o68.Parent = o1
651
o68.Position = Vector3.new(6, 0.200000018, 0)
652
o68.Anchored = true
653
o68.CFrame = CFrame.new(6, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
654
o68.CanCollide = false
655
o68.Size = Vector3.new(0.5, 0.200000003, 0.5)
656
o68.BottomSurface = Enum.SurfaceType.Smooth
657
o68.TopSurface = Enum.SurfaceType.Smooth
658
o69 = Instance.new("SpecialMesh")
659
o69.Parent = o68
660
o69.MeshId = "rbxassetid://9856898"
661
o69.Scale = Vector3.new(1, 0.400000006, 1)
662
o69.TextureId = "rbxassetid://2114473"
663
o69.MeshType = Enum.MeshType.FileMesh
664
o70 = Instance.new("Part")
665
o70.Name = "37"
666
o70.Parent = o1
667
o70.Position = Vector3.new(-9, 0.200000018, 0)
668
o70.Anchored = true
669
o70.CFrame = CFrame.new(-9, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
670
o70.CanCollide = false
671
o70.Size = Vector3.new(0.5, 0.200000003, 0.5)
672
o70.BottomSurface = Enum.SurfaceType.Smooth
673
o70.TopSurface = Enum.SurfaceType.Smooth
674
o71 = Instance.new("SpecialMesh")
675
o71.Parent = o70
676
o71.MeshId = "rbxassetid://9856898"
677
o71.Scale = Vector3.new(1, 0.400000006, 1)
678
o71.TextureId = "rbxassetid://2114473"
679
o71.MeshType = Enum.MeshType.FileMesh
680
o72 = Instance.new("Part")
681
o72.Name = "8"
682
o72.Parent = o1
683
o72.Position = Vector3.new(5.5, 0.200000018, 0)
684
o72.Anchored = true
685
o72.CFrame = CFrame.new(5.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
686
o72.CanCollide = false
687
o72.Size = Vector3.new(0.5, 0.200000003, 0.5)
688
o72.BottomSurface = Enum.SurfaceType.Smooth
689
o72.TopSurface = Enum.SurfaceType.Smooth
690
o73 = Instance.new("SpecialMesh")
691
o73.Parent = o72
692
o73.MeshId = "rbxassetid://9856898"
693
o73.Scale = Vector3.new(1, 0.400000006, 1)
694
o73.TextureId = "rbxassetid://2114473"
695
o73.MeshType = Enum.MeshType.FileMesh
696
o74 = Instance.new("Part")
697
o74.Name = "18"
698
o74.Parent = o1
699
o74.Position = Vector3.new(0.5, 0.200000018, 0)
700
o74.Anchored = true
701
o74.CFrame = CFrame.new(0.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
702
o74.CanCollide = false
703
o74.Size = Vector3.new(0.5, 0.200000003, 0.5)
704
o74.BottomSurface = Enum.SurfaceType.Smooth
705
o74.TopSurface = Enum.SurfaceType.Smooth
706
o75 = Instance.new("SpecialMesh")
707
o75.Parent = o74
708
o75.MeshId = "rbxassetid://9856898"
709
o75.Scale = Vector3.new(1, 0.400000006, 1)
710
o75.TextureId = "rbxassetid://2114473"
711
o75.MeshType = Enum.MeshType.FileMesh
712
o76 = Instance.new("Part")
713
o76.Name = "28"
714
o76.Parent = o1
715
o76.Position = Vector3.new(-4.5, 0.200000018, 0)
716
o76.Anchored = true
717
o76.CFrame = CFrame.new(-4.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
718
o76.CanCollide = false
719
o76.Size = Vector3.new(0.5, 0.200000003, 0.5)
720
o76.BottomSurface = Enum.SurfaceType.Smooth
721
o76.TopSurface = Enum.SurfaceType.Smooth
722
o77 = Instance.new("SpecialMesh")
723
o77.Parent = o76
724
o77.MeshId = "rbxassetid://9856898"
725
o77.Scale = Vector3.new(1, 0.400000006, 1)
726
o77.TextureId = "rbxassetid://2114473"
727
o77.MeshType = Enum.MeshType.FileMesh
728
o78 = Instance.new("Part")
729
o78.Name = "38"
730
o78.Parent = o1
731
o78.Position = Vector3.new(-9.5, 0.200000018, 0)
732
o78.Anchored = true
733
o78.CFrame = CFrame.new(-9.5, 0.200000018, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
734
o78.CanCollide = false
735
o78.Size = Vector3.new(0.5, 0.200000003, 0.5)
736
o78.BottomSurface = Enum.SurfaceType.Smooth
737
o78.TopSurface = Enum.SurfaceType.Smooth
738
o79 = Instance.new("SpecialMesh")
739
o79.Parent = o78
740
o79.MeshId = "rbxassetid://9856898"
741
o79.Scale = Vector3.new(1, 0.400000006, 1)
742
o79.TextureId = "rbxassetid://2114473"
743
o79.MeshType = Enum.MeshType.FileMesh
744
o80 = Instance.new("SpecialMesh")
745
o80.Parent = o1
746
o80.MeshId = "rbxassetid://9856898"
747
o80.Scale = Vector3.new(40, 0.400000006, 2)
748
o80.TextureId = "rbxassetid://2114473"
749
o80.VertexColor = Vector3.new(0, 0, 0)
750
o80.MeshType = Enum.MeshType.FileMesh
751
mas.Parent = workspace
752
mas:MakeJoints()
753
local mas1 = mas:GetChildren()
754
for i=1,#mas1 do
755
	mas1[i].Parent = game.Players.LocalPlayer.Character
756
	ypcall(function() mas1[i]:MakeJoints() end)
757
end
758
mas:Destroy()
759
for i=1,#cors do
760
coroutine.resume(cors[i])
761
end
762
763
local Height=20 -- Max height of the bars
764
local plr=game.Players.LocalPlayer
765
766
o81 = Instance.new("Sound")
767
o81.Parent = plr.Character.Torso
768
o81.SoundId = "rbxassetid://508162596"
769
o81.Volume = 3
770
o81.Looped = true
771
772
-- Objects
773
-- Objects
774
775
local MusicGui = Instance.new("ScreenGui")
776
local MainFrame = Instance.new("Frame")
777
local SongName = Instance.new("TextLabel")
778
local SavedSongs = Instance.new("TextLabel")
779
local OpenSaved = Instance.new("TextButton")
780
local Play = Instance.new("TextButton")
781
local Searchcat = Instance.new("TextBox")
782
local ID = Instance.new("TextBox")
783
local Search = Instance.new("TextButton")
784
local Pause = Instance.new("TextButton")
785
local Resume = Instance.new("TextButton")
786
local Close = Instance.new("TextButton")
787
local CurrentVolume = Instance.new("TextLabel")
788
local VolUp = Instance.new("TextButton")
789
local VolDown = Instance.new("TextButton")
790
local Playlist = Instance.new("TextLabel")
791
local check = Instance.new("TextButton")
792
local skip = Instance.new("TextButton")
793
local forward = Instance.new("TextButton")
794
local rewind = Instance.new("TextButton")
795
local previous = Instance.new("TextButton")
796
local stime = Instance.new("TextLabel")
797
local Settings = Instance.new("TextButton")
798
local SavedList = Instance.new("Frame")
799
local fav = Instance.new("TextButton")
800
local close = Instance.new("TextButton")
801
local song = Instance.new("TextButton")
802
local Favs = Instance.new("Frame")
803
local Title = Instance.new("TextLabel")
804
local close_2 = Instance.new("TextButton")
805
local Open = Instance.new("TextButton")
806
807
-- Properties
808
MusicGui.Name = "Music Gui"
809
MusicGui.Parent = game.Players.LocalPlayer.PlayerGui
810
811
MainFrame.Name = "MainFrame"
812
MainFrame.Parent = MusicGui
813
MainFrame.BackgroundColor3 = Color3.new(0, 0, 0)
814
MainFrame.BackgroundTransparency = 0.34999999403954
815
MainFrame.BorderColor3 = Color3.new(0.403922, 0.403922, 0.403922)
816
MainFrame.BorderSizePixel = 5
817
MainFrame.Position = UDim2.new(0, 0, 0.349999994, 0)
818
MainFrame.Size = UDim2.new(0.250000003, 0, 0.349999994, 0)
819
820
SongName.Name = "SongName"
821
SongName.Parent = MainFrame
822
SongName.BackgroundColor3 = Color3.new(0, 0, 0)
823
SongName.Position = UDim2.new(0.100000001, 0, 0.100000001, 0)
824
SongName.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
825
SongName.Font = Enum.Font.SourceSans
826
SongName.FontSize = Enum.FontSize.Size14
827
SongName.Text = "Song"
828
SongName.TextColor3 = Color3.new(1, 1, 1)
829
SongName.TextScaled = true
830
SongName.TextWrapped = true
831
SongName.TextXAlignment = Enum.TextXAlignment.Left
832
833
SavedSongs.Name = "SavedSongs"
834
SavedSongs.Parent = MainFrame
835
SavedSongs.BackgroundColor3 = Color3.new(0, 0, 0)
836
SavedSongs.Position = UDim2.new(0.100000001, 0, 0.400000006, 0)
837
SavedSongs.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
838
SavedSongs.Font = Enum.Font.SourceSans
839
SavedSongs.FontSize = Enum.FontSize.Size14
840
SavedSongs.Text = "Saved"
841
SavedSongs.TextColor3 = Color3.new(1, 1, 1)
842
SavedSongs.TextScaled = true
843
SavedSongs.TextWrapped = true
844
SavedSongs.TextXAlignment = Enum.TextXAlignment.Left
845
846
OpenSaved.Name = "OpenSaved"
847
OpenSaved.Parent = MainFrame
848
OpenSaved.BackgroundColor3 = Color3.new(0, 0, 0)
849
OpenSaved.Position = UDim2.new(0.800000012, 0, 0.400000006, 0)
850
OpenSaved.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
851
OpenSaved.Font = Enum.Font.SourceSans
852
OpenSaved.FontSize = Enum.FontSize.Size14
853
OpenSaved.Text = ">"
854
OpenSaved.TextColor3 = Color3.new(1, 1, 1)
855
OpenSaved.TextScaled = true
856
OpenSaved.TextWrapped = true
857
858
Play.Name = "Play"
859
Play.Parent = MainFrame
860
Play.BackgroundColor3 = Color3.new(0, 0, 0)
861
Play.Position = UDim2.new(0.819999993, 0, 0.25, 0)
862
Play.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
863
Play.Font = Enum.Font.SourceSans
864
Play.FontSize = Enum.FontSize.Size14
865
Play.Text = "Play"
866
Play.TextColor3 = Color3.new(1, 1, 1)
867
Play.TextScaled = true
868
Play.TextWrapped = true
869
870
Searchcat.Name = "Searchcat"
871
Searchcat.Parent = MainFrame
872
Searchcat.BackgroundColor3 = Color3.new(0, 0, 0)
873
Searchcat.Position = UDim2.new(0.100000001, 0, 0.550000012, 0)
874
Searchcat.Selectable = false
875
Searchcat.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
876
Searchcat.Font = Enum.Font.SourceSans
877
Searchcat.FontSize = Enum.FontSize.Size14
878
Searchcat.Text = "Search"
879
Searchcat.TextColor3 = Color3.new(1, 1, 1)
880
Searchcat.TextScaled = true
881
Searchcat.TextWrapped = true
882
Searchcat.TextXAlignment = Enum.TextXAlignment.Left
883
884
ID.Name = "ID"
885
ID.Parent = MainFrame
886
ID.BackgroundColor3 = Color3.new(0, 0, 0)
887
ID.Position = UDim2.new(0.100000001, 0, 0.25, 0)
888
ID.Selectable = false
889
ID.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
890
ID.Font = Enum.Font.SourceSans
891
ID.FontSize = Enum.FontSize.Size14
892
ID.Text = "ID"
893
ID.TextColor3 = Color3.new(1, 1, 1)
894
ID.TextScaled = true
895
ID.TextWrapped = true
896
ID.TextXAlignment = Enum.TextXAlignment.Left
897
898
Search.Name = "Search"
899
Search.Parent = MainFrame
900
Search.BackgroundColor3 = Color3.new(0, 0, 0)
901
Search.Position = UDim2.new(0.819999993, 0, 0.550000012, 0)
902
Search.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
903
Search.Font = Enum.Font.SourceSans
904
Search.FontSize = Enum.FontSize.Size14
905
Search.Text = "Search"
906
Search.TextColor3 = Color3.new(1, 1, 1)
907
Search.TextScaled = true
908
Search.TextWrapped = true
909
910
Pause.Name = "Pause"
911
Pause.Parent = MainFrame
912
Pause.BackgroundColor3 = Color3.new(0, 0, 0)
913
Pause.Position = UDim2.new(0.425000012, 0, 0.699999988, 0)
914
Pause.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
915
Pause.Font = Enum.Font.SourceSans
916
Pause.FontSize = Enum.FontSize.Size14
917
Pause.Text = "Pause"
918
Pause.TextColor3 = Color3.new(1, 1, 1)
919
Pause.TextScaled = true
920
Pause.TextWrapped = true
921
922
Resume.Name = "Resume"
923
Resume.Parent = MainFrame
924
Resume.BackgroundColor3 = Color3.new(0, 0, 0)
925
Resume.Position = UDim2.new(0.550000012, 0, 0.699999988, 0)
926
Resume.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
927
Resume.Font = Enum.Font.SourceSans
928
Resume.FontSize = Enum.FontSize.Size14
929
Resume.Text = "Play"
930
Resume.TextColor3 = Color3.new(1, 1, 1)
931
Resume.TextScaled = true
932
Resume.TextWrapped = true
933
934
Close.Name = "Close"
935
Close.Parent = MainFrame
936
Close.BackgroundColor3 = Color3.new(0, 0, 0)
937
Close.Position = UDim2.new(0.949999988, 0, 0, 0)
938
Close.Size = UDim2.new(0.0500000007, 0, 1, 0)
939
Close.Font = Enum.Font.SourceSans
940
Close.FontSize = Enum.FontSize.Size14
941
Close.Text = "<"
942
Close.TextColor3 = Color3.new(1, 1, 1)
943
Close.TextWrapped = true
944
945
CurrentVolume.Name = "CurrentVolume"
946
CurrentVolume.Parent = MainFrame
947
CurrentVolume.BackgroundColor3 = Color3.new(0, 0, 0)
948
CurrentVolume.Position = UDim2.new(0.699999988, 0, 0.699999988, 0)
949
CurrentVolume.Size = UDim2.new(0.100000001, 0, 0.100000001, 0)
950
CurrentVolume.Font = Enum.Font.SourceSans
951
CurrentVolume.FontSize = Enum.FontSize.Size14
952
CurrentVolume.Text = "0"
953
CurrentVolume.TextColor3 = Color3.new(1, 1, 1)
954
955
VolUp.Name = "VolUp"
956
VolUp.Parent = MainFrame
957
VolUp.BackgroundColor3 = Color3.new(0, 0, 0)
958
VolUp.Position = UDim2.new(0.800000012, 0, 0.699999988, 0)
959
VolUp.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
960
VolUp.Font = Enum.Font.SourceSans
961
VolUp.FontSize = Enum.FontSize.Size14
962
VolUp.Text = "+"
963
VolUp.TextColor3 = Color3.new(1, 1, 1)
964
VolUp.TextScaled = true
965
VolUp.TextWrapped = true
966
967
VolDown.Name = "VolDown"
968
VolDown.Parent = MainFrame
969
VolDown.BackgroundColor3 = Color3.new(0, 0, 0)
970
VolDown.Position = UDim2.new(0.675000012, 0, 0.699999988, 0)
971
VolDown.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
972
VolDown.Font = Enum.Font.SourceSans
973
VolDown.FontSize = Enum.FontSize.Size14
974
VolDown.Text = "-"
975
VolDown.TextColor3 = Color3.new(1, 1, 1)
976
VolDown.TextScaled = true
977
VolDown.TextWrapped = true
978
979
Playlist.Name = "Playlist"
980
Playlist.Parent = MainFrame
981
Playlist.BackgroundColor3 = Color3.new(1, 1, 1)
982
Playlist.BackgroundTransparency = 1
983
Playlist.Position = UDim2.new(0.350000006, 0, 0.850000024, 0)
984
Playlist.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
985
Playlist.Font = Enum.Font.SourceSans
986
Playlist.FontSize = Enum.FontSize.Size14
987
Playlist.Text = "Playlist"
988
Playlist.TextColor3 = Color3.new(1, 1, 1)
989
Playlist.TextScaled = true
990
Playlist.TextWrapped = true
991
992
check.Name = "check"
993
check.Parent = MainFrame
994
check.BackgroundColor3 = Color3.new(0, 0, 0)
995
check.Position = UDim2.new(0.649999976, 0, 0.870000005, 0)
996
check.Size = UDim2.new(0.0500000007, 0, 0.0700000003, 0)
997
check.Font = Enum.Font.SourceSans
998
check.FontSize = Enum.FontSize.Size14
999
check.Text = ""
1000
check.TextColor3 = Color3.new(1, 1, 1)
1001
1002
skip.Name = "skip"
1003
skip.Parent = MainFrame
1004
skip.BackgroundColor3 = Color3.new(0, 0, 0)
1005
skip.BorderColor3 = Color3.new(0, 0, 0)
1006
skip.Position = UDim2.new(0.310000002, 0, 0.699999988, 0)
1007
skip.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
1008
skip.Font = Enum.Font.SourceSans
1009
skip.FontSize = Enum.FontSize.Size14
1010
skip.Text = ">>"
1011
skip.TextColor3 = Color3.new(1, 1, 1)
1012
skip.TextScaled = true
1013
skip.TextWrapped = true
1014
1015
forward.Name = "forward"
1016
forward.Parent = MainFrame
1017
forward.BackgroundColor3 = Color3.new(0, 0, 0)
1018
forward.Position = UDim2.new(0.239999995, 0, 0.699999988, 0)
1019
forward.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
1020
forward.Font = Enum.Font.SourceSans
1021
forward.FontSize = Enum.FontSize.Size14
1022
forward.Text = ">"
1023
forward.TextColor3 = Color3.new(1, 1, 1)
1024
forward.TextScaled = true
1025
forward.TextWrapped = true
1026
1027
rewind.Name = "rewind"
1028
rewind.Parent = MainFrame
1029
rewind.BackgroundColor3 = Color3.new(0, 0, 0)
1030
rewind.Position = UDim2.new(0.170000002, 0, 0.699999988, 0)
1031
rewind.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
1032
rewind.Font = Enum.Font.SourceSans
1033
rewind.FontSize = Enum.FontSize.Size14
1034
rewind.Text = "<"
1035
rewind.TextColor3 = Color3.new(1, 1, 1)
1036
rewind.TextScaled = true
1037
rewind.TextWrapped = true
1038
1039
previous.Name = "previous"
1040
previous.Parent = MainFrame
1041
previous.BackgroundColor3 = Color3.new(0, 0, 0)
1042
previous.Position = UDim2.new(0.100000001, 0, 0.699999988, 0)
1043
previous.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
1044
previous.Font = Enum.Font.SourceSans
1045
previous.FontSize = Enum.FontSize.Size14
1046
previous.Text = "<<"
1047
previous.TextColor3 = Color3.new(1, 1, 1)
1048
previous.TextScaled = true
1049
previous.TextWrapped = true
1050
1051
stime.Name = "time"
1052
stime.Parent = MainFrame
1053
stime.BackgroundColor3 = Color3.new(1, 1, 1)
1054
stime.BackgroundTransparency = 1
1055
stime.Position = UDim2.new(0.100000001, 0, 0.850000024, 0)
1056
stime.Size = UDim2.new(0.300000012, 0, 0.100000001, 0)
1057
stime.Font = Enum.Font.SourceSans
1058
stime.FontSize = Enum.FontSize.Size14
1059
stime.Text = "--:--:--/--:--:--"
1060
stime.TextColor3 = Color3.new(1, 1, 1)
1061
1062
Settings.Name = "Settings"
1063
Settings.Parent = MainFrame
1064
Settings.BackgroundColor3 = Color3.new(0, 0, 0)
1065
Settings.Position = UDim2.new(0.720000029, 0, 0.850000024, 0)
1066
Settings.Size = UDim2.new(0.200000003, 0, 0.100000001, 0)
1067
Settings.Font = Enum.Font.SourceSans
1068
Settings.FontSize = Enum.FontSize.Size14
1069
Settings.Text = "Settings"
1070
Settings.TextColor3 = Color3.new(1, 1, 1)
1071
Settings.TextScaled = true
1072
Settings.TextWrapped = true
1073
1074
SavedList.Name = "SavedList"
1075
SavedList.Parent = MusicGui
1076
SavedList.BackgroundColor3 = Color3.new(0, 0, 0)
1077
SavedList.BackgroundTransparency = 0.25
1078
SavedList.Position = UDim2.new(0.2,0,-1.1,0)
1079
SavedList.Size = UDim2.new(0.200000003, 0, 1, 0)
1080
1081
fav.Name = "fav"
1082
fav.Parent = SavedList
1083
fav.BackgroundColor3 = Color3.new(0, 0, 0)
1084
fav.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
1085
fav.Size = UDim2.new(1, 0, 0.0250000004, 0)
1086
fav.Font = Enum.Font.SourceSans
1087
fav.FontSize = Enum.FontSize.Size14
1088
fav.Text = "Favorites"
1089
fav.TextColor3 = Color3.new(1, 1, 1)
1090
fav.TextScaled = true
1091
fav.TextWrapped = true
1092
1093
close.Name = "close"
1094
close.Parent = SavedList
1095
close.BackgroundColor3 = Color3.new(0, 0, 0)
1096
close.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
1097
close.Position = UDim2.new(0, 0, 0.975000024, 0)
1098
close.Size = UDim2.new(1, 0, 0.0250000004, 0)
1099
close.Font = Enum.Font.SourceSans
1100
close.FontSize = Enum.FontSize.Size14
1101
close.Text = "^"
1102
close.TextColor3 = Color3.new(1, 1, 1)
1103
close.TextScaled = true
1104
close.TextWrapped = true
1105
1106
Favs.Name = "Favs"
1107
Favs.Parent = MusicGui
1108
Favs.BackgroundColor3 = Color3.new(0, 0, 0)
1109
Favs.BackgroundTransparency = 0.25
1110
Favs.Position = UDim2.new(0.4,0,-0.5,0)
1111
Favs.Size = UDim2.new(0.150000006, 0, 0.400000006, 0)
1112
1113
Title.Name = "Title"
1114
Title.Parent = Favs
1115
Title.BackgroundColor3 = Color3.new(0, 0, 0)
1116
Title.BorderColor3 = Color3.new(0.407843, 0.407843, 0.407843)
1117
Title.Size = UDim2.new(1, 0, 0.0599999987, 0)
1118
Title.Font = Enum.Font.SourceSans
1119
Title.FontSize = Enum.FontSize.Size14
1120
Title.Text = "Favorites"
1121
Title.TextColor3 = Color3.new(1, 1, 1)
1122
Title.TextScaled = true
1123
Title.TextWrapped = true
1124
1125
close_2.Name = "close"
1126
close_2.Parent = Favs
1127
close_2.BackgroundColor3 = Color3.new(0, 0, 0)
1128
close_2.BorderColor3 = Color3.new(0.243137, 0.243137, 0.243137)
1129
close_2.Position = UDim2.new(0, 0, 0.939999998, 0)
1130
close_2.Size = UDim2.new(1, 0, 0.0599999987, 0)
1131
close_2.Font = Enum.Font.SourceSans
1132
close_2.FontSize = Enum.FontSize.Size14
1133
close_2.Text = "^"
1134
close_2.TextColor3 = Color3.new(1, 1, 1)
1135
close_2.TextScaled = true
1136
close_2.TextWrapped = true
1137
1138
Open.Name = "Open"
1139
Open.Parent = MusicGui
1140
Open.BackgroundColor3 = Color3.new(0, 0, 0)
1141
Open.Position = UDim2.new(-0.5, 0, 0.349999994, 0)
1142
Open.Size = UDim2.new(0.00999999978, 0, 0.300000012, 0)
1143
Open.Font = Enum.Font.SourceSans
1144
Open.FontSize = Enum.FontSize.Size14
1145
Open.Text = ">"
1146
Open.TextColor3 = Color3.new(1, 1, 1)
1147
Open.TextWrapped = true
1148
wait()
1149
1150
gui = game.Players.LocalPlayer.PlayerGui['Music Gui']
1151
favs = gui.Favs
1152
saved = gui.SavedList
1153
favopen = saved.fav
1154
main = gui.MainFrame
1155
mid = main.ID
1156
search = main.Search
1157
ops = main.OpenSaved
1158
play = main.Play
1159
resume = main.Resume
1160
pause = main.Pause
1161
name = main.SongName
1162
closegui = main.Close
1163
closesave = saved.close
1164
closefav = favs.close
1165
open = gui.Open
1166
vol = main.CurrentVolume
1167
vold = main.VolDown
1168
volu = main.VolUp
1169
check = main.check
1170
list = {}
1171
1172
1173
1174
close = function()
1175
	main:TweenPosition(UDim2.new(-0.4,0,0.35,0),"Out","Back",2,true)
1176
	open:TweenPosition(UDim2.new(0,0,0.35,0),"Out","Back",1,true)
1177
	if saved.Position ~= UDim2.new(0.2,0,-1.1,0) then do
1178
		saved:TweenPosition(UDim2.new(0.2,0,-1.1,0),"Out","Back",2,true)
1179
	end
1180
	if favs.Position ~= UDim2.new(0.4,0,-0.5,0) then do
1181
		favs:TweenPosition(UDim2.new(0.4,0,-0.5,0), "Out","Back",2,true)
1182
	end
1183
	end
1184
	end
1185
end
1186
1187
openmain = function()
1188
	main:TweenPosition(UDim2.new(0,0,0.35,0),"Out","Back",1,true)
1189
	open:TweenPosition(UDim2.new(-0.2,0,0.35,0),'Out',"Back",1,true)
1190
end
1191
1192
closesaved = function()
1193
	saved:TweenPosition(UDim2.new(0.2,0,-1.1,0),"Out","Back",2,true)
1194
	if favs.Position ~= UDim2.new(0.4,0,-0.5,0) then do
1195
		favs:TweenPosition(UDim2.new(0.4,0,-0.5,0),"Out","Back",2,true)
1196
	end
1197
end
1198
end
1199
1200
closefavs = function()
1201
	favs:TweenPosition(UDim2.new(0.4,0,-0.5,0),"Out","Back",2,true)
1202
end
1203
1204
opensaved = function()
1205
	saved:TweenPosition(UDim2.new(0.2,0,0,0),"Out","Back",2,true)
1206
end
1207
1208
favoriteopen = function()
1209
	favs:TweenPosition(UDim2.new(0.4,0,0,0),"Out","Back",2,true)
1210
end
1211
1212
open.MouseButton1Down:Connect(openmain)
1213
favopen.MouseButton1Down:connect(favoriteopen)
1214
ops.MouseButton1Down:Connect(opensaved)
1215
closefav.MouseButton1Down:Connect(closefavs)
1216
closegui.MouseButton1Down:connect(close)
1217
closesave.MouseButton1Down:connect(closesaved)
1218
1219
local Soundbar=game.Players.LocalPlayer.Character.Soundbar
1220
local Sound=plr.Character.Torso.Sound
1221
local Bars={}	for i,v in next,Soundbar:children() do
1222
					if v:IsA'BasePart' then
1223
						table.insert(Bars,v)
1224
					end
1225
				end Height=Height*2
1226
local nBars,Tweens=#Bars-1,{}
1227
1228
-- EASING FUNCTIONS --
1229
local function quadIn(t,b,c,d) t=t/d; return c*t*t+b; end;
1230
local function quadOut(t,b,c,d) t=t/d; return -c*t*(t-2)+b; end;
1231
local function Quad(obj,val,ease,d)
1232
	local t,f,con,nt,st,sd=tick()
1233
	Tweens[obj]=t -- Set identifier
1234
	st=obj.Scale.Y -- Start Value
1235
	sd=val-st -- Change in Value
1236
	f=ease=='In' and quadIn or quadOut -- Choose between Out/In
1237
	con=game:GetService'RunService'.RenderStepped:connect(function() nt=tick()-t
1238
		if Tweens[obj]~=t then -- Check for override
1239
			con:disconnect()
1240
			return
1241
		end
1242
		local nv=math.max(.2,f(math.min(d,nt),st,sd,d)) -- New Value
1243
		obj.Scale=Vector3.new(.9,nv,.9)
1244
		obj.Offset=Vector3.new(0,nv/4,0)
1245
		obj.VertexColor=Vector3.new(cycle(tick()))
1246
		if nt>d then -- Easing done?
1247
			con:disconnect()
1248
			if ease~='In' then
1249
				Quad(obj,.2,'In',.3) -- Drop the bar
1250
			end
1251
		end
1252
	end)
1253
end
1254
1255
-- BAR MANIPULATION --
1256
local function CheckSet(N,S,D) -- Number, Scale, Direction
1257
	local nS=Soundbar[tostring(N)].Mesh.Scale.Y
1258
	if S>nS then
1259
		Set(N,nS+(S-nS)/3,D)
1260
	end
1261
end
1262
1263
function Set(N,S,D) -- Number, Scale, Direction
1264
	Quad(Soundbar[tostring(N)].Mesh,S,'Out',.1) -- Grabs the bar and tweens
1265
	if N>0 and D~=1 then -- Checks left for smaller bars to manipulate
1266
		CheckSet(N-1,S,-1)
1267
	end
1268
	if N<nBars and D~=-1 then -- Checks right...
1269
		CheckSet(N+1,S,1)
1270
	end
1271
end
1272
1273
-- RENDER LOOP --
1274
local MPL,PL,curr=0 curr=Sound.SoundId
1275
spawn(function()
1276
game:service'RunService'.RenderStepped:connect(function()
1277
	PL=Sound.PlaybackLoudness
1278
	if Sound.IsPlaying and PL==PL then -- Sound is playing & PlaybackLoudness is not undefined
1279
		if curr~=Sound.SoundId then MPL=0 -- Reset the relative Max PlaybackLoudness on song change
1280
			curr=Sound.SoundId
1281
		end
1282
		MPL=math.max(PL,MPL) PL=PL/MPL -- Normalize PL based on relative Max PlaybackLoudness
1283
		if PL==PL then
1284
			Set(math.floor(PL*nBars),PL*Height*1) -- Modify bar relative to PlaybackLoudness
1285
		end
1286
	end
1287
end)
1288
end)
1289
1290
local Locked
1291
1292
1293
idinput = function()
1294
	local midcurrent = mid.Text
1295
	Sound:Stop()
1296
	Sound.SoundId='rbxassetid://'..midcurrent..''
1297
	Sound:Play()
1298
end
1299
1300
volup = function()
1301
	Sound.Volume = Sound.Volume + 1
1302
end
1303
1304
voldown = function()
1305
	Sound.Volume = Sound.Volume - 1
1306
end
1307
1308
updateinfo = function()
1309
	vol.Text = ""..Sound.Volume..""
1310
	stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
1311
end
1312
1313
local function Chat(plr,msg)
1314
	if msg:sub(1,6):lower()=='sound/' and (not Locked or plr.Name=='FangxWulf') then
1315
		local id=tonumber(msg:match'%d+')
1316
		if not id then return end
1317
		Sound:Stop()
1318
		Sound.SoundId='rbxassetid://'..msg:match'%d+'
1319
		Sound:Play()
1320
	elseif msg:lower()=='lock/' and plr.Name=='FangxWulf' then
1321
		Locked=not Locked
1322
	end
1323
end
1324
songs = 0
1325
1326
newsong = function(name,id)
1327
	songs = songs+1
1328
	song = Instance.new('TextButton',saved)
1329
	song.Name = ""..name..""
1330
	song.BackgroundColor3 = Color3.new(0, 0, 0)
1331
	song.Position = UDim2.new(0, 0, ((0.035 * songs)-0.035)+0.03, 0)
1332
	song.Size = UDim2.new(1, 0, 0.0350, 0)
1333
	song.Font = Enum.Font.SourceSans
1334
	song.FontSize = Enum.FontSize.Size14
1335
	song.Text = ""..name..""
1336
	song.TextColor3 = Color3.new(1, 1, 1)
1337
	ID = Instance.new("IntValue",song)
1338
	ID.Name = "ID"
1339
	ID.Value = ""..id..""
1340
	list[""..songs..""] = ""..id..""
1341
end
1342
1343
pauses = function()
1344
	Sound:Pause()
1345
end
1346
1347
plays = function()
1348
	Sound:Resume()
1349
end
1350
1351
1352
local CRot = 1
1353
local rad,sin,ceil=math.rad,math.sin,math.ceil
1354
1355
local p = game.Players.LocalPlayer
1356
	p.Chatted:connect(function(m)
1357
		Chat(p,m)
1358
	end)
1359
	
1360
Sound:Play()
1361
1362
local Parts = {}
1363
for Index,v in pairs(o1:children'') do
1364
	if v:IsA'Part' then
1365
		table.insert(Parts,v)
1366
	end
1367
end
1368
1369
	spawn(function()
1370
game:service'RunService'.RenderStepped:connect(function()
1371
	for Index,v in pairs(o1:children'') do
1372
		if v:IsA'Part' then
1373
v.CFrame = CFrame.new(plr.Character.Torso.Position)
1374
								*CFrame.Angles(0,rad((360/#Parts*Index+(tick())*60/(#Parts ~= 0 and #Parts or 1))%360),0)
1375
								*CFrame.new(0, -3, (5+#Parts)*.35+v.Size.X)
1376
								*CFrame.Angles(0,90+CRot,0)
1377
							end
1378
				end
1379
		end)
1380
	end)
1381
----playlist settings----
1382
pl = false
1383
pls = 1
1384
checkedp = function()
1385
	if pl == false then
1386
		pl = true
1387
		check.Text = "X"
1388
	else
1389
		pl = false
1390
		check.Text = ""
1391
	end
1392
end
1393
1394
plnext = function()
1395
	print'pass'
1396
	if pl == true then
1397
		print'pass2'
1398
		Sound.SoundId = "rbxassetid://"..list[''..pls..'']..""
1399
--		if pls < #list then
1400
			pls = pls +1
1401
--		else
1402
--			pls = 1
1403
		end
1404
	end
1405
--end
1406
1407
skips = function()
1408
	if pl == true then
1409
		Sound:Stop()
1410
		pls = pls + 1
1411
		Sound.SoundId = 'rbxassetid://'..list[''..pls..'']..''
1412
		Sound:Play()
1413
	end
1414
end
1415
1416
previouss = function()
1417
	if pl == true then
1418
		Sound:Stop()
1419
		pls = pls - 1
1420
		Sound.SoundId = 'rbxassetid://'..list[''..pls..'']..''
1421
		Sound:Play()
1422
	end
1423
end
1424
1425
ff = function()
1426
	Sound.TimePosition = Sound.TimePosition + 10
1427
	stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
1428
end
1429
1430
rw = function()
1431
	Sound.TimePosition = Sound.TimePosition - 10
1432
	stime.Text = ""..(math.floor(Sound.TimePosition)).."/"..(math.floor(Sound.TimeLength))..""
1433
end
1434
---------------------------------------------
1435
1436
skip.MouseButton1Down:connect(skips)
1437
rewind.MouseButton1Down:connect(rw)
1438
forward.MouseButton1Down:connect(ff)
1439
Sound.DidLoop:connect(plnext)
1440
Sound.Changed:connect(updateinfo)
1441
volu.MouseButton1Down:connect(volup)
1442
vold.MouseButton1Down:connect(voldown)
1443
play.MouseButton1Down:connect(idinput)
1444
pause.MouseButton1Down:Connect(pauses)
1445
resume.MouseButton1Down:Connect(plays)
1446
check.MouseButton1Down:connect(checkedp)
1447
------------------------Songs--------------------------------
1448
newsong("Life Goes On", 573853447)
1449
newsong("You'll Be Alright", 574538568)
1450
newsong("About You", 574539049)
1451
newsong("Starlights", 573894805)
1452
newsong("The Deeper Meaning", 574544171)
1453
newsong("The Pursuit", 573934790)
1454
newsong("About You", 574539049)
1455
newsong("Start Again", 574543658)
1456
newsong("All I Know", 573935454)
1457
newsong("God Mode", 539616479)
1458
1459
1460
1461
-------------------------------------------------------------
1462
1463
1464
for i,v in pairs(saved:GetChildren()) do
1465
   if v.Name ~= "close" and v.Name ~= "fav" then
1466
		v.MouseButton1Down:Connect(function()
1467
			mid.Text = v.ID.Value
1468
		end)
1469
	end
1470
end
1471
1472
for i,v in pairs(list)do
1473
	print(v)
1474
end