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