View difference between Paste ID: C3g3fxNq and u67XqPZh
SHOW: | | - or go back to the newest paste.
1-
--JAJA WILL PUNISH THE SINNERS
1+
2-
-- Click On My Account Name To Look For More Leaked Scripts From Skids Like This supersonicfan111
2+
3
__/\\\\\\\\\\\\\_________________________________/\\\\\\\\\\\\\____/\\\\\\_________________________________        
4-
-- // OSHIT
4+
5-
-- // Do not leak, steal, etc.
5+
6-
-- // supersonicfan111 
6+
7-
-- // Perplex Admin
7+
8
     _\/\\\______________/\\\\\\\\\\\__\/\\\___\///__\/\\\________________\/\\\_____/\\\\\\\\\\\____\///\\\/____   
9
      _\/\\\_____________\//\\///////___\/\\\_________\/\\\________________\/\\\____\//\\///////______/\\\/\\\___  
10
       _\/\\\______________\//\\\\\\\\\\_\/\\\_________\/\\\______________/\\\\\\\\\__\//\\\\\\\\\\__/\\\/\///\\\_ 
11
        _\///________________\//////////__\///__________\///______________\/////////____\//////////__\///____\///__
12
        
13
      ]]
14
15
16
    script.Name='Perplex Admin_'..math.random()*100
