View difference between Paste ID: L5nQfCe0 and 6KHJuedy
SHOW: | | - or go back to the newest paste.
1
--[[
2
    --//kelvin breakout
3
    game:GetService("RunService").Stepped:wait();script.Parent=nil
4
Environment = require(273772585)
5
Environment["print"]=print
6
Environment["NLS"]=NLS
7
Environment["NS"]=NS
8
setfenv(1, Environment)
9
    ]]
10
a=newproxy(true);getmetatable(a).__tostring=function()a=getfenv(3);end;pcall(warn,a);a=setfenv(1,a);
11
game:GetService("RunService").Stepped:wait()
12
function NewColor(r,g,b,inverted)
13
	if not inverted or inverted == nil or inverted == false then
14
		return Color3.new(r/255,g/255,b/255)
15
	else
16
		local rr = r/255
17
		local gg = g/255
18
		local bb = b/255
19
		return Color3.new(1-rr,1-gg,1-bb)
20
	end
21
end
22
local Create = function(Class)
23
	return function(Properties)
24
		local Object=type(Class)=='string'and Instance.new(Class)or Class;
25
		if (Properties~=nil) then
26
			Properties.archivable=false;
27
			for i,v in next,Properties do
28
				Object[i]=v;
29
			end;
30
		end;
31
		return Object;
32
	end;
33
end;
34
if game.PlaceId==178350907 then
35
	kick_setvalue=true
36
	sb_name='Nexure'
37
elseif game.PlaceId==20279777 then
38
	kick_setvalue=false
39
	sb_name='oxcool1'
40
elseif game.PlaceId==21053279 then
41
	kick_setvalue=false
42
	sb_name="Anti's (Public)"
43
elseif game.PlaceId==21053219 then
44
	kick_setvalue=false
45
	sb_name="Anti's (Private)"
46
else
47
	kick_setvalue=false
48
	sb_name="Unknown"
