View difference between Paste ID: VNpgQSnF and KaffJuRj
SHOW: | | - or go back to the newest paste.
1
function clerp(c1,c2,al)
2
    local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
3
    local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
4
    for i,v in pairs(com1) do
5
        com1[i] = v+(com2[i]-v)*al
6
    end
7
    return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
8
end
9
10
11
local plr = game:service'Players'.LocalPlayer
12
plrgui = plr.PlayerGui
13
char = plr.Character
14
mouse = plr:GetMouse()
15
humanoid = char:findFirstChild("Humanoid")
16
torso = char:findFirstChild("Torso")
17
head = char.Head
18
ra = char:findFirstChild("Right Arm")
19
la = char:findFirstChild("Left Arm")
20
rl = char:findFirstChild("Right Leg")
21
ll = char:findFirstChild("Left Leg")
22
rs = torso:findFirstChild("Right Shoulder")
23
ls = torso:findFirstChild("Left Shoulder")
24
rh = torso:findFirstChild("Right Hip")
25
lh = torso:findFirstChild("Left Hip")
26
neck = torso:findFirstChild("Neck")
27
rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
28
rootpart = char:findFirstChild("HumanoidRootPart")
29
camera = workspace.CurrentCamera
30
anim = char:findFirstChild("Animate")
31
local sound = Instance.new("Sound", char)
32
sound.Volume = 1
33
sound.Looped = true
34
sound.Name = "Sound"
35
36
SoundsList = {}
37
38
function newSound(name, id, pitch, puush)
39
    if not puush == true then puush = false end
40
    if puush then
41
        table.insert(SoundsList, {["Name"]=name, ["ID"]="puush("..id..")", ["Pitch"]=pitch or 1})
42
    else
43
        table.insert(SoundsList, {["Name"]=name, ["ID"]=id, ["Pitch"]=pitch or 1})
44
    end
45
end
46
47
newSound("Saints Row IV Theme (puush asset)", "9jVEX", 1, true)
48
newSound("Lemon Tree - Fool's Garden (puush asset)", "9jVD9", 1, true)
49-
newSound("What is Love", "142544487")
49+
newSound("thomas", "845378494")
50-
newSound("Martin Garrix - Animals", "142370129")
50+
newSound("eddsworld", "143460797")
51-
newSound("The Proclaimers - 500 Miles", "151371405")
51+
52-
newSound("Avicii - Wake me up", "142603004")
52+
53-
newSound("Hip Hop - Jeff Syndicate", "27697735", 3)
53+
54-
newSound("Alice Deejay - Better Off Alone", "142397452")
54+
55-
newSound("BBBFF - My Little Pony", "142605535")
55+
56-
newSound("Intro - My Little Pony", "142626518")
56+
57-
newSound("Bangarang - Skrillex", "142319852")
57+
58-
newSound("Surfin' Bird ", "145567707")
58+
59-
newSound("You've been trolled", "142633540")
59+
60-
newSound('Disco Star - Spongebob video game', '144906669')
60+
61-
newSound("Europe - The Final Countdown", "142859512")
61+
62-
newSound("LMFAO - Party Rock Anthem", "145262991")
62+
63-
newSound("Darude - Sandstorm", "142401311", .53)
63+
64-
newSound('Skrillex - Fire', '150137157')
64+
65-
newSound('Spongebob - Goofy Goober Rock', '142396943')
65+
66-
newSound('The Slenderman song (Comedy)', '142776228')
66+
67-
newSound('Avicii - Levels', "148424799")
67+
68-
newSound('Erectin\' a river', '145849454')
68+
69-
newSound('TTC - Fat cat Adventures [Glitch Hop]', '142808748')
69+
70-
newSound('Thrift Shop - Macklemore', '155119191')
70+
71-
newSound('Five Nights At Freddys 2 Song', '192043328')
71+
72
end
73
local m = V - C
74
return Color3.new(color.r + m, color.g + m, color.b + m)
75
end
76
77
function RemoveDisco()
78
        char:findFirstChild'DiscoBox':remove()
79
        gui:remove()
80
        sound:stop()
81
end
82
83
function BeginPlacingDisco()
84
                -- 1 - DiscoBox
85
                local obj1 = Instance.new("Model")
86
                obj1.Name = "DiscoBox"
87
                obj1.Parent = char
88
89
                -- 2 - DiscTop
90
                obj2 = Instance.new("Part")
91
                obj2.CFrame = CFrame.new(Vector3.new(-34.5000038, 3.09000182, -48.5)) * CFrame.Angles(-0, 0, -0)
92
                obj2.FormFactor = Enum.FormFactor.Custom
93
                obj2.TopSurface = Enum.SurfaceType.Smooth
94
                obj2.BottomSurface = Enum.SurfaceType.Smooth
95
                obj2.Material = Enum.Material.SmoothPlastic
96
                obj2.Size = Vector3.new(3, 0.200000003, 3)
97
                obj2.BrickColor = BrickColor.new("Dark stone grey")
98
                obj2.Friction = 0.30000001192093
99
                obj2.Shape = Enum.PartType.Block
100
                obj2.Name = "DiscTop"
101
                obj2.Parent = obj1
102
103
                -- 3 - Mesh
104
                obj3 = Instance.new("CylinderMesh")
105
                obj3.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
106
                obj3.Parent = obj2
107
108
                -- 4 - Part-to-Part Strong Joint
109
                obj4 = Instance.new("ManualWeld")
110
                obj4.Part0 = DiscTop
111
                obj4.Part1 = Part