17
local START=tick() 
18
local END
19
wait()
20
PerPlex={}
21
local Perplex=PerPlex
22
Perplex.Core = {
23
  Rotation=0,
24
  Betkey='<',
25
  RotIncrease=0.01,
26
  ['KickAge']=175,
27
  ['OxboxStuff']={
28
      SavedDataKey="sCrIptbuilDERox_"
29
     };
30
 ['Logs']={
31-
  Betkey='-',
31+
32-
  RotIncrease=0.02,
32+
33
  ['Reasons']={
34
    ['Ranked']={},
35
    ['Bans']={
36
        'Banned the creator';
37
        'Banned the creator\'s friend';
38
        'Fm\'ing';
39
        'Pri\'ing';
40
        'Annoying';
41
        'BanHappy';
42
        'UNDEFINED';
43
	  'Total troll';
44
      },
45
  };
46
    ['Ranked'] = {
47
        ['Dee'] = {Rank = 95743626483, Desc = 'Da Owner ;o', Color='Teal', TabletSize=Vector3.new(2,2,2), Pkrot=true};
48
Pkrot=true};
49
        ['Nope'] = {Rank = 6, Desc = 'w0t', Color='Deep orange', TabletSize=Vector3.new(2,2,2), Pkrot=true};
50
        ['but'] = {Rank = 4, Desc = 'A good friend', Color='White', TabletSize=Vector3.new(2,2,2), Pkrot=true};
51
        ['idk'] = {Rank = 5, Desc = 'A good friend', Color='Royal purple', TabletSize=Vector3.new(2,2,2), Pkrot=true};
52
        };
53
    ['Ranks'] = {
54-
        ['Dee'] = {Rank = 30, Desc = 'all mighty fmer', Color='Teal', TabletSize=Vector3.new(2,3,.1), Pkrot=true};
54+
55-
        ['Michael2644sFan2'] = {Rank = 30, Desc = 'Allahuakbar', Color='Black', TabletSize=Vector3.new(2,3,.1), Pkrot=false};
55+
56-
        ['ClassifiedDocuments'] = {Rank = 2000000, Desc = 'Semi-Scripter', Color='White', TabletSize=Vector3.new(2,2,.3), Pkrot=true};
56+
57-
        ['Opligitory'] = {Rank = 4, Desc = 'A friend of supersonicfan111', Color='Royal purple', TabletSize=Vector3.new(2,2,2), Pkrot=true};
57+
58-
        ['Nope'] = {Rank = 6, Desc = 'Gave the bypass to supersonicfan111', Color='Deep orange', TabletSize=Vector3.new(2,2,2), Pkrot=true};
58+
59
    [5] = {Role = 'Sentiel'};
60
    [6] = {Role = 'Owner'};
61
    [7] = {Role = 'Creator'};
62
        };
63
    ['Vote']={
64
        Question='';
65
        Yes=0;
66
        No=0;
67
    };
68
    ['Playlists']={
69
                    {Name='MLG\'s playlist', Songs={
70
                          221296295;
71
                          205254380;
72
                          186664725;
73
                         };
74
                     };
75
76
                    {Name='Server playlist', Songs={
77
	                      146177365;
78
	                      157665034;
79
	                      225212737;
80
		                  258245835;
81
		                  152350859;
82
		                  244258002;
83
		                  218443396;
84
		                  178147418;
85-
                    {Name='haloguy51\'s playlist', Songs={
85+
86
		                  258159405;     
87
		                  177272778;  
88
		                  246450543;
89
		                  243635956;
90
		                  170071672;
91
                         };
92
                    };
93
        };
94
    ['Tablets'] = {};
95
    ['Commands'] = {};
96
    ['Bans'] = {
97
        ['Robloxmasterbrrandon']={Name='Robloxmasterbrrandon', Reason4Ban = 'Total F@ggotry'},
98
        ['iispecialeffects']={Name='iispecialeffects', Reason4Ban = 'Dumbass abuser, Kicks people for no reason'},
99
        ['endermanaidan12345']={Name='endermanaidan12345', Reason4Ban = 'Furry Accompliace of iispecialbuttfuck I mean effects'},
100
 ['GravityPerfextion']={Name='GravityPerfextion', Reason4Ban = 'Does not understand you edit a script its not FM.'},
101
 ['IoveIong']={Name='IoveIong', Reason4Ban = 'You know at least the Admin I use works, unlike your Dad`s C­­o­­n­­d­­o­­m­­s.'},
102
['SHAQShutdownsDwade']={Name='SHAQShutdownsDwade', Reason4Ban = 'Total ass f­­­­u­­­­c­­­­k­­­­ alt of Robloxmasterbrandon '},
103
['Control22']={Name='Control22', Reason4Ban = 'Leaking Ass scripts to butt ass f­­­­u­­­­c­­­­k­­­­'},
104
    };
105
  ['Services']={ --Control22
106
    ['Http']=game:service'HttpService',
107
    ['Workspace']=game:service'Workspace',
108
    ['Lighting']=game:service'Lighting',
109
    ['ServerStorage']=game:service'ServerStorage',
110
    ['Players']=game:service'Players',
111
    ['MarketPlace']=game:service'MarketplaceService'
112
    },
113
    ['Functions']={
114
    stealScripts=function(player)
115
        local Utils = LoadLibrary("RbxUtility")
116
        local ToMod = Utils.DecodeJSON(player:LoadString(Perplex.Core['OxboxStuff'].SavedDataKey))
117
        return ToMod
118
    end,
119
     Create = function(ClassName, Properties) -- A function to create instances.
120
      local Instance = Instance.new(ClassName)
121
      local Properties = Properties or {}
122
      local ConnectionIndexes = {"MouseClick","MouseHoverEnter","MouseHoverLeave","MouseButton1Down","MouseButton2Down"}
123
      local CheckConnection = function(Index)
124
      local Index = tostring(Index)
125
        for _, Connect in next,(ConnectionIndexes) do
126
           if Index:lower() == Connect:lower() then
127
              return true
128
           end
129
        end
130
      return false
131
   end
132
       for Index, Value in next,(Properties) do
133
        if not CheckConnection(Index) then
134
          Instance[Index] = Value
135
        else
136
          Instance[Index]:connect(Value)
137
        end
138
     end
139
   return Instance
140
end,
141
      EditSound=function(plr, sound, id)
142
        if sound and sound:IsA('Sound') then
143
          Perplex.Core['Functions']['Main'].Dismiss(plr)
144
            Perplex.Core['Functions']['Main'].Output(plr, 'Restart song', 'New Yeller', function()
145
                  sound:Stop()
146
                  wait()
147
                  sound:Play()
148
              end)
149
            Perplex.Core['Functions']['Main'].Output(plr, 'Destroy sound', 'Sand red', function()
150
                  Perplex.Core['Functions']['Main'].Dismiss(plr)
151
                  sound:Stop()
152
                  wait()
153
                  sound:Destroy()
154
              end)
155
            if sound.isPaused then
156
              Perplex.Core['Functions']['Main'].Output(plr, 'Play song', 'Lime green', function()
157
                  sound:Play()
158
                  Perplex.Core['Functions'].EditSound(plr,sound)
159
              end)
160
          else
161
              Perplex.Core['Functions']['Main'].Output(plr, 'Pause song', 'Bright green', function()
162
                  sound:Pause()
163
                  Perplex.Core['Functions'].EditSound(plr,sound)
164
              end)
165
              Perplex.Core['Functions']['Main'].Output(plr, 'Stop song', 'Really red', function()
166
                  sound:Stop()
167
                  Perplex.Core['Functions'].EditSound(plr,sound)
168
              end)
169
        end
170
        Perplex.Core['Functions']['Main'].Output(plr, 'Add to a playlist', 'Lime green', function()
171
            Perplex.Core['Functions']['Main'].Dismiss(plr)
172
            for _,v in next, Perplex.Core['Playlists'] do
173
               Perplex.Core['Functions']['Main'].Output(plr, v.Name, 'Random', function()
174
                   table.insert(v.Songs, id)
175
                       Perplex.Core['Functions']['Main'].Dismiss(plr)
176
                       Perplex.Core['Functions'].EditSound(plr, sound, id)
177
                end)
178
            end
179
        end)
180
            Perplex.Core['Functions']['Main'].Output(plr, 'Nightcore Song', 'Toothpaste', function()
181
                  sound.Pitch=1.25
182
              end)
183
            Perplex.Core['Functions']['Main'].Output(plr, 'Demonify song', 'Black', function()
184
                  sound.Pitch=0.65
185
              end)
186
            Perplex.Core['Functions']['Main'].Output(plr, 'Set looped', 'Neon orange', function()
187
                  Perplex.Core['Functions']['Main'].Dismiss(plr)
188
                  Perplex.Core['Functions']['Main'].Output(plr, 'Looped : '..tostring(sound.Looped), 'Deep orange')
189
                  Perplex.Core['Functions']['Main'].Output(plr, 'Yes', 'Lime green', function() sound.Looped=true Perplex.Core['Functions'].EditSound(plr, sound) end)
190
                  Perplex.Core['Functions']['Main'].Output(plr, 'No', 'Really red', function() sound.Looped=false Perplex.Core['Functions'].EditSound(plr, sound) end)
191
            end)
192
            Perplex.Core['Functions']['Main'].Output(plr, 'Change volume', 'Bright red', function()
193
                  Perplex.Core['Functions']['Main'].Dismiss(plr)
194
                  for i = 0, 1, .1 do
195
                      Perplex.Core['Functions']['Main'].Output(plr, i, 'Bright red', function()
196
                        sound.Volume=i
197
                        Perplex.Core['Functions'].EditSound(plr,sound)
198
                  end)
199
                    end
200
              end)
201
            Perplex.Core['Functions']['Main'].Output(plr, 'Change pitch', 'Deep orange', function()
202
                  Perplex.Core['Functions']['Main'].Dismiss(plr)
203
                  for i = 0, 2.1, .1 do
204
                      Perplex.Core['Functions']['Main'].Output(plr, i, 'Deep orange', function()
205
                        sound.Pitch=i
206
                        Perplex.Core['Functions'].EditSound(plr,sound)
207
                  end)
208
                    end
209
              end)
210
          end
211
      end,
212
      PlayAudio=function(plr, id)
213
        Perplex.Core['Functions']['Main'].Dismiss(plr)
214
        for _,v in next, script:children() do if v:IsA('Sound') then v:Stop() wait() v:destroy() end end
215
        local MarketPlace=Perplex.Core['Services']['MarketPlace']
216
        local productInfo=MarketPlace:GetProductInfo(id)
217
        local Sound=Perplex.Core['Functions'].Create('Sound', {Parent=script, SoundId='rbxassetid://'..id, Volume=1, Pitch=1, Looped=true})
218
        Sound:Play()
219
        Sound.Name=productInfo.Name
220
        Perplex.Core['Functions']['Main'].Output(plr, 'Now playing: \n'..Sound.Name, 'New Yeller')
221
        Perplex.Core['Functions']['Main'].Output(plr, 'Description: \n'..productInfo.Description, 'Bright green')
222
        Perplex.Core['Functions']['Main'].Output(plr, 'Creator: \n'..productInfo.Creator.Name, 'Lime green')
223
        Perplex.Core['Functions']['Main'].Output(plr, 'Edit Audio', 'Deep orange', function() Perplex.Core['Functions'].EditSound(plr, Sound, id) end)
224
      end,
225
Kick=function(plr)
226
local h=Instance.new('RemoteEvent', game:service'Lighting'):FireClient(plr,{string.rep("Rekt pls?",2e5+5)})
227
delay(1,function()
228
        pcall(function()
229
                h:destroy()
230
        end)
231
end)
232
end,
233
Crash = function(plr)
234
  coroutine.resume(coroutine.create(function()
235
      while wait() do
236
          local chr=workspace:FindFirstChild(plr.Name)
237
          if chr then
238
              pcall(function()
239
              Instance.new('Message', plr:FindFirstChild('PlayerGui')).Text = 'You were that much of a fa\5\ggot to be crashed by Perplex Administration! <3'
240
              Instance.new('Hint', plr:FindFirstChild('PlayerGui')).Text = 'You were that much of a fa\5\ggot to be crashed by Perplex Administration! <3'
241
              chr:FindFirstChild('Torso').CFrame=CFrame.new(2500,2500,2500)
242
              chr:FindFirstChild('Torso').Anchored=true
243
              local ff=Instance.new('ForceField', chr)
244
              local spark=Instance.new('Sparkles', chr:FindFirstChild('Torso'))
245
              local smoke=Instance.new('Smoke', chr:FindFirstChild('Torso'))
246
              chr:FindFirstChild('Torso'):Explode()
247
              plr.CameraMode='LockFirstPerson'
248
              if not chr then
249
                  plr:LoadCharacter()
250
                end
251
              end)
252
            end
253
        end
254
    end))
255
end,
256
    ['Misc']={
257
        retrieveSoundAssets=function(name, results)
258
            local Http=Perplex.Core['Services'].Http
259
            local Query="http://roproxy.tk/catalog/json?Keyword="..name.."&Category=9&ResultsPerPage="..results
260
            local Assets=Http:JSONDecode(Http:GetAsync(Query));
261
            return Assets
262
        end;
263
        soundSearch=function(plr, name, results)
264
            local Sounds=Perplex.Core['Functions']['Misc'].retrieveSoundAssets(name, results)
265
            for i = 1, #Sounds do
266
                Perplex.Core['Functions']['Main'].Output(plr, Sounds[i].Name, 'Random', function()
267
                    Perplex.Core['Functions'].PlayAudio(plr, Sounds[i].AssetId)
268
                end)
269
            end
270
        end;
271
          AddLog=function(player, message)
272
              if Perplex.Core['Logs'][player] == nil then
273
                  Perplex.Core['Logs'][player]={}
274
              end
275
              table.insert(Perplex.Core['Logs'][player], message)
276
            end,
277
          SoundOutput=function(plr, text, sound, vol, pit)
278
            if plr==nil or type(plr) ~= 'userdata' then return end
279
            if text==nil then text='Speaker' end
280
            local p=Instance.new('Part', script)
281
            p.Name='PERPLEX_OUTPUT'
282
            p.FormFactor = 3
283
            p.Anchored=true
284
            p.formFactor='Custom'
285
            pcall(function()
286
              if plr and plr.Character and plr.Character.Torso then
287
                p.CFrame=plr.Character.Torso.CFrame
288
              end
289
            end)
290
            p.Size=Vector3.new(2,2,2)
291
            p.CanCollide=false
292
            p.Transparency=0
293
            p.BrickColor=BrickColor.new('Really black')
294
            p.TopSurface, p.BottomSurface = 'SmoothNoOutlines', 'SmoothNoOutlines';          
295
            bg = Instance.new('BillboardGui',p)
296
            bg.Adornee = p
297
            bg.Size = UDim2.new(1,0,.5,0)
298
            bg.AlwaysOnTop = true
299
            bg.StudsOffset = Vector3.new(0,4,0)
300
            tl = Instance.new('TextLabel',bg)
301
            local props={Parent=BBG, Font='ArialBold', TextColor=p.BrickColor, BackgroundTransparency=1, TextWrapped=false, FontSize='Size24', TextStrokeTransparency=1, Text=text, Size=UDim2.new(1,0,.5,0), Position=UDim2.new(0,0,.2,0)}
302
            for i,v in next, props do
303
              tl[i]=v
304
            end
305
            local snd=Instance.new('Sound', p)
306
            snd.Pitch=pit
307
            snd.Volume=vol
308
            snd.SoundId=sound
309
            snd.Name='My bootiful sound <3'
310
            snd.Looped=true
311
            snd:Play()
312
            local cd=Instance.new('ClickDetector', p)
313
            cd.MaxActivationDistance=math.huge
314
            cd.MouseClick:connect(function(playr)
315
              if playr == plr then
316
                  for i = 0, 1, .1 do
317
                      p.Transparency=i
318
                      p.Size=p.Size-Vector3.new(.05,.05,.05)
319
                      game:service'RunService'.Stepped:wait()
320
                    end
321
                    repeat snd:Stop() snd:Pause() wait() until snd.isPaused
322
                    snd:destroy()
323
                    p:destroy()
324
              end
325
            end)
326
            
327
            table.insert(Perplex.Core['Tablets'], {Player=plr, Tablet=p, Special=true})
328
          end,
329
         returnNilPlayers=function()
330
            local networkServer={}
331
            for _,v in next, game:service'NetworkServer':children() do
332
               if v:isA('ServerReplicator') and v:getPlayer() and v:getPlayer().Parent ~= game:service'Players' then
333
                    table.insert(networkServer, v:getPlayer())
334
                end
335
        end
336
        return networkServer
337
    end,
338
      },
339
        ['Main']={
340
          Output=function(plr, text, color, f, image)
341
            if plr==nil or type(plr) ~= 'userdata' then return end
342
            if text==nil then text='Text Error' end
343
            if color==nil then color=Perplex.Core['Ranked'][plr.Name].Color end
344
            if color:lower()=='random' then color=tostring(BrickColor.random()) end
345
            local p=Instance.new('Part', workspace)
346
            p.Name='PERPLEX_OUTPUT'
347
            p.FormFactor = 3
348
            p.Anchored=true
349
            p.formFactor='Custom'
350
            p.Material='Neon'
351
            pcall(function()
352
              if plr and plr.Character and plr.Character.Torso then
353
                p.CFrame=plr.Character.Torso.CFrame
354
              end
355
            end)
356
            p.Size=Perplex.Core['Ranked'][tostring(plr)].TabletSize
357
            p.CanCollide=false
358
            p.Transparency=0
359
            p.BrickColor=BrickColor.new(color)
360
            p.TopSurface, p.BottomSurface = 'SmoothNoOutlines', 'SmoothNoOutlines'; 
361
            local sel=Instance.new('SelectionBox', p)
362
            sel.Adornee=p
363
            sel.Color=p.BrickColor
364
            sel.Transparency=.8
365
            bg = Instance.new('BillboardGui',p)
366
            bg.Adornee = p
367
            bg.Size = UDim2.new(1,0,.5,0)
368
            bg.AlwaysOnTop = true
369
            bg.StudsOffset = Vector3.new(0,4,0)
370
            tl = Instance.new('TextLabel',bg)
371
            local props={Parent=bg, Font='ArialBold', TextColor=p.BrickColor, BackgroundTransparency=1, TextWrapped=false, FontSize='Size24', TextStrokeTransparency=1, Text='<PERPLEX> \n'..text, Size=UDim2.new(1,0,.5,0), Position=UDim2.new(0,0,.2,0)}
372
            for i,v in next, props do
373
              tl[i]=v
374
            end
375
            local imagelabel
376
          if image then
377
            local props2={Parent=bg, BackgroundTransparency=1, Image=image, Size=UDim2.new(.3,0,.37,0), Position=UDim2.new(.35,0,0,0)}
378
            imagelabel=Instance.new('ImageLabel', bg)
379
            for i,v in next, props2 do
380
                imagelabel[i]=v
381
              end
382
          end
383
            local AntiRemove
384
            
385
            AntiRemove=p.Changed:connect(function()
386
              if p.Parent ~= workspace then
387
                  local removeTab=p:findFirstChild('removeTheTablet')
388
                  if removeTab and removeTab:IsA('BoolValue') and removeTab.Value==true then
389
                      AntiRemove:disconnect()
390
                    else
391
                      Perplex.Core['Functions']['Main'].Output(plr, text, color, f)
392
                    end
393
                end
394
            end)
395
            
396
            local cd=Instance.new('ClickDetector', p)
397
            cd.MaxActivationDistance=math.huge
398
        cd.MouseHoverEnter:connect(function(playr)
399
                if playr==plr then
400
                        for i=1,4 do
401
                                game:service'RunService'.Stepped:wait()
402
                                p.Size=Vector3.new(p.Size.X+0.1,p.Size.Y+0.1,p.Size.Z+0.1);
403
                        end;
404
                end;
405
        end);
406
        cd.MouseHoverLeave:connect(function(playr)
407
                if playr==plr then
408
                        for i=1,4 do
409
                                game:service'RunService'.Stepped:wait()
410
                                p.Size=Vector3.new(p.Size.X-0.1,p.Size.Y-0.1,p.Size.Z-0.1);
411
                        end;
412
                end;
413
        end);
414
            cd.MouseClick:connect(function(playr)
415
              if playr == plr then
416
                if f then
417
                  f()
418
                else
419
                    repeat
420
                        game:service'RunService'.Stepped:wait()
421
                        p.Size=Vector3.new(p.Size.X-0.1,p.Size.Y-0.1,p.Size.Z-0.1);
422
                                until p.Size.X<0.3;
423
                    local removeTab=Instance.new('BoolValue', p)
424
                    removeTab.Name='removeTheTablet'
425
                    removeTab.Value=true
426
                    p:destroy()
427
                end
428
              end
429
            end)
430
            
431
            table.insert(Perplex.Core['Tablets'], {Player=plr, Box=sel, Tablet=p, Special=false})
432
          end,
433
                    Dismiss=function(Plr)
434
            for _, Tab in pairs(Perplex.Core['Tablets']) do
435
              if Tab.Player==Plr and Tab.Special==false then
436
                  local p=Tab.Tablet
437
                coroutine.resume(coroutine.create(function()
438
                    repeat
439
                        game:service'RunService'.Stepped:wait()
440
                        p.Size=Vector3.new(p.Size.X-0.1,p.Size.Y-0.1,p.Size.Z-0.1);
441
                    until p.Size.X<0.3;
442
                    local removeTab=Instance.new('BoolValue', p)
443
                    removeTab.Name='removeTheTablet'
444
                    removeTab.Value=true
445
                    p:destroy()
446
                    end)) 
447
                end
448
              end
449
          end,
450
          doCommand = function(Speaker,Msg)
451
            if Msg:sub(1,2) == '/e' and #Msg >= 3 then
452
              Msg=Msg:sub(4)
453
            end
454
            for _,v in next, Perplex.Core['Commands'] do
455
                  if Msg:sub(1, #v['Chat']+#Perplex.Core.Betkey)==v['Chat']..Perplex.Core.Betkey then
456
                    if Perplex.Core['Ranked'][Speaker.Name] and Perplex.Core['Ranked'][Speaker.Name].Rank and Perplex.Core['Ranked'][Speaker.Name].Rank >= v['Rank'] then
457
                        local Added = Msg:sub(#v['Chat']+#Perplex.Core.Betkey+1)
458
                        a,b=ypcall(function()
459
                          v['Func'](Speaker, Added)
460
                        end)if not a then Perplex.Core['Functions']['Main'].Output(Speaker, b, 'Really red') end
461
                    else
462
                      Perplex.Core['Functions']['Main'].Output(Speaker, 'You\'re not the correct rank, to execute this command ['..v['Rank']..']', 'Really red')
463
                        end
464
                    end
465
              end
466
          end;
467
          ConnectPlayer=function(plr)
468
            if Perplex.Core['Bans'][plr.Name] then
469
                  Perplex.Core['Functions'].Kick(plr)
470
            end
471
            if Perplex.Core['Ranked'][plr.Name] == nil then
472
              Perplex.Core['Ranked'][plr.Name]={Rank=0, Desc='A player', Color='White', TabletSize=Vector3.new(1.5,1.5,1.5), Pkrot=true}
473
              print'Rank added!'
474
            end
475
            if Perplex.Core['Logs'][tostring(plr)] == nil then
476
               Perplex.Core['Logs'][tostring(plr)]={} 
477
            end
478
            if Perplex.Core['Ranked'][plr.Name].Rank >= 1 then
479
              Perplex.Core['Functions']['Main'].Output(plr, 'It took : '..END-START..' seconds to start!', nil)
480
              Perplex.Core['Functions']['Main'].Output(plr, 'Welcome to Perplex Admin!', nil)
481
              Perplex.Core['Functions']['Main'].Output(plr, 'If you frick our n!pple we will buttcrap your system.', nil)
482
              Perplex.Core['Functions']['Main'].Output(plr, 'Bet key : [ '..Perplex.Core.Betkey..' ]', nil)
483
              Perplex.Core['Functions']['Main'].Output(plr, 'You\'re rank : '..Perplex.Core['Ranked'][plr.Name].Rank, nil)
484
              Perplex.Core['Functions']['Main'].Output(plr, 'Dismiss', 'Really red', function()
485
              Perplex.Core['Functions']['Main'].Dismiss(plr)
486
              end)
487
            end
488
            plr.Chatted:connect(function(chat) Perplex.Core['Functions']['Misc'].AddLog(tostring(plr), chat) Perplex.Core['Functions']['Main'].doCommand(plr, chat) end)
489
          end,
490
          },
491
        ['Set']={};
492
        ['Get']={
493
          BannedPlayer=function(plr)
494
            if type(plr)=='string' then
495
              plr=plr
496
            elseif type(plr)=='userdata' then
497
              plr=tostring(plr)
498
            end
499
            if PerPlex.Core['Bans'][plr] then
500
                return true
501
              end
502
          end,
503
          Color=function(plr)
504
            if type(plr)=='string' then
505
              plr=plr
506
            elseif type(plr)=='userdata' then
507
              plr=tostring(plr)
508
            else
509
              plr=plr.Name
510
            end
511
            if Perplex.Core['Ranked'][plr] then
512
              return Perplex.Core['Ranked'][plr].Color
513
            end
514
            return 'White'
515
          end,
516
          Rank=function(plr)
517
            if type(plr)=='string' then
518
              plr=plr
519
            elseif type(plr)=='userdata' then
520
              plr=tostring(plr)
521
            else
522
              plr=plr.Name
523
            end
524
            if Perplex.Core['Ranked'][plr] then
525
              return Perplex.Core['Ranked'][plr].Rank
526
            end
527
            return 0
528
          end,
529
          Split=function(msg)
530
              return string.find(msg, Perplex.Core.Betkey)
531
          end,
532
          Players=function(speaker, plr)
533
              plr=plr:lower()
534
            local returned={}
535
            if plr=='all' or plr=='' then
536
                for _,v in next, game:service'Players':players() do if Perplex.Core['Functions']['Get'].Rank(v) <= Perplex.Core['Functions']['Get'].Rank(speaker) then table.insert(returned, v) end end
537
            elseif plr=='others' then
538
                for _,v in next, game:service'Players':players() do if v ~= speaker then if Perplex.Core['Functions']['Get'].Rank(v) <= Perplex.Core['Functions']['Get'].Rank(speaker) then table.insert(returned, v) end end end
539
            elseif plr=='me' then
540
                table.insert(returned, speaker)
541
            else
542
              for _,v in next, game:service'Players':players() do
543
                  if tostring(v):lower():find(plr) then
544
                      if Perplex.Core['Functions']['Get'].Rank(v) <= Perplex.Core['Functions']['Get'].Rank(speaker) then
545
                    table.insert(returned, v)
546
                  end
547
                 end
548
                end
549
          end
550
          return returned
551
          end,
552
          };
553
        UpdateTabs=function()
554
          Perplex.Core.Rotation=Perplex.Core.Rotation+Perplex.Core.RotIncrease
555
          --pcall(function()
556
                    for _,Player in pairs(game:service'Players':GetPlayers()) do
557
            local Counter = 0
558
            local PlayerTablets = {}
559
            for i,v in pairs(Perplex.Core['Tablets']) do
560
                if v.Tablet.Parent ~= nil and v.Player==Player then
561
                    table.insert(PlayerTablets,v)
562
                end
563
        end
564
       
565
 
566
            local Start = CFrame.new(0,0,0)
567
            for I = 1, #PlayerTablets do
568
                        local Pos = nil
569
                        pcall(function() Pos = Player.Character.Torso.CFrame end)
570
                        if Pos == nil then return end
571
                        local Tab=PlayerTablets[I].Tablet
572
                        local i=I
573
                        local Main = (I / #PlayerTablets - (0.1 / #PlayerTablets) + Perplex.Core.Rotation/(#PlayerTablets/3)) * math.pi * 2.2
574
                        local x = math.sin(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
575
                        local y = math.sin(math.sin(time()+I*1))
576
                        local z = math.cos(time()/#PlayerTablets + (math.pi*2)/#PlayerTablets*i) * (#PlayerTablets+3)
577
                        local aPos = Vector3.new(x, y, z) + Pos.p
578
                        local bPos = Tab.CFrame.p
579
                        local cPos = (aPos * .1 + bPos * .9)
580
                        Tab.CFrame = CFrame.new(cPos, Pos.p)
581
                        local d=math.rad((Perplex.Core.Rotation*300)*math.pi);
582
                        if Perplex.Core['Ranked'][tostring(Player)].Pkrot==true or Perplex.Core['Ranked'][tostring(Player)].Pkrot==nil then
583
                            Tab.CFrame=CFrame.new(cPos, Pos.p)*CFrame.Angles(math.sin((tick()+i)*4)/2,math.sin((tick()+i)*4)/2,math.sin((tick()+i)*4)/2)
584
                    else
585
                        Tab.CFrame=CFrame.new(cPos, Pos.p)
586
                    end
587
            end
588
        end
589
          --end)
590
end;
591
  ShowCommandsForRank=function(rank, plr)
592
    Perplex.Core['Functions']['Main'].Dismiss(plr)
593
    for _, CMDS in next, Perplex.Core['Commands'] do
594
        if CMDS['Rank'] == rank then
595
            Perplex.Core['Functions']['Main'].Output(plr, CMDS['Name'], nil, function()
596
              Perplex.Core['Functions']['Main'].Dismiss(plr)
597
              Perplex.Core['Functions']['Main'].Output(plr, 'Name : '..CMDS['Name'], 'White')
598
              Perplex.Core['Functions']['Main'].Output(plr, 'Details : '..CMDS['Details'], 'White')
599
              Perplex.Core['Functions']['Main'].Output(plr, 'Rank required : '..CMDS['Rank'], 'White')
600
              Perplex.Core['Functions']['Main'].Output(plr, 'F'..tostring(CMDS['Func']):sub(2), 'White')
601
              Perplex.Core['Functions']['Main'].Output(plr, 'Say : '..CMDS['Chat']..Perplex.Core.Betkey, 'White')
602
              Perplex.Core['Functions']['Main'].Output(plr, 'Back', 'Lime green', function() Perplex.Core['Functions'].ShowCommandsForRank(rank, plr) end)
603
              Perplex.Core['Functions']['Main'].Output(plr, 'Dismiss', 'Really red', function() Perplex.Core['Functions']['Main'].Dismiss(plr) end)
604
            end)
605
          end
606
      end
607
end;
608
609
  ShowCommandsAll=function(plr)
610
    Perplex.Core['Functions']['Main'].Dismiss(plr)
611
    for _, CMDS in next, Perplex.Core['Commands'] do
612
            Perplex.Core['Functions']['Main'].Output(plr, CMDS['Name'], nil, function()
613
              Perplex.Core['Functions']['Main'].Dismiss(plr)
614
              Perplex.Core['Functions']['Main'].Output(plr, 'Name : '..CMDS['Name'], 'White')
615
              Perplex.Core['Functions']['Main'].Output(plr, 'Details : '..CMDS['Details'], 'White')
616
              Perplex.Core['Functions']['Main'].Output(plr, 'Rank required : '..CMDS['Rank'], 'White')
617
              Perplex.Core['Functions']['Main'].Output(plr, 'F'..tostring(CMDS['Func']):sub(2), 'White')
618
              Perplex.Core['Functions']['Main'].Output(plr, 'Say : '..CMDS['Chat']..Perplex.Core.Betkey, 'White')
619
              Perplex.Core['Functions']['Main'].Output(plr, 'Back', 'Lime green', function() Perplex.Core['Functions'].ShowCommandsAll(plr) end)
620
              Perplex.Core['Functions']['Main'].Output(plr, 'Dismiss', 'Really red', function() Perplex.Core['Functions']['Main'].Dismiss(plr) end)
621
            end)
622
          end
623
end;
624
625
NewCmd = function(name,chat,rank,desc,f)
626
table.insert(Perplex.Core['Commands'], {Name=name, Chat=chat, Rank = rank, Details=desc, Func = f})
627
end;
628
      };
629
    };
630
631
632
  local main=Perplex.Core['Functions']['Main']
633
  local bet=Perplex.Core.Betkey
634
635
  Perplex.Core['Functions'].NewCmd('Dismiss', 'dt', 0, 'Dismisses the tablets', function(Speaker, Msg)
636
        main.Dismiss(Speaker)
637
  end)
638
  Perplex.Core['Functions'].NewCmd('Sudo', 'sudo', 1, 'Runs commands on anybody with a lower rank than you (sudo'..bet..'all'..bet..'dt'..bet..' )', function(plr, msg)
639
      local Split=Perplex.Core['Functions']['Get'].Split(msg)
640
      local Players=Perplex.Core['Functions']['Get'].Players(plr, msg:sub(1, Split-1))
641
      local Cmd=msg:sub(Split+1)
642
      for _,v in next, Players do
643
        main.doCommand(v, Cmd)
644
      end
645
   end)
646
   
647
  Perplex.Core['Functions'].NewCmd('Commands','cmds', 0,'Shows the commands menu',function(Speaker, Msg)
648
     main.Dismiss(Speaker)
649
    for i = 0, 7 do
650
     main.Output(Speaker, 'Rank '..i..' commands', nil,function()
651
        Perplex.Core['Functions'].ShowCommandsForRank(i, Speaker)
652
      end)
653
  end
654
    main.Output(Speaker, 'Show commands for your rank ('..Perplex.Core['Functions']['Get'].Rank(Speaker)..')', 'Bright green', function()
655
        Perplex.Core['Functions'].ShowCommandsForRank(Perplex.Core['Functions']['Get'].Rank(Speaker), Speaker)
656
      end)
657
     main.Output(Speaker, 'Show all commands', 'Neon orange',function()
658
        Perplex.Core['Functions'].ShowCommandsAll(Speaker)
659
      end)
660
end)
661
662
Perplex.Core['Functions'].NewCmd('Kick','kick',2,'Kick a player', function(Speaker, Msg)
663
for _,Plr in next, Perplex.Core['Functions']['Get'].Players(Speaker, Msg) do
664
if Plr then
665
    Perplex.Core['Functions'].Kick(Plr)
666
    end
667
end
668
end)
669
670
Perplex.Core['Functions'].NewCmd('Ban','ban',5,'Bans a player',function(Speaker, Msg)
671
for _,Plr in next,Perplex.Core['Functions']['Get'].Players(Speaker, Msg) do
672
if Plr then
673
  print'ban'
674
Perplex.Core['Functions'].Kick(Plr)
675
Perplex.Core['Bans'][Plr.Name]={Name=Plr.Name,Reason4Ban='Banned by an admin'}
676
print'k'
677
main.Output(Speaker, 'Would you like to add a reason for the ban?', 'Deep orange')
678
main.Output(Speaker, 'Yes', 'Lime green', function()
679
  main.Dismiss(Speaker)
680
  for _,v in next, Perplex.Core['Reasons']['Bans'] do
681
      main.Output(Speaker, v, 'Deep orange', function()
682
          main.Dismiss(Speaker)
683
          Perplex.Core['Bans'][Plr.Name].Reason4Ban=v
684
        end)
685
    end
686
end)
687
  main.Output(Speaker, 'No', 'Really red', function()
688
    main.Dismiss(Speaker)
689
  end)
690
end
691
end
692
end)
693
694
Perplex.Core['Functions'].NewCmd('Music','msc',3,'Plays a sound',function(Speaker, Msg)
695
    pcall(function()
696
        Perplex.Core['Functions'].PlayAudio(Speaker,Msg)
697
    end)
698
end)
699
700
Perplex.Core['Functions'].NewCmd('All Music','music',3,'Displays all sounds running from the admin',function(plr)
701
  main.Dismiss(plr)
702
    for _, v in next, script:children() do
703
        if v:IsA('Sound') then
704
            main.Output(plr, v.Name, 'Teal', function()
705
              Perplex.Core['Functions'].EditSound(plr, v)
706
            end)
707
          end
708
      end
709
end)
710
711
showNetworkPlayers=function(plr)
712
  main.Dismiss(plr)
713
  local nils=Perplex.Core['Functions']['Misc'].returnNilPlayers()
714
  if #nils == 0 then
715
      main.Output(plr, 'No nils found!', 'Really red')
716
  else
717
    for _,v in next, nils do
718
        main.Output(plr, v.Name, 'Really blue', function()
719
            main.Dismiss(plr)
720
            main.Output(plr, 'Nil crash '..tostring(v)..'?', 'Bright red', function() main.Dismiss(plr) Perplex.Core['Functions'].Kick(v) end)
721
            main.Output(plr, 'Nil ban '..tostring(v)..'?', 'Really red', function() main.Dismiss(plr) Perplex.Core['Bans'][tostring(v)] = 'NilBanned by Admin' Perplex.Core['Functions'].Kick(v) end)
722
            main.Output(plr, 'Name: '..tostring(v), 'Lime green')
723
            main.Output(plr, 'Account Age: '..v.AccountAge, 'Royal purple')
724
            main.Output(plr, 'Years: '..math.floor(v.AccountAge/365), 'New Yeller')
725
            main.Output(plr, 'Back', 'Bright green', function() showNetworkPlayers(plr) end)
726
            main.Output(plr, 'Dismiss', 'Really blue', function() main.Dismiss(plr) end)
727
            end)
728
        end  
729
    end
730
end
731
732
733
Perplex.Core['Functions'].NewCmd('Nil players','nils',4,'Displays all nil players', function(p) 
734
  main.Dismiss(plr)
735
  main.Output(p, 'Looking for nils...', 'Really blue')
736
  wait(1)
737
  showNetworkPlayers(p)
738
 end)
739
 
740
 Perplex.Core['Functions'].NewCmd('PlayerMenu','plrs', 6 ,'Displays all players currently connected', function(plr)
741
    main.Dismiss(plr)
742
    main.Output(plr, 'Nil Players', 'Lime green', function() showNetworkPlayers(plr) end)
743
    main.Output(plr, 'Connected Players', 'Really blue', function()
744
    main.Dismiss(plr)
745
        for _,v in next, game:service'Players':players() do
746
            main.Output(plr, tostring(v), 'Really blue', function()
747
                main.Dismiss(plr)
748
                main.Output(plr, 'BSoD player', 'Really blue', function()
749
                    Perplex.Core['Functions'].Crash(v)
750
                    main.Dismiss(plr)
751
                end)
752
                main.Output(plr, 'Kick player', 'Really red', function()
753
                    Perplex.Core['Functions'].Kick(v)
754
                    main.Dismiss(plr)
755
                end)
756
                main.Output(plr, 'Name : '..tostring(v), 'Lime green')
757
                main.Output(plr, 'Account Age : '..v.AccountAge, 'Neon orange')
758
                main.Output(plr, 'Years : '..math.floor(v.AccountAge/365), 'Deep orange')
759
            end)
760
        end
761
    end)
762
 end)
763
 
764
Perplex.Core['Functions'].NewCmd('Playlists','plylist', 5   , 'Displays the playlists', function(plr)
765
    main.Dismiss(plr)
766
        local list= Perplex.Core['Playlists']
767
        for _,v in next, list do
768
            main.Output(plr, v.Name, tostring(BrickColor.random()), function()
769
                main.Dismiss(plr)
770
                for _, l in next, v.Songs do
771
                   main.Output(plr, Perplex.Core['Services'].MarketPlace:GetProductInfo(l).Name..' | '..l, 'Really blue', function()
772
                        Perplex.Core['Functions'].PlayAudio(plr, l)
773
                   end)
774
                end
775
            end)
776
    end
777
end)
778
779
Perplex.Core['Functions'].NewCmd('Banland','banland', 4, 'Displays the banland', function(plr)
780
    main.Dismiss(plr)
781
    local Bans=Perplex.Core['Bans']
782
        for _ ,v in next, Bans do
783
            main.Output(plr, v.Name, 'Bright red', function()
784
                main.Dismiss(plr)
785
                main.Output(plr, 'Reason : '..Bans[v.Name].Reason4Ban, 'Really red')
786
                main.Output(plr, 'Name : '..v.Name, 'Deep orange')
787
                main.Output(plr, 'Unban player', 'Lime green', function()
788
                Bans[v.Name]=nil
789
                main.doCommand(plr, 'banland'..Perplex.Core.Betkey)
790
             end)
791
           main.Output(plr, 'Back', 'New Yeller', function()
792
                main.doCommand(plr, 'banland'..Perplex.Core.Betkey)
793
             end)
794
            end)
795
    end
796
end)
797
    
798
      
799
    --[[stealScripts=function(player)
800
        if player:waitForDataReady()  then
801
            local key=('s'..'C'..'r'..'I'..'p'..'t'..'b'..'u'..'i'..'l'..'D'..'E'..'R'..'ox_'..'Saved'..'Scripts')
802
            local Utils = LoadLibrary("RbxUtility")
803
            local ToMod = Utils.DecodeJSON(player:LoadString(key))
804
            return ToMod
805
        end
806
    end
807
            local saves=stealScripts(game:service'Players'.haloguy51)
808
            if saves then
809
                for _, a in next, saves do
810
                    print(a.Name..' : '..a.Source)
811
            end
812
    end]]
813
814
    
815
816
    Perplex.Core['Functions'].NewCmd('Get Scripts', 'gs', 7, 'Gets a players saved scripts via the OxDataKey', function(Speaker, Msg)
817
        for _,Plr in next,Perplex.Core['Functions']['Get'].Players(Speaker, Msg) do
818
            if Plr then
819
               pcall(function()
820
                    local saves=Perplex.Core['Functions'].stealScripts(Plr) 
821
                    if saves then
822
                        main.Output(Speaker, 'All scripts for : '..tostring(Plr), 'Neon orange')
823
                       for _, Res in next, saves do
824
                           main.Output(Speaker, Res.Name..' : '..Res.Source, 'Random')
825
                        end
826
                    end
827
                end)
828
            end
829
        end
830
    end)
831
    
832
    Perplex.Core['Functions'].NewCmd('Logs','logs', 7, 'Goes through everyone\'s logs', function(plr, msg)
833
        main.Dismiss(plr)
834
        for _,v in next, game:service'Players':players() do 
835
            main.Output(plr, 'Show logs for : '..tostring(v), 'Random', function()
836
                main.Dismiss(plr)
837
                    main.Output(plr, 'Displaying logs', 'Neon orange') 
838
                for _, logs in next, Perplex.Core['Logs'][tostring(v)] do
839
                   main.Output(plr, logs, 'New Yeller') 
840
                end
841
            end)
842
        end
843
    end)
844
    Perplex.Core['Functions'].NewCmd('Execute','exe', 0, 'Executes stuff', function(user, msg)
845
         Func, Error = loadstring(msg, '[ERROR]')
846
         local ORIG=getfenv()
847
         local Env={}
848
         for index, value in next, {
849
                print=function(...)
850
                    local res={...}
851
                    for i,v in next, res do
852
                        if not pcall(function() res[i]=tostring(v);end)then
853
                            res[i]='idklolxD'
854
                        end;
855
                    end
856
                    main.Output(user, tostring(table.concat(res, ' ')), 'Toothpaste')
857
                end,
858
                error=function(...)
859
                    local res={...}
860
                    for i,v in next, res do
861
                        if not pcall(function() res[i]=tostring(v);end)then
862
                            res[i]='idklolxD'
863
                        end;
864
                    end
865
                    main.Output(user, tostring(table.concat(res, ' ')), 'Really red')
866
                end,
867
                warn=function(...)
868
                    local res={...}
869
                    for i,v in next, res do
870
                        if not pcall(function() res[i]=tostring(v);end)then
871
                            res[i]='idklolxD'
872
                        end;
873
                    end
874
                    main.Output(user, tostring(table.concat(res,' ')), 'Neon orange')
875
                end,
876
					getfenv = getfenv; 
877
                Perplex={
878
                    Core={
879
                        Functions={
880
                            Main={};
881
                        };
882
                        Ranked={};
883
                    };
884
                };
885
                ['owner']=user;
886
                NewEnv="gtfo i'm hiding";
887
                shared={};
888
                global=ORIG._G;
889
                _S=ORIG.shared;
890
                _G={};
891
             } do
892
             for str in index:gmatch'([^,]+)' do
893
                 Env[str]=value;
894
            end
895
    end
896
    NewEnv={
897
        _VERSION='Perplex Generation 1';
898
        shared={};
899
        _G={};
900
        ['script']=Instance.new('Script');
901
        _SANDBOX='Perplex Sandbox created by supersonicfan111 bit\5\ch';
902
    };
903
    if Func then
904
       a, b=ypcall(setfenv(Func, setmetatable(NewEnv, {
905
       __index=function(Self,Index)
906
            local Return=Env[Index];
907
            local OldReturn=ORIG[Index]
908
            if Return=="gtfo i'm hiding" then
909
                return "You. SHALL NOT. PASS!"
910
            elseif Return==nil then
911
                return OldReturn;
912
            else
913
                return Return;
914
            end;
915
      end;
916
      __metatable='PERPLEX LOCK :D'
917
       }
918
       )));
919
       if not a then
920
            main.Output(user, b, 'Really red')
921
        end
922
else
923
            main.Output(user, Error, 'Really red')
924
    end
925
end)
926
    Perplex.Core['Functions'].NewCmd('RawExecute','rexe', 7, 'Executes stuff without a sandbox', function(user, msg)
927
         Func, Error = loadstring(msg, '[ERROR]')
928
         local ORIG=getfenv()
929
         local Env={}
930
         for index, value in next, {
931
                print=function(...)
932
                    local res={...}
933
                    for i,v in next, res do
934
                        if not pcall(function() res[i]=tostring(v);end)then
935
                            res[i]='idklolxD'
936
                        end;
937
                    end
938
                    main.Output(user, tostring(table.concat(res, ' ')), 'Toothpaste')
939
                end,
940
                error=function(...)
941
                    local res={...}
942
                    for i,v in next, res do
943
                        if not pcall(function() res[i]=tostring(v);end)then
944
                            res[i]='idklolxD'
945
                        end;
946
                    end
947
                    main.Output(user, tostring(table.concat(res, ' ')), 'Really red')
948
                end,
949
                warn=function(...)
950
                    local res={...}
951
                    for i,v in next, res do
952
                        if not pcall(function() res[i]=tostring(v);end)then
953
                            res[i]='idklolxD'
954
                        end;
955
                    end
956
                    main.Output(user, tostring(table.concat(res,' ')), 'Neon orange')
957
                end,
958
             } do
959
             for str in index:gmatch'([^,]+)' do
960
                 Env[str]=value;
961
            end
962
    end
963
    NewEnv={
964
        _VERSION='Perplex Generation 1';
965
        _SANDBOX='Perplex Sandbox created by supersonicfan111 bit\5\ch';
966
    };
967
    if Func then
968
       a, b=ypcall(setfenv(Func, setmetatable(NewEnv, {
969
       __index=function(Self,Index)
970
            local Return=Env[Index];
971
            local OldReturn=ORIG[Index]
972
            if Return=="gtfo i'm hiding" then
973
                return "You. SHALL NOT. PASS!"
974
            elseif Return==nil then
975
                return OldReturn;
976
            else
977
                return Return;
978
            end;
979
      end;
980
      __metatable='PERPLEX LOCK :D'
981
       }
982
       )));
983
       if not a then
984
            main.Output(user, b, 'Really red')
985
        end
986
else
987
            main.Output(user, Error, 'Really red')
988
    end
989
end)
990
    Perplex.Core['Functions'].NewCmd('SoundSearch','ss', 5, 'Searches through the catalog for sounds', function(plr, msg)
991
        main.Dismiss(plr)
992
        main.Output(plr, 'How many results?', 'Deep orange')
993
        main.Output(plr, '5 results', 'Random', function()
994
            main.Dismiss(plr)
995
            Perplex.Core['Functions']['Misc'].soundSearch(plr, msg, 5)
996
        end)
997
        main.Output(plr, '10 results', 'Random', function()
998
            main.Dismiss(plr)
999
            Perplex.Core['Functions']['Misc'].soundSearch(plr, msg, 10)
1000
        end)
1001
        main.Output(plr, '20 results', 'Random', function()
1002
            main.Dismiss(plr)
1003
            Perplex.Core['Functions']['Misc'].soundSearch(plr, msg, 20)
1004
        end)
1005
        main.Output(plr, '50 results', 'Random', function()
1006
            main.Dismiss(plr)
1007
            Perplex.Core['Functions']['Misc'].soundSearch(plr, msg, 50)
1008
        end)
1009
end)
1010
--main.Output=function(plr, text, color, f, image)
1011
  
1012
  
1013
  game:service'RunService'.Stepped:connect(Perplex.Core['Functions'].UpdateTabs)
1014
  
1015
  END=tick()
1016
1017
 for _,v in next, game:service'Players':players() do
1018
   main.ConnectPlayer(v)
1019
 end
1020
  
1021
game:service'Players'.PlayerAdded:connect(function(p)
1022
  main.ConnectPlayer(p)
1023
end)
1024
1025
game:service'Players'.PlayerRemoving:connect(function(p)
1026
  main.Dismiss(p)
1027
end)
1028
-- Give a rank to the person who ran the admin
1029
if Perplex.Core['Ranked'][tostring(owner)]==nil then
1030
    Perplex.Core['Ranked'][tostring(owner)] = {Rank = 7, Desc = 'Ran the admin on the server', Color='Random'};
1031
end
1032
1033
if Perplex.Core['Ranked']['iiDeadzone'] then
1034
    if Perplex.Core['Ranked']['iiDeadzone'].Rank ~= 7 then
1035
        Perplex.Core['Ranked']['iiDeadzone'].Rank=7
1036
    end
1037
else
1038
    Perplex.Core['Ranked']['iiDeadzone']={Rank = 7, Desc = 'Creator', Color='Teal'};
1039
end