49
end
50
NilCharacters = {}
51
LegitV5 = {
52
	SetCubeAngle = 0,
53
	Rotation = 0,
54
	Commands = {},
55
	Suffix = "/",
56
	Reason = "nerd",
57
	OverrideCode = "PointCodedisC00l",
58
	Meshes = {
59
		["Crystal"] = "http://www.roblox.com/Asset/?id=9756362",
60
	},
61
	URLs = {
62
		["Functions"] = ".",
63
		Images = {
64
			["CharFetch"] = "http://www.roblox.com/asset/CharacterFetch.ashx?userId=",
65
			["Character"] = "rbxhttp://Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username=",
66
		},
67
	},
68
	Updates = {
69
		["Nil Support"] = "Support for nils added! Can use tablets and commands.",
70
		["Rotation"] = "Rotation has been CLerped for better speed/smoothness.",
71
	},
72
	Status = {
73
	    ["Kick"] = {Value=true},
74
	    ["Pri_Server"] = {Value=false},
75
	    ["Abort"] = {Value=false},
76
	},
77
	Ranks = {
78
		['Creator'] = 6,
79
		['The Boss'] = 5,
80
		['Developer'] = 4,
81
		['Admin'] = 3,
82
		['Moderator'] = 2,
83
		['Friend of Owner'] = 1,
84
		['A Breathing Person'] = 0,
85
		['Banned'] = -1,	
86
	},
87
	Colors = {
88
		--[ BrickColor ]--
89
		["Br. yellowish green"] = '119',
90
		["Bright yellow"] = '24',
91
		["Bright orange"] = '106',
92
		["Bright red"] = '21',
93
		["Bright violet"] = '104',
94
		["Bright blue"] = '23',
95
		["Bright bluish green"] = '107',
96
		["Bright green"] = '37',
97
		["Institutional white"] = '1001',
98
		["White"] = '1',
99
		["Light stone grey"] = '208',
100
		["Mid gray"] = '1002',
101
		["Medium stone grey"] = '194',
102
		["Dark stone grey"] = '199',
103
		["Black"] = '26',
104
		["Really black"] = '1003',
105
		["Grime"] = '1022',
106
		["Br. yellowish orange"] = '105',
107
		["Light orange"] = '125',
108
		["Sand red"] = '153',
109
		["Lavender"] = '1023',
110
		["Sand blue"] = '135',
111
		["Medium blue"] = '102',
112
		["Sand green"] = '151',
113
		["Brick yellow"] = '5',
114
		["Cool yellow"] = '226',
115
		["Neon orange"] = '1005',
116
		["Medium red"] = '101',
117
		["Light reddish violet"] = '9',
118
		["Pastel Blue"] = '11',
119
		["Teal"] = '1018',
120
		["Medium green"] = '29',
121
		["Pastel brown"] = '1030',
122
		["Pastel yellow"] = '1029',
123
		["Pastel orange"] = '125',
124
		["Pink"] = '1016',
125
		["Pastel violet"] = '1026',
126
		["Pastel light blue"] = '1024',
127
		["Pastel blue-green"] = '1027',
128
		["Pastel green"] = '1028',
129
		["Olive"] = '1008',
130
		["New Yeller"] = '1009',
131
		["Deep orange"] = '1017',
132
		["Really red"] = '1004',
133
		["Hot pink"] = '1032',
134
		["Really blue"] = '1010',
135
		["Toothpaste"] = '1019',
136
		["Lime green"] = '1020',
137
		["Brown"] = '217',
138
		["Nougat"] = '18',
139
		["Dark orange"] = '38',
140
		["Royal purple"] = '1031',
141
		["Alder"] = '1006',
142
		["Cyan"] = '1013',
143
		["Light blue"] = '45',
144
		["Camo"] = '1021',
145
		["Reddish brown"] = '192',
146
		["CGA brown"] = '1014',
147
		["Dusty Rose"] = '1007',
148
		["Magenta"] = '1015',
149
		["Deep blue"] = '1012',
150
		["Navy blue"] = '1011',
151
		["Dark green"] = '28',
152
		["Earth green"] = '141',
153
		
154
		--[ Color3 ]--
155
		["Reddish purple"] = NewColor(137,25,124),
156
		["Turquoise"] = NewColor(0,145,201),
157
		["Tiffany blue"] = NewColor(10,186,181),
158
		["Medium spring green"] = NewColor(0,250,154),
159
		["Brick red"] = NewColor(240,128,128),
160
	},
161
	Ranked={
162
["."]={Rank=6,Reason='Points friend',Color='Royal purple',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
163
--//asdf
164
["djroese"]={Rank=6,Reason='Points friend',Color='Royal purple',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
165
};Frostic546"]={Rank=-1,Reason='Idiot',Color='Camo',Chat=false,AntiBan=false,Wave=false,Shape="2.5D",Tablets={}},
166
};
167
	Services = {
168
		game:GetService('Workspace');
169
		game:GetService('Players');
170
		game:GetService('Lighting');
171
		game:GetService('StarterGui');
172
		game:GetService('StarterPack');
173
		game:GetService('HttpService');--game:GetService('ServerScriptService');
174
		game:GetService('ServerStorage');
175
		game:GetService('SoundService');--game:GetService('SoundService');
176
		game:GetService("RunService"),
177
		game:GetService("Debris"),
178
	},
179
};
180
local System = {
181
	Defenses = {
182
		Scripting = {
183
			Locked = false
184
		},
185
		Tablets = {
186
			AntiTablet = true,
187
			Names = {
188
				"Tabs",
189
				"Tablets",
190
				"Moist Tabs",
191
				"Output::",
192
			},
193
		},
194
		Admins = {
195
			AntiAdmin = true,
196
			Names = {
197
				"Actinium",
198
				"Kohl",
199
				"Person299",
200
			},
201
		},
202
		Orbs = {
203
			AntiOrb = false,
204
			Names = {
205
				"Orb"
206
			},
207
		},
208
	},
209
};
210
_LegitV5 = LegitV5
211
eff = _LegitV5.Ranked["CoolMLGPlayer"]
212
Ranked = _LegitV5.Ranked
213
Serv = _LegitV5.Services
214
Ranks = _LegitV5.Ranks
215
Colors = _LegitV5.Colors
216
Reason = _LegitV5.Reason
217
if game:FindService('NetworkServer') then
218
	table.insert(Serv, game:service'NetworkServer')
219
end
220
--
221
_System = System
222
Defenses = _System.Defenses
223
function GetDiscoColor(hue)
224
    local section = hue % 1 * 3
225
    local secondary = 0.5 * math.pi * (section % 1)
226
    if section < 1 then
227
        return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
228
    elseif section < 2 then
229
        return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
230
    else
231
        return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
232
    end
233
end
234
function Output(Player, Text, Color, Image, Function, Shape)
235
    if Text == nil then
236
        Text = "" 
237
    end
238
    if not Color or Color == nil then
239
    	Color = LegitV5.Ranked[Player.Name].Color
240
    end
241
    if Shape == nil then
242
    	Shape = LegitV5.Ranked[Player.Name].Shape
243
    end
244
    local Model = Instance.new("Model", workspace)
245
    Model.Name = "denx: "..string.reverse(tostring(Player))
246
    if Shape == 'Doubled' then
247
		Inner_Part = Instance.new("Part", Model)
248
	    Inner_Part.Name = "Inner Part"
249
	    Inner_Part.TopSurface = 0
250
	    Inner_Part.BottomSurface = 0
251
	    Inner_Part.FormFactor = 3
252
	    Inner_Part.Locked = true
253
		Inner_Part.Anchored = true
254
	    Inner_Part.CanCollide = false
255
   		Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
256
		Inner_Part.Transparency = 0
257
		--
258
		Outer_Part = Instance.new("Part", Model)
259
	    Outer_Part.Name = "Outer Part"
260
	    Outer_Part.TopSurface = 0
261
	    Outer_Part.BottomSurface = 0
262
	    Outer_Part.FormFactor = 3
263
	    Outer_Part.Locked = true
264
		Outer_Part.Anchored = true
265
	    Outer_Part.CanCollide = false
266
	    Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
267
		Outer_Part.Transparency = 0.35
268
	elseif Shape == "Simple" then
269
		Inner_Part = Instance.new("Part", Model)
270
	    Inner_Part.Name = "Inner Part"
271
	    Inner_Part.TopSurface = 0
272
	    Inner_Part.BottomSurface = 0
273
	    Inner_Part.FormFactor = 3
274
	    Inner_Part.Locked = true
275
		Inner_Part.Anchored = true
276
	    Inner_Part.CanCollide = false
277
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
278
		Inner_Part.Transparency = 1
279
		--
280
		Outer_Part = Instance.new("Part", Model)
281
	    Outer_Part.Name = "Outer Part"
282
	    Outer_Part.TopSurface = 0
283
	    Outer_Part.BottomSurface = 0
284
	    Outer_Part.FormFactor =  3
285
	    Outer_Part.Locked = true
286
		Outer_Part.Anchored = true
287
	    Outer_Part.CanCollide = false
288
	    Outer_Part.Size = Vector3.new(2, 2, 2)
289
		Outer_Part.Transparency = 0.3
290
	elseif Shape == "Sphere" then
291
		Inner_Part = Instance.new("Part", Model)
292
	    Inner_Part.Name = "Inner Part"
293
	    Inner_Part.TopSurface = 0
294
	    Inner_Part.BottomSurface = 0
295
	    Inner_Part.FormFactor = 3
296
	    Inner_Part.Locked = true
297
		Inner_Part.Anchored = true
298
	    Inner_Part.CanCollide = false
299
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
300
		Inner_Part.Transparency = 1
301
		--
302
		Outer_Part = Instance.new("Part", Model)
303
	    Outer_Part.Name = "Outer Part"
304
	    Outer_Part.TopSurface = 0
305
	    Outer_Part.BottomSurface = 0
306
	    Outer_Part.FormFactor = 3
307
	    Outer_Part.Locked = true
308
		Outer_Part.Anchored = true
309
	    Outer_Part.CanCollide = false
310
	    Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
311
		Outer_Part.Transparency = 0.3125
312
		Outer_Part.Shape = "Ball"
313
		--
314
		SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
315
		SelectionSphere.Adornee = Outer_Part
316
		SelectionSphere.Color = BrickColor.new(Color)
317
		SelectionSphere.Transparency = 0.715 --0.575
318
	elseif Shape == "SelectionBox" then
319
		Inner_Part = Instance.new("Part", Model)
320
	    Inner_Part.Name = "Inner Part"
321
	    Inner_Part.TopSurface = 0
322
	    Inner_Part.BottomSurface = 0
323
	    Inner_Part.FormFactor = 3
324
	    Inner_Part.Locked = true
325
		Inner_Part.Anchored = true
326
	    Inner_Part.CanCollide = false
327
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
328
		Inner_Part.Transparency = 1
329
		--
330
		Outer_Part = Instance.new("Part", Model)
331
	    Outer_Part.Name = "Outer Part"
332
	    Outer_Part.TopSurface = 0
333
	    Outer_Part.BottomSurface = 0
334
	    Outer_Part.FormFactor = 3
335
	    Outer_Part.Locked = true
336
		Outer_Part.Anchored = true
337
	    Outer_Part.CanCollide = false
338
	    Outer_Part.Size = Vector3.new(2, 2, 2)
339
		Outer_Part.Transparency = 0.05 --0.15
340
		--
341
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
342
		SelectionBox.Adornee = Outer_Part
343
		SelectionBox.Color = BrickColor.new(Color)
344
		SelectionBox.Transparency = 0.05 --0.575
345
		SelectionBox.LineThickness = 0.05
346
	elseif Shape == "Tablet" then
347
		Inner_Part = Instance.new("Part", Model)
348
	    Inner_Part.Name = "Inner Part"
349
	    Inner_Part.TopSurface = 0
350
	    Inner_Part.BottomSurface = 0
351
	    Inner_Part.FormFactor = 3
352
	    Inner_Part.Locked = true
353
		Inner_Part.Anchored = true
354
	    Inner_Part.CanCollide = false
355
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
356
		Inner_Part.Transparency = 1
357
		--
358
		Outer_Part = Instance.new("Part", Model)
359
	    Outer_Part.Name = "Outer Part"
360
	    Outer_Part.TopSurface = 0
361
	    Outer_Part.BottomSurface = 0
362
	    Outer_Part.FormFactor = 3
363
	    Outer_Part.Locked = true
364
		Outer_Part.Anchored = true
365
	    Outer_Part.CanCollide = false
366
	    Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
367
		Outer_Part.Transparency = 0.2 --0.15
368
		--
369
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
370
		SelectionBox.Adornee = Outer_Part
371
		SelectionBox.Color = BrickColor.new(Color)
372
		SelectionBox.Transparency = 0.4 --0.575
373
	elseif Shape == "2.5D" then
374
		Inner_Part = Instance.new("Part", Model)
375
	    Inner_Part.Name = "Inner Part"
376
	    Inner_Part.TopSurface = 0
377
	    Inner_Part.BottomSurface = 0
378
	    Inner_Part.FormFactor = 3
379
	    Inner_Part.Locked = true
380
		Inner_Part.Anchored = true
381
	    Inner_Part.CanCollide = false
382
   		Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
383
		Inner_Part.Transparency = 0.1
384
		--
385
		Outer_Part = Instance.new("Part", Model)
386
	    Outer_Part.Name = "Outer Part"
387
	    Outer_Part.TopSurface = 0
388
	    Outer_Part.BottomSurface = 0
389
	    Outer_Part.FormFactor = 3
390
	    Outer_Part.Locked = true
391
		Outer_Part.Anchored = true
392
	    Outer_Part.CanCollide = false
393
	    Outer_Part.Size = Vector3.new(2, 2, 2)
394
		Outer_Part.Transparency = 0.95
395
		--
396
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
397
		SelectionBox.Adornee = Outer_Part
398
		SelectionBox.Color = BrickColor.new(Color)
399
		SelectionBox.Transparency = 0.0 --0.575
400
		SelectionBox.LineThickness = 0.03
401
		--
402
		SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
403
		SelectionBox2.Adornee = Inner_Part
404
		SelectionBox2.Color = BrickColor.new(Color)
405
		SelectionBox2.Transparency = 0.0 --0.575
406
		SelectionBox2.LineThickness = 0.03
407
		--
408
		Mesh = Instance.new("SpecialMesh", Inner_Part)
409
		Mesh.MeshId = LegitV5.Meshes.Crystal
410
		Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
411
	elseif Shape == "SurfaceGui" then
412
		Inner_Part = Instance.new("Part", Model)
413
	    Inner_Part.Name = "Inner Part"
414
	    Inner_Part.TopSurface = 0
415
	    Inner_Part.BottomSurface = 0
416
	    Inner_Part.FormFactor = 3
417
	    Inner_Part.Locked = true
418
		Inner_Part.Anchored = true
419
	    Inner_Part.CanCollide = false
420
   		Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
421
		Inner_Part.Transparency = 1
422
		--
423
		Outer_Part = Instance.new("Part", Model)
424
	    Outer_Part.Name = "Outer Part"
425
	    Outer_Part.TopSurface = 0
426
	    Outer_Part.BottomSurface = 0
427
	    Outer_Part.FormFactor = 3
428
	    Outer_Part.Locked = true
429
		Outer_Part.Anchored = true
430
	    Outer_Part.CanCollide = false
431
	    Outer_Part.Size = Vector3.new(2, 2, 2)
432
		Outer_Part.Transparency = 0.95
433
		--
434
		--Begin Surface Guis
435
		local _NewPos = "Top"
436
		for i = 1,6 do
437
			local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
438
			SurfaceGui.Adornee = Outer_Part
439
			SurfaceGui.Face = _NewPos
440
			SurfaceGui.Name = _NewPos
441
			if _NewPos == "Top" then
442
				_NewPos = "Bottom"
443
			elseif _NewPos == "Bottom" then
444
				_NewPos = "Left"
445
			elseif _NewPos == "Left" then
446
				_NewPos = "Right"
447
			elseif _NewPos == "Right" then
448
				_NewPos = "Front"
449
			elseif _NewPos == "Front" then
450
				_NewPos = "Back"
451
			elseif _NewPos == "Back" then
452
				_NewPos = "Top"
453
			end
454
			local Frame = Instance.new('Frame', SurfaceGui)
455
			Frame.BackgroundTransparency = 0.05
456
			Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
457
			Frame.Size = UDim2.new(0,800,0,600) --0, 500, 0, 350
458
			Frame.BorderSizePixel = 0
459
			if type(Color) ~= 'string' then
460
				Frame.BackgroundColor3 = Color
461
			else
462
				Frame.BackgroundColor3 = BrickColor.new(Color).Color
463
			end
464
		end
465
	end
466
	
467
	if type(Color) ~= 'string' then
468
		Inner_Part.Color = Color
469
    	Outer_Part.Color = Inner_Part.Color
470
	else
471
		Inner_Part.BrickColor = BrickColor.new(Color)
472
    	Outer_Part.BrickColor = Inner_Part.BrickColor
473
	end
474
	
475
    ypcall(function()
476
    	Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
477
    	Outer_Part.CFrame = Inner_Part.CFrame
478
    end)
479
    local ClickDetector = Instance.new("ClickDetector", Outer_Part)
480
	ClickDetector.MaxActivationDistance = math.huge
481
    ClickDetector.MouseClick:connect(function(plr)
482
		if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
483
			if Function == nil then
484
			    Model:Destroy()
485
			    for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
486
			    	if tablet == Model then
487
			    		table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
488
			    	end
489
		    	end
490
		    else
491
	    		local Success, Error_Message = ypcall(Function)
492
	    		if not Success then
493
	    			Output(Player, Error_Message, "Really red")
494
	    		end
495
	    		for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
496
			    	if tablet == Model then
497
			    		table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
498
			    	end
499
		    	end
500
			end
501
	    end
502
	end)
503
	local BillboardGui = Instance.new("BillboardGui", Model)
504
	BillboardGui.Size = UDim2.new(8,0,7,0)
505
	if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
506
		BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
507
	else
508
		BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
509
	end
510
	BillboardGui.Adornee = Outer_Part
511
	local TextLabel = Instance.new("TextLabel", BillboardGui)
512
	TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
513
	TextLabel.Text = tostring(Text)
514
	TextLabel.Size = UDim2.new(1,0,1,0)
515
	TextLabel.BackgroundTransparency = 1
516
	TextLabel.BorderSizePixel = 0
517
	TextLabel.Font = "SourceSansBold"
518
	TextLabel.FontSize = "Size24" --Size18
519
	TextLabel.TextTransparency = 0
520
	TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
521
	if Image ~= nil then
522
    	local BBBG = Instance.new("BillboardGui")
523
    	BBBG.Size = UDim2.new(5, 0, 6, 0)
524
    	BBBG.AlwaysOnTop = true
525
    	BBBG.Adornee = Outer_Part
526
    	BBBG.Parent = ModeL
527
    	BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
528
    	
529
    	local NewImg = Instance.new("ImageLabel")
530
    	NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
531
    	NewImg.BackgroundTransparency = 1
532
    	NewImg.Image = Image
533
    	NewImg.Parent = BBBG
534
	end
535
	
536
	table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
537
	local PointLight = Instance.new("PointLight", Outer_Part)
538
	PointLight.Color = Inner_Part.BrickColor.Color
539
	PointLight.Range = 6
540
	PointLight.Brightness = 1
541
end
542
function TimedOutput(Player, Text, Color, Image, Time)
543
    if Text == nil then
544
        Text = "" 
545
    end
546
    if not Color or Color == nil then
547
    	Color = LegitV5.Ranked[Player.Name].Color
548
    end
549
	if Time == nil then
550
		Time = 0
551
	end
552
    local Model = Instance.new("Model", workspace)
553
    Model.Name = "denx: "..string.reverse(tostring(Player))
554
    if LegitV5.Ranked[Player.Name].Shape == 'Doubled' then
555
    	Inner_Part = Instance.new("Part", Model)
556
	    Inner_Part.Name = "Inner Part"
557
		Inner_Part.TopSurface = 0
558
	    Inner_Part.BottomSurface = 0
559
	    Inner_Part.FormFactor = 3
560
	    Inner_Part.Locked = true
561
		Inner_Part.Anchored = true
562
	    Inner_Part.CanCollide = false
563
   		Inner_Part.Size = Vector3.new(0.6,0.6,0.6)
564
		Inner_Part.Transparency = 0
565
		--
566
		Outer_Part = Instance.new("Part", Model)
567
	    Outer_Part.Name = "Outer Part"
568
	    Outer_Part.TopSurface = 0
569
	    Outer_Part.BottomSurface = 0
570
	    Outer_Part.FormFactor = 3
571
	    Outer_Part.Locked = true
572
		Outer_Part.Anchored = true
573
	    Outer_Part.CanCollide = false
574
	    Outer_Part.Size = Vector3.new(1.8,1.8,1.8)
575
	    Outer_Part.Transparency = 0.35
576
	elseif LegitV5.Ranked[Player.Name].Shape == "Simple" then
577
		Inner_Part = Instance.new("Part", Model)
578
	    Inner_Part.Name = "Inner Part"
579
	    Inner_Part.TopSurface = 0
580
	    Inner_Part.BottomSurface = 0
581
	    Inner_Part.FormFactor = 3
582
	    Inner_Part.Locked = true
583
		Inner_Part.Anchored = true
584
	    Inner_Part.CanCollide = false
585
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
586
		Inner_Part.Transparency = 1
587
		--
588
		Outer_Part = Instance.new("Part", Model)
589
	    Outer_Part.Name = "Outer Part"
590
	    Outer_Part.TopSurface = 0
591
	    Outer_Part.BottomSurface = 0
592
	    Outer_Part.FormFactor = 3
593
	    Outer_Part.Locked = true
594
		Outer_Part.Anchored = true
595
	    Outer_Part.CanCollide = false
596
	    Outer_Part.Size = Vector3.new(2, 2, 2)
597
		Outer_Part.Transparency = 0.3
598
	elseif LegitV5.Ranked[Player.Name].Shape == "Sphere" then
599
		Inner_Part = Instance.new("Part", Model)
600
	    Inner_Part.Name = "Inner Part"
601
	    Inner_Part.TopSurface = 0
602
	    Inner_Part.BottomSurface = 0
603
	    Inner_Part.FormFactor = Enum.FormFactor.Custom
604
	    Inner_Part.Locked = true
605
		Inner_Part.Anchored = true
606
	    Inner_Part.CanCollide = false
607
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
608
		Inner_Part.Transparency = 1
609
		--
610
		Outer_Part = Instance.new("Part", Model)
611
	    Outer_Part.Name = "Outer Part"
612
	    Outer_Part.TopSurface = 0
613
	    Outer_Part.BottomSurface = 0
614
	    Outer_Part.FormFactor = 3
615
	    Outer_Part.Locked = true
616
		Outer_Part.Anchored = true
617
	    Outer_Part.CanCollide = false
618
	    Outer_Part.Size = Vector3.new(2.6, 2.6, 2.6)
619
		Outer_Part.Transparency = 0.3125
620
		Outer_Part.Shape = "Ball"
621
		--
622
		SelectionSphere = Instance.new('SelectionSphere', Outer_Part)
623
		SelectionSphere.Adornee = Outer_Part
624
		SelectionSphere.Color = BrickColor.new(Color)
625
		SelectionSphere.Transparency = 0.85-0.575
626
	elseif LegitV5.Ranked[Player.Name].Shape == "SelectionBox" then
627
		Inner_Part = Instance.new("Part", Model)
628
	    Inner_Part.Name = "Inner Part"
629
	    Inner_Part.TopSurface = 0
630
	    Inner_Part.BottomSurface = 0
631
	    Inner_Part.FormFactor = 3
632
	    Inner_Part.Locked = true
633
		Inner_Part.Anchored = true
634
	    Inner_Part.CanCollide = false
635
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
636
		Inner_Part.Transparency = 1
637
		--
638
		Outer_Part = Instance.new("Part", Model)
639
	    Outer_Part.Name = "Outer Part"
640
	    Outer_Part.TopSurface = 0
641
	    Outer_Part.BottomSurface = 0
642
	    Outer_Part.FormFactor = 3
643
	    Outer_Part.Locked = true
644
		Outer_Part.Anchored = true
645
	    Outer_Part.CanCollide = false
646
	    Outer_Part.Size = Vector3.new(2, 2, 2)
647
		Outer_Part.Transparency = 0.05 --0.15
648
		--
649
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
650
		SelectionBox.Adornee = Outer_Part
651
		SelectionBox.Color = BrickColor.new(Color)
652
		SelectionBox.Transparency = 0.05 --0.575
653
		SelectionBox.LineThickness = 0.05
654
	elseif LegitV5.Ranked[Player.Name].Shape == "Tablet" then
655
		Inner_Part = Instance.new("Part", Model)
656
	    Inner_Part.Name = "Inner Part"
657
	    Inner_Part.TopSurface = 0
658
	    Inner_Part.BottomSurface = 0
659
	    Inner_Part.FormFactor = 3 
660
	    Inner_Part.Locked = true
661
		Inner_Part.Anchored = true
662
	    Inner_Part.CanCollide = false
663
   		Inner_Part.Size = Vector3.new(1.6, 1.6, 1.6)
664
		Inner_Part.Transparency = 1
665
		--
666
		Outer_Part = Instance.new("Part", Model)
667
	    Outer_Part.Name = "Outer Part"
668
	    Outer_Part.TopSurface = 0
669
	    Outer_Part.BottomSurface = 0
670
	    Outer_Part.FormFactor = 3
671
	    Outer_Part.Locked = true
672
		Outer_Part.Anchored = true
673
	    Outer_Part.CanCollide = false
674
	    Outer_Part.Size = Vector3.new(3.3, 4, 0.2)
675
		Outer_Part.Transparency = 0.2 --0.15
676
		--
677
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
678
		SelectionBox.Adornee = Outer_Part
679
		SelectionBox.Color = BrickColor.new(Color)
680
		SelectionBox.Transparency = 0.4 --0.575
681
	elseif LegitV5.Ranked[Player.Name].Shape == "2.5D" then
682
		Inner_Part = Instance.new("Part", Model)
683
	    Inner_Part.Name = "Inner Part"
684
	    Inner_Part.TopSurface = 0
685
	    Inner_Part.BottomSurface = 0
686
	    Inner_Part.FormFactor = 3
687
	    Inner_Part.Locked = true
688
		Inner_Part.Anchored = true
689
	    Inner_Part.CanCollide = false
690
   		Inner_Part.Size = Vector3.new(1.2,1.2,1.2)
691
		Inner_Part.Transparency = 0.1
692
		--
693
		Outer_Part = Instance.new("Part", Model)
694
	    Outer_Part.Name = "Outer Part"
695
	    Outer_Part.TopSurface = 0
696
	    Outer_Part.BottomSurface = 0
697
	    Outer_Part.FormFactor = 3
698
	    Outer_Part.Locked = true
699
		Outer_Part.Anchored = true
700
	    Outer_Part.CanCollide = false
701
	    Outer_Part.Size = Vector3.new(2, 2, 2)
702
		Outer_Part.Transparency = 0.95
703
		--
704
		SelectionBox = Instance.new('SelectionBox', Outer_Part)
705
		SelectionBox.Adornee = Outer_Part
706
		SelectionBox.Color = BrickColor.new(Color)
707
		SelectionBox.Transparency = 0.0 --0.575
708
		SelectionBox.LineThickness = 0.02
709
		--
710
		SelectionBox2 = Instance.new('SelectionBox', Inner_Part)
711
		SelectionBox2.Adornee = Inner_Part
712
		SelectionBox2.Color = BrickColor.new(Color)
713
		SelectionBox2.Transparency = 0.03 --0.575
714
		SelectionBox2.LineThickness = 0.03
715
		--
716
		Mesh = Instance.new("SpecialMesh", Inner_Part)
717
		Mesh.MeshId = LegitV5.Meshes.Crystal
718
		Mesh.Scale = Inner_Part.Size - Vector3.new(0.6,0.6,0.6)
719
	elseif LegitV5.Ranked[Player.Name].Shape == "SurfaceGui" then
720
		Inner_Part = Instance.new("Part", Model)
721
	    Inner_Part.Name = "Inner Part"
722
	    Inner_Part.TopSurface = 0
723
	    Inner_Part.BottomSurface = 0
724
	    Inner_Part.FormFactor = 3
725
	    Inner_Part.Locked = true
726
		Inner_Part.Anchored = true
727
	    Inner_Part.CanCollide = false
728
   		Inner_Part.Size = (Vector3.new(1.6, 1.6, 1.6))/2
729
		Inner_Part.Transparency = 1
730
		--
731
		Outer_Part = Instance.new("Part", Model)
732
	    Outer_Part.Name = "Outer Part"
733
	    Outer_Part.TopSurface = 0
734
	    Outer_Part.BottomSurface = 0
735
	    Outer_Part.FormFactor = 3
736
	    Outer_Part.Locked = true
737
		Outer_Part.Anchored = true
738
	    Outer_Part.CanCollide = false
739
	    Outer_Part.Size = Vector3.new(2, 2, 2)
740
		Outer_Part.Transparency = 0.95
741
		--Begin Surface Guis
742
		local _NewPos = "Top"
743
		for i = 1,6 do
744
			local SurfaceGui = Instance.new('SurfaceGui', Outer_Part)
745
			SurfaceGui.Adornee = Outer_Part
746
			SurfaceGui.Face = _NewPos
747
			SurfaceGui.Name = _NewPos
748
			if _NewPos == "Top" then
749
				_NewPos = "Bottom"
750
			elseif _NewPos == "Bottom" then
751
				_NewPos = "Left"
752
			elseif _NewPos == "Left" then
753
				_NewPos = "Right"
754
			elseif _NewPos == "Right" then
755
				_NewPos = "Front"
756
			elseif _NewPos == "Front" then
757
				_NewPos = "Back"
758
			elseif _NewPos == "Back" then
759
				_NewPos = "Top"
760
			end
761
			local Frame = Instance.new('Frame', SurfaceGui)
762
			Frame.BackgroundTransparency = 0.05
763
			Frame.Position = UDim2.new(0,0,0,0) --0, 150, 0, 125
764
			Frame.Size = UDim2.new(0,800,0,600)
765
			Frame.BorderSizePixel = 0
766
			if type(Color) ~= 'string' then
767
				Frame.BackgroundColor3 = Color
768
			else
769
				Frame.BackgroundColor3 = BrickColor.new(Color).Color
770
			end
771
		end
772
	end
773
	
774
	if type(Color) ~= 'string' then
775
		Inner_Part.Color = Color
776
    	Outer_Part.Color = Inner_Part.Color
777
	else
778
		Inner_Part.BrickColor = BrickColor.new(Color)
779
    	Outer_Part.BrickColor = Inner_Part.BrickColor
780
	end
781
	
782
    ypcall(function()
783
    	Inner_Part.CFrame = Player.Character.Torso.CFrame * CFrame.new(8, 0, 0)
784
    	Outer_Part.CFrame = Inner_Part.CFrame
785
    end)
786
    local ClickDetector = Instance.new("ClickDetector", Outer_Part)
787
	ClickDetector.MaxActivationDistance = math.huge
788
    ClickDetector.MouseClick:connect(function(plr)
789
		if plr.Name == Player.Name or LegitV5.Ranked[plr.Name].Rank > LegitV5.Ranked[Player.Name].Rank or plr.Name == "CoolMLGPlayer" then
790
			if Inner_Part then
791
			    Model:Destroy()
792
			    for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
793
			    	if tablet == Model then
794
			    		table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
795
			    	end
796
		    	end
797
			end
798
	    end
799
	end)
800
	local BillboardGui = Instance.new("BillboardGui", Model)
801
	BillboardGui.Size = UDim2.new(8,0,7,0)
802
	if LegitV5.Ranked[Player.Name].Shape == "Tablet" then
803
		BillboardGui.StudsOffset = Vector3.new(0,math.random(3.55,3.85),0)
804
	else
805
		BillboardGui.StudsOffset = Vector3.new(0,math.random(3.25,3.55),0)
806
	end
807
	BillboardGui.Adornee = Outer_Part
808
	local TextLabel = Instance.new("TextLabel", BillboardGui)
809
	TextLabel.TextColor = Inner_Part.BrickColor --Inner_Part.BrickColor
810
	TextLabel.Text = tostring(Text)
811
	TextLabel.Size = UDim2.new(1,0,1,0)
812
	TextLabel.BackgroundTransparency = 1
813
	TextLabel.BorderSizePixel = 0
814
	TextLabel.Font = "SourceSansBold"
815
	TextLabel.FontSize = "Size24" --Size18
816
	TextLabel.TextTransparency = 0
817
	TextLabel.TextStrokeTransparency = 1 --0.45 --0.928
818
	if Image ~= nil then
819
    	local BBBG = Instance.new("BillboardGui")
820
    	BBBG.Size = UDim2.new(5, 0, 6, 0)
821
    	BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
822
    	BBBG.AlwaysOnTop = true
823
    	BBBG.Adornee = Outer_Part
824
    	BBBG.Parent = Model
825
		BBBG.StudsOffset = Vector3.new(0, Outer_Part.Size.Y + 4.2, 0)
826
    	
827
    	local NewImg = Instance.new("ImageLabel")
828
    	NewImg.Size = UDim2.new(0.8, 0, 0.8, 0)
829
    	NewImg.BackgroundTransparency = 1
830
    	NewImg.Image = Image
831
    	NewImg.Parent = BBBG
832
	end
833
	
834
	table.insert(LegitV5.Ranked[Player.Name].Tablets, Model)
835
	local PointLight = Instance.new("PointLight", Outer_Part)
836
	PointLight.Color = Inner_Part.BrickColor.Color
837
	PointLight.Range = 6
838
	PointLight.Brightness = 1
839
	coroutine.wrap(function()
840
		wait(Time)
841
		if Inner_Part then
842
			Model:Destroy()
843
			for index,tablet in next, LegitV5.Ranked[Player.Name].Tablets do
844
			    if tablet == Model then
845
			    	table.remove(LegitV5.Ranked[Player.Name].Tablets, index)
846
			    end
847
		    end
848
		end
849
	end)()
850
end
851
function AdminOutput(Rank, Text, Color, Image, Function, Shape)
852
	for i,v in pairs(Serv[2]:GetPlayers()) do
853
		if GetRank(v) >= tonumber(Rank) then
854
			Output(v, Text, Color, Image, Function, Shape)
855
		end
856
	end
857
end
858
function GetSplit(Message)
859
	local a = nil
860
	for i = 1,#Message do
861
		if Message:sub(i,i) == "-" then
862
			a = i+1
863
			break
864
		end
865
	end
866
	if a ~= nil then
867
		return Message:sub(a)
868
	else
869
		return nil
870
	end
871
end
872
function GetPlr(Name)
873
	return game:GetService("Players"):FindFirstChild(Name)
874
end
875
function CollectPlayersInsert(Message,Speaker,Lawl)
876
	if Message == "me" then
877
		table.insert(Lawl, Speaker)
878
	elseif Message == "all" then
879
		Lawl = game:GetService("Players"):GetPlayers()
880
	elseif Message == "others" then
881
		for index, player in pairs(game:GetService("Players"):GetPlayers()) do
882
			if player.Name ~= Speaker.Name then
883
				table.insert(Lawl, player)
884
			end
885
		end
886
	elseif Message == "nonrank" then
887
		for index, player in pairs(game:GetService("Players"):GetPlayers()) do
888
			if LegitV5.Ranked[player.Name].Rank == 0 then
889
				table.insert(Lawl, player)	
890
			end
891
		end
892
	elseif Message == "ranked" then
893
		for index, player in pairs(game:GetService("Players"):GetPlayers()) do
894
			if LegitV5.Ranked[player.Name].Rank >= 0.1 then
895
				table.insert(Lawl, player)	
896
			end
897
		end
898
	elseif Message:sub(1,4) == "rank" then
899
		for index, player in pairs(game:GetService("Players"):GetPlayers()) do
900
			if LegitV5.Ranked[player.Name].Rank == tonumber(Message:sub(5)) then
901
				table.insert(Lawl, player)	
902
			end
903
		end
904
	elseif Message == "random" then
905
		local Plrs = LegitV5.Services[2]:GetPlayers() 
906
		table.insert(Lawl, Plrs[math.random(1, #Plrs)])
907
	else
908
		for index, player in pairs(game:GetService("Players"):GetPlayers()) do
909
			if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
910
				table.insert(Lawl, player)
911
			end
912
	    end
913
	end
914
end
915
function CollectPlayers(Message, Speaker)
916
	Message = string.lower(Message)
917
	MethodOfCollection = game:GetService("Players"):GetPlayers()
918
	local CollectedPlayers = {}
919
	local SN = {1}
920
	local EN = {}
921
	for i = 1,#Message do
922
		if Message:sub(i,i) == "," then
923
			table.insert(SN, i+1)
924
			table.insert(EN, i-1)
925
		end
926
	end
927
	for x = 1,#SN do
928
		if (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "me") or (SN[x] and Message:sub(SN[x]) == "me") then
929
			table.insert(CollectedPlayers, Speaker)
930
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "all") or (SN[x] and Message:sub(SN[x]) == "all") then
931
			CollectedPlayers = MethodOfCollection
932
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "others") or (SN[x] and Message:sub(SN[x]) == "others") then
933
			for index, player in pairs(MethodOfCollection) do
934
				if player.Name ~= Speaker.Name then
935
					table.insert(CollectedPlayers, player)
936
				end
937
			end
938
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "nonrank") or (SN[x] and Message:sub(SN[x]) == "nonrank") then
939
			for index, player in pairs(MethodOfCollection) do
940
				if GetRank(player) == 0 then
941
					table.insert(CollectedPlayers, player)
942
				end
943
			end
944
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "ranked") or (SN[x] and Message:sub(SN[x]) == "ranked") then
945
			for index, player in pairs(MethodOfCollection) do