112
                obj4.Name = "Part-to-Part Strong Joint"
113
                obj4.Parent = obj2
114
115
                -- 5 - Disc
116
                obj5 = Instance.new("Part")
117
                obj5.CFrame = CFrame.new(Vector3.new(-34.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0)
118
                obj5.FormFactor = Enum.FormFactor.Custom
119
                obj5.TopSurface = Enum.SurfaceType.Smooth
120
                obj5.BottomSurface = Enum.SurfaceType.Smooth
121
                obj5.Material = Enum.Material.Sand
122
                obj5.Size = Vector3.new(3, 0.200000003, 3)
123
                obj5.BrickColor = BrickColor.new("Black")
124
                obj5.Friction = 0.30000001192093
125
                obj5.Shape = Enum.PartType.Block
126
                obj5.Name = "Disc"
127
                obj5.Parent = obj1
128
129
                -- 6 - Mesh
130
                obj6 = Instance.new("CylinderMesh")
131
                obj6.Scale = Vector3.new(0.899999976, 1, 0.899999976)
132
                obj6.Parent = obj5
133
134
                -- 7 - Part-to-Part Strong Joint
135
                obj7 = Instance.new("ManualWeld")
136
                obj7.Part0 = Disc
137
                obj7.Part1 = Part
138
                obj7.Name = "Part-to-Part Strong Joint"
139
                obj7.Parent = obj5
140
141
                -- 8 - Part
142
                obj8 = Instance.new("Part")
143
                obj8.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0)
144
                obj8.FormFactor = Enum.FormFactor.Custom
145
                obj8.TopSurface = Enum.SurfaceType.Smooth
146
                obj8.BottomSurface = Enum.SurfaceType.Smooth
147
                obj8.Material = Enum.Material.SmoothPlastic
148
                obj8.Size = Vector3.new(1, 0.200000003, 1)
149
                obj8.BrickColor = BrickColor.new("Mid gray")
150
                obj8.Friction = 0.30000001192093
151
                obj8.Shape = Enum.PartType.Block
152
                obj8.Parent = obj1
153
154
                -- 9 - Mesh
155
                obj9 = Instance.new("CylinderMesh")
156
                obj9.Scale = Vector3.new(0.5, 1.04999995, 0.5)
157
                obj9.Parent = obj8
158
159
                -- 10 - Part-to-Part Strong Joint
160
                obj10 = Instance.new("ManualWeld")
161
                obj10.Part0 = Part
162
                obj10.Part1 = Part
163
                obj10.Name = "Part-to-Part Strong Joint"
164
                obj10.Parent = obj8
165
166
                -- 11 - Part
167
                obj11 = Instance.new("Part")
168
                obj11.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -49.5)) * CFrame.Angles(-0, 0, -0)
169
                obj11.FormFactor = Enum.FormFactor.Custom
170
                obj11.TopSurface = Enum.SurfaceType.Smooth
171
                obj11.BottomSurface = Enum.SurfaceType.Smooth
172
                obj11.Material = Enum.Material.SmoothPlastic
173
                obj11.Size = Vector3.new(1, 0.200000003, 1)
174
                obj11.BrickColor = BrickColor.new("Mid gray")
175
                obj11.Friction = 0.30000001192093
176
                obj11.Shape = Enum.PartType.Block
177
                obj11.Parent = obj1
178
179
                -- 12 - Mesh
180
                obj12 = Instance.new("CylinderMesh")
181
                obj12.Scale = Vector3.new(0.400000006, 1.04999995, 0.400000006)
182
                obj12.Parent = obj11
183
184
                -- 13 - Bar
185
                obj13 = Instance.new("Part")
186
                obj13.CFrame = CFrame.new(Vector3.new(-37.0000114, 3.09000063, -50.5)) * CFrame.Angles(-0, 0, -0)
187
                obj13.FormFactor = Enum.FormFactor.Custom
188
                obj13.TopSurface = Enum.SurfaceType.Smooth
189
                obj13.BottomSurface = Enum.SurfaceType.Smooth
190
                obj13.Material = Enum.Material.SmoothPlastic
191
                obj13.Size = Vector3.new(7.99999905, 0.200000003, 1)
192
                obj13.BrickColor = BrickColor.new("Really black")
193
                obj13.Friction = 0.30000001192093
194
                obj13.Shape = Enum.PartType.Block
195
                obj13.Parent = obj1
196
197
                -- 14 - Part-to-Part Strong Joint
198
                obj14 = Instance.new("ManualWeld")
199
                obj14.Part0 = Part
200
                obj14.Part1 = nil
201
                obj14.Name = "Part-to-Part Strong Joint"
202
                obj14.Parent = obj13
203
204
                -- 15 - Part-to-Part Strong Joint
205
                obj15 = Instance.new("ManualWeld")
206
                obj15.Part0 = Part
207
                obj15.Part1 = nil
208
                obj15.Name = "Part-to-Part Strong Joint"
209
                obj15.Parent = obj13
210
211
                -- 16 - Mesh
212
                obj16 = Instance.new("BlockMesh")
213
                obj16.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
214
                obj16.Parent = obj13
215
216
                -- 17 - Box
217
                obj17 = Instance.new("Part")
218
                obj17.CFrame = CFrame.new(Vector3.new(-37, 1.49000001, -49)) * CFrame.Angles(-0, 0, -0)
219
                obj17.FormFactor = Enum.FormFactor.Symmetric
220
                obj17.TopSurface = Enum.SurfaceType.Smooth
