View difference between Paste ID: sbt1AiXW and A5NcZUQ6
SHOW: | | - or go back to the newest paste.
1
---------------------------------------[[flipflop8421's Mayhem Admin V4 2012 (RUN LOCAL)]]---------------------------------------------------------------------------------------------------------------------------
2
if pcall(function() script.Parent = game:GetService("CoreGui") end) then else script.Parent = nil end
3
Admins = {
4
    {Name = "darkeageninja", Rank = 4, Phrase = "Owner :: Mayhem Admin V4  ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
5-
    {Name = "joshie0707", Rank = 4,  Phrase = "lol", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
5+
    {Name = "koolzion", Rank = 4,  Phrase = "lol", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};
6
    {Name = "Ethancomputermad", Rank = 4,  Phrase = "Admin :: Mayhem Admin V4  ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = false}};
7
   {Name = "rybo11", Rank = 3,  Phrase = "Admin :: Mayhem Admin V4  ", Avatar = true, PressValueInfo = {PressValue = "10", PressValueOn = false}};
8
   {Name = "iMyLittlePony", Rank = 3,  Phrase = "Admin :: Mayhem Admin V4  ", Avatar = true, PressValueInfo = {PressValue = "50", PressValueOn = true}};
9
    {Name = "darkfastr", Rank = 3,  Phrase = "Admin :: Mayhem Admin V4  ", Avatar = true, PressValueInfo = {PressValue = "100", PressValueOn = false}};--darkfastr's Alt
10
}
11
12
PrivateList = {}
13
14
AntiBan = {
15
    {"flipflop8421"}
16
}
17
18
 
19
RankInfo = {
20
    ["Lag"] = {"Lagged", "Really black"};
21
    ["Ban"] = {"Banned", "Camo"};
22
    [0] = {"Guest", "Mid gray"};
23
    [1] = {"Admin", "Lime green"}; -- Press 25
24
    [2] = {"Medium admin", "Really red"}; -- Press 50
25
    [3] = {"Mega Admin", "New Yeller"}; -- Press 45
26
    [4] = {"Creator", "Really blue", "Really black"}; -- Press 100
27
}
28
 
29
Exiles = {
30
    {Name = "themasterwarrior" , Reason = "Because they abuse." , Punishment = "Ban"};
31
    {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
32
    {Name = "H4ck0rz1337" , Reason = "Because they abuse." , Punishment = "Ban"};
33
    {Name = "guoyuan" , Reason = "Because they abuse." , Punishment = "Ban"};
34
    {Name = "PuzzleCrazy" , Reason = "Because they abuse." , Punishment = "Ban"};
35
    {Name = "lolsuplexpeople" , Reason = "Because they abuse." , Punishment = "Ban"};
36
    {Name = "jordan83221" , Reason = "Because they abuse." , Punishment = "Ban"};
37
    {Name = "scriptmuchteh" , Reason = "Because they abuse." , Punishment = "Ban"};
38
    {Name = "fireblade2", Reason = "Because they abuse.", Punishment = "Ban"};
39
    {Name = "stephen77", Reason = "Because they abuse.", Punishment = "Ban"};
40
    {Name = "vegta44", Reason = "Because they abuse.", Punishment = "Ban"};
41
    {Name = "Josiah123413", Reason = "Because they abuse.", Punishment = "Ban"};
42
    {Name = "SkullOwner", Reason = "Because they abuse.", Punishment = "Ban"};
43
	{Name = "coolryan90987" , Reason = "Because they abuse." , Punishment = "Ban"};
44
    {Name = "sweef888" , Reason = "Because they abuse." , Punishment = "Ban"};
45
    {Name = "chclfey052008" , Reason = "Because they abuse." , Punishment = "Ban"};
46
    {Name = "dsi1" , Reason = "Because they abuse." , Punishment = "Ban"};
47
    {Name = "Sam9912" , Reason = "Because they abuse." , Punishment = "Ban"};
48
    {Name = "lakin25" , Reason = "Because they abuse." , Punishment = "Ban"};
49
    {Name = "Florys2" , Reason = "Because they abuse." , Punishment = "Ban"};
50
    {Name = "DaKilla10001" , Reason = "Because they abuse." , Punishment = "Ban"};
51
    {Name = "jjb345", Reason = "Because they abuse.", Punishment = "Ban"};
52
    {Name = "Dylanbuil", Reason = "Because they abuse.", Punishment = "Ban"};
53
    {Name = "alexandersupermaster", Reason = "Because they abuse.", Punishment = "Ban"};
54
    {Name = "owen2909", Reason = "Because they abuse.", Punishment = "Ban"};
55
    {Name = "lprtx257", Reason = "Because they abuse.", Punishment = "Ban"};
56
	{Name = "SteveBodein67", Reason = "Because they abuse.", Punishment = "Ban"};
57
	{Name = "mysticalchickenwing2" , Reason = "Because they abuse." , Punishment = "Ban"};
58
    {Name = "Slurrrp" , Reason = "Because they abuse." , Punishment = "Ban"};
59
    {Name = "NewBuildBuilder" , Reason = "Because they abuse." , Punishment = "Ban"};
60
    {Name = "henryTheSpriteKing" , Reason = "Because they abuse." , Punishment = "Ban"};
61
    {Name = "rombo51" , Reason = "Because they abuse." , Punishment = "Ban"};
62
    {Name = "LassXRagnarok" , Reason = "Because they abuse." , Punishment = "Ban"};
63
    {Name = "supermax333" , Reason = "Because they abuse." , Punishment = "Ban"};
64
    {Name = "merlin156" , Reason = "Because they abuse." , Punishment = "Ban"};
65
	{Name = "IRyans" , Reason = "Because they abuse." , Punishment = "Ban"};
66
	{Name = "dionku" , Reason = "Because they abuse." , Punishment = "Ban"};
67
	{Name = "iPhoam" , Reason = "Because they abuse." , Punishment = "Ban"};
68
}
69
 
70
Settings = {
71
    PrivateOn = false;
72
    PrivateBanType = "Ban"; -- Ban or Lag
73
    HighlightWaitTime = 3;
74
    AntiGuest = false;
75
}
76
Commands = {"/Test", "/Commands", "/Say: [String]", "/Kill@[Player]", "/abon", "/aboff", "/Kick@[Player]", "/Explode@[Player]", "/Ban@[Player]","/Lag@[Player]", "/Punish@[Player]", "/Unpunish@[Player]", "/Respawn@[Player]", "/Shutdown{MEGA Admins/Creators}", "/Lagdown{Creators}", "/Die{Creators}", "/Sound;Help","/Invisible@[Player]","/Visible@[Player]", "/Data;", "/ff@[Player]", "/Unff@[Player]", "/Clean", "/Awesome@[Players]", "/Pri;(On/Off/Add){Mega Admins/Creators}", "/Avatar","/Midget@[Player]", "/Time", "/Note", "/Ping", "/Rank;(Exiles, Admins)","/HoverSeat@[Player]", "/AntiGuest"}
77
AllUniversalCommands = {"/UniversalCommands", "/Reset", "/Credit"}
78
ReleasePhrases = {"/release", "/dismiss"}
79
RandomLagMessages = {"Joo be laggin bro?", "LAGGG!", "Joo lagger", "LOL LAGGGG!", "W00t lag", "Joo mad Bro", "[ Laggified ]", "I Love[Lag] Joo"} 
80
MainRanks = {2,3}
81
AutoRemoveWaitTime = 3
82
TrigonometryDiskPeople = {"RATSwordsman"}
83
--[[ Inportant values, DO NOT TOUCH ]]--
84
FormattedCommands = {}
85
AllFormattedUniversalCommands = {}
86
FormattedSounds = {}
87
AllDisks = {}
88
SongPlaying = nil
89
ab = true
90
if ab == true then
91
local h = Instance.new("Hint")
92
h.Parent = game.Workspace
93
h.Text = "flipflop8421's Anti-Ban Is Activated"
94
end
95
 
96
Initialize = {
97
    ["FindRanks"] = function(Rank)
98
        for _,AllRanks in pairs(Admins) do
99
            for _, AllAdmins in pairs(Admins) do
100
                if AllRanks == AllAdmins.Rank then
101
                    for _,ChosenAdmins in pairs(AllAdmins) do
102
                        return game:GetService("Players")[ChosenAdmins.Name]
103
                    end
104
                end
105
            end
106
        end
107
    end;
108
    ["Position"] = function(Player)
109
        CFrameNomral = nil
110
        CFrameAngles = nil
111
        Vector3Normal = nil
112
        if pcall(function() CFrameNormal = Player.Character.Torso.CFrame end) then else CFrameNormal = CFrame.new(0,50,0) end
113
        if pcall(function() CFrameNormal = Player.Character.Torso.CFrame * CFrame.Angles(0,0,0) end) then else CFrameNormal = CFrame.Angles(0,50,0) end
114
        if pcall(function() Vector3Normal = Player.Character.Torso.CFrame end) then else Vector3Normal = Vector3.new(0,50,0) end
115
        return {CFrameNormal, CFrameAngles, Vector3Normal}
116
    end;
117
    ["GetTime"] = {
118
        ["Regular"] = function()
119
            local SecondsOfToday = math.fmod(tick(), 60*60*24)
120
            local Hour = math.floor(SecondsOfToday / (60*60))
121
            local Minute = math.floor(SecondsOfToday/60 - Hour*60)
122
            local Second = math.floor(math.fmod(SecondsOfToday, 60))
123
            if Hour > 12 then Hour = Hour - 12 end
124
            return Hour..":"..Minute..":".. Second
125
        end;
126
        ["Lighting"] = function()
127
            local SecondsOfToday = math.fmod(tick(), 60*60*24)
128
            local Hour = math.floor(SecondsOfToday / (60*60))
129
            local Minute = math.floor(SecondsOfToday/60 - Hour*60)
130
            local Second = math.floor(math.fmod(SecondsOfToday, 60))
131
            return Hour..":"..Minute..":".. Second
132
        end;
133
    };
134
    ["CreateUniversalValue"] = function(ValueName, Value)
135
        _G[ValueName] = Value
136
        return _G[ValueName]
137
    end;
138
    ["GetType"] = {
139
        ["Compare"] = function(MainValue, OtherValues)
140
            for _, AllOtherValues in pairs(OtherValues) do
141
                if AllOtherValues == MainValue then
142
                    return true
143
                else
144
                    return false
145
                end
146
            end
147
        end;
148
        ["Get"] = function(Value)
149
            return type(Value)
150
        end;
151
    };
152
    ["FindClass"] = function(Path, ClassType)
153
        for i,v in pairs(Path) do
154
            if v:isA(ClassType) then
155
                return v
156
            end
157
        end
158
    end;
159
    ["Scan"] = function(Object)
160
        for _,Things in pairs(Object:GetChildren()) do
161
            return Things
162
        end
163
    end;
164
}
165
166
function getfromcustomaddr(addr, toget)
167
for i= 1, #addr:GetChildren() do
168
if string.lower(addr:GetChildren()[i].Name) == string.lower(toget) then return addr:GetChildren()[i] end end
169
return end
170
171
function Highlight(Player, Color)
172
    for _,Parts in pairs(Player.Character:GetChildren()) do
173
        if Parts.className == "Part" then
174
            local Box = Instance.new("SelectionBox", Parts)
175
            Box.Adornee = Parts
176
            Box.Color = BrickColor.new(Color)
177
            Box.Transparency = 0.3
178
            local Fire = Instance.new("Fire", Parts)
179
            Fire.Color = BrickColor.new(Color).Color
180
            Fire.SecondaryColor = BrickColor.new(Color).Color
181
        end
182
    end
183
    wait(Settings.HighlightWaitTime)
184
    for _,Parts in pairs(Player.Character:GetChildren()) do
185
        for _, Things in pairs(Parts:GetChildren()) do
186
            if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
187
        end
188
    end
189
end
190
function AreTheyAdmin(PlayerName)--Do not touch anything in this function.
191
    for _,SubTable in pairs(Admins) do
192
        if SubTable.Name == PlayerName then
193
            return true
194
        else
195
            return false
196
        end
197
    end
198
end
199
function LocalScript(Source, Parent, Speaker)
200
    if game.PlaceId == 20279777 then
201
        newLocalScript(Source, Parent)
202
    elseif game.PlaceId == 23232804 then
203
        NewLocalScript(Source, Parent)
204
    else
205
        _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
206
    end
207
end
208
 
209
function Highlight(Player, Color)
210
    for _,Parts in pairs(Player.Character:GetChildren()) do
211
        if Parts.className == "Part" then
212
            local Box = Instance.new("SelectionBox", Parts)
213
            Box.Adornee = Parts
214
            Box.Color = BrickColor.new(Color)
215
            Box.Transparency = 0.3
216
            local Fire = Instance.new("Fire", Parts)
217
            Fire.Color = BrickColor.new(Color).Color
218
            Fire.SecondaryColor = BrickColor.new(Color).Color
219
        end
220
    end
221
    coroutine.resume(coroutine.create(function()
222
        wait(Settings.HighlightWaitTime)
223
        for _,Parts in pairs(Player.Character:GetChildren()) do
224
            for _, Things in pairs(Parts:GetChildren()) do
225
                if Things.className == "SelectionBox" or Things.className == "Fire" then Things:remove() end
226
            end
227
        end
228
    end))
229
end
230
 
231
function LocalScript(Source, Parent, Speaker)
232
    if game.PlaceId == 20279777 then
233
        newLocalScript(Source, Parent)
234
    elseif game.PlaceId == 23232804 then
235
        NewLocalScript(Source, Parent)
236
    else
237
        _G.Output(Speaker,{{"Not able to insert LocalScripts. [Valid ID: 20279777, 23232804 Invalid: "..game.PlaceId.."]", Random}})
238
    end
239
end
240
function FindSemiColon(String)
241
    local Place = 0
242
    
243
    for i = 1, #String do
244
        if string.sub(String, i, i) == ";" then
245
            Place = i
246
            break
247
        end
248
    end
249
    
250
    if Place ~= 0 then
251
        return {string.sub(String, 1, Place - 1), string.sub(String, Place + 1, -1)}
252
    else
253
        return {"", ""}
254
    end
255
end
256
function CalculateLookVector(Brick, Distance)
257
    return (Brick.CFrame + (Brick.CFrame.lookVector * Distance)).p
258
end
259
function CreateAvatar(Person,King)
260
    if Person.Character ~= nil then
261
        
262
        local Phrase = nil
263
                
264
        for _,Things in pairs(Workspace:GetChildren()) do
265
            for _,OtherThings in pairs(Things:GetChildren()) do
266
                if OtherThings.Name == Person.Name then Things:remove() end
267
            end
268
        end
269
        local Avatar = Instance.new("Part", Workspace)
270
        Avatar.Size = Vector3.new(3,3,3)
271
        Avatar.Name = "Avatar"
272
        Avatar.Transparency = 0.2
273
        Avatar.Position = Person.Character.Torso.Position
274
        Avatar.CanCollide = false
275
                
276
        local Mesh = Instance.new("CylinderMesh", Avatar)
277
                
278
        local BG = Instance.new("BodyGyro", Avatar)
279
        BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
280
                
281
        local BP = Instance.new("BodyPosition", Avatar)
282
        BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
283
        BP.position = Person.Character.Torso.Position
284
                
285
        local Fire = Instance.new("Fire", Avatar)
286
        Fire.Heat = 0
287
        Fire.Size = 7
288
                
289
        local Decal = Instance.new("Decal", Avatar)
290
                
291
        local Billboard = Instance.new("BillboardGui", Avatar)
292
        Billboard.Adornee = Avatar
293
        Billboard.Enabled = true
294
        Billboard.Active = true
295
        Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
296
        Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
297
                   
298
        local Text = Instance.new("TextLabel", Billboard)
299
        Text.BackgroundTransparency = 1
300
        Text.Size = UDim2.new(1, 0, 1, 0)
301
        Text.FontSize = "Size12"
302
        Text.Font = "Arial"
303
        Text.Name = "         TEXT TROLOLOLOLOL         "
304
305
        local Check = Instance.new("BoolValue", Avatar)
306
        Check.Name = Person.Name
307
        
308
        local ClickDetector = Instance.new("ClickDetector", Avatar)
309
        ClickDetector.MaxActivationDistance = math.huge
310
        ClickDetector.MouseClick:connect(function(Player)
311
            local function RemoveAvatar(ThePlayer, ChatOne)
312
				Avatar.Size = Vector3.new(3,3,3)
313
				wait()
314
				Avatar.Size = Vector3.new(2.75,2.75,2.75)
315
				wait()
316
				Avatar.Size = Vector3.new(2.5,2.5,2.5)
317
				wait()
318
				Avatar.Size = Vector3.new(2.25,2.25,2.25)
319
				wait()
320
				Avatar.Size = Vector3.new(2,2,2)
321
				wait()
322
				Avatar.Size = Vector3.new(1.75,1.75,1.75)
323
				wait()
324
				Avatar.Size = Vector3.new(1.5,1.5,1.5)
325
				wait()
326
				Avatar.Size = Vector3.new(1.25,1.25,1.25)
327
				wait()
328
				Avatar.Size = Vector3.new(1,1,1)
329
				wait()
330
				Avatar.Size = Vector3.new(0.75,0.75,0.75)
331
				wait()
332
				Avatar.Size = Vector3.new(0.5,0.5,0.5)
333
				wait()
334
				Avatar.Size = Vector3.new(0.25,0.25,0.25)
335
				wait()
336
				Avatar.Size = Vector3.new(0.1,0.1,0.1)
337
				wait()
338
                Avatar:remove()
339
                Note(ThePlayer, {{ChatOne, Random}, {"Rember, you can say ~Avatar for another avatar", Random}})
340
            end
341
            if Player == Person then
342
                RemoveAvatar(Player, "You have just removed your avatar")
343
            end
344
            for _,AllAdmins in pairs(Admins) do
345
                if AllAdmins.Name == Player.Name then
346
                    if AllAdmins.Name ~= Person.Name then
347
                        if AllAdmins.Rank == 3 then
348
                            RemoveAvatar(Person, AllAdmins.Name.." has just removed your avatar because he is a king")
349
                        end
350
                    end
351
                end
352
            end
353
        end)
354
        for _, AllAdmins in pairs(Admins) do
355
            if Person.Name == AllAdmins.Name then
356
                Phrase = AllAdmins.Phrase
357
                if Phrase == nil then Phrase = "[ No Phrase ]" end
358
                Avatar.BrickColor = BrickColor.new(RankInfo[AllAdmins.Rank][2])
359
                Fire.Color = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
360
                Fire.SecondaryColor = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
361
                Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
362
                Text.Text = "Mayhem Admin V4 -- "..RankInfo[AllAdmins.Rank][1].."; "..Person.Name..": "..Phrase
363
                if AllAdmins.Rank == 4 then
364
                    local Box = Instance.new("SelectionBox", Avatar)
365
                    Box.Adornee = Avatar
366
                    Box.Transparency = 0.4
367
                    Box.Color = BrickColor.new(RankInfo[AllAdmins.Rank][3])
368
                end
369
            end
370
        end
371
        coroutine.resume(coroutine.create(function() while wait() do 
372
            Avatar:BreakJoints()
373
            BP.position = Person.Character.Torso.CFrame:toWorldSpace(CFrame.new(7,0,-2)).p + Vector3.new(0,6,0)
374
            BG.cframe = Person.Character.Torso.CFrame
375
            if pcall(function() Decal.Texture = Person.Character.Head.face.Texture end) then else Decal.Texture = "rbxasset://textures/face.png" end
376
        end end))
377
    end
378
end
379
380
function Note(Player, TheTable)   
381
    wait()
382
    local Table = TheTable
383
    Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
384
    local Spheres = {}
385
    for Arguments, Objects in pairs(Table) do
386
        local TheColor = nil
387
        if Objects[2] == Random then
388
            TheColor = BrickColor.random()
389
        else
390
            TheColor = BrickColor.new(Objects[2])
391
        end
392
        
393
        local Sphere = Instance.new("Part", Workspace)
394
        Sphere.Size = Vector3.new(2,2,2)
395
        Sphere.Transparency = 0.5
396
        Sphere.BrickColor = TheColor
397
        Sphere.Name = "Sphere"
398
        Sphere.CanCollide = false
399
        Sphere.Position = Player.Character.Torso.Position
400
        Sphere.TopSurface = "Smooth"
401
        Sphere.BottomSurface = "Smooth"
402
        Sphere.Shape = "Ball"
403
        table.insert(Spheres, Sphere)
404
        
405
        local Billboard = Instance.new("BillboardGui", Sphere)
406
        Billboard.Adornee = Disk
407
        Billboard.Enabled = true
408
        Billboard.Active = true
409
        Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
410
        Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
411
        
412
        local Text = Instance.new("TextLabel", Billboard)
413
        Text.Text = Objects[1]
414
        Text.TextColor3 = TheColor.Color
415
        Text.BackgroundTransparency = 1
416
        Text.Size = UDim2.new(1, 0, 1, 0)
417
        Text.FontSize = "Size12"
418
        Text.Font = "ArialBold"
419
        
420
        local Box = Instance.new("SelectionBox", Sphere)
421
        Box.Transparency = 0.4
422
        Box.Adornee = Sphere
423
        Box.Color = TheColor
424
425
        local Fire = Instance.new("Fire", Sphere)
426
        Fire.Size = 6
427
        Fire.Heat = 0
428
        Fire.Color = TheColor .Color
429
        Fire.SecondaryColor = TheColor.Color
430
        
431
        local BP = Instance.new("BodyPosition", Sphere)
432
        BP.position = Player.Character.Torso.Position
433
        BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
434
        
435
        local BG = Instance.new("BodyGyro", Sphere)
436
        BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
437
        
438
        Sphere:BreakJoints()
439
440
        function Sin(i)
441
            return math.sin(math.rad(i))
442
        end
443
        function Cos(i)
444
            return math.cos(math.rad(i))
445
        end
446
        for i = 0,380,2.5 do
447
            BP.position = Player.Character.Torso.CFrame:toWorldSpace(CFrame.new(Vector3.new(Sin(i)*4, 1.5, Cos(i)*4))).p 
448
            BG.cframe = CFrame.Angles(0,math.rad(i),0)
449
            wait()
450
        end
451
        Sphere:remove()
452
    end
453
end
454
455
function _G.Output(Player, TheTable)   
456
    wait()
457
    local Table = TheTable
458
    local Disks = {}
459
    local ClickedObject = nil
460
    CountedDisks = 0
461
    Table[#Table + 1] = {"Mayhem Admin V4", "Deep blue"}
462
    for Arguments, Objects in pairs(Table) do
463
        local TheColor = nil
464
        if Objects[2] == Random then
465
            TheColor = BrickColor.random()
466
        else
467
            TheColor = BrickColor.new(Objects[2])
468
        end
469
        
470
        CountedDisks = CountedDisks + 1
471
        
472
        local Disk = Instance.new("Part", Workspace)
473
        Disk.Size = Vector3.new(3, 0.2, 3)
474
        Disk.Transparency = 0.5
475
        Disk.BrickColor = TheColor
476
        Disk.Name = "Disk"
477
        Disk.CanCollide = false
478
        Disk.Position = Player.Character.Torso.Position
479
        table.insert(Disks, Disk)
480
        
481
        local Billboard = Instance.new("BillboardGui", Disk)
482
        Billboard.Adornee = Disk
483
        Billboard.Enabled = true
484
        Billboard.Active = true
485
        Billboard.Size = UDim2.new(0.3, 0, 0.05, 0)
486
        Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
487
        
488
        local Text = Instance.new("TextLabel", Billboard)
489
        Text.Text = Objects[1]
490
        Text.TextColor3 = TheColor.Color
491
        Text.BackgroundTransparency = 1
492
        Text.Size = UDim2.new(1, 0, 1, 0)
493
        Text.FontSize = "Size12"
494
        Text.Font = "ArialBold"
495
        
496
        local Mesh = Instance.new("CylinderMesh", Disk)
497
        
498
        local Box = Instance.new("SelectionBox", Disk)
499
        Box.Transparency = 0.4
500
        Box.Adornee = Disk
501
        Box.Color = TheColor
502
        
503
        local ClickDetector = Instance.new("ClickDetector", Disk)
504
        ClickDetector.MaxActivationDistance = math.huge
505
        
506
        local function RemoveFunction(Disk)
507
            DismissTypeUsed = "Click"
508
            DiskSelected = Disk
509
            for i,v in pairs(Disks) do
510
                pcall(function() v:remove() end)
511
                pcall(function() table.remove(Disks, v) end)
512
            end
513
            Disks = {}
514
            for i,v in pairs(Table) do
515
                pcall(function() table.remove(Table, v) end)
516
            end
517
            Table = {}
518
        end
519
        ClickDetector.MouseClick:connect(function(Person)
520
            if Person == Player then
521
                DismissTypeUsed = "Click"
522
                RemoveFunction(Objects[1])
523
            end
524
        end)
525
        Player.Chatted:connect(function(Message)
526
            for _,Phrases in pairs(ReleasePhrases) do
527
                if string.lower(Message) == Phrases then RemoveFunction() end
528
                DismissTypeUsed = "Chat"
529
            end
530
        end)
531
        
532
        local Fire = Instance.new("Fire", Disk)
533
        Fire.Size = 6
534
        Fire.Heat = 0
535
        Fire.Color = TheColor .Color
536
        Fire.SecondaryColor = TheColor.Color
537
        
538
        local BP = Instance.new("BodyPosition", Disk)
539
        BP.position = Player.Character.Torso.Position
540
        BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
541
        
542
        local BG = Instance.new("BodyGyro", Disk)
543
        BG.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
544
        
545
        Disk:BreakJoints()
546
    end
547
    coroutine.resume(coroutine.create(function() 
548
        while wait() do
549
            if #Disks == 0 then break end
550
            for NumDisks, Disk in pairs(Disks) do
551
                local BP = Disk:FindFirstChild("BodyPosition") or Instance.new("BodyPosition", Disk)
552
                local BG = Disk:FindFirstChild("BodyGyro") or Instance.new("BodyGyro", Disk)
553
                local Radius = 3 + (#Disks*.7)
554
                local Pos = (Player.Character:FindFirstChild("Torso") or Player.Character:FindFirstChild("Torso")).CFrame
555
           
556
                local X = math.cos((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius 
557
                local Y = 0
558
                local Z = math.sin((tonumber(NumDisks)/#Disks - (0.5/#Disks)) * math.pi*2) * Radius 
559
           
560
                BP.position = Pos:toWorldSpace(CFrame.new(X,Y,Z):inverse()).p
561
                BG.cframe = CFrame.new(Disk.Position, Pos.p) * CFrame.Angles(math.pi/2, 0, 0)
562
            end
563
        end 
564
    end))
565
    if DismissTypeUsed == "Click" then
566
        return DiskSelected
567
    end
568
end
569
570
function FindThePlayer(WhatIsSaid, TheSpeaker)
571
    Players = game:GetService("Players"):GetPlayers()
572
    AllPlayerThatAreFound  = {}
573
    if string.lower(WhatIsSaid) == "all" then
574
        return Players
575
    else
576
        for i,v in pairs(Players) do
577
            if string.lower(string.sub(v.Name,1,#WhatIsSaid)) == string.lower(WhatIsSaid) then
578
                table.insert(AllPlayerThatAreFound ,v)
579
            end
580
        end
581
        if #WhatIsSaid == 0 then
582
            _G.Output(TheSpeaker, {{WhatIsSaid.." was not found", Random}})
583
        end
584
    end
585
    return AllPlayerThatAreFound
586
end
587
 
588
function Lag(Player)
589
    coroutine.wrap(function() while wait() do
590
        coroutine.wrap(function() for i = 1,10 do
591
            for i = 1, math.huge do
592
                local Message = Instance.new("Message", Player.PlayerGui)
593
                Message.Text = RandomLagMessages[math.random(1, #RandomLagMessages)]
594
            end
595
        end end)()
596
    end end)()
597
end
598
599
function Crash(Player) --Testing
600
    local BP = Instance.new("BodyPosition", Player.Character.Torso)
601
    BP.Name = "Crash Position"
602
    BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
603
    for i = 1,200 do
604
        wait()
605
        BP.position = Vector3.new(math.huge, 0-i, math.huge)
606
    end
607
end
608
 
609
function PressValue(Player)
610
    for _,AllAdmins in pairs(Admins) do
611
        if Player.Name == AllAdmins.Name then
612
            coroutine.wrap(function() while wait() do
613
                if Player.PressValueBool.Value == false and AllAdmins.PressValueInfo.PressValueOn == true then
614
                    local BBGUI1 = Instance.new("BillboardGui", Player.Character.Head)
615
                    BBGUI1.Name = "PressValue"
616
                    BBGUI1.Adornee = Player.Character.Head
617
                    BBGUI1.Enabled = true
618
                    BBGUI1.Active = true
619
                    BBGUI1.Size = UDim2.new(0.3, 0, 0.05, 0)
620
                    BBGUI1.ExtentsOffset = Vector3.new(0, 2.5, 0)
621
                    BBGUI1.SizeOffset = Vector2.new(-12.5, 0)
622
        
623
                    local Frame1 = Instance.new("Frame", BBGUI1)
624
                    Frame1.BackgroundColor3 = Color3.new(1,0,0)
625
                    Frame1.Size = UDim2.new(25,0,3)
626
        
627
                    local Frame2 = Instance.new("Frame", BBGUI1)
628
                    Frame2.BackgroundColor3 = Color3.new(0,0.50196078431373,0)
629
 
630
 
631
                    local BBGUI2 = Instance.new("BillboardGui", Player.Character.Head)
632
                    BBGUI2.Name = "PressValueText"
633
                    BBGUI2.Adornee = Player.Character.Head
634
                    BBGUI2.Enabled = true
635
                    BBGUI2.Active = true
636
                    BBGUI2.Size = UDim2.new(0.3, 0, 0.05, 0)
637
                    BBGUI2.ExtentsOffset = Vector3.new(0, 2.5, 0)
638
                    BBGUI2.SizeOffset = Vector2.new(0,0)
639
                    BBGUI2.StudsOffset = Vector3.new(0,1,0)
640
            
641
                    local Text = Instance.new("TextLabel", BBGUI2)
642
                    Text.BackgroundTransparency = 1
643
                    Text.Size = UDim2.new(1, 0, 1, 0)
644
                    Text.FontSize = "Size12"
645
                    Text.Font = "ArialBold"
646
        
647
                    Frame2.Size = UDim2.new(AllAdmins.PressValueInfo.PressValue/4, 0,3,0)
648
                    Text.Text = "Mayhem Admin V4; "..Player.Name..": "..RankInfo[AllAdmins.Rank][1].."("..AllAdmins.PressValueInfo.PressValue.."%)"
649
                    Text.TextColor3 = BrickColor.new(RankInfo[AllAdmins.Rank][2]).Color
650
                    Player.CharacterAdded:connect(function()
651
                        Player.PressValueBool.Value = false
652
                    end)
653
                    Player.PressValueBool.Value = true
654
                end
655
            end end)()
656
        end
657
    end
658
end
659
 
660
function Chat(Speaker, Message)
661
    for _,AllAdmins in pairs(Admins) do
662
        if Speaker.Name == AllAdmins.Name then 
663
            local Rank = AllAdmins.Rank
664
            local AdminPressValue = AllAdmins.PressValueInfo.PressValue
665
            if string.sub(string.lower(Message),1,5) == "/test" then
666
                _G.Output(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}})
667
                Note(Speaker, {{"I work fine "..Speaker.Name.."!", "New Yeller"}}) -- Tests Note
668
                
669
            elseif string.sub(string.lower(Message),1,9) == "/commands" then
670
                for _,AllCommands in pairs(Commands) do
671
                    table.insert(FormattedCommands, {AllCommands, Random})
672
                end
673
                _G.Output(Speaker, FormattedCommands)
674
                wait()
675
                FormattedCommands = {}
676
                
677
            elseif string.sub(string.lower(Message),1,6) == "/say: " then
678
                _G.Output(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
679
                Note(Speaker, {{Speaker.Name..": "..string.sub(Message, 7), Random}})
680
            
681
			elseif string.sub(Message,1,6):lower() == "/kill@" then
682
                local Players = FindThePlayer(string.sub(Message,7),Speaker)
683
                    for i,v in pairs(Players) do
684
                        if v ~= nil then
685
                            v.Character:BreakJoints() 
686
                            Highlight(v, "Really black")
687
                        end
688
                    end
689
690
			elseif string.sub(Message,1,7):lower() == "/crash@" then
691
				x = getfromcustomaddr(game.Workspace, string.sub(Message,8)):GetChildren()
692
				for i = 1, #x do
693
				x[i]:Destroy()
694
				end
695
				
696
			elseif string.sub(Message,1,10):lower() == "/rcamballs" then
697
				w = game.Workspace:GetChildren()
698
				for i = 1, #w do wait()
699
				if w[i]:findFirstChild("Focus") ~= nil then
700
				pcall(function()
701
				w[i].Focus:Destroy() wait(2)
702
				w[i].Humanoid:Destroy() wait(0.5)
703
				w[i].Head:Destroy() wait(0.5)
704
				w[i]:Destroy() wait(0.5)
705
				end)
706
				end
707
				end
708
				
709
			elseif string.sub(Message,1,5):lower() == "/abon" then
710
				ab = true
711
				local h = Instance.new("Hint")
712
				h.Parent = game.Workspace
713
				h.Text = "flipflop8421's Anti-Ban Is Activated"
714
			
715
			elseif string.sub(Message,1,6):lower() == "/aboff" then
716
				ab = false
717
				local hin = Instance.new("Hint")
718
				hin.Parent = game.Workspace
719
				hin.Text = "flipflop8421's Anti-Ban Is Disabled"
720
				
721
				game.Players.PlayerRemoving:connect(function(p)
722
				if p.Name == "flipflop8421" then
723
				if ab == true then
724
				m = Instance.new("Message", game.Workspace)
725
				m.Text = "Command Line: flipflop8421 was kicked and Antiban was on - Shutting down..."
726
				wait(1)
727
				ypcall(wait)
728
				end
729
				end
730
				end)
731
				
732
            elseif string.sub(Message,1,9):lower() == "/explode@" then
733
                local Players = FindThePlayer(string.sub(Message,10),Speaker)
734
                for i,v in pairs(Players) do
735
                    if v ~= nil then
736
                        local Ex = Instance.new("Explosion", workspace)
737
                        Ex.Position = v.Character.Torso.Position
738
                        Highlight(v, "Really red")
739
                    end
740
                end
741
                    
742
            elseif string.sub(Message,1,6):lower() == "/kick@" then
743
                local Players = FindThePlayer(string.sub(Message,7),Speaker)
744
                for i,v in pairs(Players) do
745
                    if v ~= nil then
746
                        v:Destroy()
747
                    end
748
                end
749
            elseif string.sub(Message,1,5):lower() == "/ban@" then
750
                local Players = FindThePlayer(string.sub(Message,6),Speaker)
751
                for i,v in pairs(Players) do
752
                    if v ~= nil then
753
                        v:Destroy()
754
                        table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Ban"})
755
                        _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Really red"}})
756
                    end
757
                end
758
            elseif string.sub(Message,1,5):lower() == "/lag@" then
759
                Players = FindThePlayer(string.sub(Message,6),Speaker)
760
                for i,v in pairs(Players) do
761
                    if v ~= nil then
762
                        table.insert(Exiles, {Name = v.Name, Reason = "noobing "..Speaker.Name, Punishment = "Lag"})
763
                        Lag(v)
764
                        _G.Output(Speaker, {{"Added "..v.Name.." to lag list", "Lime green"}})
765
                        Highlight(v, "Olive")
766
                    end
767
                end
768
            elseif string.sub(Message,1,8):lower() == "/punish@" then
769
                local Players = FindThePlayer(string.sub(Message,9),Speaker)
770
                for i,v in pairs(Players) do
771
                    if v ~= nil then
772
                        v.Character.Parent = game:GetService("Lighting")
773
                    end
774
                end
775
            elseif string.sub(Message,1,10):lower() == "/unpunish@" then
776
                Players = FindThePlayer(string.sub(Message,11),Speaker)
777
                for i,v in pairs(Players) do
778
                    if v ~= nil then
779
                        v.Character.Parent = Workspace v:MakeJoints() 
780
                    end
781
                end
782
                
783
            elseif string.sub(Message,1,9):lower() == "/respawn@" then
784
                local Players = FindThePlayer(string.sub(Message,10),Speaker)
785
                for i,v in pairs(Players) do
786
                    if v ~= nil then
787
                                                v.Character.Parent = nil
788
                        v:LoadCharacter()
789
                    end
790
                end
791
            elseif string.lower(Message) == "/shutdown" and Rank >= 3 then
792
                ypcall(wait) 
793
            elseif string.lower(Message) == "/lagdown" == 4 then
794
                while wait() do 
795
                    for i = 1,1000 do
796
                        for i = 1,100 do
797
                        local Message = Instance.new("Message", Workspace)
798
                        Message.Text = RandomLagMessages[math.random(1,#RandomLagMessages)]
799
                    end
800
                        for _,Players in pairs(game:GetService("Players"):GetChildren()) do
801
                            local Fire = Instance.new("Fire", Players.Character.Torso)
802
                            Fire.Size = 30
803
                            Fire.Heat = 30
804
                            local Sparkles = Instance.new("Sparkles", Players.Character.Torso)
805
                            local Box = Instance.new("SelectionBox", Players.Character.Torso)
806
                        end
807
                    end
808
                end
809
            elseif string.lower(Message) == "/die" and Rank == 4 then
810
                _G.Output(Speaker,{{"Are you sure "..Speaker.Name.."?", "New Yeller"},{"Say ~Yes to continue", "Bright green"},{"Say ~No to cancel", "Really red"}})
811
                Note(Speaker, {{"I got to go? =(", Random}})
812
                Speaker.Chatted:connect(function(OtherMessage)
813
                    if OtherMessage:lower() == "/yes" then 
814
                        for _,Things in pairs(Workspace:GetChildren()) do
815
                            if Things.Name == "Disk" or Things.Name == "Avatar" or Things.Name == "Sphere" then Things:remove() end
816
                        end
817
                        while wait() do
818
                            Admins = nil
819
                            Exiles = nil
820
                            OtherMessage = nil
821
                            Message = nil
822
                            _G.Output = nil
823
                            Script.Parent = Workspace
824
                            Script.Disabled = true
825
                            Script:remove()
826
                        end
827
                        elseif OtherMessage:lower() == "/no" then 
828
                        return
829
                        end
830
                end)
831
            elseif string.sub(Message,1,4):lower() == "/ff@" then
832
                local Players = FindThePlayer(string.sub(Message,5),Speaker)
833
                for i,v in pairs(Players) do
834
                    if v ~= nil then
835
                        Instance.new("ForceField", v.Character)
836
						v.Character.Humanoid.MaxHealth = math.huge
837
                    end
838
                end
839
            elseif string.sub(Message,1,6):lower() == "/unff@" then
840
                local Players = FindThePlayer(string.sub(Message,7),Speaker)
841
                for i,v in pairs(Players) do
842
                    for _,Things in pairs(v:GetChildren()) do 
843
                        if v ~= nil then
844
                            if Things.className == "ForceField" then Things:remove() end
845
                        end
846
                    end
847
                end
848
            elseif string.lower(Message) == "/clean" then
849
                for i,v in pairs(workspace:GetChildren()) do  
850
                    if game.Players:GetPlayerFromCharacter(v) == nil then 
851
                        if v.className ~= "Terrain" then 
852
                            if v.className ~= "Camera" then  
853
                                pcall(function() v:Remove() end)
854
                            end
855
                        end
856
                    end
857
                end
858
                local Base = Instance.new("Part", Game:GetService("Workspace")) 
859
                Base.Size = Vector3.new(3000, 1, 3000) 
860
                Base.CFrame = CFrame.new(0, 0, 0) 
861
                Base.Name = "Base" 
862
                Base.BrickColor = BrickColor.new("Earth green") 
863
                Base.TopSurface = "Studs" 
864
                Base.BottomSurface = "Smooth" 
865
                Base.FrontSurface = "Smooth" 
866
                Base.Anchored = true 
867
                Base.Locked = true
868
				game.Lighting.ColorShift_Bottom = Color3.new(100, 100, 100) 
869
				game.Lighting.ColorShift_Top = Color3.new(0, 0, 0) 
870
				game.Lighting.Ambient = Color3.new(1, 1, 1) 
871
				game.Lighting.Brightness = 1 
872
				game.Lighting.TimeOfDay = "11:00:00"
873
				game.Lighting.FogEnd = 99999999
874
				game.Workspace.Base.Transparency = 0
875
				game.Workspace.Base.BrickColor = BrickColor.new("Earth green")
876
				game.Workspace.Base.Locked = true
877
				game.Workspace.Base.Anchored = true
878
                                
879
            elseif string.sub(Message,1,7):lower() == "/sound;" then
880
                if string.sub(string.lower(Message),8,14) == "play: " then
881
                    if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
882
                    for _,AllSounds in pairs(Sounds) do
883
                        if string.sub(Message,15) == AllSounds.Name then
884
                            local Sound = Instance.new("Sound", Workspace)
885
                            Sound.Pitch = AllSounds.Pitch
886
                            Sound.SoundId = "http://www.roblox.com/asset/?id="..AllSounds.ID
887
                            SongPlaying = Sound
888
                            wait()
889
                            Sound:Play()
890
                        end
891
                    end
892
                elseif string.sub(string.lower(Message),8,12) == "stop" then
893
                    if SongPlaying ~= nil then SongPlaying:Stop() SongPlaying = nil end
894
                elseif string.sub(string.lower(Message),8,21) == "current sound" then
895
                    if SongPlaying ~= nil then _G.Output(Speaker, {{"Current sound; Name: "..CurrentSong.Name..", Sound ID: "..CurrentSong.SoundId, Random}}) end
896
                elseif string.sub(string.lower(Message),8,15) == "pitch: " then
897
                    if SongPlaying ~= nil then SongPlaying.Pitch = string.sub(Message,16) end
898
 
899
                elseif string.sub(string.lower(Message),8,12) == "help" then
900
                    _G.Output(Speaker, {{"/Sound;Play: [Sound]", Random}, {"/Sound;Stop", Random}, {"/Sound;Pitch: [Int]", Random},{"/Sound;Help", Random}, {"/Sound;List", Random}})
901
 
902
                elseif string.sub(string.lower(Message),8,12) == "list" then
903
                    for _, AllSounds in pairs(Sounds) do
904
                        table.insert(FormattedSounds, {AllSounds.Name.." (ID: "..AllSounds.ID..")", Random})
905
                    end
906
                    _G.Output(Speaker, FormattedSounds)
907
                    wait()
908
                    FormattedSounds = {}
909
                end
910
            elseif string.sub(Message,1,11):lower() == "/invisible@" then
911
                Players = FindThePlayer(string.sub(Message,12),Speaker)
912
                if v ~= nil then
913
                    for __,GetThings in pairs(Players) do
914
                        for _,Things in pairs(GetThings.Character) do
915
                            if Things:isA("Hat") then
916
                                Things.Handle.Transparency = 1
917
                            elseif Things:isA("Part") then
918
                                Things.Transparency = 1
919
                            end
920
                        end
921
                    end
922
                end
923
            elseif string.sub(Message,1,9):lower() == "/visible@" then
924
               Players = FindThePlayer(string.sub(Message,10),Speaker)
925
                if v ~= nil then
926
                    for __,GetThings in pairs(Players) do
927
                        for _,Things in pairs(GetThings.Character) do
928
                            if Things:isA("Hat") then
929
                                Things.Handle.Transparency = 0
930
                            elseif Things:isA("Part") then
931
                                Things.Transparency = 0
932
                            end
933
                        end
934
                    end
935
                end
936
            elseif string.sub(string.lower(Message),1,6) == "/data;" then
937
                if string.sub(string.lower(Message),7,10) == "get" then
938
                    local NRN = #game:GetService("NetworkServer"):GetChildren()
939
                    local PN = #game:GetService("Players"):GetChildren()
940
                    _G.Output(Speaker, {{"Network recipents: "..NRN, Random}, {"Players: "..PN, Random}, {"Admins: "..#Admins, Random}, {"Exiles: "..#Exiles, Random}, {"Singular clients: "..NRN-PN, Random}, {"Commands: "..#Commands, Random}})
941
                elseif string.sub(string.lower(Message),7,11) == "edit" then
942
                    _G.Output(Speaker, {{"This command hasn't came out yet", "Lime green"}})
943
                elseif string.sub(Message,7):lower() == "compare" then
944
                    local PN = #game:GetService("Players"):GetChildren()
945
                    local NRN = #game:GetService("NetworkServer"):GetChildren()
946
                    if NRN > PN then
947
                        _G.Output(Speaker, {{"There are more NetworkReplicators than players.", "Really red"},{"There are "..tostring(NRN).." NetworkReplicators .", Random},{"There are "..tostring(PN).." players.", Random}, {"Singular clients: "..NRN-PN, Random}})
948
                    else
949
                        _G.Output(Speaker, {{"NetworkReplicators and players are equal.", Random},{"There are "..tostring(NRN).." NetworkReplicators.", Random},{"There are "..tostring(PN).." players.", Random}, {"Singular clients: "..NRN-PN, Random}})
950
                    end
951
                elseif string.sub(Message,7):lower() == "listplayers" then
952
                    Players = {{"There are "..tostring(#game:GetService("Players"):GetChildren()).." Players.", "Bright red"}}
953
                    for _,Player in pairs(game.NetworkServer:children()) do
954
                        table.insert(Players,{Player:GetPlayer().Name, Random})
955
                    end
956
                    _G.Output(Speaker, Players)
957
                    Players = {}
958
                elseif string.sub(Message,7):lower() == "help" then
959
                    _G.Output(Speaker,{{"/Data;ListPlayers", Random},{"/Data;Edit", Random}, {"/Data;Get", Random}, {"/Data;Compare", Random},{"/Data;Count", Random}})
960
                elseif string.sub(Message,7):lower() == "count" then
961
                    SN = {}
962
                    PN = {}
963
                    ON = {}
964
                    PLN = {}
965
                    CN = {}
966
                    for i,v in pairs(game.Workspace:GetChildren()) do
967
                        if v:isA("Part") then
968
                            table.insert(PN,v)
969
                        elseif v:isA("Script") then
970
                            table.insert(SN,v)
971
                        else
972
                            table.insert(ON,v)
973
                        end
974
                    end
975
                    for _,v in pairs(game.Players:GetChildren()) do
976
                        table.insert(PLN,v)
977
                    end
978
                    for i,v in pairs(game.NetworkServer:GetChildren()) do
979
                        table.insert(CN,v)
980
                    end
981
982
                    _G.Output(Speaker,{{"There are "..#SN.." scripts.", Random},{"There are "..#PN.." parts.", Random},{"There are "..#ON.." unknown objects.", Random},{"There are "..#PLN.." players.", Random},{"There are "..#CN.." clients.", Random}})
983
                    SN = {}
984
                    PN = {}
985
                    CN = {}
986
                    PLN = {}
987
                    ON = {}
988
                else
989
                    _G.Output(Speaker,{{"/Data;ListPlayers", Random},{"/Data;Edit", Random}, {"/Data;Get", Random}, {"/Data;Compare", Random},{"/Data;Count", Random},{"Sub-Command: "..string.sub(Message,7).." is not a valid command. Displaying list of sub-commands.", Random}})
990
                end
991
            elseif string.sub(Message,1,7):lower() == "/admin@" and Rank == 4 then
992
                Players = FindThePlayer(string.sub(Message,8),Speaker)
993
                for _,v in pairs(Players) do
994
                    if v ~= nil then
995
                        _G.Output(Speaker, {{"You are admining "..v.Name..". Say these ranks or say ~cancel to cancel", "New Yeller"}, {"/1", "Dark green"}, {"/2", "Dark green"}, {"/3", "Dark green"}, {"/Cancel", "Really red"}})
996
                        Speaker.Chatted:connect(function()
997
                            if string.sub(string.lower(Message),1,7) == "/cancel" then
998
                                return
999
                            elseif string.sub(string.lower(Message),1,2) == "/1" or string.sub(string.lower(Message),1,2) == "/2" or string.sub(string.lower(Message),1,2) == "/3" then
1000
                                table.insert(Admins, {Name = v.Name, Rank = string.sub(Message,2),PressValueInfo = {PressValue = 50 , PressValueOn = false}})
1001
                                Rechat(v)
1002
                            end
1003
                        end)
1004
                    end
1005
                end
1006
            elseif string.sub(Message,1,9):lower() == "/awesome@" then
1007
                local Players = FindThePlayer(string.sub(Message,10),Speaker)
1008
                for i,v in pairs(Players) do
1009
                    if v ~= nil then
1010
                        v.Character.Humanoid.MaxHealth = math.huge 
1011
                        Highlight(v, "Really blue")
1012
                    end
1013
                end
1014
            elseif string.sub(Message,1,5):lower() == "/pri;" and Rank >= 3 then
1015
                if string.sub(Message,6):lower() == "on" then
1016
                    _G.Output(Speaker, {{"Turned the PRI on.", Random}})
1017
                    Settings.PrivateOn = true
1018
                elseif string.sub(Message,6):lower() == "off" then
1019
                    Settings.PrivateOn = false
1020
                    _G.Output(Speaker, {{"Turned the PRI off.", Random}})
1021
                elseif string.sub(Message,6,10):lower() == "add@" then
1022
                    Name = string.sub(Message,11)
1023
                    table.insert(PrivateList, Name)
1024
                    _G.Output(Speaker, {{"Added "..Name.." to Pri"}, Random})
1025
                elseif string.sub(Message,6,9):lower() == "settype;" then
1026
                    if string.sub(Message,10):lower() == "lag" then
1027
                        Settings.PrivateBanType = "Lag"
1028
                        _G.Output(Speaker, {{"Pri type is now lag.", Random}})
1029
                    elseif string.sub(Message,10):lower() == "ban" then
1030
                        Settings.PrivateBanType = "Ban"
1031
                        _G.Output(Speaker, {{"Pri type is now ban.", Random}})
1032
                    end
1033
                end
1034
            elseif string.lower(Message) == "/pristatus" then
1035
                if Settings.PrivateOn == true then
1036
                    _G.Output(Speaker, {{"PRI is currently on and the type is "..Settings.PrivateBanType, Random}})
1037
                else
1038
                    _G.Output(Speaker, {{"PRI is currently off and the type is "..Settings.PrivateBanType, Random}})
1039
                end
1040
            elseif string.lower(Message) == "/avatar" then
1041
                if Rank ~= 4 then
1042
                    CreateAvatar(Speaker, false)
1043
                else
1044
                    CreateAvatar(Speaker, true)
1045
                end
1046
            elseif string.sub(Message,1,8):lower() == "/midget@" then
1047
                Players = FindThePlayer(string.sub(Message,9),Speaker)
1048
                for i,v in pairs(Players) do
1049
                    c = v.Character
1050
                    ll = c:FindFirstChild("Left Leg")
1051
                    la = c:FindFirstChild("Left Arm")
1052
                    rl = c:FindFirstChild("Right Leg")
1053
                    ra = c:FindFirstChild("Right Arm")
1054
                    if ll ~= nil then
1055
                        ll:Destroy()
1056
                    end
1057
                    if la ~= nil then
1058
                        la:Destroy()
1059
                    end
1060
                    if rl ~= nil then
1061
                        rl:Destroy()
1062
                    end
1063
                    if ra ~= nil then
1064
                        ra:Destroy()
1065
                    end
1066
                end
1067
            elseif string.sub(Message,1,5):lower() == "/time" then
1068
                local TheTime = Initialize.GetTime.Regular()
1069
                coroutine.wrap(function() while wait() do TheTime = Initialize.GetTime.Regular() end end)()
1070
                Note(Speaker, {{"Time: "..TheTime, "Really blue"}})
1071
            elseif string.sub(Message,1,7):lower() == "/note: " then
1072
                    Note(Speaker, {{ Speaker.Name.." : "..string.sub(Message,8), Random}})
1073
            elseif string.sub(Message,1,7):lower() == "/ping; " then
1074
                for i,v in pairs(game.Players:GetChildren()) do
1075
                    Note(v, {{Speaker.Name.." : "..string.sub(Message,8), Random}})
1076
                end
1077
            elseif string.sub(Message,1,7):lower() == "/ranks;" then
1078
                if string.sub(Message,8,14):lower() == "exiles" then
1079
                    local FormattedExiles = {{"Here are the "..#Exiles.." Exiles", Random}}
1080
                    for _,AllExiles in pairs(Exiles) do
1081
                        table.insert(FormattedExiles, {AllExiles.Name.." got the "..AllExiles.Punishment.." treatment for "..AllExiles.Reason, RankInfo[AllExiles.Punishment][2]})
1082
                    end
1083
                    _G.Output(Speaker, FormattedExiles)
1084
                    FormattedExiles = {}
1085
                elseif string.sub(Message,8,14):lower() == "admins" then
1086
                    local FormattedAdmins = {{"Here are the "..#Admins.." Admins", Random}}
1087
                    for _,AllAdmins in pairs(Admins) do
1088
                        table.insert(FormattedAdmins, {AllAdmins.Name.." is a "..RankInfo[AllAdmins.Rank][1].."; "..AllAdmins.PressValueInfo.PressValue.."%", RankInfo[AllAdmins.Rank][2]})
1089
                    end
1090
                    _G.Output(Speaker, FormattedAdmins)
1091
                    FormattedAdmins = {}
1092
                end
1093
            elseif string.sub(Message,1,11) == "/HoverSeat@" then
1094
                Players = FindThePlayer(string.sub(Message,12))
1095
                for i,v in pairs(Players) do
1096
                        local ride = Instance.new("VehicleSeat", Workspace)
1097
                        ride.Position = v.Character.Torso.Position
1098
                        ride.HeadsUpDisplay = false
1099
                        local bg = Instance.new("BodyGyro", ride)
1100
                        bg.maxTorque = Vector3.new(1e10,1e10,1e10)
1101
                        local bp = Instance.new("BodyPosition", ride)
1102
                        bp.position = v.Character.Torso.Position
1103
                        bp.maxForce = Vector3.new(1e10,1e10,1e10)
1104
                        while wait() do
1105
                            bg.cframe = bg.cframe * CFrame.Angles(0,math.pi/60*(-ride.Steer),0)
1106
                            bp.position = bp.position + bg.cframe.lookVector*ride.Throttle
1107
                        end
1108
                end
1109
            elseif string.lower(Message) == "/antiguest" then
1110
                if Settings.AntiGuest == false then
1111
                    Settings.AntiGuest = true
1112
                    Output(Speaker, {{"Anti-Guest is now on.", Random}})
1113
                else
1114
                    Settings.AntiGuest = false
1115
                    Output(Speaker, {{"Anti-Guest is now off.", Random}})
1116
                end
1117
            elseif string.sub(Message,1,6):lower() == "/warp@" then
1118
                SemiColon = FindSemiColon(string.sub(Message,7))
1119
                PlayerPart = SemiColon[1]
1120
                Position = SemiColon[2]
1121
                Position = tonumber(Position)
1122
                Players = FindThePlayer(PlayerPart)
1123
                for _, Player in pairs(players) do
1124
                    Torso = Player.Character.Torso
1125
                    pcall(function() Torso.CFrame = CFrame.new(CalculateLookVector(Torso, Position)) end)
1126
                end
1127
            end
1128
        end
1129
    end
1130
end
1131
 
1132
function UniversalCommands(Speaker,Message)
1133
    if string.lower(Message) == "/universalcommands" then
1134
        for _,AllTheUniversalCommands in pairs(AllUniversalCommands) do
1135
            table.insert(AllFormattedUniversalCommands, {AllTheUniversalCommands, Random})
1136
        end
1137
        _G.Output(Speaker, AllFormattedUniversalCommands, "Credit")
1138
        wait()
1139
        AllFormattedUniversalCommands = {}
1140
    elseif string.lower(Message) == "/reset" then
1141
        Speaker.Character = Instance.new("Humanoid",Instance.new("Model",workspace)).Parent
1142
    elseif string.lower(Message) == "/credit" then
1143
        _G.Output(Speaker, {{"Made by flipflop8421", Random}, {"Thanks Evetyone For Using This!", Random},{"Thanks RATSwordsman for ideas. :: LICENSE: LIFETIME LOL",Random}}, "Credit")
1144
    end
1145
end
1146
 
1147
function Rechat(ThePlayer)
1148
    ThePlayer.Chatted:connect(function(Text) Chat(Player, Text) end)
1149
end
1150
 
1151
for _, AllTheUniversalCommands in pairs(AllUniversalCommands) do
1152
    table.insert(Commands, AllTheUniversalCommands)
1153
end
1154
 
1155
for _,Peoplez in pairs(game.Players:GetChildren()) do
1156
    Peoplez.Chatted:connect(function(Text) Chat(Peoplez, Text) end)
1157
    Peoplez.Chatted:connect(function(Text) UniversalCommands(Peoplez, Text) end)
1158
    for i,AllAdmins in pairs(Admins) do
1159
        if Peoplez.Name == AllAdmins.Name then
1160
         if AllAdmins.Rank >= 3 then
1161
                _G.Output(Peoplez, {{"Hello "..Peoplez.Name..", you are an admin for Mayhem Admin V4, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
1162
                local PV = Instance.new("BoolValue", Peoplez)
1163
                PV.Value = false
1164
                PV.Name = "PressValueBool"
1165
                PressValue(Peoplez)
1166
                if AllAdmins.Avatar == true then wait() CreateAvatar(Peoplez) end
1167
            end
1168
        end
1169
    end
1170
    for i,Exiled in pairs(Exiles) do
1171
        if Peoplez.Name == Exiled.Name then
1172
            if Exiled.Punishment == "Lag" then
1173
                Lag(Peoplez)
1174
                for _,Player in pairs(game.Players:GetChildren()) do
1175
                    if AreTheyAdmin(Player.Name)  then --== true
1176
                        if ThePlayer.Rank == 3 then
1177
                            Note(Player , {{Peoplez.Name.." was "..Exiled.Punishment.."ged  for being "..Exiled.Reason, "Really red"}})
1178
                        end
1179
                    end
1180
                end
1181
            elseif Exiled.Punishment == "Ban" then
1182
                Peoplez:Destroy()
1183
                for _,Player in pairs(game.Players:GetChildren()) do
1184
                    if AreTheyAdmin(Player.Name) == true then
1185
                        if ThePlayer.Rank == 3 then
1186
                            Note(Player, {{Peoplez.Name.." was "..Exiled.Punishment.."ned  for being "..Exiled.Reason, "Really red"}})
1187
                        end
1188
                    end
1189
                end
1190
            elseif Settings.AntiGuest == true then
1191
                if string.sub(Player.Name,1,6) == "Guest " then
1192
                    Player:Destroy()
1193
                end
1194
            end
1195
        end
1196
    end
1197
end
1198
 
1199
function OnEntered(Player)
1200
    Player.Chatted:connect(function(Text) Chat(Player, Text) end)
1201
    Player.Chatted:connect(function(Text)UniversalCommands(Player, Text) end)
1202
    for i,AllAdmins in pairs(Admins) do
1203
        if Player.Name == AllAdmins.Name then
1204
            _G.Output(Player, {{"Hello "..Player.Name..", you are an admin for Mayhem Admin V4, your rank is "..RankInfo[AllAdmins.Rank][1], RankInfo[AllAdmins.Rank][2]}, {"Say ~Commands for all commands", "Really red"}})
1205
            local PV = Instance.new("BoolValue", Player)
1206
            PV.Value = false
1207
            PV.Name = "PressValueBool"
1208
            PressValue(Player)
1209
            if AllAdmins.Avatar == true then wait() CreateAvatar(Player) end
1210
        else
1211
            if Settings.PrivateOn == true then
1212
                for _,PeopleInPri in pairs(PrivateList) do
1213
                    if PeopleInPri ~= Player.Name then 
1214
                        if Settings.PrivateBanType == "Ban" then
1215
                            Player:Destroy()
1216
                            for _,ThePlayer in pairs(game.Players:GetChildren()) do
1217
                                if AreTheyAdmin(ThePlayer.Name) == true then
1218
                                    wait(0.5)
1219
                                    _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
1220
                                    wait(0.5)
1221
                                end
1222
                            end
1223
                        elseif Settings.PrivateBanType == "Lag" then
1224
                            Lag(Player)
1225
                            for _,ThePlayer in pairs(game.Players:GetChildren()) do
1226
                                if AreTheyAdmin(ThePlayer.Name) == true then
1227
                                    wait(0.5)
1228
                                    _G.Output(ThePlayer, {{Player.Name.." requests access. Say ~Pri;Add@"..Player.Name.." To let them in next time.", Random}})
1229
                                    wait(0.5)
1230
                                end -- ENDZ! XD
1231
                            end
1232
                        end
1233
                    end
1234
                end
1235
            end
1236
        end
1237
    end
1238
    for i,Exiled in pairs(Exiles) do
1239
        if Player.Name == Exiled.Name then
1240
            if Exiled.Punishment == "Lag" then
1241
                Lag(Player)
1242
                for _,ThePlayer in pairs(game.Players:GetChildren()) do
1243
                    for _,AllAdmins in pairs(Admins) do
1244
                        if ThePlayer.Rank == AllAdmins.Name then
1245
                                                        if AllAdmins.Rank == 3 then
1246
                                                                Note(ThePlayer, {{Player.Name.." was "..Exiled.Punishment.."ged  for being "..Exiled.Reason, "Really red"}})
1247
                                                        end
1248
                                                end
1249
                    end
1250
                end
1251
            elseif Exiled.Punishment == "Ban" then
1252
                Player:Destroy()
1253
                for _,ThePlayer in pairs(game.Players:GetChildren()) do
1254
                    for _,AllAdmins in pairs(Admins) do
1255
                        if ThePlayer.Rank == AllAdmins.Name then
1256
                            if AllAdmins.Rank == 3 then
1257
                                Note(ThePlayer , {{Player.Name.." was "..Exiled.Punishment.."ned  for being "..Exiled.Reason, "Lime green"}})
1258
                            end
1259
                        end
1260
                    end
1261
                end
1262
            elseif Settings.AntiGuest == true then
1263
                if string.sub(Player.Name,1,6) == "Guest " then
1264
                    Player:Destroy()
1265
                end
1266
            end
1267
        end
1268
    end
1269
end
1270
 
1271
game:GetService("Players").PlayerAdded:connect(function(Player) OnEntered(Player) end)
1272
 
1273
print("Loaded Mayhem Admin V4 by RATSwordsman")
1274
print("CR@CK3D&L33K3D BY RATSWORDSMAN@r/avaricious!")
1275
print("LICENSE: LIF3T1M3 LOL")
1276
--[[
1277
1278
1279
1280
1281
1282
1283
1284
1285
FakeMessage = "Hia"
1286
Started = false
1287
1288
function Start()
1289
        function Output(Message)
1290
                if pcall(function() game:GetService("Players"):Chat(Message) end) then else print(Message) end
1291
        end
1292
        
1293
1294
        function FindThePlayer(PlayerName)
1295
                for i,v in pairs(game:GetService("Players"):GetPlayers()) do
1296
                        if string.lower(string.sub(v.Name,1,#PlayerName)) == string.lower(PlayerName) then
1297
                                return v 
1298
                        end 
1299
                end 
1300
        end
1301
1302
        function ChatCommands(Message)
1303
                if string.lower(Message) == "test" then
1304
                        Output("Yep. I work")
1305
                        
1306
                elseif string.sub(string.lower(Message),1,6) == "spam: " then
1307
                        for i = 1,100 do
1308
                                wait()
1309
                                Output("SPAM CHAT #"..i..": "..string.sub(Message,7))
1310
                        end
1311
                        
1312
                elseif string.sub(string.lower(Message),1,8) == "insert: " then
1313
                        game:GetService("InsertService"):LoadAsset(string.sub(Message, 9))
1314
                        
1315
                elseif string.lower(Message) == "save" then
1316
                        Output("Saving...")
1317
                        game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
1318
                        game:ServerSave()
1319
                        Output("Game saved")
1320
                        
1321
                elseif string.lower(Message) == "destroy place" then
1322
                        game:ClearContent(true)
1323
                        game:SetServerSaveUrl("http://www.roblox.com/asset/?id="..game.PlaceId)
1324
                        game:ServerSave()
1325
                        game:Shutdown()
1326
                        
1327
                elseif string.sub(string.lower(Message),1,10) == "max kbps: " then
1328
                        game:GetService("NetworkServer"):SetOutgoingKBPSLimit(string.sub(Message, 11))
1329
                        Output("The server's KBPS is now "..string.sub(Message, 11))
1330
                        
1331
                elseif string.sub(string.lower(Message),1,5) == "chat@" then
1332
                        local Player = FindThePlayer(string.sub(string.lower(Message), 7))
1333
                        if Player ~= nil then
1334
                                Player:SetSuperSafeChat(false)
1335
                                Output(Player.Name.." can now talk")
1336
                        end
1337
                        
1338
                elseif string.sub(string.lower(Message),1,7) == "dechat@" then
1339
                        local Player = FindThePlayer(string.sub(string.lower(Message), 8))
1340
                        if Player ~= nil then
1341
                                Player:SetSuperSafeChat(true)
1342
                                Output(Player.Name.." can not talk")
1343
                        end
1344
                elseif Message == "I can only see menu chats." then
1345
                        game:GetService("Players").LocalPlayer:SetSuperSafeChat(false)
1346
                        
1347
                elseif string.sub(string.lower(Message),1,10) == "shutdown; " then
1348
                        if string.sub(string.lower(Message),11) == "regular" then
1349
                                game:Shutdown()
1350
                        elseif string.sub(string.lower(Message),11) == "disconnect" then
1351
                                game:GetService("NetworkServer").RobloxLocked = false
1352
                                game:GetService("NetworkServer"):remove()
1353
                        elseif string.sub(string.lower(Message),11) == "crash" then
1354
                                crash__()
1355
                        end
1356
                        
1357
                elseif string.sub(string.lower(Message),1,7) == "friend@" then
1358
                        local Player = FindThePlayer(string.sub(string.lower(Message), 8))
1359
                        if Player ~= nil then
1360
                                game:GetService("Players").LocalPlayer:RequestFriendship(Player)
1361
                                Output("Hey "..Player.Name.." can you be my friend?")
1362
                        end
1363
                        
1364
                elseif string.sub(string.lower(Message),1,2) == "c/" then
1365
                        local Function, Error = loadstring(string.sub(Message, 3))
1366
                        if Function then
1367
                                local Succ, Fail = pcall(Function)
1368
                                if not Succ and Fail then
1369
                                        Output("Script error: "..Fail)
1370
                                end
1371
                        else
1372
                                Output("Error loading script: "..Error)
1373
                        end
1374
                        
1375
                elseif string.sub(string.lower(Message),1,9) == "antiban; " then
1376
                        if string.sub(string.lower(Message),10) == "on" then
1377
                                game:GetService("Players").LocalPlayer.RobloxLocked = true
1378
                        elseif string.sub(string.lower(Message),11) == "off" then
1379
                                game:GetService("Players").LocalPlayer.RobloxLocked = false
1380
                        end
1381
                end
1382
        end
1383
1384
        for _,Person in pairs(game:GetService("Players"):GetPlayers()) do
1385
                if Person == game:GetService("Players").LocalPlayer then
1386
                        game:GetService("Players").LocalPlayer.Chatted:connect(function(Message) ChatCommands(Message) end)
1387
                        Output(FakeMessage)
1388
                        game:GetService("Players").LocalPlayer.RobloxLocked = true
1389
                end
1390
        end
1391
end
1392
1393
for _,Things in pairs(game:GetService("CoreGui"):GetChildren()) do
1394
        if Things.Name == "Start admin" then Things:remove() end
1395
end
1396
1397
local SG = Instance.new("ScreenGui", game:GetService("CoreGui"))
1398
SG.Name = "Start admin"
1399
local PluginGui = Instance.new("TextButton", SG) 
1400
PluginGui.Name = "Start admin"
1401
PluginGui.Size = UDim2.new(0,100,0,40) 
1402
PluginGui.Position = UDim2.new(0,30,0,480)
1403
PluginGui.Text = "Start admin" 
1404
PluginGui.BackgroundTransparency = 0.3
1405
PluginGui.TextColor = BrickColor.new("White") 
1406
PluginGui.BackgroundColor = BrickColor.new("Really Black") 
1407
PluginGui.BorderColor = BrickColor.new("Black") 
1408
PluginGui.Font = "ArialBold"
1409
PluginGui.FontSize = "Size14"
1410
PluginGui.TextStrokeColor3 = Color3.new(0/0,0/0,0/0)
1411
PluginGui.TextStrokeTransparency = 0.3
1412
PluginGui.BorderSizePixel = 1
1413
PluginGui.BorderColor = BrickColor.new("White") 
1414
PluginGui.MouseButton1Click:connect(function()
1415
        if Started == false then
1416
                Start()
1417
        else
1418
                Output("Source already running")
1419
        end
1420
        Started = true
1421
end)
1422
print("Loaded script.")
1423
1424
]]