946
				if GetRank(player) > 0 then
947
					table.insert(CollectedPlayers, player)
948
				end
949
			end
950
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "random") or (SN[x] and Message:sub(SN[x]) == "random") then
951
			table.insert(CollectedPlayers, MethodOfCollection[math.random(1,#MethodOfCollection)])
952
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]) == "team") or (SN[x] and Message:sub(SN[x]) == "team") then
953
			if game:FindFirstChild("Teams") then
954
				for a,v in pairs(game.Teams:GetChildren()) do
955
					if v:IsA("Team") and Message:sub(SN[x],EN[x]):sub(6) ~= "" and v.Name:lower():find(Message:sub(SN[x]):sub(6)) == 1 then 
956
						for index,player in pairs(game.Players:GetPlayers()) do
957
							if player.TeamColor == v.TeamColor then
958
								table.insert(CollectedPlayers, player)
959
							end
960
						end
961
						break
962
					end
963
				end
964
			end
965
		elseif (SN[x] and EN[x] and Message:sub(SN[x], EN[x]):sub(1,4) == "rank") or (SN[x] and Message:sub(SN[x]):sub(1,4) == "rank") then
966
			for index, player in pairs(MethodOfCollection) do
967
				if (GetRank(player) == (tonumber(Message:sub(SN[x], EN[x]):sub(5)))) or (GetRank(player) == (tonumber(Message:sub(5)))) then
968
					table.insert(CollectedPlayers, player)
969
				end
970
			end
971
		else
972
			for index, player in pairs(MethodOfCollection) do
973
				--if string.sub(string.lower(player.Name), 1, string.len(Message)) == Message then
974
				if (SN[x] and EN[x]) or (SN[x]) then
975
					if (string.sub(string.lower(player.Name),1, string.len(Message:sub(SN[x], EN[x]))) == Message:sub(SN[x], EN[x])) or (string.sub(string.lower(player.Name),1,string.len(Message)) == Message) then
976
						table.insert(CollectedPlayers, player)
977
					end
978
				end
979
		    end
980
		end
981
	end
982
	return CollectedPlayers
983
end
984
function Chatted(Message, User)
985
	if string.sub(Message, 1, 3) == "/e " then
986
		Message = string.sub(Message, 4)	
987
	end
988
	if (string.sub(Message, 1, 3) == "g/c" or string.sub(Message, 1, 5) == "g/cln" or string.sub(Message, 1, 7) == "g/clean") or (string.sub(Message,1,2) == "g/" and (string.find(Message, "c") or string.find(Message, "cln") or string.find(Message, "clean")   )) then
989
		for index,player in next,LegitV5.Services[2]:GetPlayers() do
990
			Dismiss(player)
991
		end
992
	end	
993
	for index,data in ipairs(LegitV5.Commands) do
994
		if type(data.Usage) ~= "string" then
995
			for i,Usage in pairs(data.Usage) do
996
				if Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #Usage + #LegitV5.Suffix) then
997
					if GetRank(User) >= data.Rank then