221
                obj17.BottomSurface = Enum.SurfaceType.Smooth
222
                obj17.Material = Enum.Material.SmoothPlastic
223
                obj17.Size = Vector3.new(8, 3, 4)
224
                obj17.BrickColor = BrickColor.new("Dark stone grey")
225
                obj17.Friction = 0.30000001192093
226
                obj17.Shape = Enum.PartType.Block
227
                obj17.Name = "Box"
228
                obj17.Parent = obj1
229
230
                -- 18 - Part-to-Part Strong Joint
231
                obj18 = Instance.new("ManualWeld")
232
                obj18.Part0 = Box
233
                obj18.Part1 = Part
234
                obj18.Name = "Part-to-Part Strong Joint"
235
                obj18.Parent = obj17
236
237
                -- 19 - Part-to-Part Strong Joint
238
                obj19 = Instance.new("ManualWeld")
239
                obj19.Part0 = Box
240
                obj19.Part1 = Disc
241
                obj19.Name = "Part-to-Part Strong Joint"
242
                obj19.Parent = obj17
243
244
                -- 20 - Part-to-Part Strong Joint
245
                obj20 = Instance.new("ManualWeld")
246
                obj20.Part0 = Box
247
                obj20.Part1 = Disc2
248
                obj20.Name = "Part-to-Part Strong Joint"
249
                obj20.Parent = obj17
250
251
                -- 21 - Part-to-Part Strong Joint
252
                obj21 = Instance.new("ManualWeld")
253
                obj21.Part0 = Box
254
                obj21.Part1 = DiscTop2
255
                obj21.Name = "Part-to-Part Strong Joint"
256
                obj21.Parent = obj17
257
258
                -- 22 - Part-to-Part Strong Joint
259
                obj22 = Instance.new("ManualWeld")
260
                obj22.Part0 = Box
261
                obj22.Part1 = DiscTop
262
                obj22.Name = "Part-to-Part Strong Joint"
263
                obj22.Parent = obj17
264
265
                -- 23 - Part-to-Part Strong Joint
266
                obj23 = Instance.new("ManualWeld")
267
                obj23.Part0 = Box
268
                obj23.Part1 = Part
269
                obj23.Name = "Part-to-Part Strong Joint"
270
                obj23.Parent = obj17
271
272
                -- 24 - Part-to-Part Strong Joint
273
                obj24 = Instance.new("ManualWeld")
274
                obj24.Part0 = Box
275
                obj24.Part1 = Part
276
                obj24.Name = "Part-to-Part Strong Joint"
277
                obj24.Parent = obj17
278
279
                -- 25 - Part-to-Part Strong Joint
280
                obj25 = Instance.new("ManualWeld")
281
                obj25.Part0 = Box
282
                obj25.Part1 = Part
283
                obj25.Name = "Part-to-Part Strong Joint"
284
                obj25.Parent = obj17
285
286
                -- 26 - Box-to-Part Strong Joint
287
                obj26 = Instance.new("ManualWeld")
288
                obj26.Part0 = Box
289
                obj26.Part1 = Slider
290
                obj26.Name = "Box-to-Part Strong Joint"
291
                obj26.Parent = obj17
292
293
                -- 27 - Box-to-Part Strong Joint
294
                obj27 = Instance.new("ManualWeld")
295
                obj27.Part0 = Box
296
                obj27.Part1 = Slider2
297
                obj27.Name = "Box-to-Part Strong Joint"
298
                obj27.Parent = obj17
299
300
                -- 28 - Part
301
                obj28 = Instance.new("Part")
302
                obj28.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0)
303
                obj28.FormFactor = Enum.FormFactor.Custom
304
                obj28.TopSurface = Enum.SurfaceType.Smooth
305
                obj28.BottomSurface = Enum.SurfaceType.Smooth
306
                obj28.Material = Enum.Material.SmoothPlastic
307
                obj28.Size = Vector3.new(1, 0.200000003, 1)
308
                obj28.BrickColor = BrickColor.new("Bright red")
309
                obj28.Friction = 0.30000001192093
310
                obj28.Shape = Enum.PartType.Block
311
                obj28.Parent = obj1
312
313
                -- 29 - Mesh
314
                obj29 = Instance.new("CylinderMesh")
315
                obj29.Scale = Vector3.new(0.5, 1.04999995, 0.5)
316
                obj29.Parent = obj28
317
318
                -- 30 - Part-to-Part Strong Joint
319
                obj30 = Instance.new("ManualWeld")
320
                obj30.Part0 = Part
321
                obj30.Part1 = Part
322
                obj30.Name = "Part-to-Part Strong Joint"
323
                obj30.Parent = obj28
324
325
                -- 31 - Part-to-Part Strong Joint
326
                obj31 = Instance.new("ManualWeld")
327
                obj31.Part0 = Part
328
                obj31.Part1 = Part
329
                obj31.Name = "Part-to-Part Strong Joint"
330
                obj31.Parent = obj28
331
332
                -- 32 - Part
333
                obj32 = Instance.new("Part")
334
                obj32.CFrame = CFrame.new(Vector3.new(-37, 3.09000087, -50.5)) * CFrame.Angles(-0, 0, -0)
335
                obj32.FormFactor = Enum.FormFactor.Custom
336
                obj32.TopSurface = Enum.SurfaceType.Smooth
337
                obj32.BottomSurface = Enum.SurfaceType.Smooth
338
                obj32.Material = Enum.Material.SmoothPlastic
339
                obj32.Size = Vector3.new(8, 0.200000003, 1)
