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