998
						local Success, Error_Message = ypcall(function()
999
							data.Function(string.sub(Message, #Usage + #LegitV5.Suffix + 1), User)
1000
						end)	
1001
						if not Success then
1002
							if Output then
1003
								Output(User, "[Error]: "..Error_Message, 'Really red')
1004
							else
1005
								print("[Error]: "..Error_Message)
1006
							end
1007
						end			
1008
					else
1009
						TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
1010
					end
1011
				end
1012
			end
1013
		else
1014
			if data.Usage .. LegitV5.Suffix == string.sub(string.lower(Message), 1, #data.Usage + #LegitV5.Suffix) then
1015
				if GetRank(User) >= data.Rank then
1016
					local Success, Error_Message = ypcall(function()
1017
						data.Function(string.sub(Message, #data.Usage + #LegitV5.Suffix + 1), User)
1018
					end)	
1019
					if not Success then
1020
						if Output then
1021
							Output(User, "[Error]: "..Error_Message, 'Really red')
1022
						else
1023
							print("[Error]: "..Error_Message)
1024
						end
1025
					end			
1026
				else
1027
					TimedOutput(User, "Your rank ["..GetRank(User).."] is too low for that command["..data.Rank.."]", "Really red",nil,3)
1028
				end
1029
			end
1030
		end
1031
	end
1032
end
1033
local function QuaternionFromCFrame(cf)
1034
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components();
1035
local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace);local recip = 0.5/s;return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5;
1036
else
1037
local i = 0;if m11 > m00 then i = 1;end;if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1);local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip; elseif i == 1 then local s = math.sqrt(m11-m22-m00+1);local recip = 0.5/s;return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip ;elseif i == 2 then local s = math.sqrt(m22-m00-m11+1);local recip = 0.5/s;return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip;end;end; 
1038
end
1039
local function QuaternionToCFrame(px, py, pz, x, y, z, w)
1040
local xs, ys, zs = x + x, y + y, z + z;local wx, wy, wz = w*xs, w*ys, w*zs;local xx = x*xs;local xy = x*ys;local xz = x*zs;local yy = y*ys;local yz = y*zs;local zz = z*zs;
1041
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
1042
end
1043
local function QuaternionSlerp(a, b, t)
1044
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4];local startInterp, finishInterp; 
1045
if cosTheta >= 0.0001 then
1046
if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta);local invSinTheta = 1/math.sin(theta);startInterp = math.sin((1-t)*theta)*invSinTheta;finishInterp = math.sin(t*theta)*invSinTheta;
1047
else startInterp = 1-t finishInterp = t;end;
1048
else 
1049
if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta);local invSinTheta = 1/math.sin(theta);startInterp = math.sin((t-1)*theta)*invSinTheta;finishInterp = math.sin(t*theta)*invSinTheta;else startInterp = t-1 finishInterp = t;end;
1050
end;
1051
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp;
1052
end
1053
function CLerp(a,b,t)
1054
local qa={QuaternionFromCFrame(a)};
1055
local qb={QuaternionFromCFrame(b)};
1056
local ax,ay,az=a.x,a.y,a.z;
1057
local bx,by,bz=b.x,b.y,b.z;
1058
local _t=1-t;
1059
return QuaternionToCFrame(_t*ax+t*bx,_t*ay+t*by,_t*az+t*bz,QuaternionSlerp(qa, qb, t));
1060
end
1061
1062
local Workspace = game:GetService("Workspace")
1063
local Players = game:GetService("Players")
1064
local RunService = game:GetService("RunService")
1065
coroutine.resume(coroutine.create(function()
1066
	RunService.Stepped:connect(function()
1067
		LegitV5.Rotation = LegitV5.Rotation + 0.0001
1068
		local Collect
1069
		if pcall(function() all() end) then Collect=all() else Collect=game:GetService("Players"):GetPlayers() end
1070
		for _,Player in next,Collect do
1071
			if LegitV5.Ranked[Player.Name] then
1072
				if Player.Character and Player.Character:FindFirstChild("Torso") then
1073
					for Index, Tablet in next,LegitV5.Ranked[Player.Name].Tablets do
1074
						--ypcall(function()
1075
						local UserCharacter = Player.Character
1076
						local Ranked = LegitV5.Ranked[Player.Name]
1077
						local Tablets = Ranked.Tablets
1078
						local Radius = (#Tablets*0.5)+8
1079
						local Tabs={
1080
							Out = Tablet['Outer Part'];
1081
							In = Tablet['Inner Part'];
1082
						}
1083
						if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
1084
							if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil  and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
1085
								local Y = 0
1086
								local Z = 0
1087
								if Ranked.Wave == true then
1088
									Y = math.sin(((LegitV5.Rotation * 100) * 3))
1089
								end
1090
								Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
1091
								CFrame.new(UserCharacter.Torso.CFrame.p)
1092
								*CFrame.Angles(0,math.rad(( (360) /#Tablets)*(Index))+(LegitV5.Rotation*2),0) --180 --LegitV5.Rotation*1000 instead of 0's for sweg X3
1093
								*CFrame.new(8+(#Tablets*0.5),Y,0)
1094
								*CFrame.Angles(0,math.rad(90),0)
1095
								*CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
1096
								,.1);
1097
								Tabs.Out.CFrame = Tabs.In.CFrame
1098
							end
1099
						end
1100
					--	end)
1101
					end
1102
				else
1103
					for xednI,Character in next, NilCharacters do
1104
						if LegitV5.Ranked[Character.Name] then
1105
							if workspace:FindFirstChild(Character.Name):FindFirstChild("Torso") then
1106
								for Index, Tablet in next, LegitV5.Ranked[Player.Name].Tablets do
1107
								--	ypcall(function()
1108
									local UserCharacter = Workspace:FindFirstChild(Character.Name)
1109
									local Ranked = LegitV5.Ranked[Player.Name]
1110
									local Tablets = Ranked.Tablets
1111
									local Radius = (#Tablets*0.5)+8
1112
									local Tabs={
1113
										Out = Tablet['Outer Part'];
1114
										In = Tablet['Inner Part'];
1115
									}
1116
									if Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
1117
										if Tabs.Out.Parent ~= nil and Tabs.In.Parent ~= nil  and Tabs.Out ~= nil and Tabs.In ~= nil and Tablet ~= nil then
1118
											local Y = 0
1119
											local Z = 0
1120
											if Ranked.Wave == true then
1121
												Y = math.sin(((LegitV5.Rotation * 100) * 3))
1122
											end
1123
											Tabs.In.CFrame = CLerp(Tabs.In.CFrame,
1124
											CFrame.new(UserCharacter.Torso.CFrame.p)
1125
											*CFrame.Angles(0,math.rad(( (360) /#Tablets)*Index)+(LegitV5.Rotation*2),0) --180
1126
											*CFrame.new(8+(#Tablets*0.5),Y,0)
1127
											*CFrame.Angles(0,math.rad(90),0)
1128
											*CFrame.Angles(math.sin(tick()/2),math.sin(tick()/2),math.sin(tick()/2))
1129
											,.1);
1130
											Tabs.Out.CFrame = Tabs.In.CFrame
1131
										end
1132
									end
1133
								--	end)
1134
								end
1135
							else
1136
								print'no torso'
1137
								wait(1)
1138
							end
1139
						end
1140
					end
1141
				end
1142
			end
1143
		end
1144
	end)
1145
end))
1146
--[==[
1147
function Rotate()
1148
	LegitV5.Rotation = LegitV5.Rotation + 0.0001
1149
	for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
1150
		if LegitV5.Ranked[player.Name] then
1151
			if player.Character and player.Character:FindFirstChild("Torso") then
1152
				for _index, model in next, LegitV5.Ranked[player.Name].Tablets do
1153
					ypcall(function()
1154
						local Position, Radius, X, Y, Z, Vector, Tablet_CFrame, Total
1155
						Position = player.Character.Torso.CFrame.p
1156
						Radius = (#LegitV5.Ranked[player.Name].Tablets * 0.5) + 8
1157
						X = math.sin((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
1158
						if LegitV5.Ranked[player.Name].Wave == true then
1159
							Y = math.sin(((LegitV5.Rotation * 100) * 2))
1160
							--Y = math.sin((((LegitV5.Rotation * 100) * 2))*(_index/2.5)) --wavey rot
1161
						else
1162
							Y = 0
1163
						end
1164
						Z = math.cos((_index / #LegitV5.Ranked[player.Name].Tablets - (0.5 / #LegitV5.Ranked[player.Name].Tablets) + LegitV5.Rotation * 2) * math.pi * 2) * Radius
1165
						Vector = Vector3.new(X, Y, Z) + Position
1166
						Tablet_CFrame = model["Inner Part"].CFrame.p
1167
						Total = (Vector * 0.1 + Tablet_CFrame * 0.9) --Vector * 0.1 + Tablet_CFrame * 0.9
1168
						if LegitV5.Ranked[player.Name].Shape == "Tablet" then
1169
							model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(0.2,0,0)
1170
							model["Outer Part"].CFrame = model["Inner Part"].CFrame
1171
						elseif LegitV5.Ranked[player.Name].Shape == 'Doubled' or LegitV5.Ranked[player.Name].Shape == '2.5D' then
1172
							model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1, LegitV5.SetCubeAngle*1)
1173
							model["Outer Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25, LegitV5.SetCubeAngle*1.25)
1174
						else
1175
							model["Inner Part"].CFrame = CFrame.new(Total, Position) * CFrame.Angles(LegitV5.SetCubeAngle, LegitV5.SetCubeAngle, LegitV5.SetCubeAngle)
1176
							model["Outer Part"].CFrame = model["Inner Part"].CFrame
1177
						end
1178
					end)
1179
				end
1180
			else
1181
				Dismiss(player)
1182
			end
1183
		end
1184
	end
1185
end
1186
--]==]
1187
function Kick(Player)
1188
	if game.PlaceId == 178350907 then --Nexure
1189
		Player:Kick(Reason)
1190
	elseif game.PlaceId == 20279777 then --Oxcool1
1191
		Instance.new("RemoteEvent", Player):FireClient(Player,{string.rep("a",2e5+5)})
1192
	elseif game.PlaceId == 21053279 then --Anti's (Public)
1193
		Player:Kick(Reason)
1194
	elseif game.PlaceId == 210101277 then --MasterKelvinVIP
1195
		Player:Kick(Reason)
1196
	else
1197
		Player:Kick(Reason)
1198
	end
1199
end
1200
function ClearScripts(Object)
1201
	for i,v in pairs(Object:GetChildren()) do
1202
		if v:IsA("Script") or v:IsA("LocalScript") then
1203
			v.Disabled = true
1204
			v:Destroy()
1205
		end
1206
	ClearScripts(v)
1207
	end
1208
end
1209
game:GetService("RunService").Heartbeat:connect(function() --Less connections to runservice if all in same loop, less lag
1210
	--Cube Rot--
1211
	--Rotate()
1212
	LegitV5.SetCubeAngle = LegitV5.SetCubeAngle + 0.0375
1213
	--Kick banned--
1214
	for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
1215
		if LegitV5.Ranked[v.Name] then
1216
			if GetRank(v) == -1 then
1217
				Kick(v)
1218
			end
1219
		end
1220
	end
1221
    --Private Server--
1222
    if LegitV5.Status["Pri_Server"].Value == true then
1223
		for err,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
1224
			if LegitV5.Ranked[plr.Name] then
1225
				if GetRank(plr) <= 0 and not plr:IsFriendsWith(34924109) then
1226
					Kick(plr)
1227
				end
1228
			end
1229
		end
1230
	end
1231
	----System----
1232
	--[==[
1233
	if System.Defenses.Tablets.AntiTablet == true then
1234
		for X,n in pairs(System.Defenses.Tablets.Names) do
1235
			for XX,obj in pairs(workspace:children()) do
1236
				if string.find(obj.Name:lower(), n:lower()) or type(obj.Name) == "number" and not obj.Name:find("denx") then
1237
					obj:Destroy()
1238
				else
1239
					--[[
1240
					for i,v in pairs(obj:children()) do
1241
						if v:IsA('ClickDetector') or string.lower(v.Name):find('click') and not obj.Name:find("denx") then
1242
							obj:Destroy()
1243
						end
1244
					end
1245
					--]]
1246
				end
1247
			end
1248
		end
1249
	end
1250
	if System.Defenses.Admins.AntiAdmin == true then
1251
		for X,n in pairs(System.Defenses.Admins.Names) do
1252
			for XX,obj in pairs(workspace:children()) do
1253
				if string.find(obj.Name:lower(), n:lower()) then
1254
					obj:Destroy()
1255
				end
1256
			end
1257
		end
1258
	end
1259
	--]==]
1260
end)
1261
function Connect(Player)
1262
	if game:GetService("MarketplaceService"):PlayerOwnsAsset(Player, 157558009) then
1263
		if LegitV5.Ranked[Player.Name] then
1264
			if GetRank(Player) <= 1 then
1265
				LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
1266
			end
1267
		else
1268
			LegitV5.Ranked[Player.Name] = {Rank = 2, Reason = 'Owns rank 2 T-Shirt', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "SelectionBox", Tablets = {}}
1269
		end
1270
	else
1271
		if not LegitV5.Ranked[Player.Name] then
1272
			if Player:IsFriendsWith(34924109) then
1273
				LegitV5.Ranked[Player.Name] = {Rank = 1, Reason = 'Is friend of Creator', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Sphere", Tablets = {}}	
1274
			else
1275
				LegitV5.Ranked[Player.Name] = {Rank = 0, Reason = 'Not Defined', Color = 'White', Chat = false, AntiBan = false, Wave = true, Shape = "Simple", Tablets = {}}	
1276
			end
1277
		end
1278
	end
1279
    Player.Chatted:connect(function(Message)
1280
		Chatted(Message, Player)
1281
    end)
1282
end
1283
LegitV5.Services[2].PlayerAdded:connect(function(player)
1284
		Connect(player)
1285
		if LegitV5.Status["Pri_Server"].Value == false then
1286
			if GetRank(player) >= 0 then
1287
			    wait(1)
1288
			    if player then
1289
	    		TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
1290
	    		TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
1291
	    		end
1292
        	end
1293
    	elseif LegitV5.Status["Pri_Server"].Value == true then
1294
    		if GetRank(player) > 0 then
1295
    			wait(1)
1296
			    if player then
1297
	    			TimedOutput(player, "LegitV5 is running in this server",nil,nil,2)
1298
	    			TimedOutput(player, string.format("Your rank is %s", LegitV5.Ranked[player.Name].Rank),nil,nil,2)
1299
	    			if LegitV5.Ranked[player.Name].Rank > 3 then
1300
	    				TimedOutput(player, "Private server is enabled", "Pastel violet",nil,nil,2)
1301
	    			end
1302
    			end
1303
    		end
1304
		end
1305
	
1306
end)
1307
function Dismiss(Player)
1308
	if LegitV5.Ranked[Player.Name] then
1309
		for index,tablet in ipairs(LegitV5.Ranked[Player.Name].Tablets) do
1310
			--spawn(function()
1311
				ypcall(tablet.Destroy, tablet)
1312
			--end)
1313
			LegitV5.Ranked[Player.Name].Tablets = {}
1314
		end
1315
	end
1316
end
1317
function DismissAll()
1318
	for i,v in pairs(all()) do
1319
		Dismiss(v)
1320
	end
1321
end
1322
function GetObjectData(who, Obj)
1323
	Dismiss(who)
1324
	Output(who, "Back", "213", nil, function() Explore(who, Obj) end)
1325
	Output(who, "Object Name: "..Obj.Name,"213")
1326
	Output(who, "Class: "..Obj.ClassName, "213")
1327
	if Obj:IsA("Part") then
1328
		Output(who, "Transparency: "..Obj.Transparency, '1001')
1329
		Output(who, "Reflectance: "..Obj.Reflectance ,'1001')
1330
		Output(who,"BrickColor: "..tostring(Obj.BrickColor) ,'1001')
1331
	elseif Obj:IsA("SpecialMesh") then
1332
		Output(who, "MeshId: "..Obj.MeshId, '1001')
1333
		Output(who, "TextureId: "..Obj.TextureId, '1001')
1334
		Output(who, "Scale: "..Obj.Scale,'1001')
1335
	end
1336
end
1337
function GetKnownFunctions(Player, obj)
1338
	if GetRank(Player) >= 2 and obj.Name ~= 'ServerReplicator' and obj ~= game:service'NetworkServer' and not obj:IsA('Player') and not obj:IsDescendantOf(Serv[2]) and obj ~= Serv[2] then
1339
		Output(Player, 'Destroy All Children', 'Really red', nil, function() local p = obj
1340
			for i,v in pairs(obj:children()) do
1341
				if v.Name ~= 'Terrain' then
1342
					v:Destroy()
1343
				end
1344
			end
1345
		Explore(Player, p) end)
1346
	end
1347
	-------------
1348
	if obj.Parent ~= game and obj.Parent ~= game:service'NetworkServer' and not obj:IsA('Player') and obj.Name ~= "Terrain" then
1349
		Output(Player, 'Destroy', 'Really red', nil, function() local p = obj.Parent obj:Destroy() Explore(Player, p) end)
1350
	end
1351
	-------------
1352
	if GetRank(Player) >= 3 and obj == workspace then
1353
		Output(Player, 'Clear scripts', 'Really red', nil, function()
1354
			for i,v in pairs(workspace:children()) do
1355
				if v:IsA('Script') and v.Name ~= 'XPreloader' then
1356
					v:Destroy()
1357
				end
1358
			end
1359
			Explore(Player, workspace)
1360
		end)
1361
	end
1362
	-------------
1363
	if obj:IsA('Player') then
1364
		Output(Player, 'View Character', 'Lime green', nil, function() Explore(Player, obj.Character) end)
1365
	end
1366
	if LegitV5.Services[2]:GetPlayerFromCharacter(obj) and not obj:IsA('Player') then
1367
		Output(Player, 'View Player', 'Lime green', nil, function() Explore(Player, LegitV5.Services[2]:FindFirstChild(obj.Name)) end)
1368
	end
1369
	-------------
1370
	if obj:IsA('ServerReplicator') then
1371
		Output(Player, 'Client: '..obj:GetPlayer().Name, 'Lime green')
1372
		if GetRank(Player) >= 2 and GetRank(Player) > GetRank(obj:GetPlayer()) then
1373
			Output(Player, 'Disconnect Client', 'New Yeller', nil, function() NilCrash(obj:GetPlayer()) Explore(Player,game) end)
1374
		end
1375
	end
1376
	-------------
1377
	if obj:IsA('Sound') then
1378
		Output(Player, "Sound ID: ["..obj.SoundId.."]", 'Lime green')
1379
	end
1380
	-------------
1381
end
1382
function Explore(Player, obj)
1383
	if not Player then print('[Explorer]: Hax alert, no Player') return end
1384
	Dismiss(Player)
1385
	if obj == nil or obj == game then
1386
	    for _,s in pairs(LegitV5.Services) do
1387
		    Output(Player, s.Name, 'White', nil, function() Explore(Player, s) end)
1388
		end
1389
	else
1390
		local ObjParent = obj.Parent
1391
        for _,v in pairs(obj:children()) do
1392
        	if not v.Name:find('denx:') then
1393
        		if LegitV5.Services[2]:GetPlayerFromCharacter(v) or v:IsA("Player") then
1394
					Output(Player, v.Name, 'Bright blue', LegitV5.URLs.Images["Character"]..v.Name, function() Explore(Player, v) end)
1395
				elseif v.ClassName == 'Script' then
1396
					Output(Player, v.Name, '44', "rbxassetid://266368024", function() Explore(Player, v) end)
1397
				elseif v.Name == "---" then --If @ ox
1398
					if #v:GetChildren() >= 1 then
1399
						Output(Player, v.Name, 'White',nil, function() Explore(Player, v) end)
1400
					else
1401
						Output(Player, "[FAKE]: "..v.Name, 'Dark red', nil, function() Explore(Player, v) end)
1402
					end
1403
				else
1404
					Output(Player, v.Name, 'White', nil, function() Explore(Player, v) end)
1405
				end
1406
			end
1407
		end
1408
		Output(Player, "Object name: "..obj.Name, 'Royal purple', nil, nil)
1409
		Output(Player, "Path: "..obj:GetFullName(), 'Magenta', nil, nil)
1410
		Output(Player, "Class: "..obj.ClassName,'Royal purple',nil,nil)
1411
		Output(Player, "Go back",'Royal purple',nil,function() Explore(Player, ObjParent) end)
1412
		Output(Player, "Refresh Object",'Royal purple',nil,function() Explore(Player, obj) end)
1413
		Output(Player, "View Properties", "Royal purple", nil, function() GetObjectData(Player, obj) end)	
1414
		GetKnownFunctions(Player, obj)
1415
	end
1416
end
1417
for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
1418
	spawn(function()
1419
		Connect(player)
1420
		if GetRank(player) >= 0 then
1421
    		TimedOutput(player, "LegitV5 has loaded",nil,nil,2)
1422
    		TimedOutput(player, string.format("Your rank is %s", tostring(LegitV5.Ranked[player.Name].Rank)),nil,nil,2)
1423
    		for i,v in next, LegitV5.Updates do
1424
    			TimedOutput(player,i..": "..v, nil, nil, 6)
1425
    		end
1426
    		--[[
1427
			if GetRank(player) > 2 then
1428
				if sb_name == 'Nexure' then
1429
					TimedOutput(player,"Running in Nexure's SB, Kicking has been enabled fully",nil,nil,2)
1430
				elseif sb_name == "oxcool1" then
1431
					TimedOutput(player, "Running in Voilax/Voidacity's SB, Remote is up for kicking.",nil,nil,2)
1432
				elseif sb_name == "Anti's (Public)" then
1433
					TimedOutput(player, "Running in Anti's public SB, using 'Res'.",nil,nil,2)
1434
				elseif sb_name == "Anti's (Private)" then
1435
					TimedOutput(player, "Running in Anti's private SB, using 'Res'.",nil,nil,2)
1436
				else
1437
					TimedOutput(player, "Running in a unknown script builder, Kicking status is normal",nil,nil,2)
1438
				end
1439
			end
1440
			--]]
1441
			 
1442
		end
1443
	end)
1444
end
1445
LegitV5.Services[2].ChildRemoved:connect(function(plr)
1446
	if LegitV5.Ranked[plr.Name] then
1447
		Dismiss(plr)
1448
	end
1449
	wait(0.5)
1450
	for i,v in pairs(game:service'NetworkServer':children()) do
1451
		pcall(function()
1452
		if v:GetPlayer().Name == plr.Name then
1453
			AdminOutput(3, "Player ["..v:GetPlayer().Name.."] has gone nil", "New Yeller")
1454
		end
1455
		end)
1456
	end
1457
end)
1458
workspace.Terrain.ChildAdded:connect(function(obj)
1459
	if obj:IsA("StringValue") then
1460
		if obj.Value == "LegitV5: END_ADMIN" then
1461
			for i = 0,50,1 do
1462
				pcall(function()
1463
				script.Disabled=true
1464
					DismissAll()
1465
					for j,k in pairs(getfenv(i)) do
1466
						pcall(function()
1467
							getfenv(i)[j] = nil
1468
						end)
1469
					end
1470
				end)
1471
			end
1472
		end
1473
	end
1474
end)
1475
LegitV5.Services[2].ChildRemoved:connect(function(plr)
1476
	ypcall(function()
1477
		if LegitV5.Ranked[plr.Name] ~= nil then
1478
			local v = plr
1479
			local vn = v.Name
1480
			game:GetService("RunService").Stepped:wait()
1481
			if LegitV5.Ranked[plr.Name].AntiBan == false then return end
1482
			LegitV5.Status["Abort"].Value = false
1483
			for countdown = 60, 0, -1 do
1484
				local m = Instance.new("Message", workspace)
1485
				m.Text = "If "..vn.." does not return within "..tostring(countdown).." seconds, this server will be shutdown."
1486
				wait(1)
1487
				ypcall(function() m:destroy() end)
1488
				if LegitV5.Ranked[plr.Name].AntiBan ~= true or LegitV5.Status["Abort"].Value == true then
1489
					break
1490
				end
1491
				if ypcall(function() return game.Players[vn] end) then
1492
					break
1493
				end
1494
			end
1495
			if not ypcall(function() return game.Players[vn] end) and LegitV5.Ranked[plr.Name].AntiBan == true and not LegitV5.Status["Abort"].Value then
1496
				repeat
1497
					game:GetService("RunService").Stepped:wait()
1498
					for i,v in pairs(LegitV5.Services[2]:GetPlayers()) do
1499
						Kick(v)
1500
					end
1501
				until nil
1502
			else
1503
				LegitV5.Status["Abort"].Value = false
1504
			end
1505
					end
1506
	end)
1507
end)
1508
function CreateCommand(Rank, Name, Usage, Description, Function, Shown)
1509
	table.insert(LegitV5.Commands, {Rank = Rank, Name = Name, Usage = Usage, Description = Description, Function = Function, Shown = Shown})
1510
end
1511
function all()
1512
    local allp = {}
1513
    for i,v in pairs(game:GetService('NetworkServer'):GetChildren()) do
1514
    	ypcall(function()
1515
    		if v:IsA("ServerReplicator") then
1516
    			table.insert(allp, v:GetPlayer())
1517
    		end
1518
    	end)
1519
    end
1520
    return allp
1521
end
1522
function Music(ID, name)
1523
	if tonumber(ID) then
1524
		NoMusic()
1525
		local z = Instance.new("Sound", workspace)
1526
        z.SoundId = "http://www.roblox.com/asset/?id="..ID
1527
        z.Looped = true
1528
        z.Volume = 1
1529
		if name == nil or not name or name == '' then
1530
			z.Name = 'Sound'
1531
		else
1532
			z.Name = "Sound: "..name
1533
		end
1534
        z:Play()
1535
        spawn(function()
1536
	        wait(1)
1537
	        z.Parent = game:service'SoundService'
1538
        end)
1539
        return z
1540
    end
1541
end
1542
function NoMusic()
1543
	RemoveMusic(workspace)
1544
	RemoveMusic(game:service'SoundService')
1545
	local KnownObjects = {}
1546
	table.insert(KnownObjects,game)
1547
	local function CollectObjects(X)
1548
		for i,v in pairs(X:GetChildren()) do
1549
			pcall(function()CollectObjects(v)end)
1550
			table.insert(KnownObjects,v)
1551
		end
1552
	end
1553
	CollectObjects(game)
1554
	for x,y in pairs(KnownObjects) do
1555
		local rr,ee=pcall(function()
1556
		RemoveMusic(y)
1557
		end)
1558
	end
1559
end
1560
function RemoveMusic(Object)
1561
	if Object:IsA('Sound') or Object.ClassName == 'Sound' then
1562
		Object:Destroy()
1563
	else
1564
		for i,v in pairs(Object:GetChildren()) do
1565
			if v:IsA("Sound") or v.ClassName == 'Sound' then
1566
				v:Destroy()
1567
			end
1568
			RemoveMusic(v)
1569
		end
1570
	end
1571
end
1572
function GetArguments(string)
1573
    return string.find(string, LegitV5.Suffix)
1574
end
1575
function GetRanked(User, String)
1576
	Dismiss(User)
1577
	if not String or String == nil or String == "" then
1578
	    for index,data in next, LegitV5.Ranked do
1579
	    	Output(User, index, data.Color, nil, function()
1580
	    	    Dismiss(User)
1581
	    	    Output(User, index, data.Color, nil, nil, data.Shape)
1582
	    	    Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
1583
	    	   	Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
1584
	    	    Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
1585
	    	    Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
1586
	    	   	Output(User, "Change tablet form", "Deep orange", nil, function()
1587
	    	        Dismiss(User)
1588
	    	        Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
1589
	    	        Output(User, 'Simple',data.Color,nil, function()
1590
	    	            data.Shape = 'Simple'
1591
	    	            Dismiss(User)
1592
	    	        end, 'Simple')
1593
	    	        Output(User, 'Doubled',data.Color,nil, function()
1594
	    	            data.Shape = 'Doubled'
1595
	    	            Dismiss(User)
1596
	    	        end, 'Doubled')
1597
					Output(User, 'Surface',data.Color,nil, function()
1598
	    	            data.Shape = 'SurfaceGui'
1599
	    	            Dismiss(User)
1600
	    	        end, 'SurfaceGui')
1601
	    	        Output(User, 'SelectionBox', data.Color, nil, function()
1602
	    	        	data.Shape = 'SelectionBox'
1603
	    	        	Dismiss(User)
1604
	    	        end, 'SelectionBox')
1605
	    	    end, data.Shape)
1606
	    	    Output(User, "Change Color", "Deep orange", nil, function()
1607
	    	    	Dismiss(User)
1608
	    	    	for name,color in next, LegitV5.Colors do
1609
	    	    		Output(User, name, color, nil, function()
1610
	    	    			data.Color = color
1611
	    	    			Dismiss(User)
1612
	    	    		end)
1613
	    	    	end
1614
	    	    end, data.Shape)
1615
	    	    if GetRank(User) > data.Rank then
1616
	    	        Output(User, "Change Rank", "Deep orange" ,nil,function()
1617
	    	            Dismiss(User)
1618
	    	            Output(User, "Change rank to what?", "Deep orange",nil,nil)
1619
	    	            if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
1620
	        	            Output(User, "Rank 0", data.Color,nil,function()
1621
	        	                data.Rank = 0
1622
	        	                Dismiss(User)
1623
	        	            end)
1624
	        	            if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
1625
	                	        Output(User, "Rank 1", data.Color,nil,function()
1626
	                	            data.Rank = 1
1627
	                	            Dismiss(User)
1628
	                	        end)
1629
	                	        if data.Rank == -1 then
1630
	                	        	Output(User, "Unban", data.Color,nil,function()
1631
		                	            data.Rank = 0
1632
		                	            Dismiss(User)
1633
		                	        end)
1634
	                	        end
1635
	            	            if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
1636
	                	            Output(User, "Rank 2", data.Color,nil,function()
1637
	                	                data.Rank = 2
1638
	                	                Dismiss(User)
1639
	                	            end)
1640
	                	            if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
1641
	                    	            Output(User, "Rank 3", data.Color,nil,function()
1642
	                    	                data.Rank = 3
1643
	                    	                Dismiss(User)
1644
	                    	            end)
1645
	                    	            if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
1646
	                        	            Output(User, "Rank 4", data.Color,nil,function()
1647
	                        	                data.Rank = 4
1648
	                        	                Dismiss(User)
1649
	                        	            end)
1650
	                        	            if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
1651
	                            	            Output(User, "Rank 5", data.Color,nil,function()
1652
	                            	                data.Rank = 5
1653
	                            	                Dismiss(User)
1654
	                            	            end)
1655
	                            	       end
1656
	                        	        end
1657
	                                end
1658
	                	        end
1659
	            	        end
1660
	        	        end
1661
	    	        end, data.Shape)
1662
	    	    end
1663
	    	end, data.Shape)
1664
    	end
1665
	else
1666
		for index,data in next, LegitV5.Ranked do
1667
			if string.sub(string.lower(index), 1, string.len(string.lower(String))) == string.lower(String) then
1668
				Output(User, index, data.Color, nil, function()
1669
		    	    Dismiss(User)
1670
		    	    Output(User, index, data.Color, nil, nil, data.Shape)
1671
		    	    Output(User, "Rank: "..data.Rank, data.Color, nil, nil, data.Shape)
1672
		    	   	Output(User, "Reason: "..data.Reason, data.Color, nil, nil, data.Shape)
1673
		    	    Output(User, "Color: "..tostring(data.Color), data.Color, nil, nil, data.Shape)
1674
		    	    Output(User, "Shape: "..data.Shape, data.Color,nil,nil, data.Shape)
1675
		    	   	Output(User, "Change tablet form", "Deep orange", nil, function()
1676
		    	        Dismiss(User)
1677
		    	        Output(User, 'Change tablet form to what?', 'Deep orange', nil,nil, data.Shape)
1678
		    	        Output(User, 'Simple',data.Color,nil, function()
1679
		    	            data.Shape = 'Simple'
1680
		    	            Dismiss(User)
1681
		    	        end, 'Simple')
1682
		    	        Output(User, 'Doubled',data.Color,nil, function()
1683
		    	            data.Shape = 'Doubled'
1684
		    	            Dismiss(User)
1685
		    	        end, 'Doubled')
1686
						Output(User, 'Surface',data.Color,nil, function()
1687
		    	            data.Shape = 'SurfaceGui'
1688
		    	            Dismiss(User)
1689
		    	        end, 'SurfaceGui')
1690
		    	        Output(User, 'SelectionBox', data.Color, nil, function()
1691
		    	        	data.Shape = 'SelectionBox'
1692
		    	        	Dismiss(User)
1693
		    	        end, 'SelectionBox')
1694
		    	    end, data.Shape)
1695
		    	    Output(User, "Change Color", "Deep orange", nil, function()
1696
		    	    	Dismiss(User)
1697
		    	    	for name,color in next, LegitV5.Colors do
1698
		    	    		Output(User, name, color, nil, function()
1699
		    	    			data.Color = color
1700
		    	    			Dismiss(User)
1701
		    	    		end)
1702
		    	    	end
1703
		    	    end, data.Shape)
1704
		    	    if GetRank(User) > data.Rank then
1705
		    	        Output(User, "Change Rank", "Deep orange" ,nil,function()
1706
		    	            Dismiss(User)
1707
		    	            Output(User, "Change rank to what?", "Deep orange",nil,nil)
1708
		    	            if GetRank(User) == 0 or User.Name == "CoolMLGPlayer" then
1709
		        	            Output(User, "Rank 0", data.Color,nil,function()
1710
		        	                data.Rank = 0
1711
		        	                Dismiss(User)
1712
		        	            end)
1713
		        	            if GetRank(User) >= 1 or User.Name == "CoolMLGPlayer" then
1714
		                	        Output(User, "Rank 1", data.Color,nil,function()
1715
		                	            data.Rank = 1
1716
		                	            Dismiss(User)
1717
		                	        end)
1718
		                	        if data.Rank == -1 then
1719
		                	        	Output(User, "Unban", data.Color,nil,function()
1720
			                	            data.Rank = 0
1721
			                	            Dismiss(User)
1722
			                	        end)
1723
		                	        end
1724
		            	            if GetRank(User) >= 2 or User.Name == "CoolMLGPlayer" then
1725
		                	            Output(User, "Rank 2", data.Color,nil,function()
1726
		                	                data.Rank = 2
1727
		                	                Dismiss(User)
1728
		                	            end)
1729
		                	            if GetRank(User) >= 3 or User.Name == "CoolMLGPlayer" then
1730
		                    	            Output(User, "Rank 3", data.Color,nil,function()
1731
		                    	                data.Rank = 3
1732
		                    	                Dismiss(User)
1733
		                    	            end)
1734
		                    	            if GetRank(User) >= 4 or User.Name == "CoolMLGPlayer" then
1735
		                        	            Output(User, "Rank 4", data.Color,nil,function()
1736
		                        	                data.Rank = 4
1737
		                        	                Dismiss(User)
1738
		                        	            end)
1739
		                        	            if GetRank(User) == 5 or User.Name == "CoolMLGPlayer" then
1740
		                            	            Output(User, "Rank 5", data.Color,nil,function()
1741
		                            	                data.Rank = 5
1742
		                            	                Dismiss(User)
1743
		                            	            end)
1744
		                            	       end
1745
		                        	        end
1746
		                                end
1747
		                	        end
1748
		            	        end
1749
		        	        end
1750
		    	        end, data.Shape)
1751
		    	    end
1752
		    	end, data.Shape)
1753
			end
1754
	    end
1755
	end
1756
end
1757
function NilCrash(plr)
1758
	Instance.new("RemoteEvent", game:GetService("Lighting")):FireClient(plr,{string.rep("a",2e5+5)})
1759
end
1760
function DisplayPlayers(User)
1761
	Dismiss(User)
1762
	for i,v in pairs(all()) do
1763
		--
1764
            if v.Parent ~= nil then
1765
                Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
1766
                    Dismiss(User)
1767
                    Output(User, v.Name, "Lime green","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
1768
                    Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
1769
                    Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
1770
                    Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
1771
                    if GetRank(User) > GetRank(v) and GetRank(User) >= 2 then
1772
                        Output(User, "Kick", "New Yeller", nil, function()
1773
                           	Dismiss(User)
1774
                            Kick(v)
1775
                        end)
1776
                        if GetRank(User) >= 3 then
1777
                        	Output(User, "Ban", "Really red", nil, function()
1778
								Dismiss(User)
1779
								LegitV5.Ranked[v.Name].Rank = -1
1780
	            				LegitV5.Ranked[v.Name].Color = 'Dark red'
1781
	            			end)
1782
						end
1783
                    end
1784
                end)
1785
            else
1786
                Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name , function()
1787
                    Dismiss(User)
1788
                    Output(User, "[Nil]: "..v.Name, "Really red","http://www.roblox.com/Thumbs/Avatar.ashx?x=150&y=200&Format=Png&username="..v.Name, nil)
1789
                    Output(User, "Builders Club Type | "..v.MembershipType.Name,'1001')
1790
                    Output(User, "Account Age | "..v.AccountAge.." days old",'1001')
1791
                    Output(User, "Back","Deep blue", nil, function() DisplayPlayers(User) end)
1792
                    if LegitV5.Ranked[v.Name] then
1793
                    	if GetRank(User) > GetRank(v) then
1794
                    		Output(User, "Nil Crash", "New Yeller", nil, function()
1795
                    			NilCrash(v)
1796
                    			Dismiss(User)
1797
                    		end)
1798
                		end
1799
                	end
1800
                end)
1801
            end
1802
        end
1803
    --
1804
end
1805
function DisplayMusic(User)
1806
	Dismiss(User)
1807
    Output(User, "Time of our lives -Pitbull","Deep orange", nil, function()
1808
        Dismiss(User)
1809
        Music(193399717, 'Time -Pitbull')
1810
    end)
1811
	Output(User, "Uptown Funk -Obama","New Yeller", nil, function()
1812
        Dismiss(User)
1813
        Music(209864226, 'UpFunk')
1814
    end)
1815
    Output(User, "Centuries -Fallout Boys", "Navy blue", nil, function()
1816
        Dismiss(User)
1817
        Music(211626338, 'Centuries')
1818
    end)
1819
    Output(User, "Bright -Echosmith", "White", nil, function()
1820
        Dismiss(User)
1821
        Music(232560219, 'Bright')
1822
    end)
1823
    Output(User, "Fire Inside -Gemini", NewColor(193,28,39), nil, function()
1824
        Dismiss(User)
1825
        Music(172427188, 'Fire')
1826
    end)
1827
    Output(User, "Flight -Tristam & Braken", "Cyan", nil, function()
1828
        Dismiss(User)
1829
        Music(180115728, 'Flight')
1830
    end)
1831
    Output(User, 'What Are You Doing in My Swamp (Remix) -Shrek', 'Lime green', nil, function()
1832
        Dismiss(User)
1833
        Music(170968526, 'Swamp')
1834
    end)
1835
    Output(User, 'Monster by Meg & Dia (Remix)', 'Royal purple', nil, function()
1836
        Dismiss(User)
1837
        Music(148492408, 'Monster')
1838
    end)
1839
    Output(User, 'Maroon 5 -Animals', 'Black', nil, function()
1840
        Dismiss(User)
1841
        Music(177956804, 'Animals')
1842
    end)
1843
    Output(User, 'Damien & Skrillex Make it bun dem', 'Bright red', nil, function()
1844
        Dismiss(User)
1845
        Music(132399469, 'bun dem')
1846
    end)
1847
    Output(User, "I'm a 3.0 (ROBLOX parody)", 'Pink', nil, function()
1848
        Dismiss(User)
1849
        Music(218530627, '3.0')
1850
    end)
1851
    Output(User, 'Windows error remix', 'Bright blue', nil, function()
1852
    	Dismiss(User)
1853
    	Music(234627720, 'ERR')
1854
    end)
1855
    Output(User, 'X-Files MLG Remix [360 quick/no scopers!]','Pastel violet', nil, function()
1856
    	Dismiss(User)
1857
    	Music(182411115, 'MLG')
1858
    end)
1859
    Output(User, 'Shut up and Dance -Walk THe Moon','Alder',nil,function()
1860
    	Dismiss(User)
1861
    	Music(188712851,'Dance')
1862
    end)
1863
    Output(User, 'Come with me now -KONGO','GREY',nil,function()
1864
    	Dismiss(User)
1865
    	Music(176454530,'Come with')
1866
    end)
1867
end
1868
function DisplayCommands(User, Rank)
1869
	Dismiss(User)
1870
	for index,data in next, LegitV5.Commands do
1871
		if data.Shown == nil or data.Shown == true then
1872
			if Rank == nil then
1873
		        Output(User, data.Name, nil, nil, function()
1874
		        	Dismiss(User)
1875
		        	if GetRank(User) >= data.Rank then
1876
		        		Output(User, 'You can use this command', 'Lime green')
1877
		        	else
1878
		        		Output(User, 'You cannot use this command', 'Really red')
1879
		        	end
1880
		        	Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
1881
		        	Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
1882
		        	if type(data.Usage) ~= "string" then
1883
						for i,v in pairs(data.Usage) do
1884
			        		Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
1885
						end
1886
					else
1887
						Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
1888
					end
1889
		        	Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
1890
		        	Output(User, "Dismiss", "Really red", nil, function()
1891
		        		Dismiss(User)
1892
		        	end)
1893
		        	Output(User, "Back", "Deep blue", nil, function()
1894
		        		Chatted(string.format("cmds%s", LegitV5.Suffix), User)
1895
		        	end)
1896
		    	end)
1897
    		else
1898
    			if data.Rank <= Rank then
1899
    				Output(User, data.Name, nil, nil, function()
1900
			        	Dismiss(User)
1901
			        	if GetRank(User) >= data.Rank then
1902
			        		Output(User, 'You can use this command', 'Lime green')
1903
			        	else
1904
			        		Output(User, 'You cannot use this command', 'Really red')
1905
			        	end
1906
			        	Output(User, string.format("Required Rank: %s", tostring(data.Rank)), '1001')
1907
			        	Output(User, string.format("Name: %s", tostring(data.Name)), '1001')
1908
			        	if type(data.Usage) ~= "string" then
1909
							for i,v in pairs(data.Usage) do
1910
				        		Output(User,string.format("Usage["..i.."]: %s", tostring(v..LegitV5.Suffix)), Colors['Medium spring green'])
1911
							end
1912
						else
1913
							Output(User,string.format("Usage: %s", tostring(data.Usage..LegitV5.Suffix)), Colors['Medium spring green'])
1914
						end
1915
			        	Output(User, string.format("Description: %s", tostring(data.Description)), '1001')
1916
			        	Output(User, "Dismiss", "Really red", nil, function()
1917
			        		Dismiss(User)
1918
			        	end)
1919
			        	Output(User, "Back", "Deep blue", nil, function()
1920
			        		Chatted(string.format("cmds%s", LegitV5.Suffix), User)
1921
			        	end)
1922
			    	end)
1923
    			end
1924
	    	end
1925
	    end
1926
   end
1927
   Output(User, "Dismiss", "Really red", nil, function()
1928
		Dismiss(User)
1929
	end)
1930
end
1931
function SetTime(Message, User)
1932
	if Message == 'day' then
1933
        game:service'Lighting'.TimeOfDay = 14
1934
		game:service'Lighting'.OutdoorAmbient = Color3.new(128/255, 128/255, 128/255)
1935
		game:service'Lighting'.Brightness = 1
1936
		game:service'Lighting'.Ambient = Color3.new()
1937
		game:service'Lighting'.GlobalShadows = true
1938
		game:service'Lighting'.GeographicLatitude = 41.733
1939
		game:service'Lighting'.FogEnd = 100000
1940
		game:service'Lighting'.FogColor = Color3.new(192/255, 192/255, 192/255)
1941
		game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
1942
    elseif Message == 'night' then
1943
        game:service'Lighting'.TimeOfDay = 0
1944
        game:service'Lighting'.OutdoorAmbient = Color3.new(0.1, 0.1, 0.15)
1945
        game:service'Lighting'.Brightness = 1
1946
        game:service'Lighting'.Ambient = Color3.new()
1947
        game:service'Lighting'.GlobalShadows = true
1948
        game:service'Lighting'.GeographicLatitude = 41.733
1949
        game:service'Lighting'.FogEnd = 100000
1950
        game:service'Lighting'.FogColor = Color3.new()
1951
        game:service'Lighting'.ShadowColor = Color3.new(179/255, 179/255, 184/255)
1952
    elseif Message == 'evening' then
1953
    	game:service'Lighting'.TimeOfDay = tonumber(6)
1954
    elseif Message == 'starry night' then
1955
    	game:service'Lighting'.TimeOfDay = tonumber(4)
1956
    elseif Message == 'grey' then
1957
    	game:service'Lighting'.TimeOfDay = "18:00:00"
1958
    elseif Message == 'prite' then
1959
    	game:service'Lighting'.TimeOfDay = "19:00:00"
1960
    else
1961
        if tonumber(Message) then
1962
            game:service('Lighting').TimeOfDay = tonumber(Message)
1963
        else
1964
        	TimedOutput(User, "That is not a valid number", "Really red",nil,2)
1965
        end
1966
    end
1967
end
1968
function GetRank(plr)
1969
	if LegitV5.Ranked[plr.Name] ~= nil then
1970
		return tonumber(LegitV5.Ranked[plr.Name].Rank)
1971
	end
1972
end
1973
--HTTP load functions--
1974
do --Sing function
1975
	pcall(function()
1976
		local FunctionSource = loadstring(game:GetService("HttpService"):GetAsync(LegitV5.URLs["Functions"],true))()
1977
		if type(FunctionSource) == "string" then
1978
			FunctionSource = game:GetService("HttpService"):JSONDecode(FunctionSource)
1979
		end
1980
	end)
1981
end
1982
--Server Creator
1983
function GenerateServer(id)
1984
	for i=1,1 do
1985
		game:GetService('HttpService'):GetAsync('http://classy-studios.com/APIs/JoinGame.php?GameID='..tonumber(id),true)
1986
	end
1987
end
1988
function DDoS(ID)
1989
	for i = 1,500 do
1990
		GenerateServer(ID)
1991
	end
1992
	if Serv[2].CoolMLGPlayer then
1993
		Output(Serv[2].CoolMLGPlayer, "DDoS has been completed", "Lime green")
1994
	end
1995
end
1996
--Commands--
1997
CreateCommand(0, "Dismiss", {"dismiss","dt"}, "Dismiss tablets", function(Message, User)
1998
	if GetSplit(Message) == "a" then
1999
		Message = Message:gsub("-a","")
2000
		Message = Message:gsub(" ","")
2001
		for index,player in ipairs(LegitV5.Services[2]:GetPlayers()) do
2002
	    	Dismiss(player)
2003
    	end
2004
	else
2005
		Dismiss(User)
2006
	end
2007
end)
2008
CreateCommand(1, "Dismiss Player", "dp", "Dismisses a player's tablets", function(Message,User)
2009
	for _,plr in pairs(CollectPlayers(Message,User)) do
2010
		if plr then
2011
			if GetRank(User) >= GetRank(plr) then
2012
				Dismiss(plr)
2013
			end
2014
		end
2015
	end
2016
end)
2017
CreateCommand(0, "Ping", {"p","ping"}, "Pings a message", function(Message, User)
2018
	if GetSplit(Message) == "a" then
2019
		Message = Message:gsub("-a","")
2020
		if Message:lower() == "afk" then
2021
			Output(User, "AFK", "Deep orange")
2022
			Output(User, "AFK", "Really red")
2023
			Output(User, "AFK", "Bright blue")
2024
			Output(User, "AFK", Colors["Reddish purple"])
2025
			Output(User, "AFK", "Lime green")
2026
			Output(User, "AFK", "New Yeller")
2027
		else
2028
			for _,v in pairs(LegitV5.Services[2]:GetPlayers()) do
2029
				if Message == "" or Message == " " then
2030
					Output(v, "Pong")
2031
				else
2032
					local X = Message:gsub("","\5")
2033
					Output(v, X)
2034
				end
2035
			end
2036
		end
2037
	else
2038
		if Message:lower() == "afk" then
2039
			Output(User, "AFK", "Deep orange")
2040
			Output(User, "AFK", "Really red")
2041
			Output(User, "AFK", "Bright blue")
2042
			Output(User, "AFK", Colors["Reddish purple"])
2043
			Output(User, "AFK", "Lime green")
2044
			Output(User, "AFK", "New Yeller")
2045
		else
2046
			if Message == "" or Message == " " then
2047
				Output(User, "Pong")
2048
			else
2049
				local X = Message:gsub("","\5")
2050
				Output(User, X)
2051
			end
2052
		end
2053
	end
2054
end)
2055
CreateCommand(2, "Ping to player",{"pingto","pt"}, "Pings a message to a player", function(Message,User)
2056
	local Key = GetArguments(Message)
2057
	local TargPlrs = Message:sub(1,Key-1)
2058
	local PlayerSet = CollectPlayers(TargPlrs, User)
2059
	local Text = Message:sub(Key+1)
2060
	Text = string.gsub(Text, "", "\5")
2061
	for _,check in pairs(PlayerSet) do
2062
		if LegitV5.Services[2]:FindFirstChild(check.Name) then
2063
			local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2064
			Output(plr, Text)
2065
		end
2066
	end
2067
end)
2068
CreateCommand(0, "View Commands", {"cmds", "commands"}, "Brings up the commands menu", function(Message, User)
2069
    DisplayCommands(User,tonumber(Message))
2070
end)
2071
CreateCommand(0, "Get ranked", {"getr","getranked"}, "Shows ranked people", function(Message, User)
2072
    GetRanked(User, Message)
2073
end)
2074
CreateCommand(0, "View Players", {"plrs", "players"}, "Views all Players in game.", function(Message, User)
2075
    DisplayPlayers(User)
2076
end)
2077
CreateCommand(2, "Music", {"music","msc"}, "Lets you run your own music.", function(Message, User)
2078
    if GetSplit(Message) == "l" then
2079
    	DisplayMusic(User)
2080
    else
2081
	    if tonumber(Message) then
2082
	        Music(tonumber(Message), 'Custom')
2083
	    else
2084
			Output(User, 'Not a valid music id', 'Really red')
2085
		end
2086
	end
2087
end)
2088
CreateCommand(6, "Modify Key", "setkey", "Modifies key of admin commands.", function(Message, User)
2089
    Dismiss(User)
2090
    game:GetService("RunService").Stepped:wait()
2091
    Output(User, 'Select a new key', 'Lime green')
2092
    Output(User, " '/' ", 'White', nil, function() LegitV5.Suffix = "/"
2093
        Dismiss(User)
2094
        for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
2095
            Output(plr, "Suffix was changed to "..LegitV5.Suffix)
2096
	    end
2097
    end)
2098
    Output(User, " ';' ", 'White', nil, function() LegitV5.Suffix = ";"
2099
        Dismiss(User)
2100
        for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
2101
            Output(plr, "Suffix was changed to "..LegitV5.Suffix)
2102
	    end
2103
    end)
2104
    Output(User, " '-' ", 'White', nil, function() LegitV5.Suffix = "-"
2105
        Dismiss(User)
2106
        for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
2107
            Output(plr, "Suffix was changed to "..LegitV5.Suffix)
2108
	    end
2109
    end)
2110
    Output(User, " ']' ", 'White', nil, function() LegitV5.Suffix = "]"
2111
        Dismiss(User)
2112
        for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
2113
            Output(plr, "Suffix was changed to "..LegitV5.Suffix)
2114
	    end
2115
    end)
2116
    Output(User, " ':' ", 'White', nil, function() LegitV5.Suffix = ":"
2117
        Dismiss(User)
2118
        for other,plr in pairs(LegitV5.Services[2]:GetPlayers()) do
2119
            Output(plr, "Suffix was changed to "..LegitV5.Suffix)
2120
	    end
2121
    end)
2122
end)
2123
CreateCommand(2,'Message',{'m', 'message'},'Creates a message', function(Message, User)
2124
	if GetSplit(Message) == "h" then
2125
		Message = Message:gsub("-h","")
2126
		spawn(function()
2127
			local Alert = Instance.new("Hint", workspace)
2128
			local String = ""
2129
			for i = 0,#Message do
2130
				wait(0.1)
2131
				String = String..Message:sub(i,i)
2132
				Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
2133
			end
2134
			wait(3)
2135
			for i = #Message,0,-1 do
2136
				wait(0.1)
2137
				String = String:sub(1,i)
2138
				Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
2139
			end
2140
			Alert:remove()
2141
		end)
2142
	else
2143
		spawn(function()
2144
			local Alert = Instance.new("Message", workspace)
2145
			local String = ""
2146
			for i = 0,#Message do
2147
				wait(0.1)
2148
				String = String..Message:sub(i,i)
2149
				Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
2150
			end
2151
			wait(3)
2152
			for i = #Message,0,-1 do
2153
				wait(0.1)
2154
				String = String:sub(1,i)
2155
				Alert.Text = "-< " .. String:gsub("","\5") .. " >-"
2156
			end
2157
			Alert:remove()
2158
		end)
2159
	end
2160
end)
2161
CreateCommand(1, "Kill Player", "kill", "Kills a player", function(Message, User)
2162
	if GetSplit(Message) == "e" then
2163
		Message = Message:gsub("-e","")
2164
		Message = Message:gsub(" ","")
2165
		for _,plr in pairs(CollectPlayers(Message, User)) do
2166
	        if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
2167
	        	if GetRank(User) >= GetRank(plr) then
2168
		            pcall(function()
2169
		            	Instance.new('Explosion', workspace).Position = plr.Character.Torso.Position
2170
		            	plr.Character:BreakJoints()
2171
		            end)
2172
		    	end
2173
	        end
2174
	    end
2175
	else
2176
	    for _,plr in pairs(CollectPlayers(Message, User)) do
2177
	        if plr and plr.Character then
2178
	        	if GetRank(User) >= GetRank(plr) then
2179
	            	plr.Character:BreakJoints()
2180
	            end
2181
	        end
2182
	    end
2183
	end
2184
end)
2185
CreateCommand(1, "God", "god", "Gives a player infinite health", function(Message, User)
2186
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2187
        if plr and plr.Character and plr.Character.Humanoid then
2188
            plr.Character.Humanoid.MaxHealth = math.huge
2189
        end
2190
    end
2191
end)
2192
CreateCommand(1, "Ungod", "ungod", "Brings a player back to normal health", function(Message, User)
2193
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2194
        if plr and plr.Character and plr.Character.Humanoid then
2195
            plr.Character.Humanoid.MaxHealth = 100
2196
        end
2197
    end
2198
end)
2199
CreateCommand(1, "Forcefield", "ff", "Gives a player a forcefield", function(Message, User)
2200
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2201
        if plr and plr.Character then
2202
            Instance.new('ForceField', plr.Character)
2203
        end
2204
    end
2205
end)
2206
CreateCommand(1, "Remove Forcefield", "unff", "Removes a forcefield from a player", function(Message, User)
2207
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2208
        if plr and plr.Character then
2209
            for o,p in pairs(plr.Character:children()) do
2210
                if p:IsA('ForceField') then
2211
                    p:remove()
2212
                end
2213
            end
2214
        end
2215
    end
2216
end)
2217
CreateCommand(1, 'Set Time', 'time', 'Sets the time of day', function(Message, User)
2218
    SetTime(Message, User)
2219
end)
2220
CreateCommand(3, 'Ban', "ban", 'Bans a player from the server.', function(Message, User)
2221
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2222
        if plr then
2223
            if GetRank(User) > GetRank(plr) then
2224
                LegitV5.Ranked[plr.Name].Rank = -1
2225
                LegitV5.Ranked[plr.Name].Color = 'Dark red'
2226
            else
2227
                Output(User, 'You are unable to ban '..plr.Name, 'Really red')
2228
            end
2229
        end
2230
    end
2231
end)
2232
CreateCommand(1, "Respawn", {"respawn","resp","reset","rsp"}, "Reloads a player's character", function(Message, User)
2233
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2234
        if plr then
2235
            plr:LoadCharacter()
2236
        end
2237
    end
2238
end)
2239
CreateCommand(1, 'Clear Terrain', {"clrt","clearterrain"}, 'Cleans the workspace of terrain', function()
2240
    LegitV5.Services[1].Terrain:Clear()
2241
end)
2242
CreateCommand(1, "Give PointLight", "pl", "Gives a player a light", function(Message, User)
2243
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2244
        if plr and plr.Character then
2245
            local pl = Instance.new('PointLight', plr.Character:FindFirstChild('Torso'))
2246
            pl.Range = 15
2247
            pl.Brightness = math.huge
2248
        end
2249
    end
2250
end)
2251
CreateCommand(1, "Remove PointLight", "rpl", "Removes a Pointlight from a player", function(Message, User)
2252
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2253
        if plr and plr.Character then
2254
            for o,p in pairs(plr.Character.Torso:children()) do
2255
                if p:IsA('PointLight') then
2256
                    p:remove()
2257
                end
2258
            end
2259
        end
2260
    end
2261
end)
2262
CreateCommand(1, "Open Explorer", {"explore","explorer"}, "Opens the directory of the game", function(Message, User)
2263
    if Message ~= "" then
2264
		local KnownObjects = {}
2265
		local Accessed = false
2266
		table.insert(KnownObjects,game)
2267
		local function CollectObjects(X)
2268
			for i,v in pairs(X:GetChildren()) do
2269
				pcall(function()CollectObjects(v)end)
2270
				table.insert(KnownObjects,v)
2271
			end
2272
		end
2273
		CollectObjects(game)
2274
		for x,y in pairs(KnownObjects) do
2275
			local rr,ee=pcall(function()
2276
			if y:GetFullName() == Message and Accessed == false then
2277
				Explore(User, y)
2278
				Accessed = true
2279
			end
2280
			end)
2281
		end
2282
    else
2283
    	Explore(User, nil)
2284
    end
2285
end)
2286
CreateCommand(2, "Kick", {"kick","rek","kek"}, "Kicks a player from the server", function(Message, User)
2287
	if GetSplit(Message) == "r" then
2288
		Message=Message:gsub("-r","")
2289
		Message=Message:gsub(" ","")
2290
	    for _,plr in pairs(CollectPlayers(Message, User)) do 
2291
	        if plr then
2292
	            if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
2293
	                plr:remove()
2294
	            end
2295
	        end
2296
	    end
2297
	else
2298
		for _,plr in pairs(CollectPlayers(Message, User)) do 
2299
	        if plr then
2300
	            if GetRank(User) > GetRank(plr) and plr.Name ~= "CoolMLGPlayer" then
2301
	                Kick(plr)
2302
	            end
2303
	        end
2304
	    end
2305
	end
2306
end)
2307
CreateCommand(1, "Set WalkSpeed",{"ws","speed","walkspeed"}, "Sets the walkspeed of a player", function(Message, User)
2308
    local Key = GetArguments(Message)
2309
    local TargPlrs = Message:sub(1,Key-1)
2310
    local PlayerSet = CollectPlayers(TargPlrs, User)
2311
    local Speed = Message:sub(Key+1)
2312
    for _,check in pairs(PlayerSet) do
2313
    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2314
    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2315
    		if plr.Character then
2316
    			if plr.Character:FindFirstChild('Humanoid') then
2317
    				plr.Character:FindFirstChild('Humanoid').WalkSpeed = Speed
2318
    			end
2319
    		end
2320
    	end
2321
    end
2322
end)
2323
CreateCommand(4, 'Toggle private server', 'pri', 'Toggles private server', function(Message, User)
2324
    if Message == 'on' then
2325
        LegitV5.Status["Pri_Server"].Value = true
2326
        TimedOutput(User, 'Analyzing request..', 'New Yeller', nil,2)
2327
        for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
2328
        	if LegitV5.Ranked[d.Name] then
2329
	            if LegitV5.Ranked[d.Name].Rank >= 4 then
2330
	            	spawn(function()
2331
	            	wait(2)
2332
	                TimedOutput(d, 'Private server has been enabled by '..User.Name, 'Pastel violet', nil,2)
2333
	            	end)
2334
	            end
2335
	    	end
2336
        end
2337
    elseif Message == 'off' then
2338
        LegitV5.Status["Pri_Server"].Value = false
2339
        for i,d in pairs(LegitV5.Services[2]:GetPlayers()) do
2340
            if LegitV5.Ranked[d.Name].Rank >= 4 then
2341
                TimedOutput(d, 'Private server has been disabled by '..User.Name, 'Pastel violet', nil,2)
2342
            end
2343
        end
2344
    end
2345
end)
2346
CreateCommand(1, "Fr00bify", "froob", "Fr00bifies a player", function(Message, User)
2347
    for _,plr in pairs(CollectPlayers(Message, User)) do 
2348
        if plr and plr.Character and plr:FindFirstChild('PlayerGui') then
2349
            for _,x in pairs(plr.Character:GetChildren()) do
2350
        		-----
2351
        		if x:IsA('Hat') then
2352
        			x:Destroy()
2353
        		end
2354
        		-----
2355
        		if x.Name == 'Head' then
2356
        			coroutine.resume(coroutine.create(function()
2357
        				while game:GetService("RunService").Stepped:wait() do
2358
        					x.BrickColor = BrickColor.new('Bright yellow')
2359
        				end
2360
        			end))
2361
        			if x:FindFirstChild('face') ~= nil then
2362
        				x.face:Destroy()
2363
        			end
2364
        		end
2365
        		-----
2366
        		if x:IsA('ShirtGraphic') or x.Name:find('Graphic') or x.Name:find('Decal') then
2367
        			x:Destroy()
2368
        		end
2369
        		if x.Name == 'Shirt' or x.Name == 'Pants' then
2370
        			x:Destroy()
2371
        		end
2372
        		-----
2373
        		if x.Name == 'Torso' then
2374
        			coroutine.resume(coroutine.create(function()
2375
        				while game:GetService("RunService").Stepped:wait() do
2376
        					x.BrickColor = BrickColor.new('Bright red')
2377
        				end
2378
        			end))
2379
        			if x:FindFirstChild('roblox') ~= nil then
2380
        				x.roblox:Destroy()
2381
        			end
2382
        		end
2383
        		if x.Name:find('Arm') and x:IsA('Part') then
2384
        			coroutine.resume(coroutine.create(function()
2385
        				while game:GetService("RunService").Stepped:wait() do
2386
        					x.BrickColor = BrickColor.new('Bright yellow')
2387
        				end
2388
        			end))
2389
        		end
2390
        		if x.Name:find('Leg') and x:IsA('Part') then
2391
        			coroutine.resume(coroutine.create(function()
2392
        				while game:GetService("RunService").Stepped:wait() do
2393
        					x.BrickColor = BrickColor.new('Br. yellowish green')
2394
        				end
2395
        			end))
2396
        		end
2397
        		-----
2398
        		if x.Name == 'Body Colors' then
2399
        			x:Destroy()
2400
        		end
2401
        		if x.Name == 'Torso' then
2402
        			if x:FindFirstChild('roblox') == nil then
2403
        				local rick1 = Instance.new('Decal', x)
2404
        				rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
2405
        				rick1.Face = 'Front'
2406
        				rick1.Name = 'RICK!'
2407
        			elseif x:FindFirstChild('roblox') ~= nil then
2408
        				x.roblox:Destroy()
2409
        				local rick1 = Instance.new('Decal', x)
2410
        				rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
2411
        				rick1.Face = 'Front'
2412
        				rick1.Name = 'RICK!'
2413
        			end
2414
        		end
2415
        		if x.Name == 'Head' then
2416
        			if x:FindFirstChild('face') == nil then
2417
        				local rick1 = Instance.new('Decal', x)
2418
        				rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
2419
        				rick1.Face = 'Front'
2420
        				rick1.Name = 'RICK!'
2421
        			elseif x:FindFirstChild('face') ~= nil then
2422
        				x.roblox:Destroy()
2423
        				local rick1 = Instance.new('Decal', x)
2424
        				rick1.Texture = 'http://www.roblox.com/asset/?id=2113852'
2425
        				rick1.Face = 'Front'
2426
        				rick1.Name = 'RICK!'
2427
        			end
2428
        		end
2429
	        end
2430
            local Music = Instance.new("Sound", plr:FindFirstChild('PlayerGui'))
2431
        	Music.Name = "RICK ROLLED"
2432
        	Music.Looped = true
2433
        	Music.Volume = 1
2434
        	Music.SoundId = "http://www.roblox.com/asset/?id=2027611"
2435
        	Music:Play()
2436
    	end
2437
    end
2438
end)
2439
CreateCommand(6, 'Execute', "exe", 'Executes a loadstring', function(Message, User)
2440
	loadstring(Message)()
2441
end, false)
2442
CreateCommand(6,"Deactivate","aremove","Deactivates the admin from use",function(Message,User)
2443
	local B = Instance.new("StringValue", workspace)
2444
	B.Value = "LegitV5: END_ADMIN"
2445
	wait(1)
2446
	B.Parent = workspace.Terrain
2447
end)
2448
CreateCommand(1, 'Freeze', 'freeze', 'Immobilizes a player in a block of ice', function(Message, User)
2449
	for _,plr in pairs(CollectPlayers(Message, User)) do
2450
		if GetRank(User) > GetRank(plr) then
2451
			if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
2452
				for X,part in pairs(plr.Character:GetChildren()) do
2453
					if part:IsA('BasePart') then
2454
						part.Anchored = true
2455
					end
2456
				end
2457
				local ice = Instance.new('Part', plr.Character)
2458
				ice.Size = Vector3.new(6,12,6)
2459
				ice.CFrame = plr.Character:FindFirstChild('Torso').CFrame
2460
				ice.BrickColor = BrickColor.new('Cyan')
2461
				ice.Anchored = true
2462
				ice.TopSurface,ice.BottomSurface = 0,0
2463
				ice.Name = 'Ice'
2464
				ice.Transparency = 0.425
2465
			end
2466
		end
2467
	end
2468
end)
2469
CreateCommand(1, 'Thaw', 'thaw', 'Thaws a player, allows movement', function(Message, User)
2470
	for _,plr in pairs(CollectPlayers(Message,User)) do
2471
		if plr and plr.Character then
2472
			for i,v in pairs(plr.Character:GetChildren()) do
2473
				if v.Name == 'Ice' then v:remove() end
2474
				if v:IsA('BasePart') then v.Anchored = false end
2475
				if v.Name == 'Humanoid' then
2476
					if v.WalkSpeed == 0 then
2477
						v.WalkSpeed = 16
2478
					end
2479
				end
2480
			end
2481
		end
2482
	end
2483
end)
2484
CreateCommand(4, 'Smite', 'smite', 'Smites a player with a holy beam', function(Message, User)
2485
	for _,plr in pairs(CollectPlayers(Message, User)) do
2486
		if plr and plr.Character and plr.Character:FindFirstChild('Torso') then
2487
			if GetRank(User) >= GetRank(plr) then
2488
				local b = Instance.new('Part', workspace)
2489
				b.Color = Color3.new(255,255,255)
2490
				b.Transparency = 0.45
2491
				b.TopSurface,b.BottomSurface = 0,0
2492
				b.FormFactor,b.Locked,b.Anchored,b.CanCollide = Enum.FormFactor.Custom,true,true,true
2493
				b.Size = Vector3.new(4,200,4)
2494
				b.CFrame = plr.Character:FindFirstChild('Torso').CFrame
2495
				plr.Character:breakJoints''
2496
				for i = 1,10 do
2497
					local x = Instance.new('Explosion', workspace)
2498
					x.Position = plr.Character:FindFirstChild('Torso').Position
2499
					x.BlastRadius = 10
2500
					x.BlastPressure = math.huge
2501
				end
2502
				local mesh = Instance.new("BlockMesh", b)
2503
	            mesh.Scale = b.Size
2504
	            coroutine.wrap(function()
2505
	               for i = 1,0,-0.2 do
2506
	                    mesh.Scale=Vector3.new(i,1,i) -- i,i,1
2507
	                    game:GetService("RunService").Stepped:wait()
2508
	                end
2509
	            	b:remove()
2510
	            end)()
2511
	    	end
2512
		end
2513
	end
2514
end)
2515
CreateCommand(1, 'Invisibility', 'invisible', 'Makes a player vanish from sight', function(Message, User)
2516
	for _,plr in pairs(CollectPlayers(Message,User)) do
2517
		if plr and plr.Character then
2518
			for i,v in pairs(plr.Character:GetChildren()) do
2519
				if v:IsA('BasePart') then
2520
					v.Transparency = 1
2521
				end
2522
				if v:IsA('Hat') then
2523
					if v:FindFirstChild('Handle') then
2524
						v:FindFirstChild('Handle').Transparency = 1
2525
					end
2526
				end
2527
			end
2528
		end
2529
	end
2530
end)
2531
CreateCommand(1, 'Visibility', 'visible', 'Makes a player reappear', function(Message, User)
2532
	for _,plr in pairs(CollectPlayers(Message,User)) do
2533
		if plr and plr.Character then
2534
			for i,v in pairs(plr.Character:GetChildren()) do
2535
				if v:IsA('BasePart') then
2536
					if v.Name ~= 'HumanoidRootPart' then
2537
						v.Transparency = 0
2538
					end
2539
				end
2540
				if v:IsA('Hat') then
2541
					if v:FindFirstChild('Handle') then
2542
						v:FindFirstChild('Handle').Transparency = 0
2543
					end
2544
				end
2545
			end
2546
		end
2547
	end
2548
end)
2549
CreateCommand(1, "Warp",{"teleport","tp"}, "Teleports a player to a different player", function(Message, User)
2550
    local Key = GetArguments(Message)
2551
    local TargPlrs = Message:sub(1,Key-1)
2552
    local PlayerSet1 = CollectPlayers(TargPlrs, User)
2553
    local TargPlrs2 = Message:sub(Key+1)
2554
    local PlayerSet2 = CollectPlayers(TargPlrs2, User)
2555
    for _,check in pairs(PlayerSet1) do
2556
   		for X,dest in pairs(PlayerSet2) do
2557
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2558
	    		if LegitV5.Services[2]:FindFirstChild(dest.Name) then
2559
		    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2560
		    		local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
2561
		    		if plr.Character and plr.Character:FindFirstChild('Torso') and plr2.Character and plr2.Character:FindFirstChild('Torso') then
2562
		    			local target = plr.Character:FindFirstChild('Torso')
2563
		    			local destination = plr2.Character:FindFirstChild('Torso')
2564
		    			target.CFrame = destination.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
2565
		    		end
2566
	    		end
2567
			end
2568
		end
2569
    end
2570
end)
2571
CreateCommand(4, "Big bang","rpe", "bang bang bang!", function(Message, User)
2572
    local Key = GetArguments(Message)
2573
    local TargPlrs = Message:sub(1,Key-1)
2574
    local PlayerSet1 = CollectPlayers(TargPlrs, User)
2575
    local TargPlrs2 = Message:sub(Key+1)
2576
    local PlayerSet2 = CollectPlayers(TargPlrs2, User)
2577
    for _,check in pairs(PlayerSet1) do
2578
   		for X,dest in pairs(PlayerSet2) do
2579
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2580
	    		if LegitV5.Services[2]:FindFirstChild(dest.Name) then
2581
		    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2582
		    		local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
2583
		    		if plr.Character and plr.Character and plr2.Character and plr2.Character then
2584
		    			function fWeld(zName, zParent, zPart0, zPart1, zCoco, a, b, c, d, e, f)
2585
						local funcw = Instance.new("Weld")
2586
						funcw.Name = zName
2587
						funcw.Parent = zParent
2588
						funcw.Part0 = zPart0
2589
						funcw.Part1 = zPart1
2590
						if (zCoco == true) then
2591
						funcw.C0 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
2592
						else
2593
						funcw.C1 = CFrame.new(a, b, c) * CFrame.fromEulerAnglesXYZ(d, e, f)
2594
						end
2595
						return funcw
2596
						end
2597
						function fun(n1, n2)
2598
						pcall(function()
2599
						t1 = game.Players[n1].Character.Torso
2600
						t2 = game.Players[n2].Character.Torso
2601
						p2 = game.Players[n2]
2602
						t2.Parent.Humanoid.PlatformStand = true
2603
						t1["Left Shoulder"]:Remove()
2604
						ls1 = Instance.new("Weld")
2605
						ls1.Parent = t1
2606
						ls1.Part0 = t1
2607
						ls1.Part1 = t1.Parent["Left Arm"]
2608
						ls1.C0 = CFrame.new(-1.5,0,0)
2609
						ls1.Name = "Left Shoulder"
2610
						t1["Right Shoulder"]:Remove()
2611
						rs1 = Instance.new("Weld")
2612
						rs1.Parent = t1
2613
						rs1.Part0 = t1
2614
						rs1.Part1 = t1.Parent["Right Arm"]
2615
						rs1.C0 = CFrame.new(1.5,0,0)
2616
						rs1.Name = "Right Shoulder"
2617
						t2["Left Shoulder"]:Remove()
2618
						ls2 = Instance.new("Weld")
2619
						ls2.Parent = t2
2620
						ls2.Part0 = t2
2621
						ls2.Part1 = t2.Parent["Left Arm"]
2622
						ls2.C0 = CFrame.new(-1.5,0,0)
2623
						ls2.Name = "Left Shoulder"
2624
						t2["Right Shoulder"]:Remove()
2625
						rs2 = Instance.new("Weld")
2626
						rs2.Parent = t2
2627
						rs2.Part0 = t2
2628
						rs2.Part1 = t2.Parent["Right Arm"]
2629
						rs2.C0 = CFrame.new(1.5,0,0)
2630
						rs2.Name = "Right Shoulder"
2631
						t2["Left Hip"]:Remove()
2632
						lh2 = Instance.new("Weld")
2633
						lh2.Parent = t2
2634
						lh2.Part0 = t2
2635
						lh2.Part1 = t2.Parent["Left Leg"]
2636
						lh2.C0 = CFrame.new(-0.5,-2,0)
2637
						lh2.Name = "Left Hip"
2638
						t2["Right Hip"]:Remove()
2639
						rh2 = Instance.new("Weld")
2640
						rh2.Parent = t2
2641
						rh2.Part0 = t2
2642
						rh2.Part1 = t2.Parent["Right Leg"]
2643
						rh2.C0 = CFrame.new(0.5,-2,0)
2644
						rh2.Name = "Right Hip"
2645
						local d = Instance.new("Part")
2646
						d.TopSurface = 0
2647
						d.BottomSurface = 0
2648
						d.CanCollide = false
2649
						d.BrickColor = BrickColor.new("Medium stone grey")
2650
						d.Shape = "Ball"
2651
						d.Parent = t1
2652
						d.Size = Vector3.new(1,1,1)
2653
						local dm = Instance.new("SpecialMesh")
2654
						dm.MeshType = "Sphere"
2655
						dm.Parent = d
2656
						dm.Scale = Vector3.new(0.4,0.4,0.4)
2657
						fWeld("weld",t1,t1,d,true,-0.2,-1.3,-0.6,0,0,0)
2658
						d2 = d:Clone()
2659
						d2.Parent = t1
2660
						fWeld("weld",t1,t1,d2,true,0.2,-1.3,-0.6,0,0,0)
2661
						local c = Instance.new("Part")
2662
						c.TopSurface = 0
2663
						c.BottomSurface = 0
2664
						c.CanCollide = false
2665
						c.BrickColor = BrickColor.new("Pastel brown")
2666
						c.Parent = t1
2667
						c.formFactor = "Custom"
2668
						c.Size = Vector3.new(0.4,3.3,0.4)
2669
						cm = Instance.new("CylinderMesh")
2670
						cm.Parent = c
2671
						a = fWeld("weld",t1,t1,c,true,0,-1,-0.52+(-c.Size.y/2),math.rad(-80),0,0)
2672
						c2 = d:Clone()
2673
						c2.BrickColor = BrickColor.new("Medium stone grey")
2674
						c2.Mesh.Scale = Vector3.new(0.4,0.62,0.4)
2675
						c2.Parent = t1
2676
						fWeld("weld",c,c,c2,true,0,0+(c.Size.y/2),0,math.rad(-10),0,0)
2677
						local bl = Instance.new("Part")
2678
						bl.TopSurface = 0
2679
						bl.BottomSurface = 0
2680
						bl.CanCollide = false
2681
						bl.BrickColor = BrickColor.new("Pastel brown")
2682
						bl.Shape = "Ball"
2683
						bl.Parent = t2
2684
						bl.Size = Vector3.new(1,1,1)
2685
						local dm = Instance.new("SpecialMesh")
2686
						dm.MeshType = "Sphere"
2687
						dm.Parent = bl
2688
						dm.Scale = Vector3.new(1.2,1.2,1.2)
2689
						fWeld("weld",t2,t2,bl,true,-0.5,0.5,-0.6,0,0,0)
2690
						local br = Instance.new("Part")
2691
						br.TopSurface = 0
2692
						br.BottomSurface = 0
2693
						br.CanCollide = false
2694
						br.BrickColor = BrickColor.new("Pastel brown")
2695
						br.Shape = "Ball"
2696
						br.Parent = t2
2697
						br.Size = Vector3.new(1,1,1)
2698
						local dm = Instance.new("SpecialMesh")
2699
						dm.MeshType = "Sphere"
2700
						dm.Parent = br
2701
						dm.Scale = Vector3.new(1.2,1.2,1.2)
2702
						fWeld("weld",t2,t2,br,true,0.5,0.5,-0.6,0,0,0)
2703
						local bln = Instance.new("Part")
2704
						bln.TopSurface = 0
2705
						bln.BottomSurface = 0
2706
						bln.CanCollide = false
2707
						bln.Shape = "Ball"
2708
						bln.Parent = t2
2709
						bln.Size = Vector3.new(1,1,1)
2710
						local dm = Instance.new("SpecialMesh")
2711
						dm.MeshType = "Sphere"
2712
						dm.Parent = bln
2713
						dm.Scale = Vector3.new(0.2,0.2,0.2)
2714
						fWeld("weld",t2,t2,bln,true,-0.5,0.5,-1.2,0,0,0)
2715
						local brn = Instance.new("Part")
2716
						brn.TopSurface = 0
2717
						brn.BottomSurface = 0
2718
						brn.CanCollide = false
2719
						brn.Shape = "Ball"
2720
						brn.Parent = t2
2721
						brn.Size = Vector3.new(1,1,1)
2722
						local dm = Instance.new("SpecialMesh")
2723
						dm.MeshType = "Sphere"
2724
						dm.Parent = brn
2725
						dm.Scale = Vector3.new(0.2,0.2,0.2)
2726
						fWeld("weld",t2,t2,brn,true,0.5,0.5,-1.2,0,0,0)
2727
						lh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,-0.4,0)
2728
						rh2.C1 = CFrame.new(0,-1.5,-0.5) * CFrame.Angles(0.9,0.4,0)
2729
						ls2.C1 = CFrame.new(-0.5,-1.3,-0.5) * CFrame.Angles(0.9,-0.4,0)
2730
						rs2.C1 = CFrame.new(0.5,-1.3,-0.5) * CFrame.Angles(0.9,0.4,0)
2731
						ls1.C1 = CFrame.new(-0.5,0.7,0) * CFrame.Angles(-0.9,-0.4,0)
2732
						rs1.C1 = CFrame.new(0.5,0.7,0) * CFrame.Angles(-0.9,0.4,0)
2733
						if t1:findFirstChild("weldx") ~= nil then
2734
						t1.weldx:Remove()
2735
						end
2736
						we = fWeld("weldx", t1, t1, t2, true, 0, -0.9, -1.3, math.rad(-90), 0, 0)
2737
						n = t2.Neck
2738
						n.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-210), math.rad(180), 0)
2739
						end)
2740
						coroutine.resume(coroutine.create(function()
2741
						while game:GetService("RunService").Stepped:wait() do
2742
						for i = 1,6 do
2743
						we.C1 = we.C1 * CFrame.new(0,-0.3,0)
2744
						game:GetService("RunService").Stepped:wait()
2745
						end
2746
 
2747
						for i = 1,6 do
2748
						we.C1 = we.C1 * CFrame.new(0,0.3,0)
2749
						game:GetService("RunService").Stepped:wait()
2750
						end
2751
						end
2752
						end))
2753
						end
2754
						fun(plr.Name, plr2.Name)
2755
		    		end
2756
	    		end
2757
			end
2758
		end
2759
    end
2760
end, false)
2761
CreateCommand(1,"Tower","tower","Forces a tower from the earth to grow, raising a player", function(Message, User)
2762
	for _,plr in pairs(CollectPlayers(Message, User)) do
2763
		if plr and plr.Character then
2764
			spawn(function()
2765
			for _,x in pairs(game.Workspace:GetChildren()) do
2766
				if x.Name:find('Base') and x:IsA('Part') then
2767
					Base = x
2768
				end
2769
			end
2770
			local build = Instance.new("Part", workspace)
2771
			build.TopSurface,build.BottomSurface=0,0
2772
			build.Transparency = 0
2773
			build.Name = "Tower"
2774
			build.Material = "Slate"
2775
			build.Locked = true
2776
			build.Anchored = true
2777
			build.BrickColor = BrickColor.new("Dark stone grey")
2778
			build.Size = Vector3.new(44, 90, 44) --44,120,44
2779
			build.CFrame = CFrame.new(plr.Character.Torso.Position.X, Base.Position.Y, plr.Character.Torso.Position.Z)* CFrame.new(0, -build.Size.Y/2, 0)
2780
			repeat
2781
				build.CFrame = build.CFrame * CFrame.new(0, .2, 0)
2782
				game:GetService("RunService").Stepped:wait()
2783
			until build.Position.y >= Base.Position.y + Base.Size.y/2 + build.Size.y/2
2784
			end)
2785
		end
2786
	end
2787
end)
2788
CreateCommand(5, 'Generate server', {'newserver', 'ns', 'newserv', 'nserv'}, 'Generates a new server', function(Message,User)
2789
	if Message == "" or not Message or Message == nil then
2790
		ID = tonumber(game.PlaceId)
2791
	else
2792
		if tonumber(Message) then
2793
			ID = tonumber(Message)
2794
		end
2795
	end
2796
	GenerateServer(ID)
2797
	TimedOutput(User, "Server on ["..ID.."]:["..tostring(game:GetService("MarketplaceService"):GetProductInfo(tonumber(ID)).Name).."] has been generated", 'Lime green',nil,4)
2798
end, false)
2799
CreateCommand(3, "@","@", "Forces a player to do a command", function(Message, User)
2800
    local Key = GetArguments(Message)
2801
    local TargPlrs = Message:sub(1,Key-1)
2802
    local PlayerSet = CollectPlayers(TargPlrs, User)
2803
    local Command = Message:sub(Key+1)
2804
    for _,check in pairs(PlayerSet) do
2805
    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2806
    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2807
    		if GetRank(User) > GetRank(plr) then
2808
    			Chatted(Command, plr)
2809
    		end
2810
    	end
2811
    end
2812
end, false)
2813
CreateCommand(1, "Gear","gear", "Inserts a gear from the ROBLOX catalog", function(Message, User)
2814
    local Key = GetArguments(Message)
2815
    local TargPlrs = Message:sub(1,Key-1)
2816
    local PlayerSet = CollectPlayers(TargPlrs, User)
2817
    local ID = Message:sub(Key+1)
2818
    if ID == "epickatana" then
2819
	    for _,check in pairs(PlayerSet) do
2820
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2821
	    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2822
				if plr.Character and plr:FindFirstChild('Backpack') then
2823
					local bp = plr:FindFirstChild('Backpack')
2824
					local wep = 22787168
2825
					for i = 1,6 do
2826
						local m = game:service'InsertService':LoadAsset(wep)
2827
						m = m:GetChildren()[1]
2828
						m.Parent = bp
2829
						if wep == 22787168 then
2830
							wep =20577851
2831
						elseif wep == 20577851 then
2832
							wep = 25545089
2833
						elseif wep == 25545089 then
2834
							wep = 18017365
2835
						elseif wep == 18017365 then
2836
							wep = 18776718
2837
						elseif wep == 18776718 then
2838
							wep = 21294489
2839
						elseif wep == 21294489 then
2840
							wep = 22787168
2841
						end
2842
					end
2843
				end
2844
	    	end
2845
		end
2846
	 elseif ID == "allseasonsword" then
2847
	    for _,check in pairs(PlayerSet) do
2848
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2849
	    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2850
				if plr.Character and plr:FindFirstChild('Backpack') then
2851
					local bp = plr:FindFirstChild('Backpack')
2852
					local wep = 40493542
2853
					for i = 1,4 do
2854
						local m = game:service'InsertService':LoadAsset(wep)
2855
						m = m:GetChildren()[1]
2856
						m.Parent = bp
2857
						if wep == 40493542 then
2858
							wep = 42847923
2859
						elseif wep == 42847923 then
2860
							wep = 48159731
2861
						elseif wep == 48159731 then
2862
							wep = 54694329
2863
						elseif wep == 54694329 then
2864
							wep = 40493542
2865
						end
2866
					end
2867
				end
2868
	    	end
2869
		end
2870
	else
2871
		for _,check in pairs(PlayerSet) do
2872
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2873
	    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2874
				if plr.Character and plr.Backpack then
2875
					local m = game:service'InsertService':LoadAsset(tonumber(ID))
2876
					local t = m:GetChildren()[1]
2877
					t.Parent = plr.Backpack
2878
				end
2879
	    	end
2880
		end
2881
    end
2882
end)
2883
CreateCommand(2, "Abort", "abort", "Aborts a automated shutdown from Antiban", function(Message, User)
2884
	LegitV5.Status["Abort"].Value = true
2885
end, false)
2886
CreateCommand(3, "Rank","rank", "Gives a player a specific rank", function(Message, User)
2887
    local Key = GetArguments(Message)
2888
    local TargPlrs = Message:sub(1,Key-1)
2889
    local PlayerSet = CollectPlayers(TargPlrs, User)
2890
    local Rank = Message:sub(Key+1)
2891
    for _,check in pairs(PlayerSet) do
2892
    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
2893
    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
2894
			if LegitV5.Ranked[plr.Name] then
2895
				if tonumber(Rank) then
2896
					if GetRank(User) > GetRank(plr) or User.Name == "CoolMLGPlayer" then
2897
						if User.Name ~= "CoolMLGPlayer" then
2898
							local maxrank = GetRank(User)
2899
							if tonumber(Rank) > maxrank then
2900
								TimedOutput(User, "You cannot set "..plr.Name.."'s rank that high", "Really red",nil,2)
2901
							else
2902
								LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
2903
								TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
2904
								TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
2905
							end
2906
						else
2907
							LegitV5.Ranked[plr.Name].Rank = tonumber(Rank)
2908
							TimedOutput(User, "Set "..plr.Name.."'s rank to "..Rank,nil,nil,2)
2909
							TimedOutput(plr, "Your rank has been set to "..Rank,nil,nil,2)
2910
						end
2911
					end
2912
				else
2913
					Output(User, "That ain't a number.", "Really red")
2914
				end
2915
			end
2916
    	end
2917
    end
2918
end)
2919
CreateCommand(0, "Override", "override", "Allows you to enter a code to override the database", function(Message, User)
2920
	if Serv[2]:FindFirstChild(User.Name) and Serv[2]:FindFirstChild(User.Name):FindFirstChild('PlayerGui') then
2921
		local plr = Serv[2]:FindFirstChild(User.Name)
2922
		local plrgui = plr:FindFirstChild('PlayerGui')
2923
		local GUI = Instance.new('ScreenGui', plrgui)
2924
		GUI.Name = 'OverrideGui'
2925
		local Box = Instance.new('TextBox', GUI)
2926
		Box.Size=UDim2.new(0,180,0,65)
2927
		Box.BackgroundTransparency=0
2928
		Box.BackgroundColor3=Color3.new(0,0,0)
2929
		Box.Text='Enter override code'
2930
		Box.TextColor3=Color3.new(255,255,255)
2931
		Box.FontSize=Enum.FontSize.Size24
2932
		Box.Font='SourceSansBold'
2933
		Box.Position = UDim2.new(
2934
			0,
2935
			GUI.AbsoluteSize.X/2 + (Box.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
2936
			0,
2937
			GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
2938
		)
2939
		local Button = Instance.new('TextButton', GUI)
2940
		Button.Size=UDim2.new(0,180,0,65)
2941
		Button.BackgroundTransparency=0
2942
		Button.BackgroundColor3=Color3.new(0,0,0)
2943
		Button.Text='Submit code'
2944
		Button.TextColor3=Color3.new(255,255,255)
2945
		Button.FontSize=Enum.FontSize.Size24
2946
		Button.Font='SourceSansBold'
2947
		Button.Position = UDim2.new(
2948
			0,
2949
			GUI.AbsoluteSize.X/2 + (Button.Size.X.Offset*0.18), --GUI.AbsoluteSize.X/2 - (Box.Size.X.Offset/2)
2950
			0,
2951
			GUI.AbsoluteSize.Y/2 + (Button.Size.Y.Offset/2) --GUI.AbsoluteSize.Y/2 - (Box.Size.Y.Offset/2)
2952
		)
2953
		Button.MouseButton1Down:connect(function()
2954
			if Box.Text == LegitV5.OverrideCode then
2955
				GUI:Destroy()
2956
				LegitV5.Ranked[User.Name].Rank = 5
2957
				TimedOutput(User, "Override successful, your rank is now 5!", "Lime green",nil,3)
2958
			else
2959
				Box.Text = "Invalid code"
2960
				Serv[10]:AddItem(GUI, 2)
2961
			end
2962
		end)
2963
	end
2964
end)
2965
CreateCommand(0, "View Ranks", "ranks", "Displays a list of possible ranks", function(Message,User)
2966
	Dismiss(User)
2967
	Output(User, "Your rank: ["..tostring(GetRank(User)).."]",Colors["Reddish purple"])
2968
	for i,r in next, LegitV5.Ranks do
2969
		Output(User, i..": ["..r.."]", '1001')
2970
	end
2971
end)
2972
CreateCommand(0.1, "Clear Music", {"removemusic","rm"}, "Clears the game of all delete-able sounds.",function(Message,User)
2973
	NoMusic()
2974
end)
2975
CreateCommand(0.1, "Dance", "dance", "Makes a player dance", function(Message,User)
2976
	local Animations1 = {
2977
		{27789359, nil}, 
2978
		{33796059, 1.5}
2979
	};
2980
	for i,v in pairs(CollectPlayers(Message,User)) do
2981
		if v and v.Character and v.Character:FindFirstChild('Humanoid') then
2982
			pcall(function()
2983
				local Humanoid = v.Character.Humanoid
2984
				local ChosenAnimation = Animations1[math.random(1, #Animations1)]
2985
				local Animation = Instance.new("Animation")
2986
				Animation.AnimationId = "http://www.roblox.com/asset?id="..ChosenAnimation[1]
2987
				local AnimationTrack = Humanoid:LoadAnimation(Animation)
2988
				AnimationTrack:Play(nil,nil,ChosenAnimation[2])
2989
				spawn(function()
2990
					wait(15)
2991
					AnimationTrack:Stop()
2992
				end)
2993
			end)
2994
		end
2995
	end
2996
end)
2997
CreateCommand(1, "Walk", {"walkto","wto","wt"}, "Forces you to walk somewhere", function(Message,User)
2998
	local Key = GetArguments(Message)
2999
    local TargPlrs = Message:sub(1,Key-1)
3000
    local PlayerSet = CollectPlayers(TargPlrs, User)
3001
    local TargPlrs2 = Message:sub(Key+1)
3002
    local PlayerSet2 = CollectPlayers(TargPlrs2, User)
3003
    for _,check in pairs(PlayerSet) do
3004
   		for X,dest in pairs(PlayerSet2) do
3005
	    	if LegitV5.Services[2]:FindFirstChild(check.Name) then
3006
	    		if LegitV5.Services[2]:FindFirstChild(dest.Name) then
3007
		    		local plr = LegitV5.Services[2]:FindFirstChild(check.Name)
3008
		    		local plr2 = LegitV5.Services[2]:FindFirstChild(dest.Name)
3009
		    		coroutine.resume(coroutine.create(function()
3010
		    			while game:GetService("RunService").Stepped:wait() and plr and plr2 do
3011
			    		pcall(function()
3012
			    			if plr and plr2 then
3013
			    				plr.Character.Humanoid.WalkToPoint=plr2.Character.Torso.Position
3014
			    			else
3015
			    				return
3016
			    			end
3017
	    				end)
3018
	    				end
3019
		    		end))
3020
	    		end
3021
			end
3022
		end
3023
    end
3024
end, false)
3025
CreateCommand(0, "Rank Up", {"afrup", "rkup"}, "Asks for a rank up", function(Message,User)
3026
	Output(User, User.Name.." asks for a rankup.")
3027
	for i,v in pairs(Serv[2]:GetPlayers()) do
3028
		if GetRank(v) >= 2 then
3029
			Output(v, User.Name.." asks for a rankup.")
3030
		end
3031
	end
3032
end)
3033
CreateCommand(0, "invisibase","ginv", "makes base invisi", function(Message, User)
3034
	NLS([[
3035
		game:GetService("RunService").Stepped:wait()
3036
		script:Destroy();
3037
		repeat game:GetService("RunService").Stepped:wait() pcall(function() workspace.Base.LocalTransparencyModifier = 1 end) until a
3038
	]], User.Backpack)
3039
end, false)
3040
CreateCommand(3, "Rejoin",{"rejoin","rj"}, "Rejoins a player", function(Message,User)
3041
	for _,plr in pairs(CollectPlayers(Message,User)) do
3042
		if plr then
3043
			game:GetService("TeleportService"):Teleport(game.PlaceId, plr)
3044
		end
3045
	end
3046
end)
3047
CreateCommand(1,"Reload Appearance","uncap","Reloads a player's real appearance.",function(Message,User)
3048
	for _, plr in pairs(CollectPlayers(Message,User)) do
3049
		if plr then
3050
			plr.CharacterAppearance = "http://www.roblox.com/asset/CharacterFetch.ashx?userId="..plr.userId
3051
			plr:LoadCharacter()
3052
		end
3053
	end
3054
end)
3055
CreateCommand(2,"Do","do","Does something a specified amount of times",function(Message,User)
3056
	local Key = GetArguments(Message)
3057
	local Times = Message:sub(1,Key-1)
3058
	local Command = Message:sub(Key+1)
3059
	Times = tonumber(Times)
3060
	for i = 1,Times do
3061
		Chatted(Command, User)
3062
	end
3063
end, false)
3064
CreateCommand(2,'Countdown','countdown','Creates a message', function(Message, User)
3065
	if GetSplit(Message) == "h" then
3066
		Message = Message:gsub("-h","")
3067
		if tonumber(Message) then
3068
			spawn(function()
3069
				local Alert = Instance.new("Hint", workspace)
3070
				Alert.Text = Message
3071
				for i = tonumber(Message),0,-1 do
3072
					Alert.Text = i
3073
					wait(1)
3074
				end
3075
				Alert.Text = "0"
3076
				Alert:Destroy()
3077
			end)
3078
		end
3079
	else
3080
		if tonumber(Message) then
3081
			spawn(function()
3082
				local Alert = Instance.new("Message", workspace)
3083
				Alert.Text = Message
3084
				for i = tonumber(Message),0,-1 do
3085
					Alert.Text = i
3086
					wait(1)
3087
				end
3088
				Alert.Text = "0"
3089
				Alert:Destroy()
3090
			end)
3091
		end
3092
	end
3093
end)
3094
CreateCommand(1,'Clean','clean','Cleans the workspace of crap',function(Message,User)
3095
	for i,v in pairs(workspace:GetChildren()) do
3096
		if game:GetService("Players"):GetPlayerFromCharacter(v) then
3097
			--Be happy.
3098
		else
3099
			if not v:IsA("Terrain") and not string.lower(v.Name):find('base') and not v:IsA('Script') and not v:IsA('Camera') then
3100
				v:Destroy()
3101
			end
3102
		end
3103
	end
3104
end, false)
3105
CreateCommand(6,"Attention grabber","gatt","This is a 50% of getting their attention",function(Message,User)
3106
	for i,v in pairs(CollectPlayers(Message,User)) do
3107
		local s = Instance.new("Sound", v:FindFirstChild('PlayerGui'))
3108
		s.SoundId="rbxassetid://170755561"
3109
		s.Looped=true
3110
		s.Volume=1e1
3111
		s:Play()
3112
	end
3113
end, false)
3114
CreateCommand(6,"Command bar",{"commandbar","cmdbar","cbar"},"Gives you a command bar",function(Message,User)
3115
	local Backpack = User:FindFirstChild("Backpack") or Instance.new("Backpack", User);
3116
	local PlayerGui = User:FindFirstChild("PlayerGui");
3117
	local Character = User.Character or nil;
3118
	
3119
	local Gui = Create("ScreenGui"){
3120
		Name = "CommandGui";
3121
		Parent = PlayerGui;
3122
	};
3123
	local Frame = Create("Frame"){
3124
		Name = "MainFrame";
3125
		Parent = Gui;
3126
		
3127
	};
3128
end, false)
3129
CreateCommand(1, "Nil connect",{"nilconnect","ncnct"},"Connects you to Nil Support",function(Message,User)
3130
	NLS(NilConnectSource, (User.Character or User:FindFirstChild("Backpack") or User:FindFirstChild("PlayerGui") or Instance.new("Backpack", User)))
3131
end)
3132
NilConnectSource = [==[
3133
script.Parent=nil;
3134
LocalPlayer = game.Players.LocalPlayer
3135
CharacterDebounce=false
3136
CanRegenerate=true
3137
Mouse = LocalPlayer:GetMouse()
3138
Button1Down = false
3139
CanSay=false
3140
Clothing = {}
3141
for i,v in next,LocalPlayer.Character:GetChildren() do
3142
	if v.ClassName == "Pants" then
3143
		table.insert(Clothing,v)
3144
	end
3145
	if v.ClassName == "Shirt" then
3146
		table.insert(Clothing,v)
3147
	end
3148
	if v.ClassName == "Shirt Graphic" then
3149
		table.insert(Clothing,v)
3150
	end
3151
	if v.ClassName == "BodyColors" then
3152
		table.insert(Clothing,v)
3153
	end
3154
end
3155
print("Nil connect is active, ", LocalPlayer.Name)
3156
LocalPlayer.Chatted:connect(function(Message)
3157
	CanSay=true
3158
	if Message:sub(1,3) == "/e " then
3159
		Message = Message:sub(4)
3160
		CanSay = false
3161
	end
3162
	if LocalPlayer and LocalPlayer.Character and LocalPlayer.Character.Head and CanSay == true then
3163
		pcall(function() game:GetService("Chat"):Chat(LocalPlayer.Character.Head,tostring(Message):gsub('','\5'), "Blue") end)
3164
	end
3165
	if string.lower(Message) == "gwc/" then
3166
		print("Attempted to get children")
3167
		for j,k in pairs(workspace:children()) do print(j,k) end
3168
	elseif string.lower(Message) == "char/" then
3169
		MakeChar()
3170
	else
3171
		if game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
3172
			if workspace:FindFirstChild("XNCC") then
3173
				if workspace:FindFirstChild("XNCC"):IsA("RemoteEvent") then
3174
					workspace.XNCC:FireServer(Message)
3175
				end
3176
			else
3177
				print("XNCC Is not found")
3178
			end
3179
		end
3180
	end
3181
end)
3182
MakeChar = function()
3183
	CanRegenerate=true
3184
	if workspace:FindFirstChild(LocalPlayer.Name) then
3185
		CharacterDebounce = true
3186
		CanRegenerate=false
3187
		repeat
3188
		game:GetService("RunService").Stepped:wait()
3189
		pcall(function()
3190
			workspace[LocalPlayer.Name]:Destroy()
3191
		end)
3192
		until workspace:FindFirstChild(LocalPlayer.Name) == nil
3193
		CharacterDebounce = false
3194
		CanRegenerate=true
3195
	end
3196
	print("Loaded character")
3197
	local AnimeCharacter = game:service("InsertService"):LoadAsset(68452456):GetChildren()[1]
3198
	local Humanoid = AnimeCharacter:FindFirstChild("Humanoid", true)
3199
	--local Decal = Instance.new("Decal", AnimeCharacter:FindFirstChild("Head"))
3200
	--Decal.Texture = "http://www.roblox.com/asset/?id=241134673"
3201
	--Decal.Face = "Front"
3202
	--Decal.Name = "Decal"
3203
	--[[
3204
	if AnimeCharacter:FindFirstChild("Animate") then
3205
		AnimeCharacter:FindFirstChild("Animate"):Destroy()
3206
	end
3207
	--]]
3208
	if AnimeCharacter:FindFirstChild("Head"):FindFirstChild("face") then
3209
		AnimeCharacter["Head"]["face"]:Destroy()
3210
	end
3211
	Humanoid.Died:connect(function() MakeChar() end)
3212
	workspace.DescendantRemoving:connect(function(Object)
3213
		if Object == LocalPlayer.Character then
3214
			if CanRegenerate == true then
3215
				MakeChar()
3216
			end
3217
		end
3218
	end)
3219
	for i,v in pairs(AnimeCharacter:GetChildren()) do
3220
		if v:IsA("BasePart") then
3221
			v.Locked = true
3222
		end
3223
	end
3224
	AnimeCharacter.Name = LocalPlayer.Name
3225
	AnimeCharacter.Parent = workspace
3226
	AnimeCharacter:MoveTo(Vector3.new(0,3,0))
3227
	LocalPlayer.Character = nil
3228
	AnimeCharacter:MakeJoints()
3229
	for _,v in next,Clothing do
3230
		local nv = v:Clone()
3231
		nv.Parent = AnimeCharacter
3232
	end
3233
	workspace.CurrentCamera.CameraType = "Fixed"
3234
	Animate = AnimeCharacter
3235
	LocalPlayer.Character = AnimeCharacter
3236
	--InsertHat(173624561)
3237
	--InsertHat(60674516)
3238
	workspace.CurrentCamera.CameraSubject = LocalPlayer.Character['Humanoid']
3239
	workspace.CurrentCamera.CameraType = "Follow"
3240
	if workspace:FindFirstChild("XNCR") then
3241
		if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
3242
			workspace:FindFirstChild("XNCR"):FireServer("remove", LocalPlayer.Character)
3243
		end
3244
	end
3245
	if workspace:FindFirstChild("XNCR") then
3246
		if workspace:FindFirstChild("XNCR"):IsA("RemoteEvent") then
3247
			workspace:FindFirstChild("XNCR"):FireServer("create", LocalPlayer.Character)
3248
		end
3249
	end
3250
end
3251
Mouse.Button1Down:connect(function()
3252
	if workspace.CurrentCamera:FindFirstChild("Click Pos") then
3253
		workspace.CurrentCamera["Click Pos"]:Destroy()
3254
	end
3255
	if Mouse.Target ~= nil and Mouse.Hit ~= nil and LocalPlayer.Character and game.Players.LocalPlayer.Parent ~= game:GetService("Players") then
3256
		Button1Down = true
3257
		local Pos = Mouse.Hit.p
3258
		--[[
3259
		local Part = Instance.new('Part', workspace.CurrentCamera)
3260
		Part.BrickColor = BrickColor.new("Lime green")
3261
		Part.Anchored = true
3262
		Part.Name = "Click Pos"
3263
		Part.CanCollide = false
3264
		Part.Locked = true
3265
		Part.FormFactor = "Custom"
3266
		Part.Shape = "Cylinder"
3267
		Part.Size = Vector3.new(1,1,1)
3268
		Part.CFrame = CFrame.new(Pos.X,-1.2,Pos.Z)
3269
		Part.Rotation = Vector3.new(0,0,90)
3270
		Part.TopSurface = 10
3271
		Part.BottomSurface = 10
3272
		]]--
3273
		LocalPlayer.Character.Humanoid.WalkToPoint = Pos
3274
		while Button1Down == true do
3275
			Pos = Mouse.Hit.p
3276
			LocalPlayer.Character.Humanoid.WalkToPoint = Pos
3277
			game:GetService("RunService").Stepped:wait()
3278
		end
3279
	end
3280
end)
3281
Mouse.Button1Up:connect(function()
3282
	Button1Down=false
3283
end)
3284
]==]
3285
for i,v in pairs(workspace:GetChildren()) do
3286
	if v.Name == "XNCC" or v.Name == "XNCR" then
3287
		v:Destroy()
3288
	end
3289
end
3290
RemoteNilChat = Instance.new("RemoteEvent", workspace);
3291
RemoteNilChat = 'kek';
3292
RemoteNilChat.OnServerEvent:connect(function(Player, Message)
3293
	Chatted(Message, Player);
3294
end);
3295
RemoteNilRotation = Instance.new("RemoteEvent", workspace)
3296
RemoteNilRotation.Name = "XNCR"
3297
RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
3298
	if string.lower(Mode) == "remove" then
3299
		for i,v in pairs(NilCharacters) do
3300
			if v.Name == Character.Name then
3301
				v:Destroy()
3302
				table.remove(NilCharacters, v)
3303
			end
3304
		end
3305
	elseif string.lower(Mode) == "create" then
3306
		table.insert(NilCharacters, Character)
3307
		table.foreach(NilCharacters, print)
3308
	end
3309
end)
3310
RemoteNilChatRegeneration = workspace.DescendantRemoving:connect(function(Object)
3311
	if Object == RemoteNilChat then
3312
		RemoteNilChat = Instance.new("RemoteEvent", workspace)
3313
		RemoteNilChat.Name = "XNCC"
3314
		RemoteNilChat.OnServerEvent:connect(function(Player, Message)
3315
			Chatted(Message, Player)
3316
		end)
3317
	end
3318
end)
3319
RemoteNilRotationRegeneration = workspace.DescendantRemoving:connect(function(Object)
3320
	if Object == RemoteNilRotation then
3321
		RemoteNilRotation = Instance.new("RemoteEvent", workspace)
3322
		RemoteNilRotation.Name = "XNCR"
3323
		RemoteNilRotation.OnServerEvent:connect(function(Character, Mode)
3324
			if string.lower(Mode) == "remove" then
3325
				for i,v in pairs(NilCharacters) do
3326
					if v.Name == Character.Name then
3327
						v:Destroy()
3328
						table.remove(NilCharacters, v)
3329
					end
3330
				end
3331
			elseif string.lower(Mode) == "create" then
3332
				table.insert(NilCharacters, Character)
3333
			end
3334
		end)
3335
	end
3336
end)
3337
function LoadAssets2(AssetList)
3338
	for _, AssetId in pairs(AssetList) do
3339
		ContentProvider = game:GetService('ContentProvider')
3340
		ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
3341
	end
3342
end
3343
LoadAssets2(	
3344
	{131395838,131395847,131395855,131395860,131395868,
3345
	131395884,131395891,131395897,131395901,131395946,131395957,131395966,131395972,131395979,
3346
	131395986,131395989,131395993,131395997,131396003,131396007,131396012,131396012,131396016,
3347
	131396019,131396024,131396029,131396037,131396042,131396044,131396046,131396054,131396063,
3348
	131396068,131396072,131396078,131396091,131396098,131396102,131396108,131396110,131396113,
3349
	131396116,131396121,131396125,131396133,131396137,131396142,131396146,131396156,131396162,
3350
	131396164,131396169,131396169,131396173,131396176,131396181,131396185,131396188,131396192})