340
                obj32.BrickColor = BrickColor.new("Dark stone grey")
341
                obj32.Friction = 0.30000001192093
342
                obj32.Shape = Enum.PartType.Block
343
                obj32.Parent = obj1
344
345
                -- 33 - Part-to-Part Strong Joint
346
                obj33 = Instance.new("ManualWeld")
347
                obj33.Part0 = Part
348
                obj33.Part1 = Disc
349
                obj33.Name = "Part-to-Part Strong Joint"
350
                obj33.Parent = obj32
351
352
                -- 34 - Part-to-Part Strong Joint
353
                obj34 = Instance.new("ManualWeld")
354
                obj34.Part0 = Part
355
                obj34.Part1 = Disc2
356
                obj34.Name = "Part-to-Part Strong Joint"
357
                obj34.Parent = obj32
358
359
                -- 35 - Part-to-Part Strong Joint
360
                obj35 = Instance.new("ManualWeld")
361
                obj35.Part0 = Part
362
                obj35.Part1 = DiscTop2
363
                obj35.Name = "Part-to-Part Strong Joint"
364
                obj35.Parent = obj32
365
366
                -- 36 - Part-to-Part Strong Joint
367
                obj36 = Instance.new("ManualWeld")
368
                obj36.Part0 = Part
369
                obj36.Part1 = DiscTop
370
                obj36.Name = "Part-to-Part Strong Joint"
371
                obj36.Parent = obj32
372
373
                -- 37 - Part
374
                obj37 = Instance.new("Part")
375
                obj37.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999987, -48.5)) * CFrame.Angles(-0, 0, -0)
376
                obj37.FormFactor = Enum.FormFactor.Custom
377
                obj37.TopSurface = Enum.SurfaceType.Smooth
378
                obj37.BottomSurface = Enum.SurfaceType.Smooth
379
                obj37.Material = Enum.Material.SmoothPlastic
380
                obj37.Size = Vector3.new(1, 0.200000003, 1)
381
                obj37.BrickColor = BrickColor.new("Bright red")
382
                obj37.Friction = 0.30000001192093
383
                obj37.Shape = Enum.PartType.Block
384
                obj37.Parent = obj1
385
386
                -- 38 - Mesh
387
                obj38 = Instance.new("CylinderMesh")
388
                obj38.Scale = Vector3.new(0.699999988, 1.04999995, 0.699999988)
389
                obj38.Parent = obj37
390
391
                -- 39 - Part-to-Part Strong Joint
392
                obj39 = Instance.new("ManualWeld")
393
                obj39.Part0 = Part
394
                obj39.Part1 = Part
395
                obj39.Name = "Part-to-Part Strong Joint"
396
                obj39.Parent = obj37
397
398
                -- 40 - Part-to-Part Strong Joint
399
                obj40 = Instance.new("ManualWeld")
400
                obj40.Part0 = Part
401
                obj40.Part1 = Part
402
                obj40.Name = "Part-to-Part Strong Joint"
403
                obj40.Parent = obj37
404
405
                -- 41 - Part
406
                obj41 = Instance.new("Part")
407
                obj41.CFrame = CFrame.new(Vector3.new(-37.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0)
408
                obj41.FormFactor = Enum.FormFactor.Custom
409
                obj41.TopSurface = Enum.SurfaceType.Smooth
410
                obj41.BottomSurface = Enum.SurfaceType.Smooth
411
                obj41.Material = Enum.Material.SmoothPlastic
412
                obj41.Size = Vector3.new(1, 0.200000003, 1)
413
                obj41.BrickColor = BrickColor.new("Bright blue")
414
                obj41.Friction = 0.30000001192093
415
                obj41.Shape = Enum.PartType.Block
416
                obj41.Parent = obj1
417
418
                -- 42 - Mesh
419
                obj42 = Instance.new("CylinderMesh")
420
                obj42.Scale = Vector3.new(0.5, 1.04999995, 0.5)
421
                obj42.Parent = obj41
422
423
                -- 43 - Part-to-Part Strong Joint
424
                obj43 = Instance.new("ManualWeld")
425
                obj43.Part0 = Part
426
                obj43.Part1 = Part
427
                obj43.Name = "Part-to-Part Strong Joint"
428
                obj43.Parent = obj41
429
430
                -- 44 - Part
431
                obj44 = Instance.new("Part")
432
                obj44.CFrame = CFrame.new(Vector3.new(-36.5, 2.88999963, -47.5)) * CFrame.Angles(-0, 0, -0)
433
                obj44.FormFactor = Enum.FormFactor.Custom
434
                obj44.TopSurface = Enum.SurfaceType.Smooth
435
                obj44.BottomSurface = Enum.SurfaceType.Smooth
436
                obj44.Material = Enum.Material.SmoothPlastic
437
                obj44.Size = Vector3.new(1, 0.200000003, 1)
438
                obj44.BrickColor = BrickColor.new("Bright blue")
439
                obj44.Friction = 0.30000001192093
440
                obj44.Shape = Enum.PartType.Block
441
                obj44.Parent = obj1
442
443
                -- 45 - Mesh
444
                obj45 = Instance.new("CylinderMesh")
445
                obj45.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
446
                obj45.Parent = obj44
447
448
                -- 46 - Part-to-Part Strong Joint
449
                obj46 = Instance.new("ManualWeld")
450
                obj46.Part0 = Part
451
                obj46.Part1 = Part
452
                obj46.Name = "Part-to-Part Strong Joint"
453
                obj46.Parent = obj44
454
455
                -- 47 - Part
456
                obj47 = Instance.new("Part")
457
                obj47.CFrame = CFrame.new(Vector3.new(-39.5000038, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0)
458
                obj47.FormFactor = Enum.FormFactor.Custom
459
                obj47.TopSurface = Enum.SurfaceType.Smooth
460
                obj47.BottomSurface = Enum.SurfaceType.Smooth
461
                obj47.Material = Enum.Material.SmoothPlastic
462
                obj47.Size = Vector3.new(3.00000048, 0.200000003, 1)
463
                obj47.BrickColor = BrickColor.new("Really black")
464
                obj47.Friction = 0.30000001192093
465
                obj47.Shape = Enum.PartType.Block
466
                obj47.Parent = obj1
467
468
                -- 48 - Part-to-Part Strong Joint
469
                obj48 = Instance.new("ManualWeld")
470
                obj48.Part0 = Part
471
                obj48.Part1 = nil
472
                obj48.Name = "Part-to-Part Strong Joint"
473
                obj48.Parent = obj47
474
475
                -- 49 - Part-to-Part Strong Joint
476
                obj49 = Instance.new("ManualWeld")
477
                obj49.Part0 = Part
478
                obj49.Part1 = nil
479
                obj49.Name = "Part-to-Part Strong Joint"
480
                obj49.Parent = obj47
481
482
                -- 50 - Mesh
483
                obj50 = Instance.new("BlockMesh")
484
                obj50.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
485
                obj50.Parent = obj47
486
487
                -- 51 - Part
488
                obj51 = Instance.new("Part")
489
                obj51.CFrame = CFrame.new(Vector3.new(-34.5, 2.88999963, -46.5)) * CFrame.Angles(-0, 0, -0)
490
                obj51.FormFactor = Enum.FormFactor.Custom
491
                obj51.TopSurface = Enum.SurfaceType.Smooth
492
                obj51.BottomSurface = Enum.SurfaceType.Smooth
493
                obj51.Material = Enum.Material.SmoothPlastic
494
                obj51.Size = Vector3.new(3.00000048, 0.200000003, 1)
495
                obj51.BrickColor = BrickColor.new("Really black")
496
                obj51.Friction = 0.30000001192093
497
                obj51.Shape = Enum.PartType.Block
498
                obj51.Parent = obj1
499
500
                -- 52 - Part-to-Part Strong Joint
501
                obj52 = Instance.new("ManualWeld")
502
                obj52.Part0 = Part
503
                obj52.Part1 = nil
504
                obj52.Name = "Part-to-Part Strong Joint"
505
                obj52.Parent = obj51
506
507
                -- 53 - Part-to-Part Strong Joint
508
                obj53 = Instance.new("ManualWeld")
509
                obj53.Part0 = Part
510
                obj53.Part1 = nil
511
                obj53.Name = "Part-to-Part Strong Joint"
512
                obj53.Parent = obj51
513
514
                -- 54 - Mesh
515
                obj54 = Instance.new("BlockMesh")
516
                obj54.Scale = Vector3.new(0.899999976, 1.04999995, 0.200000003)
517
                obj54.Parent = obj51
518
519
                -- 55 - DiscTop2
520
                obj55 = Instance.new("Part")
521
                obj55.CFrame = CFrame.new(Vector3.new(-39.5, 3.09000063, -48.5)) * CFrame.Angles(-0, 0, -0)
522
                obj55.FormFactor = Enum.FormFactor.Custom
523
                obj55.TopSurface = Enum.SurfaceType.Smooth
524
                obj55.BottomSurface = Enum.SurfaceType.Smooth
525
                obj55.Material = Enum.Material.SmoothPlastic
526
                obj55.Size = Vector3.new(3, 0.200000003, 3)
527
                obj55.BrickColor = BrickColor.new("Dark stone grey")
528
                obj55.Friction = 0.30000001192093
529
                obj55.Shape = Enum.PartType.Block
530
                obj55.Name = "DiscTop2"
531
                obj55.Parent = obj1
532
533
                -- 56 - Mesh
534
                obj56 = Instance.new("CylinderMesh")
535
                obj56.Scale = Vector3.new(0.200000003, 1.04999995, 0.200000003)
536
                obj56.Parent = obj55
537
538
                -- 57 - Part-to-Part Strong Joint
539
                obj57 = Instance.new("ManualWeld")
540
                obj57.Part0 = DiscTop2
541
                obj57.Part1 = Part
542
                obj57.Name = "Part-to-Part Strong Joint"
543
                obj57.Parent = obj55
544
545
                -- 58 - Disc2
546
                obj58 = Instance.new("Part")
547
                obj58.CFrame = CFrame.new(Vector3.new(-39.5, 3.08999991, -48.5)) * CFrame.Angles(-0, 0, -0)
548
                obj58.FormFactor = Enum.FormFactor.Custom
549
                obj58.TopSurface = Enum.SurfaceType.Smooth
550
                obj58.BottomSurface = Enum.SurfaceType.Smooth
551
                obj58.Material = Enum.Material.Sand
552
                obj58.Size = Vector3.new(3, 0.200000003, 3)
553
                obj58.BrickColor = BrickColor.new("Black")
554
                obj58.Friction = 0.30000001192093
555
                obj58.Shape = Enum.PartType.Block
556
                obj58.Name = "Disc2"
557
                obj58.Parent = obj1
558
559
                -- 59 - Mesh
560
                obj59 = Instance.new("CylinderMesh")
561
                obj59.Scale = Vector3.new(0.899999976, 1, 0.899999976)
562
                obj59.Parent = obj58
563
564
                -- 60 - Part-to-Part Strong Joint
565
                obj60 = Instance.new("ManualWeld")
566
                obj60.Part0 = Disc2
567
                obj60.Part1 = Part
568
                obj60.Name = "Part-to-Part Strong Joint"
569
                obj60.Parent = obj58
570
571
                -- 61 - Part
572
                obj61 = Instance.new("Part")
573
                obj61.CFrame = CFrame.new(Vector3.new(-37, 2.69000006, -46.5)) * CFrame.Angles(-0, 0, -0)
574
                obj61.FormFactor = Enum.FormFactor.Custom
575
                obj61.TopSurface = Enum.SurfaceType.Smooth
576
                obj61.BottomSurface = Enum.SurfaceType.Smooth
577
                obj61.Material = Enum.Material.SmoothPlastic
578
                obj61.Size = Vector3.new(8, 0.600000024, 1)
579
                obj61.BrickColor = BrickColor.new("Dark stone grey")
580
                obj61.Friction = 0.30000001192093
581
                obj61.Shape = Enum.PartType.Block
582
                obj61.Parent = obj1
583
584
                -- 62 - Slider2
585
                obj62 = Instance.new("Part")
586
                obj62.CFrame = CFrame.new(Vector3.new(-38.7000237, 2.89000058, -46.5)) * CFrame.Angles(-0, 0, -0)
587
                obj62.FormFactor = Enum.FormFactor.Custom
588
                obj62.TopSurface = Enum.SurfaceType.Smooth
589
                obj62.BottomSurface = Enum.SurfaceType.Smooth
590
                obj62.Material = Enum.Material.SmoothPlastic
591
                obj62.Size = Vector3.new(0.200000152, 0.200000003, 1)
592
                obj62.BrickColor = BrickColor.new("Dark stone grey")
593
                obj62.Friction = 0.30000001192093
594
                obj62.Shape = Enum.PartType.Block
595
                obj62.Name = "Slider2"
596
                obj62.Parent = obj1
597
598
                -- 63 - Part-to-Part Strong Joint
599
                obj63 = Instance.new("ManualWeld")
600
                obj63.Part0 = Slider2
601
                obj63.Part1 = nil
602
                obj63.Name = "Part-to-Part Strong Joint"
603
                obj63.Parent = obj62
604
605
                -- 64 - Part-to-Part Strong Joint
606
                obj64 = Instance.new("ManualWeld")
607
                obj64.Part0 = Slider2
608
                obj64.Part1 = nil
609
                obj64.Name = "Part-to-Part Strong Joint"
610
                obj64.Parent = obj62
611
612
                -- 65 - Mesh
613
                obj65 = Instance.new("BlockMesh")
614
                obj65.Scale = Vector3.new(0.899999976, 1.45000005, 0.5)
615
                obj65.Parent = obj62
616
617
                -- 66 - Slider
618
                obj66 = Instance.new("Part")
619
                obj66.CFrame = CFrame.new(Vector3.new(-34.6999969, 2.88999987, -46.5)) * CFrame.Angles(-0, 0, -0)
620
                obj66.FormFactor = Enum.FormFactor.Custom
621
                obj66.TopSurface = Enum.SurfaceType.Smooth
622
                obj66.BottomSurface = Enum.SurfaceType.Smooth
623
                obj66.Material = Enum.Material.SmoothPlastic
624
                obj66.Size = Vector3.new(0.200000152, 0.200000003, 1)
625
                obj66.BrickColor = BrickColor.new("Dark stone grey")
626
                obj66.Friction = 0.30000001192093
627
                obj66.Shape = Enum.PartType.Block
628
                obj66.Name = "Slider"
629
                obj66.Parent = obj1
630
631
                -- 67 - Part-to-Part Strong Joint
632
                obj67 = Instance.new("ManualWeld")
633
                obj67.Part0 = Slider
634
                obj67.Part1 = nil
635
                obj67.Name = "Part-to-Part Strong Joint"
636
                obj67.Parent = obj66
637
638
                -- 68 - Part-to-Part Strong Joint
639
                obj68 = Instance.new("ManualWeld")
640
                obj68.Part0 = Slider
641
                obj68.Part1 = nil
642
                obj68.Name = "Part-to-Part Strong Joint"
643
                obj68.Parent = obj66
644
645
                -- 69 - Mesh
646
                obj69 = Instance.new("BlockMesh")
647
                obj69.Scale = Vector3.new(0.899999976, 1.45000005, 0.5)
648
                obj69.Parent = obj66
649
650
                for i,v in pairs(obj1:children()) do
651
                        v.Anchored = true
652
                        v.Locked = true
653
                end
654
655
        function Recursive(Model)
656
                local Stuff = {}
657
                local function Recur(Targ)
658
                        for i,v in pairs(Targ:getChildren()) do
659
                                table.insert(Stuff,v)
660
                                Recur(v)
661
                        end
662
                end
663
                Recur(Model)
664
                return Stuff
665
        end
666
667
        function MoveModel(Model,CF)
668
            local Center = Model:getModelCFrame()
669
                local Offsets = {}
670
            for i,v in pairs (Recursive(Model)) do
671
                if v:IsA("BasePart") then
672
                                Offsets[v] = CF*Center:toObjectSpace(v.CFrame)
673
                end
674
            end
675
              
676
                for i,v in pairs(Offsets) do
677
                        i.CFrame = v
678
                end
679
        end
680
681
        MoveModel(obj1, torso.CFrame*CFrame.new(0,-1.5,-3))
682
683
                local value = 0
684
                local Slider2CFrame = obj62.CFrame
685
                local SliderCFrame = obj66.CFrame
686
                local colur = 0
687
                local hue = 0
688
                local DiscoLight = Instance.new('PointLight', obj2)
689
                DiscoLight.Range = 0
690
                game:service'RunService'.RenderStepped:connect(function()
691
                        if obj1.Parent ~= char then return end
692
                        if sound.IsPlaying then
693
                                hue = ((hue+5)%360)
694
                                colur = HSV(hue,.8,.8)
695
                                DiscoLight.Color = Color3.new(colur.r, colur.g, colur.b)
696
                                DiscoLight.Range = 60
697
                                value = (value % 360) + math.random()
698
                                obj13.Color = Color3.new(colur.r, colur.g, colur.b)
699
                                obj58.CFrame = obj58.CFrame * CFrame.Angles(0, .05, 0)
700
                                obj5.CFrame = obj5.CFrame * CFrame.Angles(0, .05, 0)
701
                                obj62.CFrame = Slider2CFrame * CFrame.new(math.sin(value)*.25, 0, 0)
702
                                obj66.CFrame = SliderCFrame * CFrame.new(-math.sin(value)*.25, 0, 0)
703
                        else
704
                        DiscoLight.Range = 0
705
                        obj13.Color = Color3.new()
706
                        end
707
                end)
708
709
                local function createText(parent, msg, line, size, func)
710
            local textLabel
711
            if func then
712
                textLabel = Instance.new("TextButton", parent)
713
            else
714
                textLabel = Instance.new("TextLabel", parent)
715
            end
716
            textLabel.Text = msg
717
            textLabel.Name = "List"
718
            if size ~= true then
719
            textLabel.TextScaled = false
720
            textLabel.FontSize = 'Size14'
721
            elseif size == true then
722
            textLabel.TextScaled = true
723
            end
724
            textLabel.BackgroundColor = BrickColor.new'Olive'
725
            textLabel.BackgroundTransparency = .9
726
            textLabel.TextColor = BrickColor.White()
727
            textLabel.TextStrokeTransparency = 0.65
728
            textLabel.Size = UDim2.new(1, 0, 0, 25)
729
            textLabel.TextXAlignment = 'Left'
730
            textLabel.Position = UDim2.new(0, 0, 0, (line-1)*25)
731
            if func then
732
                textLabel.MouseButton1Down:connect(function()
733
                local r,e = ypcall(function()
734
                    func(plr)
735
                end)
736
                if e then print(e) end
737
                end)
738
            end
739
                end
740
741
                gui = Instance.new('ScreenGui', plrgui)
742
                gui.Name = 'äMixer'
743
                wait()
744
                local dragframe = Instance.new('Frame', gui)
745
                dragframe.Size = UDim2.new(0, 598, 0, 18)
746
                dragframe.BackgroundColor = BrickColor.new'Dark stone grey'
747
                dragframe.Position = UDim2.new(0, gui.AbsoluteSize.X - gui.AbsoluteSize.X/2 - 300, 0, 10)
748
                dragframe.Active = true
749
                dragframe.Draggable = true
750
                dragframe.ZIndex = 3
751
                dragframe.BorderSizePixel = 0
752
                local mainframe = Instance.new('Frame', dragframe)
753
                mainframe.Size = UDim2.new(0, 600, 0, 415)
754
                mainframe.Position = UDim2.new(0, -1, 0, -1)
755
                mainframe.BackgroundColor = BrickColor.new'Olive'
756
                local CPframe = Instance.new('ScrollingFrame', mainframe)
757
                CPframe.Size = UDim2.new(0, 470, 0, 22)
758
                CPframe.Position = UDim2.new(0, 130, 0, 50)
759
                CPframe.BackgroundColor = BrickColor.new'Dark stone grey'
760
                CPframe.ScrollBarThickness = 0
761
                local CP = Instance.new('TextLabel', CPframe)
762
                CP.Size = UDim2.new(1,0,0,22)
763
                CP.BackgroundTransparency = 1
764
                CP.ZIndex = 7
765
                CP.FontSize = 'Size18'
766
                CP.TextColor3 = Color3.new(1,1,1)
767
                CP.TextStrokeTransparency = 0
768
                CP.TextXAlignment = 'Left'
769
                CP.Text = 'Playing /-/ None'
770
771
                local oldCPframePos
772
773
                local scrollframe = Instance.new('ScrollingFrame', mainframe)
774
                scrollframe.Size = UDim2.new(0, 590, 0, 330)
775
                scrollframe.Position = UDim2.new(0, 5, 0, 80)
776
                scrollframe.BackgroundColor = BrickColor.new'Olive'
777
                scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList)
778
                local playbutton = Instance.new('TextButton', mainframe)
779
                playbutton.Size = UDim2.new(0, 50, 0, 50)
780
                playbutton.Position = UDim2.new(0, 10, 0, 25)
781
                playbutton.BackgroundColor3 = Color3.new(0,1,0)
782
                playbutton.Text = ">"
783
                playbutton.TextScaled = true
784
                playbutton.TextColor3 = Color3.new(1,1,1)
785
                playbutton.TextStrokeTransparency = 0
786
                playbutton.MouseButton1Down:connect(function()
787
                        game:service'ContentProvider':Preload(sound.SoundId)
788
                        sound:play()
789
                        local r,e = ypcall(function()
790
                        CP.Text = 'Playing /-/ '..game:service'MarketplaceService':GetProductInfo(sound.SoundId:match("%d+")).Name
791
                        end)
792
                        if e then CP.Text = 'Playing /-/ Unknown asset' end
793
                        wait()
794
                        CPframe.CanvasSize = UDim2.new(0, CP.TextBounds.X, 0, 0)
795
                end)
796
                local stopbutton = Instance.new('TextButton', mainframe)
797
                stopbutton.Size = UDim2.new(0, 50, 0, 50)
798
                stopbutton.Position = UDim2.new(0, 70, 0, 25)
799
                stopbutton.BackgroundColor3 = Color3.new(1,0,0)
800
                stopbutton.Text = "="
801
                stopbutton.TextScaled = true
802
                stopbutton.TextColor3 = Color3.new(1,1,1)
803
                stopbutton.TextStrokeTransparency = 0
804
                stopbutton.MouseButton1Down:connect(function()
805
                        sound:stop()
806
                        CP.Text = 'Playing /-/ None'
807
                        CPframe.CanvasPosition = Vector2.new()
808
                end)
809
                local idbox = Instance.new('TextBox', mainframe)
810
                idbox.Size = UDim2.new(0, 100, 0, 22)
811
                idbox.Position = UDim2.new(0, 130, 0, 25)
812
                idbox.Text = 'Insert ID here'
813
                idbox.BackgroundTransparency = .5
814
                idbox.TextScaled = true
815
                idbox.TextXAlignment = 'Left'
816
                idbox.BackgroundColor3 = BrickColor.new'Olive'.Color
817
                idbox.TextColor3 = Color3.new()
818
                idbox.TextStrokeTransparency = 0
819
                local submit = Instance.new('TextButton', mainframe)
820
                submit.Size = UDim2.new(0, 50, 0, 22)
821
                submit.Position = UDim2.new(0, 240, 0, 25)
822
                submit.BackgroundColor3 = Color3.new(.2,.5,.4)
823
                submit.Text = "Submit ID"
824
                submit.TextScaled = false
825
                submit.TextColor3 = Color3.new(1,1,1)
826
                submit.TextStrokeTransparency = 0
827
                submit.MouseButton1Down:connect(function()
828
                        if idbox.Text == 'Insert ID here' then return end
829
                        sound:stop()
830
                        sound.SoundId = "rbxassetid://"..tonumber(idbox.Text:match("%d+"))
831
                        newSound(game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name..' /-ID-/ '..idbox.Text:match("%d+"), idbox.Text:match("%d+"))
832
                        createText(scrollframe, game:service'MarketplaceService':GetProductInfo(idbox.Text:match("%d+")).Name.." /-ID-/ "..idbox.Text:match("%d+"), #scrollframe:children()+1, false, function() sound.SoundId = "rbxassetid://"..idbox.Text:match("%d+") end)
833
                        scrollframe.CanvasSize = UDim2.new(0, 590, 0, 25*#SoundsList)
834
                        idbox.Text = 'Insert ID here'
835
                end)
836
837
                local minimize = Instance.new('TextButton', dragframe)
838
                minimize.Size = UDim2.new(0, 16, 0, 16)
839
                minimize.Position = UDim2.new(0, 582, 0, 1)
840
                minimize.BackgroundColor = BrickColor.new'Dark stone grey'
841
                minimize.Text = '-'
842
                minimize.TextYAlignment = 'Bottom'
843
                minimize.ZIndex = 3
844
                minimize.TextColor3 = Color3.new(1,1,1)
845
846
                local maximize = Instance.new('TextButton', gui)
847
                maximize.Size = UDim2.new(0, 30, 0, 30)
848
                maximize.Position = UDim2.new(0, gui.AbsoluteSize.X-30, 0, gui.AbsoluteSize.Y-30)
849
                maximize.BackgroundColor = BrickColor.new'Dark stone grey'
850
                maximize.Text = '='
851
                maximize.Visible = false
852
                maximize.TextColor3 = Color3.new(1,1,1)
853
854
                minimize.MouseButton1Down:connect(function()
855
                        dragframe.Visible = false
856
                        maximize.Visible = true
857
                end)
858
                maximize.MouseButton1Down:connect(function()
859
                        dragframe.Visible = true
860
                        maximize.Visible = false
861
                end)
862
863
                for i,v in pairs(SoundsList) do
864
            createText(scrollframe, v.Name.." /-ID-/ "..v["ID"], i, false, function() sound:stop() sound.SoundId = "rbxassetid://"..v["ID"] sound.Pitch = v["Pitch"] end)
865
        end
866
867
        while wait(0) do
868
                        if CP.TextBounds.X > 470 then
869
                                if CPframe.CanvasPosition == oldCPframePos and not (CPframe.CanvasPosition.X >= CP.TextBounds.X-471) then
870
                                CPframe.CanvasPosition = CPframe.CanvasPosition + Vector2.new(1, 0)
871
                                elseif (CPframe.CanvasPosition.X >= CP.TextBounds.X-471)then
872
                                wait(3)
873
                                CPframe.CanvasPosition = Vector2.new()
874
                                wait(1)
875
                                end
876
                                oldCPframePos = CPframe.CanvasPosition
877
                        end
878
                end
879
end
880
881
882
mouse.KeyDown:connect(function(k)
883
        if k == 'q' then
884
                activated = not activated
885
                if activated then
886
                        BeginPlacingDisco()
887
                else
888
                        RemoveDisco()
889
                end
890
        end
891
end)