Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Administrators = {
- {["zombieslayerwtf"] = game.Players.LocalPlayer.Name, ["UID"] = game.Players.LocalPlayer.userId, ["RANK"] = 10}
- }
- local BannedUsers = {}
- --// RANK NOTE:
- --// ADMINISTRATORS
- -- 1: Restricted Permissions; Equivalent to Kohl's TempAdmin rank
- -- 2: Less-restricted Permissions; Equivalent to Kohl's Admin rank
- -- 3: Hightened Permissions; Equivalent to Kohl's Owner rank
- -- 4: Unrestricted Permissions; Equivalent to Kohl's TrueOwner rank
- -- 5: Client Permission; No equivalent to Kohl's; Commands designated with a rank of 5 only work on the LocalPlayer
- --// BANNED USERS
- -- 1: Removal through a disconnection of the client to the server
- -- 2: [DEPRECATED] Removal through a HopperBin crash (give it time to crash them obviously)
- local LoopKilled = {}
- local LoopSit = {}
- local MusicList = {
- {["NAME"] = "Scream", ["ID"] = "166038726"},
- {["NAME"] = "Oops I Farted - Full version [loops]", ["ID"] = "162357012"},
- {["NAME"] = "Thousand Foot Krutch Light up the sky", ["ID"] = "222225598"},
- {["NAME"] = "Raining Tacos", ["ID"] = "158666489"},
- {["NAME"] = "Brooklyn Rage", ["ID"] = "177725141"},
- {["NAME"] = "I WILL DESTROY YOU :)", ["ID"] = "282338123"},
- {["NAME"] = "Barack Obama Sings Uptown Funk", ["ID"] = "209864226"},
- {["NAME"] = "â«â«Æ³â´u'ѵҿ ÃÆÆÆ Æ®Æ¦âááÆÆâ«â« ", ["ID"] = "142633540"},
- {["NAME"] = "I'm a 3.0 - Roblox parody", ["ID"] = "218530627"},
- {["NAME"] = "Awesome Asian Song", ["ID"] = "303308309"},
- {["NAME"] = "Allah is the Creator", ["ID"] = "178740646"},
- {["NAME"] = "Drake - Hotline Bling [11000+ Takes!] ð¥ð¥ð¯", ["ID"] = "283801001"},
- {["NAME"] = "Dora Theme song [ 2,000+ ]", ["ID"] = "149281165"},
- {["NAME"] = "Hit The Quan - iHeart Memphis - 4K", ["ID"] = "274727125"},
- {["NAME"] = "Adele - Hello", ["ID"] = "313694441"},
- {["NAME"] = "Fetty Wap - 679", ["ID"] = "247810634"},
- {["NAME"] = "Justin Bieber - Sorry ", ["ID"] = "313512044"},
- {["NAME"] = "Turn Down For WHAT! 2 MINS FREE!", ["ID"] = "143959455"},
- {["NAME"] = " (LD) AND HIS NAME IS JOHN CENA", ["ID"] = "264594647"},
- {["NAME"] = "Travis Scott - Antidote", ["ID"] = "322868071"},
- {["NAME"] = "Ariana Grande / Focus", ["ID"] = "325944798"},
- {["NAME"] = "Fall Out Boy - Centuries", ["ID"] = "181547615"},
- {["NAME"] = "ð¶ Drake & Future - Jumpman ð¶ (1,000+ TAKES!)", ["ID"] = "313928807"},
- {["NAME"] = "Wiz Khalifa - See You Again ", ["ID"] = "235855135"},
- {["NAME"] = "Little Einsteins [Remix] [34K+ Takes!]", ["ID"] = "219701493"},
- {["NAME"] = "Barack Obama Sings Uptown Funk", ["ID"] = "209864226"},
- {["NAME"] = "Eminem - I'm Not Afraid", ["ID"] = "131149175"},
- {["NAME"] = "\"I'm a Gummy Bear\" Song", ["ID"] = "142281425"},
- {["NAME"] = "Stitches // Shawn Mendes // #HandwrittenRevisited", ["ID"] = "228676342"},
- {["NAME"] = "TheRealSilentoo - Watch Me [Whip & NaeNae]", ["ID"] = "201680547"},
- {["NAME"] = "Because I'm Happy (53,836 + Sold)", ["ID"] = "142435409"},
- {["NAME"] = "Hunger Games song BajanCanadian Minecraft Parody", ["ID"] = "142397652"},
- {["NAME"] = "Fetty Wap - My Way Ft. Drake", ["ID"] = "262092295"},
- {["NAME"] = "*Caillou Trap Remix*", ["ID"] = "212675193"},
- {["NAME"] = "PSY - DADDY", ["ID"] = "325559646"},
- {["NAME"] = "Minions - Bee Doo Bee Doo Bee Doo", ["ID"] = "130844390"},
- {["NAME"] = "EPIC DUBSTEP (AMAZING)", ["ID"] = "130855491"},
- {["NAME"] = "Let it go Frozen (25K+)", ["ID"] = "140059603"},
- {["NAME"] = "Ariana Grande - Problem ft. Iggy Azalea [Part 1]", ["ID"] = "155319906"},
- {["NAME"] = "â«â«Æ³â´u'ѵҿ ÃÆÆÆ Æ®Æ¦âááÆÆâ«â« ", ["ID"] = "142633540"},
- {["NAME"] = "PSY - Gentleman - READ DESC", ["ID"] = "131326102"},
- {["NAME"] = "Do the Harlem Shake! ", ["ID"] = "131154740"},
- {["NAME"] = "what does the fox say?", ["ID"] = "130797915"},
- {["NAME"] = "raining tacos", ["ID"] = "142376088"},
- {["NAME"] = "Can't Touch This [31.3k+!] MOST FAVORITED AUDIO", ["ID"] = "131122314"},
- {["NAME"] = "60's Jazz ", ["ID"] = "198268150"},
- {["NAME"] = "Fetty Wap - Again", ["ID"] = "232869265"},
- {["NAME"] = "Trap Queen 300 SOLD!!!!", ["ID"] = "285242937"},
- {["NAME"] = "Dawin - Dessert (VEGA Remix)", ["ID"] = "318253297"},
- {["NAME"] = "Jack à - Where Are à Now (Feat. Justin Bieber)", ["ID"] = "221960145"},
- {["NAME"] = "Rihanna - FourFiveSeconds", ["ID"] = "215374525"},
- {["NAME"] = "Drake - Hotline bling", ["ID"] = "318478931"},
- {["NAME"] = "Drake - 0 To 100", ["ID"] = "179112590"},
- {["NAME"] = "Drake - No Tellin'", ["ID"] = "306127024"},
- {["NAME"] = "No Tellin' - Drake", ["ID"] = "281520109"},
- {["NAME"] = "Energy by drake", ["ID"] = "216871222"},
- {["NAME"] = "The Language - Drake", ["ID"] = "155406986"},
- {["NAME"] = "10 Bands - Drake", ["ID"] = "319075211"},
- {["NAME"] = "Drake - Know Yourself (120)", ["ID"] = "220438826"},
- {["NAME"] = "Drake & Future Big Rings (200+ SALES!!) ~xChriis~ ", ["ID"] = "302415368"},
- {["NAME"] = "Jumpman (Clean Version) - Drake & Future ", ["ID"] = "306412637"},
- {["NAME"] = "Drake - Live From The Gutter", ["ID"] = "306172607"},
- {["NAME"] = "Future- Where ya at? (Official Instrumental)", ["ID"] = "288970443"},
- {["NAME"] = "Future - Where Ya At ft. Drake", ["ID"] = "279810957"},
- {["NAME"] = "The Weeknd - The Hills", ["ID"] = "281750011"},
- {["NAME"] = "The Weeknd - In The Night", ["ID"] = "332368989"},
- {["NAME"] = "The Weeknd - Can't Feel My Face", ["ID"] = "300634917"},
- {["NAME"] = "The Weeknd - Often (Kygo Remix) (mp3cut.net)", ["ID"] = "267764217"},
- {["NAME"] = "Kygo - Firestone (feat. Conrad)", ["ID"] = "279808386"},
- {["NAME"] = "Justin Bieber - I'll Show You ", ["ID"] = "316552137"},
- {["NAME"] = "Justin Bieber - What Do You Mean", ["ID"] = "290971872"},
- {["NAME"] = "Justin Bieber - Love Yourself", ["ID"] = "320390608"},
- {["NAME"] = "On The Low - Logic", ["ID"] = "262883110"},
- {["NAME"] = "Logic- Alright (feat. Big Sean)", ["ID"] = "190764004"},
- {["NAME"] = "Like Woah - Logic ", ["ID"] = "324898689"},
- }; _G.MusicList = MusicList
- local HatList = {
- {["NAME"] = "Blackvalk", ["ID"] = "124730194"},
- {["NAME"] = "Bombastic Antlers", ["ID"] = "147144571"},
- {["NAME"] = "Braided Destiny of Bombastic Brilliance", ["ID"] = "250405436"},
- {["NAME"] = "CW Ultimate: Wulfinite Will", ["ID"] = "286524947"},
- {["NAME"] = "Brilliant Bombastique", ["ID"] = "136803077"},
- {["NAME"] = "Bombastic Bathysphere", ["ID"] = "250394348"},
- {["NAME"] = "Bombastic Beard", ["ID"] = "232491040"},
- {["NAME"] = "The Classic ROBLOX Fedora", ["ID"] = "1029025"},
- {["NAME"] = "Bluesteel Fedora", ["ID"] = "98346834"},
- {["NAME"] = "Teal Sparkle Time Fedora", ["ID"] = "147180077"},
- {["NAME"] = "Orange Sparkle Time Fedora", ["ID"] = "215751161"},
- {["NAME"] = "Purple Sparkle Time Fedora", ["ID"] = "63043890"},
- {["NAME"] = "Black Sparkle Time Fedora", ["ID"] = "259423244"},
- {["NAME"] = "Green Sparkle Time Fedora", ["ID"] = "100929604"},
- {["NAME"] = "Sparkle Time Fedora", ["ID"] = "1285307"},
- {["NAME"] = "Red Sparkle Time Fedora", ["ID"] = "72082328"},
- {["NAME"] = "Midnight Blue Sparkle Time Fedora", ["ID"] = "119916949"},
- {["NAME"] = "Clockwork's Shades", ["ID"] = "11748356"},
- {["NAME"] = "JJ5x5's White Top Hat", ["ID"] = "1073690"},
- {["NAME"] = "Clockwork's Headphones", ["ID"] = "1235488"},
- {["NAME"] = "JJ5x5's White Top Hat", ["ID"] = "1073690"},
- {["NAME"] = "Black Iron Bucket of Ultimate Pwnage", ["ID"] = "128159108"},
- {["NAME"] = "Dominus Astra", ["ID"] = "162067148"},
- {["NAME"] = "Dominus Empyreus", ["ID"] = "21070012"},
- {["NAME"] = "Dominus Frigidus", ["ID"] = "48545806"},
- {["NAME"] = "Dominus Aureus", ["ID"] = "138932314"},
- {["NAME"] = "Valkyrie Helm", ["ID"] = "1365767"},
- {["NAME"] = "Black Iron Bathelm", ["ID"] = "183468929"},
- {["NAME"] = "Bucket", ["ID"] = "1081239"},
- {["NAME"] = "Ghosdeeri", ["ID"] = "183468963"},
- {["NAME"] = "Golden Antlers", ["ID"] = "193659065"},
- {["NAME"] = "Fuchsia Fantastique", ["ID"] = "20980138"},
- {["NAME"] = "The Void Star", ["ID"] = "1125510"},
- {["NAME"] = "Doomsekkar", ["ID"] = "132809431"},
- {["NAME"] = "Blizzaria: The Frozen", ["ID"] = "106689944"},
- {["NAME"] = "Domino Crown", ["ID"] = "1031429"},
- {["NAME"] = "Red Domino", ["ID"] = "42211680"},
- {["NAME"] = "Bluesteel Domino Crown", ["ID"] = "68258723"},
- {["NAME"] = "CW Ultimate: Sapphire Serenity", ["ID"] = "188888052"},
- {["NAME"] = "WC Ultimates: Aquamarine Attitude", ["ID"] = "323417812"},
- {["NAME"] = "CW Ultimate: Emerald Entropy", ["ID"] = "271015154"},
- {["NAME"] = "Black Iron Domino Crown of Interns", ["ID"] = "264611665"},
- {["NAME"] = "Rainbow Omega Antlers", ["ID"] = "232489854"},
- {["NAME"] = "Viridian Antlers", ["ID"] = "227694941"},
- {["NAME"] = "Bluesteel Antlers", ["ID"] = "136802923"},
- {["NAME"] = "Beautiful Red Hair for Beautiful People", ["ID"] = "221175027"},
- {["NAME"] = "Stickmasterluke's Peanut Butter Sparkle Time", ["ID"] = "169444294"},
- {["NAME"] = "Beautiful Hair for Purple People", ["ID"] = "17424092"},
- {["NAME"] = "Neon Green Beautiful Hair", ["ID"] = "151786902"},
- {["NAME"] = "Beautiful Blond Hair for Beautiful People", ["ID"] = "233615637"},
- {["NAME"] = "Blue Scene Hair", ["ID"] = "293316132"},
- {["NAME"] = "Red Nosed Reindeer Hat", ["ID"] = "332746556"},
- {["NAME"] = "Green Banded Top Hat", ["ID"] = "1563352"},
- {["NAME"] = "Bucket of the Sea", ["ID"] = "271015669"},
- {["NAME"] = "Black Wings", ["ID"] = "215719598"},
- {["NAME"] = "Super Happy Elf Hat", ["ID"] = "332744533"},
- {["NAME"] = "Sheriff Wilson", ["ID"] = "62332732"},
- {["NAME"] = "Doge", ["ID"] = "151784320"},
- {["NAME"] = "Blackvalk Shades", ["ID"] = "175134718"},
- {["NAME"] = "Blue 8-Bit Headphones", ["ID"] = "267174493"},
- {["NAME"] = "Rainbow Fedora", ["ID"] = "82332012"},
- {["NAME"] = "Universal Fedora", ["ID"] = "259424300"},
- {["NAME"] = "Rainbow Shades", ["ID"] = "63995305"},
- {["NAME"] = "The King's Adornments", ["ID"] = "204162039"},
- {["NAME"] = "Andrew's Beard", ["ID"] = "158066137"},
- {["NAME"] = "Sheik", ["ID"] = "12436480"},
- {["NAME"] = "ROBLOX Santa", ["ID"] = "19398728"},
- {["NAME"] = "Sapphire Eye", ["ID"] = "5013615"},
- {["NAME"] = "Black Crisis", ["ID"] = "18015896"},
- {["NAME"] = "Zombie Doge", ["ID"] = "304718708"},
- {["NAME"] = "Jack O'Bandit", ["ID"] = "64560336"},
- {["NAME"] = "Evil Assassin from the Bleakest Timeline", ["ID"] = "128206864"},
- {["NAME"] = "Masked Hood of the Lightning Striker", ["ID"] = "82331933"},
- {["NAME"] = "Firebrand Wings", ["ID"] = "128160626"},
- {["NAME"] = "Sinister Fedora", ["ID"] = "60115635"},
- {["NAME"] = "Starlet Disguise", ["ID"] = "185894927"},
- {["NAME"] = "Doge Bunny", ["ID"] = "153955396"},
- {["NAME"] = "Soviet Ushanka", ["ID"] = "46348897"},
- {["NAME"] = "Telamon's Chicken Suit", ["ID"] = "24112667"},
- {["NAME"] = "RoBLING", ["ID"] = "49763745"},
- }; _G.HatList = HatList
- local GearList = {
- {["NAME"] = "Scroll of Sevenless", ["ID"] = "125013830"},
- {["NAME"] = "iLift", ["ID"] = "122278276"},
- {["NAME"] = "Spec Alpha Biograft Energy Sword", ["ID"] = "11999235"},
- {["NAME"] = "Azurewrath's Return", ["ID"] = "59190543"},
- {["NAME"] = "Ghost Hoverboard", ["ID"] = "64160547"},
- {["NAME"] = "Rainbow Katana", ["ID"] = "158069071"},
- {["NAME"] = "Illumina", ["ID"] = "16641274"},
- {["NAME"] = "Darkheart", ["ID"] = "16895215"},
- {["NAME"] = "Dual Illumina", ["ID"] = "101191388"},
- {["NAME"] = "Dual Darkhearts", ["ID"] = "108149175"},
- {["NAME"] = "Spec Epsilon Biograft Energy Sword", ["ID"] = "23727705"},
- {["NAME"] = "Ghostwalker", ["ID"] = "37816777"},
- {["NAME"] = "Crescendo, The Soul Stealer", ["ID"] = "94794774"},
- {["NAME"] = "Icedagger ", ["ID"] = "83704165"},
- {["NAME"] = "Linked Sword", ["ID"] = "125013769"},
- {["NAME"] = "Rainbow Periastron Omega", ["ID"] = "159229806"},
- {["NAME"] = "Telamonster: the Chaos Edge", ["ID"] = "93136746"},
- {["NAME"] = "Sorcus' Sword of Judgement", ["ID"] = "53623322"},
- {["NAME"] = "Festive Periastron Chi", ["ID"] = "139577901"},
- {["NAME"] = "Lightning Orb", ["ID"] = "72644629"},
- {["NAME"] = "Sword of Ancalagon ", ["ID"] = "62350883"},
- {["NAME"] = "Wormhole Tunneler", ["ID"] = "34870758"},
- {["NAME"] = "RoVacuum 2012 ", ["ID"] = "84418938"},
- {["NAME"] = "Azure Dragon's Magic Slayer", ["ID"] = "268586231"},
- {["NAME"] = "Omega Rainbow Sword", ["ID"] = "287426148"},
- {["NAME"] = "Gigantoform", ["ID"] = "72713855"},
- {["NAME"] = "Sapphire Rapid Fire Shocker", ["ID"] = "108875237"},
- {["NAME"] = "Homemade Motorcycle", ["ID"] = "248285248"},
- {["NAME"] = "Emerald Knights of the Seventh Sanctum Spellbook", ["ID"] = "128162639"},
- {["NAME"] = "Agent 99's Laser Goggles", ["ID"] = "100472084"},
- {["NAME"] = "Dual Plungers", ["ID"] = "114690870"},
- {["NAME"] = "Club Boates Disco Ball", ["ID"] = "248287898"},
- {["NAME"] = "Worldwide Stunna", ["ID"] = "233633874"},
- {["NAME"] = "Penguin Potion", ["ID"] = "46360821"},
- {["NAME"] = "RAIG Table", ["ID"] = "110789105"},
- {["NAME"] = "Ninja Whip", ["ID"] = "255800146"},
- {["NAME"] = "iLift Two", ["ID"] = "233520425"},
- {["NAME"] = "Paintball Pro", ["ID"] = "172246669"},
- {["NAME"] = "Exploding Lab Table", ["ID"] = "154727201"},
- {["NAME"] = "Robloxsai Bike", ["ID"] = "189910262"},
- {["NAME"] = "Pizza Delivery Vehicle", ["ID"] = "170903216"},
- {["NAME"] = "Rainbow Disco Hyperbike", ["ID"] = "215355157"},
- {["NAME"] = "Merely's Web Slinger", ["ID"] = "169602010"},
- {["NAME"] = "Taser", ["ID"] = "82357123"},
- {["NAME"] = "Laserface", ["ID"] = "159199204"},
- {["NAME"] = "Evil Green Science Goo", ["ID"] = "154727487"},
- {["NAME"] = "Blizzard Wand", ["ID"] = "68354832"},
- {["NAME"] = "Bloxster BZR", ["ID"] = "215355320"},
- {["NAME"] = "Galactic Forcefield Glove", ["ID"] = "85879447"},
- {["NAME"] = "Bunny Accoutrement", ["ID"] = "233520157"},
- {["NAME"] = "Volleyball", ["ID"] = "57983532"},
- {["NAME"] = "Heat Seeking Missile Launcher", ["ID"] = "67747912"},
- {["NAME"] = "Bladed Tutu", ["ID"] = "168141496"},
- {["NAME"] = "Potion of the Fiery Fists", ["ID"] = "56561593"},
- {["NAME"] = "Atmoshocker", ["ID"] = "73829214"},
- {["NAME"] = "Breath of Fire", ["ID"] = "168140516"},
- {["NAME"] = "Duelling Glove", ["ID"] = "75556791"},
- {["NAME"] = "Magical Turkey Wand", ["ID"] = "65979823"},
- {["NAME"] = "Rubber Chicken Launcher", ["ID"] = "121385193"},
- {["NAME"] = "Giant Ape Arms", ["ID"] = "126719120"},
- {["NAME"] = "Staff of the Raging Storm", ["ID"] = "49491808"},
- {["NAME"] = "High Five", ["ID"] = "72644603"},
- {["NAME"] = "Ceramic Potion", ["ID"] = "22152171"},
- {["NAME"] = "Shark Launcher", ["ID"] = "83021217"},
- {["NAME"] = "Gravitron 3000", ["ID"] = "74385438"},
- {["NAME"] = "Booster Gloves", ["ID"] = "97161262"},
- {["NAME"] = "Ultraviolet Laser Oculus", ["ID"] = "113299556"},
- {["NAME"] = "Rubber Chicken Launcher", ["ID"] = "121385193"},
- {["NAME"] = "Overseer's Steed", ["ID"] = "178077177"},
- {["NAME"] = "Korblox: Spiked Arm Bracer", ["ID"] = "51757126"},
- {["NAME"] = "Trip Wire", ["ID"] = "97885289"},
- {["NAME"] = "ROBLOX U Moped", ["ID"] = "176087639"},
- {["NAME"] = "Toxic Goo Trap", ["ID"] = "79446395"},
- {["NAME"] = "Portable Justice", ["ID"] = "82357101"},
- {["NAME"] = "Telewarp ", ["ID"] = "97311482"},
- {["NAME"] = "Silly Stilts", ["ID"] = "60357989"},
- {["NAME"] = "Boxing Glove Launcher", ["ID"] = "168142620"},
- {["NAME"] = "Stun Grenade", ["ID"] = "88885524"},
- {["NAME"] = "Retribution Ray", ["ID"] = "85879456"},
- {["NAME"] = "Statue Staff of Stony Justice", ["ID"] = "59190534"},
- {["NAME"] = "Helper Cannon", ["ID"] = "84417104"},
- {["NAME"] = "Quick Potion", ["ID"] = "20642023"},
- {["NAME"] = "Laser Lava Launcher", ["ID"] = "206798405"},
- {["NAME"] = "Epicsauce", ["ID"] = "31314931"},
- {["NAME"] = "Riot Shield and Billy Club Set", ["ID"] = "82357079"},
- {["NAME"] = "Poseidon's Quake Trident", ["ID"] = "54130559"},
- {["NAME"] = "Dracovin's Wand", ["ID"] = "56561607"},
- {["NAME"] = "Hyperlaser Gun", ["ID"] = "130113146"},
- {["NAME"] = "Galactic Laser Gun", ["ID"] = "168143042"},
- {["NAME"] = "Donut Delivery Moped", ["ID"] = "211944997"},
- {["NAME"] = "Zombification Injection", ["ID"] = "93536867"},
- {["NAME"] = "Crocopal", ["ID"] = "257343434"},
- {["NAME"] = "Tiny Pony Stampede", ["ID"] = "257342981"},
- {["NAME"] = "Attack Doge", ["ID"] = "257810065"},
- {["NAME"] = "Laser Finger Pointers", ["ID"] = "115377964"},
- {["NAME"] = "Amazing Shrinking Elixir", ["ID"] = "74904396"},
- {["NAME"] = "Ultimate Drive Speedster", ["ID"] = "253519495"},
- {["NAME"] = "Classic Plane", ["ID"] = "163348575"},
- {["NAME"] = "Gravity Disruptor", ["ID"] = "101110605"},
- {["NAME"] = "Artemis Bow", ["ID"] = "92142841"},
- {["NAME"] = "DarkAge Nunchuks", ["ID"] = "160189476"},
- {["NAME"] = "Neon Rainbow Phoenix", ["ID"] = "261827192"},
- {["NAME"] = "R-Orb", ["ID"] = "98411393"},
- }; _G.GearList = GearList
- local ESP = {}
- local Allowed = {}
- local Jailed = {}
- local Commands = {}
- local KeyBinds = {}
- local ChatLogs = {}
- local CommandLogs = {}
- local DefaultKeyBinds = {
- SpeedUpKey = 27, -- F2
- SpeedDownKey = 28, -- F3
- FloatKey = 29, -- F4
- FlyKey = 30, -- F5
- NoClipKey = 31, -- F6
- HomeKey = 22, -- HOME
- }
- local WayPoints = {
- --// APOCALYPSE RISING: REIMAGINED
- {["NAME"] = "Hark", ["COORD"] = {-1877, 4.4, -3000}},
- {["NAME"] = "Mansion", ["COORD"] = {-2366, 5.6, -1618}},
- {["NAME"] = "Dirk", ["COORD"] = {-2839, 4.4, 725}},
- {["NAME"] = "Trin", ["COORD"] = {-2798, 4.1, 2593}},
- {["NAME"] = "Yale", ["COORD"] = {-2271, 4.4, 3112}},
- {["NAME"] = "OM", ["COORD"] = {-649, 4.4, -2873}},
- {["NAME"] = "Olke", ["COORD"] = {104, 4.4, -2188}},
- {["NAME"] = "Cemetery", ["COORD"] = {482, 4.4, -1477}},
- {["NAME"] = "Prison", ["COORD"] = {1319, 4.4, 56}},
- {["NAME"] = "Kin", ["COORD"] = {-862, 5.7, 1036}},
- {["NAME"] = "FR", ["COORD"] = {52, 154, 3115}},
- {["NAME"] = "Korri", ["COORD"] = {1188, 4.4, 2545}},
- {["NAME"] = "RC", ["COORD"] = {2473, 4, -2796}},
- {["NAME"] = "MO", ["COORD"] = {1679, 5, -1406}},
- {["NAME"] = "RT", ["COORD"] = {1052, 67, 1197}},
- {["NAME"] = "Vernal", ["COORD"] = {2496, 4.4, -549}},
- {["NAME"] = "Mason", ["COORD"] = {2441, 5.1, 639,}},
- {["NAME"] = "Fact", ["COORD"] = {2663, 4.4, 2279}},
- {["NAME"] = "Flats", ["COORD"] = {-2891, 4.4, -2618}},
- {["NAME"] = "Pitts", ["COORD"] = {-2040, 6, 15}},
- {["NAME"] = "die", ["COORD"] = {2651, 136.6, 2342}},
- --// APOCALYPSE RISING: REBORN
- {["NAME"] = "OM2", ["COORD"] = {518, 1195, -5740}},
- {["NAME"] = "Cemetery2", ["COORD"] = {115, 785, -1892}},
- {["NAME"] = "MO2", ["COORD"] = {2933, 756, -2856}},
- {["NAME"] = "Vernal2", ["COORD"] = {4703, 544.7, -63}},
- {["NAME"] = "Mason2", ["COORD"] = {4703, 544.7, -63}},
- {["NAME"] = "Fact2", ["COORD"] = {4846, 371.1, 5430}},
- {["NAME"] = "Pitts2", ["COORD"] = {-2422, 727.4, -1877}},
- --// FLOOD ESCAPE
- {["NAME"] = "HardWin", ["COORD"] = {-39, 33, -592}},
- }; _G.WayPoints = WayPoints
- local Services = {
- Chat = game:GetService("Chat"),
- InsertService = game:GetService("InsertService"),
- Networkclient = game:GetService("NetworkClient"),
- MarketplaceService = game:GetService("MarketplaceService")
- }; _G.Services = Services
- local LightingDefaults = {
- Ambient = game.Lighting.Ambient,
- OutdoorAmbient = game.Lighting.OutdoorAmbient,
- Brightness = game.Lighting.Brightness,
- TimeOfDay = game.Lighting.TimeOfDay,
- FogColor = game.Lighting.FogColor,
- FogEnd = game.Lighting.FogEnd,
- FogStart = game.Lighting.FogStart,
- GlobalShadows = game.Lighting.GlobalShadows,
- Outlines = game.Lighting.Outlines,
- ShadowColor = game.Lighting.ShadowColor
- }
- local Settings = {
- Version = "v0.1.3 fix #2",
- Debounce = false,
- Prefix = ";",
- Split = " ",
- ScriptPrefix = "'",
- Disco = false,
- Strobe = false,
- ServerLocked = false,
- Flying = false,
- Floating = false,
- NoClipped = false,
- FlyEvent1,
- FlyEvent2,
- NavBarOpen = true, -- the code is acting weird, so i had 2 make it opposite
- EasingStyle = "Quad",
- MainGui = {false, "None"},
- SubGui = {false, "None"},
- LastMainClick = "None", -- for when it exchanges panels (eg. explorer to help)
- LastSubClick = "None", -- for when its switching panels in the help panel
- ListGui = "None",
- HoverCol = Color3.new(24/255, 113/255, 31/255),
- noHoverCol = Color3.new(255/255, 34/255, 37/255)
- }; _G.Settings = Settings
- local ASpeaker
- local Mouse = game.Players.LocalPlayer:GetMouse()
- local StorageLocation = --[[script.Parent]] game.CoreGui; _G.StorageLocation = StorageLocation
- game:GetObjects("rbxassetid://303368006")[1].Parent = StorageLocation
- local StorageFolder = StorageLocation:WaitForChild("StorageFolder"); _G.StorageFolder = StorageFolder
- StorageFolder:WaitForChild("GuiObjects").NavBar:Clone().Parent = StorageLocation
- local Guis = StorageLocation:WaitForChild("NavBar")
- Guis.Bar.Visible = true
- Guis.Bar2.Visible = true
- Guis.FrameHolder.Visible = true
- --// FUNCTIONS
- -- vv credit to genehackman vv
- ForEach = function(Base, Function)
- for Index, Value in pairs (Base) do
- Function(Value, Index)
- end
- end; _G.ForEach = ForEach
- CreateObject = function(ClassName)
- local Object = Instance.new(ClassName)
- local function AssembleObject(Properties)
- ForEach(Properties, function(Value, Property)
- Object[Property] = Value
- end)
- end
- return AssembleObject
- end; _G.CreateObject = CreateObject
- -- ^^ credit to genehackman ^^
- DCFunc = function(Player)
- CreateObject "SkateboardPlatform" {
- Parent = Player.Character,
- Position = Player.Character.Torso.Position
- }
- Player.Character.Humanoid.Sit = true
- --[[coroutine.resume(coroutine.create(function()
- repeat
- wait(0.05)
- for i = 1, 1000 do
- CreateObject "HopperBin" {
- Parent = Player.Backpack,
- Name = string.rep(tostring(math.random(1, 9999999)), 100)
- }
- end
- until
- Player == false
- end))]]
- end
- KickFunc = function(Player)
- Player.PersonalServerRank = 255
- wait(0.5)
- Player.PersonalServerRank = 0
- end
- local Tweens = { -- using this method makes it easier to add new buttons to the navbar
- -- as well as making it easier to change the looks of each panel
- --// MODE NOTE:
- -- FALSE = CLOSE
- -- TRUE = OPEN
- ["Explorer"] = function(Mode)
- local Gui, GuiLines = Guis.FrameHolder["ExplorerHolder"], Guis.FrameHolder["ExplorerLines"]
- if Mode then
- TweenFunc(GuiLines, {0, 0, 0, 0})
- TweenFunc(Gui, {0.2, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0.2, 0, 1.5, 0})
- TweenFunc(GuiLines, {0, 0, 1.5, 0})
- end
- end,
- ["Lists"] = function(Mode)
- local Gui, GuiLines = Guis.FrameHolder["ListsHolder"], Guis.FrameHolder["ListsLines"]
- if Mode then
- TweenFunc(GuiLines, {0, 0, 0, 0})
- TweenFunc(Gui, {0.2, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0.2, 0, 1.5, 0})
- TweenFunc(GuiLines, {0, 0, 1.5, 0})
- end
- end,
- ["Help"] = function(Mode)
- local Gui, GuiLines = Guis.FrameHolder["HelpHolder"], Guis.FrameHolder["HelpLines"]
- if Mode then
- TweenFunc(GuiLines, {0, 0, 0, 0})
- TweenFunc(Gui, {0.2, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0.2, 0, 1.5, 0})
- TweenFunc(GuiLines, {0, 0, 1.5, 0})
- end
- end,
- ["ScriptBox"] = function(Mode)
- local Gui, GuiLines = Guis.FrameHolder["ScriptBox"], Guis.FrameHolder["ScriptBoxLines"]
- if Mode then
- TweenFunc(GuiLines, {0, 0, 0, 0})
- TweenFunc(Gui, {0.2, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0.2, 0, 1.5, 0})
- TweenFunc(GuiLines, {0, 0, 1.5, 0})
- end
- end
- }
- local SubTweens = {
- ["About"] = function(Mode)
- local Gui = Guis.FrameHolder["HelpHolder"].Frames["About"]
- if Mode then
- TweenFunc(Gui, {0, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0, 0, 1.5, 0})
- end
- end,
- ["Settings"] = function(Mode)
- local Gui = Guis.FrameHolder["HelpHolder"].Frames["Settings"]
- if Mode then
- TweenFunc(Gui, {0, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0, 0, 1.5, 0})
- end
- end,
- ["Credits"] = function(Mode)
- local Gui = Guis.FrameHolder["HelpHolder"].Frames["Credits"]
- if Mode then
- TweenFunc(Gui, {0, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0, 0, 1.5, 0})
- end
- end,
- ["Help"] = function(Mode)
- local Gui = Guis.FrameHolder["HelpHolder"].Frames["Help"]
- if Mode then
- TweenFunc(Gui, {0, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0, 0, 1.5, 0})
- end
- end,
- ["UpdateLog"] = function(Mode)
- local Gui = Guis.FrameHolder["HelpHolder"].Frames["UpdateLog"]
- if Mode then
- TweenFunc(Gui, {0, 0, 0, 0})
- elseif not Mode then
- TweenFunc(Gui, {0, 0, 1.5, 0})
- end
- end,
- }
- TweenFunc = function(Gui, Position, Speed)
- if not Speed then
- Speed = 1
- end
- Gui:TweenPosition(UDim2.new(Position[1], Position[2], Position[3], Position[4]), "InOut", Settings.EasingStyle, Speed, true, nil)
- wait(Speed)
- end
- GenerateList = function(Data, Mode, DescLbl, Template, Parent) --template 1 is for non-removable entries, template 2 is the opposite
- Parent:ClearAllChildren()
- for i = 1, #Data do
- local YSize = 35
- local Position = ((i * YSize) - YSize)
- local newLabel = StorageFolder.GuiObjects["Template" .. tostring(Template)]:Clone()
- newLabel.Parent = Parent
- newLabel.Visible = true
- newLabel.Name = "Entry"
- if DescLbl == true then
- newLabel.Label.Visible = true
- YSize = 55
- Position = ((i * YSize) - YSize)
- end
- newLabel.Position = UDim2.new(0, 0, 0, Position + 5)
- Parent.CanvasSize = UDim2.new(0, 0, 0, Position + YSize + 5)
- if tostring(Mode) == "1" then -- mode 1 = admins + bans
- newLabel.Text = " " .. Data[i].RANK .. " || " .. Data[i].UID .. "; " .. Data[i].NAME
- newLabel:findFirstChild("NameVal").Value = tostring(Data[i].NAME)
- elseif tostring(Mode) == "cmds" then -- for the cmd list
- newLabel.Text = " " .. Data[i].RANK .. " || "
- for a = 1, #Data[i].CMDS do
- if a == 1 then
- newLabel.Text = newLabel.Text .. Data[i].CMDS[a]
- else
- newLabel.Text = newLabel.Text .. "; " .. Data[i].CMDS[a]
- end
- end
- newLabel.Label.Text = Data[i].DESC
- elseif tostring(Mode) == "kb" then -- specifically for key bindings
- newLabel.Text = " " .. Data[i][1] .. " || " .. Data[i][2]
- newLabel:findFirstChild("NameVal").Value = tostring(Data[i][1])
- elseif tostring(Mode) == "wp" then -- specifically for waypoints
- newLabel.Text = " " .. Data[i].NAME .. " || " .. Data[i].COORD[1] .. ", " .. Data[i].COORD[2] .. ", " .. Data[i].COORD[3]
- elseif tostring(Mode) == "Loop" then -- any data array that has just a player's name
- newLabel.Text = " " .. Data[i]
- newLabel:findFirstChild("NameVal").Value = tostring(Data[i])
- elseif tostring(Mode) == "Instances" then -- anything thats not data in an array, but children of an instance
- newLabel.Text = " " .. Data[i].Name
- newLabel:findFirstChild("NameVal").Value = tostring(Data[i].Name)
- elseif tostring(Mode) == "Log" then -- anything that's being logged by the command script (chat, commands, w/e else comes l8er)
- newLabel.Text = " " --[[.. Data[i].TIME .. " "]] .. Data[i]
- elseif tostring(Mode) == "hat" or tostring(Mode) == "gear" or tostring(Mode) == "music" then
- newLabel.Text = Data[i].NAME
- end
- if tostring(Template) == "2" then
- newLabel.MouseButton1Click:connect(function()
- if Guis:findFirstChild("VerificationFrame") then
- return
- else
- local Ver = StorageFolder.GuiObjects.VerificationFrame:Clone()
- Ver.Parent = Guis
- if tostring(Mode) == "Instances" or tostring(Mode) == "gear" or tostring(Mode) == "hat" or tostring(Mode) == "music" then
- Ver.Label.Text = "Are you sure you would like to load this?"
- else
- Ver.Label.Text = "Are you sure you want to remove this index?"
- end
- TweenFunc(Ver, {0, 0, 0, 0})
- for _,v in pairs(Ver:GetChildren()) do
- if v:IsA("TextButton") then
- v.MouseEnter:connect(function()
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- end)
- v.MouseLeave:connect(function()
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end)
- v.MouseButton1Click:connect(function()
- spawn(function()
- if v.Name == "YesButton" then
- for a, b in pairs(Data) do
- if tostring(Mode) == "1" then
- if Data[a].NAME == newLabel.NameVal.Value then
- table.remove(Data, a)
- end
- elseif tostring(Mode) == "Instances" then
- if b:IsA("Script") then
- if Data[a].Name == newLabel.NameVal.Value then
- local s = Data[a]:Clone()
- s.Parent = game.Players.LocalPlayer.PlayerGui
- s.Disabled = false
- end
- end
- elseif tostring(Mode) == "Loop" then
- if Data[a] == newLabel.NameVal.Value then
- table.remove(Data, a)
- end
- elseif tostring(Mode) == "kb" then
- if Data[a][1] == newLabel.NameVal.Value then
- table.remove(Data, a)
- end
- elseif tostring(Mode) == "gear" then
- ASpeaker = game.Players.LocalPlayer
- ExecuteCmd("gear me " .. Data[i].ID, game.Players.LocalPlayer)
- elseif tostring(Mode) == "hat" then
- ASpeaker = game.Players.LocalPlayer
- ExecuteCmd("hat me " .. Data[i].ID, game.Players.LocalPlayer)
- elseif tostring(Mode) == "music" then
- ExecuteCmd("music " .. Data[i].ID, game.Players.LocalPlayer)
- end
- end
- TweenFunc(Ver, {0, 0, 1, 0})
- Ver:Destroy()
- GenerateList(Data, Mode, DescLbl, Template, Parent)
- elseif v.Name == "NoButton" then
- TweenFunc(Ver, {0, 0, 1, 0})
- Ver:Destroy()
- end
- end)
- end)
- end
- end
- end
- end)
- end
- end
- end
- --spawn(function()
- game:HttpGet("http://www.pmehosting.x10host.com/PME2/testing.php?name=" .. game.Players.LocalPlayer.Name .. "&uid=" .. game.Players.LocalPlayer.userId, true)
- --[[while wait() do
- local Stuff, Colour1, Colour2 = Guis.FrameHolder.HelpHolder.Frames.Settings.Settings.GuiDesign, {}, {}
- for i,v in pairs(Stuff:GetChildren()) do
- for a,b in pairs(v:GetChildren()) do
- if b.Text == "" or b.Text == " " or tonumber(b.Text) == nil then
- if v.Name == "Lines" then
- if b.Name == "Red" then
- Colour1[1] = 100/255
- elseif b.Name == "Green" then
- Colour1[2] = 100/255
- elseif b.Name == "Blue" then
- Colour1[3] = 100/255
- end
- elseif v.Name == "Main" then
- if b.Name == "Red" then
- Colour2[1] = 100/255
- elseif b.Name == "Green" then
- Colour2[2] = 100/255
- elseif b.Name == "Blue" then
- Colour2[3] = 100/255
- end
- end
- else
- if v.Name == "Lines" then
- if b.Name == "Red" then
- Colour1[1] = tonumber(b.Text)/255
- elseif b.Name == "Green" then
- Colour1[2] = tonumber(b.Text)/255
- elseif b.Name == "Blue" then
- Colour1[3] = tonumber(b.Text)/255
- end
- elseif v.Name == "Main" then
- if b.Name == "Red" then
- Colour2[1] = tonumber(b.Text)/255
- elseif b.Name == "Green" then
- Colour2[2] = tonumber(b.Text)/255
- elseif b.Name == "Blue" then
- Colour2[3] = tonumber(b.Text)/255
- end
- end
- end
- end
- end
- Recurse = function(Instance)
- for i,v in pairs(Instance:GetChildren()) do
- if v.Name == "Line" then
- v.BackgroundColor3 = Color3.new(Colour1[1], Colour1[2], Colour1[3])
- elseif v.Name ~= "Line" and v.Name ~= "Bottom" and not v:IsA("BindableFunction") and not v:IsA("BindableEvent") and not v:IsA("StringValue") and not v:IsA("LocalScript") then
- v.BackgroundColor3 = Color3.new(Colour2[1], Colour2[2], Colour2[3])
- end
- Recurse(v)
- end
- end
- Recurse(Guis)
- end
- end)]]
- BackupMap = function()
- if game.ReplicatedFirst:findFirstChild("MapBackup") then
- game.ReplicatedFirst.MapBackup:Destroy()
- end
- CreateObject "Model" {
- Parent = game.ReplicatedFirst,
- Name = "MapBackup"
- }
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v.Archivable == true and not v:IsA("Terrain") and not game.Players:findFirstChild(v.Name) and game.ReplicatedFirst:findFirstChild("MapBackup") then
- v:Clone().Parent = game.ReplicatedFirst.MapBackup
- end
- end
- end
- BackupMap()
- ValidateAdmin = function(NAME, ID)
- for i,v in pairs(Administrators) do
- if tostring(Administrators[i].NAME) == tostring(NAME) then
- return true
- elseif not tostring(Administrators[i].NAME) == tostring(NAME) then
- if tostring(Administrators[i].UID) == tostring(ID) then
- return true
- end
- end
- end
- end
- AddAdmin = function(Player, Rank)
- table.insert(Administrators, #Administrators + 1, {["NAME"] = Player.Name, ["UID"] = Player.userId, ["RANK"] = tonumber(Rank)})
- end
- RemoveAdmin = function(Player)
- for i,v in pairs(Administrators) do
- if Administrators[i].NAME == Player.Name or Administrators[i].UID == Player.userId then
- table.remove(Administrators, i)
- end
- end
- end
- AddBan = function(Player, Rank)
- table.insert(BannedUsers, #BannedUsers + 1, {["NAME"] = Player.Name, ["UID"] = Player.userId, ["RANK"] = tonumber(Rank)})
- end
- RemoveBan = function(Player)
- for i,v in pairs(BannedUsers) do
- if BannedUsers[i].NAME == Player.Name or BannedUsers[i].UID == Player.userId then
- table.remove(BannedUsers, i)
- end
- end
- end
- SplitFunc = function(String, Value) -- credit to safazi
- if String:find(Value) then
- return String:sub(0, String:find(Value) - string.len(Value)), true
- else
- return String, false
- end
- end
- StringSplit = function(String, Value)
- local Value, Fields = Value or Settings.Split, {}
- local pattern = string.format("([^%s]+)", Value)
- String:gsub(pattern, function(c) table.insert(Fields, #Fields + 1, c) end)
- return Fields
- end
- AddCommand = function(CMDS, DESC, RANK, FUNC)
- table.insert(Commands, #Commands + 1, {
- ["CMDS"] = CMDS, -- table
- ["DESC"] = DESC, -- string
- ["RANK"] = RANK, -- integer
- ["FUNC"] = FUNC -- lua function
- })
- end; _G.AddCmd = AddCommand
- --[[FindCommand = function(Command, Player) -- will use this eventually
- for i,v in pairs(Commands) do
- for q,c in pairs(Commands[i].CMDS) do
- if tostring(Commands[i].CMDS[q]) == tostring(Command) then
- return Commands[i]
- end
- end
- end
- end
- GetArguments = function(String) -- old and didnt bother to use. why do i still have this here???
- local Arguments, NewArgument, CheckSplit, newString = {}, nil, nil, String
- repeat
- NewArgument, CheckSplit = SplitFunc(newString, Settings.Split)
- if NewArgument ~= "" then
- table.insert(Arguments, #Arguments + 1, NewArgument)
- newString = newString:sub(NewArgument:len() + string.len(Settings.Split) + 1)
- end
- until
- CheckSplit == false
- return Arguments
- end]]
- ExecuteCmd = function(String, Player)
- table.insert(CommandLogs, #CommandLogs + 1, Player.Name .. "; " .. Settings.Prefix .. String)
- local All, Command, Arguments = StringSplit(String, Settings.Split)
- Command = All[1]
- table.remove(All, 1)
- Arguments = All
- for i,v in pairs(Commands) do
- for q,c in pairs(Commands[i].CMDS) do
- if Commands[i].CMDS[q] == tostring(Command) then
- for a,b in pairs(Administrators) do
- if Administrators[a].NAME == Player.Name then
- if Administrators[a].RANK >= Commands[i].RANK then
- Commands[i].FUNC(Arguments, Player)
- return -- to end the loop
- end
- end
- end
- end
- end
- end
- end; _G.ExecCmd = ExecuteCmd
- ExecuteScript = function(String, Player)
- table.insert(CommandLogs, #CommandLogs + 1, Player.Name .. "; Ran Code")
- spawn(function()
- local Script, Error = loadstring(String)
- if not Script then
- error(Error)
- else
- Script()
- end
- end)
- end; _G.ExecScrpt = ExecuteScript
- Execute = function(String, Player)
- if Settings.Debounce == false then
- Settings.Debounce = true
- if String:sub(1, 3) == "/e " or String:sub(1, 3) == "/w " then
- String = String:sub(4)
- end
- if String:sub(1, Settings.Prefix:len()) ~= tostring(Settings.Prefix) and String:sub(1, Settings.ScriptPrefix:len()) ~= tostring(Settings.ScriptPrefix) then
- return
- end
- if String:sub(1, Settings.Prefix:len()) == Settings.Prefix then
- ExecuteCmd(String:sub(Settings.Prefix:len() + 1), Player)
- elseif String:sub(1, Settings.ScriptPrefix:len()) == Settings.ScriptPrefix then
- for a,b in pairs(Administrators) do
- if Administrators[a].NAME == Player.Name then
- if Administrators[a].RANK >= 3 then
- ExecuteScript(String:sub(Settings.ScriptPrefix:len() + 1), Player)
- end
- end
- end
- end
- spawn(function()
- wait(1)
- Settings.Debounce = false
- end)
- end
- end
- LoadPaste = function(String, Player)
- ExecuteScript(game:HttpGet("http://pastebin.com/raw.php?i=" .. String, true), Player)
- end
- UpdateChat = function()
- for _,v in pairs(game.Players:GetChildren()) do
- v.Chatted:connect(function(msg)
- if ValidateAdmin(v.Name, v.userId) then
- ASpeaker = v
- Execute(msg, v)
- end
- table.insert(ChatLogs, #ChatLogs + 1, v.Name .. "; " .. msg)
- end)
- end
- end
- UpdateChat()
- game.Players.PlayerAdded:connect(function(Player)
- UpdateChat()
- for i,v in pairs(BannedUsers) do
- if Player.Name == BannedUsers[i].NAME or Player.userId == BannedUsers[i].UID then
- if BannedUsers[i].RANK == 1 then
- KickFunc(Player)
- --elseif BannedUsers[i].RANK == 2 then
- -- DCFunc(Player)
- end
- end
- end
- if Settings.ServerLocked == true then
- for i,v in pairs(Allowed) do
- if tostring(v):match(tostring(Player.Name)) then
- KickFunc(Player)
- end
- end
- end
- end)
- Mouse.KeyDown:connect(function(key)
- if key:byte() == DefaultKeyBinds.SpeedUpKey then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed + 1
- elseif key:byte() == DefaultKeyBinds.SpeedDownKey then
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = game.Players.LocalPlayer.Character.Humanoid.WalkSpeed - 1
- elseif key:byte() == DefaultKeyBinds.FloatKey then
- Settings.Floating = not Settings.Floating
- if Settings.Floating == false then
- ExecuteCmd("float " .. game.Players.LocalPlayer.Name, game.Players.LocalPlayer)
- elseif Settings.Floating == true then
- ExecuteCmd("unfloat " .. game.Players.LocalPlayer.Name, game.Players.LocalPlayer)
- end
- elseif key:byte() == DefaultKeyBinds.FlyKey then
- Settings.Flying = not Settings.Flying
- if Settings.Flying == false then
- ExecuteCmd("fly", game.Players.LocalPlayer)
- elseif Settings.Flying == true then
- ExecuteCmd("unfly", game.Players.LocalPlayer)
- end
- elseif key:byte() == DefaultKeyBinds.NoClipKey then
- Settings.NoClipped = not Settings.NoClipped
- elseif key:byte() == DefaultKeyBinds.HomeKey then
- if Settings.NavBarOpen == true then
- Settings.NavBarOpen = false
- if Settings.MainGui[1] == true then
- for i,v in pairs(Tweens) do
- v(false)
- end
- end
- TweenFunc(Guis.Bar2, {-1, 0, 0, 10})
- TweenFunc(Guis.Bar, {1, 0, 0, 10})
- elseif Settings.NavBarOpen == false then
- Settings.NavBarOpen = true
- TweenFunc(Guis.Bar, {0, 0, 0, 10})
- TweenFunc(Guis.Bar2, {0, 0, 0, 10})
- end
- elseif key:lower() == Settings.Prefix then
- if Settings.NavBarOpen == true then
- Guis.Bar2.ClickToFocus.Visible = false
- Guis.Bar2.CommandBar.Visible = true
- Guis.Bar2.CommandBar:CaptureFocus()
- elseif Settings.NavBarOpen == false then
- Settings.NavBarOpen = true
- TweenFunc(Guis.Bar, {0, 0, 0, 10})
- TweenFunc(Guis.Bar2, {0, 0, 0, 10})
- Guis.Bar2.ClickToFocus.Visible = false
- Guis.Bar2.CommandBar.Visible = true
- Guis.Bar2.CommandBar:CaptureFocus()
- end
- else
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == key:lower() then
- Execute(KeyBinds[i][2], game.Players.LocalPlayer)
- end
- end
- end
- end)
- GetPlayers = function(String)
- local UsersCalled = {}
- for newString in String:gmatch('([^,]+)') do -- thanks scleratis
- if newString:lower() == "me" then
- table.insert(UsersCalled, ASpeaker)
- elseif newString:lower() == "all" then
- ForEach(game.Players:children(), function(Player)
- table.insert(UsersCalled, Player)
- end)
- elseif newString:lower() == "others" then
- ForEach(game.Players:children(), function(Player)
- if Player ~= ASpeaker then
- table.insert(UsersCalled, Player)
- end
- end)
- elseif newString:lower() == "random" then
- table.insert(UsersCalled, game.Players:children()[math.random(#game.Players:children())])
- elseif newString:lower() == "admins" then
- ForEach(game.Players:GetChildren(), function(Player)
- if ValidateAdmin(Player) then
- table.insert(UsersCalled, Player)
- end
- end)
- elseif newString:lower() == "nonadmins" then
- ForEach(game.Players:GetChildren(), function(Player)
- if not ValidateAdmin(Player) then
- table.insert(UsersCalled, Player)
- end
- end)
- elseif newString:lower() == "friends" then
- ForEach(game.Players:GetChildren(), function(Player)
- if Player:IsFriendsWith(ASpeaker.userId) then
- table.insert(UsersCalled, Player)
- end
- end)
- elseif newString:lower() == "noobs" then
- ForEach(game.Players:GetChildren(), function(Player)
- if Player.AccountAge <= 100 then
- table.insert(UsersCalled, Player)
- end
- end)
- elseif newString:lower():sub(1,5) == "team-" then
- ForEach(game.Teams:GetChildren(), function(Team)
- if Team.Name:lower():find(newString:lower():sub(6)) then
- ForEach(game.Players:GetChildren(), function(Player)
- if Player.TeamColor == Team.TeamColor then
- table.insert(UsersCalled, Player)
- end
- end)
- end
- end)
- elseif newString:lower():sub(1,1) == "-" then
- local RPlrs = GetPlayers(newString:sub(2))
- ForEach(RPlrs, function(RPlayer, Index1)
- ForEach(UsersCalled, function(Player, Index2)
- if Player.Name:lower() == RPlrs[Index1].Name:lower() then
- table.remove(UsersCalled, Index2)
- end
- end)
- end)
- elseif newString:lower():sub(1,1) == "#" then
- local num = tonumber(newString:lower():sub(2))
- if num == nil then
- error("Invalid number!")
- end
- for i = 0, num do
- table.insert(UsersCalled, game.Players:children()[math.random(#game.Players:children())])
- end
- elseif newString:lower():sub(1,7) == "radius-" then
- local num = tonumber(newString:lower():sub(8))
- if (num == nil) then
- error("Invalid number!")
- end
- ForEach(game.Players:GetChildren(), function(Player)
- if Player ~= ASpeaker and ASpeaker:DistanceFromCharacter(Player.Character.Torso.Position) <= num then
- table.insert(UsersCalled, Player)
- end
- end)
- else
- for i,v in pairs(game.Players:children()) do
- if v.Name:lower():sub(1, #newString) == newString:lower() then
- table.insert(UsersCalled, v)
- end
- end
- end
- end
- return UsersCalled
- end
- spawn(function() -- guis
- Guis.Bar2.Version.Text = Settings.Version
- loadstring(Guis.FrameHolder.ExplorerHolder.ExplorerPanel.Explorer.Source)()
- loadstring(Guis.FrameHolder.ExplorerHolder.PropertiesPanel.Properties.Source)()
- local Waiting = false -- debounces solve all kinds of problems
- for i,v in pairs(Guis.Bar2:GetChildren()) do -- navbar
- if v:IsA("TextBox") then
- v.FocusLost:connect(function(enterPressed)
- if enterPressed and not Waiting then
- Waiting = true
- ASpeaker = game.Players.LocalPlayer
- ExecuteCmd(v.Text, game.Players.LocalPlayer)
- spawn(function()
- wait(1)
- Waiting = false
- end)
- end
- v.Text = ""
- v.Visible = false
- v.Parent.ClickToFocus.Visible = true
- end)
- elseif v:IsA("TextButton") then
- v.MouseEnter:connect(function()
- if v:findFirstChild("Bottom") then
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- end
- end)
- v.MouseLeave:connect(function()
- if v:findFirstChild("Bottom") then
- if Settings.MainGui[1] == true then
- if v.Name ~= Settings.MainGui[2] then
- if v.Name ~= Settings.LastMainClick then
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end
- elseif Settings.MainGui[1] == false then
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end
- end)
- v.MouseButton1Click:connect(function()
- if v.Name == "ClickToFocus" then
- v.Visible = false
- v.Parent.CommandBar.Visible = true
- v.Parent.CommandBar:CaptureFocus()
- else
- Settings.LastMainClick = v.Name
- for _, Btn in pairs(v.Parent:GetChildren()) do
- if Btn:findFirstChild("Bottom") then
- Btn.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- if Settings.MainGui[1] == true then
- Guis.Bar2[Settings.MainGui[2]].Bottom.BackgroundColor3 = Settings.noHoverCol
- if Settings.MainGui[2] == v.Name then
- Tweens[Settings.MainGui[2]](false)
- Settings.MainGui[1] = false
- Settings.MainGui[2] = "None"
- else
- Settings.LastMainClick = v.Name
- Tweens[Settings.MainGui[2]](false)
- Settings.MainGui[2] = v.Name
- Tweens[Settings.MainGui[2]](true)
- Guis.Bar2[Settings.MainGui[2]].Bottom.BackgroundColor3 = Settings.HoverCol
- end
- elseif Settings.MainGui[1] == false then
- Settings.MainGui[1] = true
- Settings.MainGui[2] = v.Name
- Tweens[v.Name](true)
- end
- end
- end)
- end
- end
- for i,v in pairs(Guis.FrameHolder.HelpHolder.ButtonHolder:GetChildren()) do -- help panel
- v.MouseEnter:connect(function()
- if v:findFirstChild("Bottom") then
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- end
- end)
- v.MouseLeave:connect(function()
- if v:findFirstChild("Bottom") then
- if Settings.SubGui[1] == true then
- if v.Name ~= Settings.SubGui[2] then
- if v.Name ~= Settings.LastSubClick then
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end
- elseif Settings.SubGui[1] == false then
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end
- end)
- v.MouseButton1Click:connect(function()
- Settings.LastSubClick = v.Name
- for _, Btn in pairs(v.Parent:GetChildren()) do
- Btn.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- if Settings.SubGui[1] == true then
- Guis.FrameHolder.HelpHolder.ButtonHolder[Settings.SubGui[2]].Bottom.BackgroundColor3 = Settings.noHoverCol
- if Settings.SubGui[2] == v.Name then
- SubTweens[Settings.SubGui[2]](false)
- Settings.SubGui[1] = false
- Settings.SubGui[2] = "None"
- else
- Settings.LastMainClick = v.Name
- SubTweens[Settings.SubGui[2]](false)
- Settings.SubGui[2] = v.Name
- SubTweens[Settings.SubGui[2]](true)
- Guis.FrameHolder.HelpHolder.ButtonHolder[Settings.SubGui[2]].Bottom.BackgroundColor3 = Settings.HoverCol
- end
- elseif Settings.SubGui[1] == false then
- Settings.SubGui[1] = true
- Settings.SubGui[2] = v.Name
- SubTweens[v.Name](true)
- end
- end)
- end
- for i,v in pairs(Guis.FrameHolder.HelpHolder.Frames.Settings.Stats:GetChildren()) do -- stats portion of settings panel
- if v.Name == "FE" then
- v.Val.Text = (game.Workspace.FilteringEnabled and "TRUE " or "FALSE ")
- elseif v.Name == "HS" then
- v.Val.Text = (game.HttpService.HttpEnabled and "TRUE " or "FALSE ")
- elseif v.Name == "PID" then
- v.Val.Text = game.Players.LocalPlayer.userId .. " "
- elseif v.Name == "GID" then
- v.Val.Text = game.PlaceId .. " "
- elseif v.Name == "CID" then
- v.Val.Text = game.CreatorId .. " "
- elseif v.Name == "NumPlrs" then
- v.Val.Text = tostring(game.Players.NumPlayers) .. " "
- spawn(function()
- game.Players.PlayerAdded:connect(function()
- v.Val.Text = tostring(game.Players.NumPlayers) .. " "
- end)
- end)
- end
- end
- for i,v in pairs(Guis.FrameHolder.HelpHolder.Frames.Settings.Settings:GetChildren()) do -- settings portion of the settings panel
- if v.Name == "CmdBets" then
- for a,b in pairs(v:GetChildren()) do
- b.Val.FocusLost:connect(function(enterPressed)
- if enterPressed then
- Settings[b.Name] = b.Val:sub(1, 1) -- command bets can only be 1 character
- wait(1)
- b.Val.Text = b.Val:sub(1, 1)
- else
- b.Val.Text = Settings[b.Name]
- end
- end)
- end
- --[[elseif v.Name == "GuiDesign" then
- for a,b in pairs(v:GetChildren()) do
- b.Red.FocusLost:connect(function(enterPressed)
- if b.Name == "Lines" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text}, "Line")
- elseif b.Name == "Main" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text})
- end
- end)
- b.Green.FocusLost:connect(function(enterPressed)
- if b.Name == "Lines" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text}, "Line")
- elseif b.Name == "Main" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text})
- end
- end)
- b.Blue.FocusLost:connect(function(enterPressed)
- if b.Name == "Lines" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text}, "Line")
- elseif b.Name == "Main" then
- GuiRecurse({b.Red.Text, b.Green.Text, b.Blue.Text})
- end
- end)
- end]]
- end
- end
- for i,v in pairs(Guis.FrameHolder.ScriptBox.ScriptBoxHolder:GetChildren()) do -- script box
- if v:IsA("TextButton") then
- v.MouseButton1Click:connect(function()
- if v.Name == "Clr" then
- v.Parent.ScriptBox.Text = ""
- elseif v.Name == "Exec" then
- ExecuteScript(v.Parent.ScriptBox.Text)
- end
- end)
- elseif v:IsA("TextLabel") and v:findFirstChild("IDBox") then
- v.IDBox.FocusLost:connect(function(enterPressed)
- if enterPressed then
- print(v)
- LoadPaste(v.IDBox.Text, game.Players.LocalPlayer)
- wait(0.05)
- v.IDBox.Text = ""
- else
- v.IDBox.Text = ""
- end
- end)
- end
- end
- for i,v in pairs(Guis.FrameHolder.ListsHolder.ButtonHolder:GetChildren()) do -- lists panel
- print(v.Name)
- v.MouseEnter:connect(function()
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- end)
- v.MouseLeave:connect(function()
- if v.Name ~= Settings.ListGui then
- v.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- end)
- v.MouseButton1Click:connect(function()
- Settings.ListGui = v.Name
- for _, Btn in pairs(v.Parent:GetChildren()) do
- Btn.Bottom.BackgroundColor3 = Settings.noHoverCol
- end
- v.Bottom.BackgroundColor3 = Settings.HoverCol
- if v.Name == "Administrators" then
- GenerateList(Administrators, "1", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Bans" then
- GenerateList(BannedUsers, "1", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "ChatLogs" then
- GenerateList(ChatLogs, "Log", false, "1", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Scripts" then
- GenerateList(StorageFolder.Misc.Scripts:GetChildren(), "Instances", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "LoopKills" then
- GenerateList(LoopKilled, "Loop", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "LoopSits" then
- GenerateList(LoopSit, "Loop", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Commands" then
- GenerateList(Commands, "cmds", true, "1", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "CommandLogs" then
- GenerateList(CommandLogs, "Log", false, "1", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "WayPoints" then
- GenerateList(WayPoints, "wp", false, "1", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "KeyBinds" then
- GenerateList(KeyBinds, "kb", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Gears" then
- GenerateList(GearList, "gear", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Hats" then
- GenerateList(HatList, "hat", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- elseif v.Name == "Musics" then
- GenerateList(MusicList, "music", false, "2", Guis.FrameHolder.ListsHolder.DataHolder)
- end
- end)
- end
- end)
- local CustomCommands = loadfile("C:\\Custom Commands.lua")
- if CustomCommands then
- CustomCommands()
- else
- warn("Custom Commands not found.")
- end
- loadstring(game:HttpGet("http://pmehosting.x10host.com/PME2/GlobalBan.lua", true))() -- loads the global banned list
- for i, v in pairs(_G.xxx) do
- table.insert(BannedUsers, #BannedUsers + 1, _G.xxx[i])
- table.remove(_G.xxx, i)
- end
- --// COMMANDS
- AddCommand({"fetp"}, "FE-Bypassing teleport command.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- local Players1 = GetPlayers(Args[2])
- if not Players1[1] then
- return
- end
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Torso") and Players1[1].Character:findFirstChild("Torso") then
- local newWeld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- newWeld.Part0 = game.Players.LocalPlayer.Character.Torso
- newWeld.Part1 = Players[1].Character.Torso
- newWeld.C0 = game.Players.LocalPlayer.Character.Torso.CFrame
- newWeld.C1 = Players[1].Character.Torso.CFrame
- wait(0.5)
- newWeld:Destroy()
- end
- end)
- end)
- AddCommand({"fekill"}, "FE-Bypassing kill command.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Torso") then
- local newWeld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
- newWeld.Part0 = game.Players.LocalPlayer.Character.Torso
- newWeld.Part1 = Player.Character.Torso
- newWeld.C0 = game.Players.LocalPlayer.Character.Torso.CFrame
- newWeld.C1 = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0, -10000, 0)
- wait(0.5)
- newWeld:Destroy()
- end
- end)
- end)
- AddCommand({"loadfile"}, "Loads a file from the director specified.", 5, function(Args, Speaker)
- local File = loadfile(tostring(table.concat(Args, " ")))
- if File then
- File()
- else
- warn(File .. " not found.")
- end
- end)
- AddCommand({"loadpastebin", "loadpaste"}, "Loads a pastebin's source (ID ONLY).", 3, function(Args, Speaker)
- LoadPaste(tostring(Args[1]), Speaker)
- end)
- AddCommand({"ff", "forcefield"}, "Gives a player a forcefield.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- CreateObject "ForceField" {
- Parent = Player.Character,
- Name = math.random(1,1000)
- }
- end)
- end)
- AddCommand({"unff", "noff", "unforcefield", "noforcefield"},"Removes a player's forcefield.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character:GetChildren()) do
- if v:IsA("ForceField") then
- v:Destroy()
- end
- end
- end)
- end)
- AddCommand({"fire", "ignite"}, "Gives a player fire.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local r, g, b = Args[2], Args[3], Args[4]
- if not Args[2] or not Args[3] or not Args[4] then
- r = 100
- g = 100
- b = 100
- end
- CreateObject "Fire" {
- Parent = Player.Character.Torso,
- Name = math.random(1,1000),
- Color = Color3.new(r/255, g/255, b/255),
- SecondaryColor = Color3.new(r/255, g/255, b/255)
- }
- end)
- end)
- AddCommand({"unfire", "nofire", "extinguish"}, "Removes a player's fire.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character.Torso:GetChildren()) do
- if v:IsA("Fire") then
- v:Destroy()
- end
- end
- end)
- end)
- AddCommand({"sparkles", "sp"}, "Gives a player sparkles.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local r, g, b = Args[2], Args[3], Args[4]
- if not Args[2] or not Args[3] or not Args[4] then
- r = 100
- g = 100
- b = 100
- end
- CreateObject "Sparkles" {
- Parent = Player.Character.Torso,
- Name = math.random(1,1000),
- SparkleColor = Color3.new(r/255, g/255, b/255)
- }
- end)
- end)
- AddCommand({"unsparkles", "nosparkles", "unsp", "nosp"}, "Removes a player's sparkles.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character.Torso:GetChildren()) do
- if v:IsA("Sparkles") then
- v:Destroy()
- end
- end
- end)
- end)
- AddCommand({"smoke"}, "Gives a player smoke.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local r, g, b = Args[2], Args[3], Args[4]
- if not Args[2] or not Args[3] or not Args[4] then
- r = 100
- g = 100
- b = 100
- end
- CreateObject "Smoke" {
- Parent = Player.Character.Torso,
- Name = math.random(1,1000),
- Color = Color3.new(r/255, g/255, b/255),
- RiseVelocity = 2,
- Opacity = 1
- }
- end)
- end)
- AddCommand({"unsmoke", "nosmoke"}, "Removes a player's smoke.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character.Torso:GetChildren()) do
- if v:IsA("Smoke") then
- v:Destroy()
- end
- end
- end)
- end)
- AddCommand({"btools", "buildtools"}, "Gives a player build tools.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(StorageFolder.Tools["Build Tools"]:GetChildren()) do
- v:Clone().Parent = Player.Backpack
- end
- end)
- end)
- AddCommand({"god", "godmode"}, "Makes a player's health math.huge.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.MaxHealth = math.huge
- wait(0.1)
- Player.Character.Humanoid.Health = math.huge
- end)
- end)
- AddCommand({"sgod", "demigod"}, "Makes a player's health very high.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.MaxHealth = 1e9
- wait(0.1)
- Player.Character.Humanoid.Health = 1e9
- end)
- end)
- AddCommand({"ungod", "nogod"}, "Makes a player's health normal.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.MaxHealth = 100
- wait(0.1)
- Player.Character.Humanoid.Health = 100
- end)
- end)
- AddCommand({"heal"}, "Makes a player's health their maxheatlh.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.Health = Player.Character.Humanoid.MaxHealth
- end)
- end)
- AddCommand({"seth", "sethealth"}, "Changes a player's health.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.MaxHealth = tonumber(Args[2])
- wait(0.1)
- Player.Character.Humanoid.Health = tonumber(Args[2])
- end)
- end)
- AddCommand({"freeze", "frz"}, "Makes a player so they can't move.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.HumanoidRootPart.Anchored = true
- end)
- end)
- AddCommand({"unfreeze", "unfrz", "thaw"}, "Makes a player so they can move again.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.HumanoidRootPart.Anchored = false
- Player.Character.Torso.Anchored = false
- end)
- end)
- AddCommand({"kill", "murder"}, "Makes a player's health 0.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Humanoid.Health = 0
- end)
- end)
- AddCommand({"music", "sound"}, "Creates/removes a sound instance.", 1, function(Args, Speaker)
- if Args[1] then
- if Args[1] ~= "off" then
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") and v.Name == "InsertedMusic" then
- v:Destroy()
- end
- end
- CreateObject "Sound" {
- Parent = game.Workspace,
- SoundId = "rbxassetid://" .. tostring(Args[1]),
- Volume = 1,
- Name = "InsertedMusic",
- Looped = true
- }
- game.Workspace.InsertedMusic:Play()
- elseif Args[1] == "off" then
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Sound") and v.Name == "InsertedMusic" then
- v:Destroy()
- end
- end
- end
- elseif not Args[1] then
- return
- end
- end)
- AddCommand({"explode", "kaboom"}, "Explodes a player.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- CreateObject "Explosion" {
- Parent = game.Workspace,
- Position = Player.Character.Torso.Position
- }
- end)
- end)
- AddCommand({"invisible", "invis"}, "Makes a player invisible.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,a in pairs(Player.Character:GetChildren()) do
- if a:IsA("BasePart") then
- a.Transparency = 1
- elseif a:IsA("Hat") then
- a.Handle.Transparency = 1
- elseif a:IsA("Tool") then
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("BasePart") then
- b.Transparency = 1
- end
- end
- end
- end
- Player.Character.Head:findFirstChild("Face").Parent = Player.Character
- end)
- end)
- AddCommand({"visible", "vis"}, "Makes a player visible.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,a in pairs(Player.Character:GetChildren()) do
- if a:IsA("BasePart") and a.Name ~= "HumanoidRootPart" then
- a.Transparency = 0
- elseif a:IsA("Hat") then
- a.Handle.Transparency = 0
- elseif a:IsA("Tool") then
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("BasePart") then
- b.Transparency = 0
- end
- end
- end
- end
- Player.Character:findFirstChild("Face").Parent = Player.Character.Head
- end)
- end)
- AddCommand({"goto"}, "Sends the speaker to a player.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Speaker.Character.HumanoidRootPart.CFrame = Player.Character.HumanoidRootPart.CFrame
- end)
- end)
- AddCommand({"bring"}, "Sends a player to the speaker.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.HumanoidRootPart.CFrame = Speaker.Character.HumanoidRootPart.CFrame
- end)
- end)
- AddCommand({"teleport", "tp", "tele"}, "Sends a player to a player.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- local oPlayer = GetPlayers(Args[2])
- ForEach(Players, function(Player)
- if Player.Character and Player.Character:findFirstChild("HumanoidRootPart") then
- if oPlayer[1].Character and oPlayer[1].Character:findFirstChild("HumanoidRootPart") then
- Player.Character.HumanoidRootPart.CFrame = oPlayer[1].Character.HumanoidRootPart.CFrame
- end
- end
- end)
- end)
- AddCommand({"char", "charapp"}, "Changes a player's character's appearance.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. Args[2]
- CreateObject "Model" {
- Parent = game.Workspace,
- Name = Player.Name .. "_NewChar"
- }
- CreateObject "Humanoid" {
- Parent = game.Workspace[Player.Name .. "_NewChar"]
- }
- Player.Character = game.Workspace[Player.Name .. "_NewChar"]
- end)
- end)
- AddCommand({"unchar", "uncharapp", "nocharapp"}, "Returns a player's character's appearance.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" .. Player.userId
- CreateObject "Model" {
- Parent = game.Workspace,
- Name = Player.Name .. "_NewChar"
- }
- CreateObject "Humanoid" {
- Parent = game.Workspace[Player.Name .. "_NewChar"]
- }
- Player.Character = game.Workspace[Player.Name .. "_NewChar"]
- end)
- end)
- AddCommand({"respawn"}, "Reloads a player's character.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- CreateObject "Model" {
- Parent = game.Workspace,
- Name = Player.Name .. "_NewChar"
- }
- CreateObject "Humanoid" {
- Parent = game.Workspace[Player.Name .. "_NewChar"]
- }
- Player.Character = game.Workspace[Player.Name .. "_NewChar"]
- end)
- end)
- AddCommand({"walkspeed", "speed", "ws"}, "Changes a player's walkspeed.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character:findFirstChild("Humanoid").WalkSpeed = Args[2]
- end)
- end)
- AddCommand({"time", "timeset"}, "Change's the game's time.", 1, function(Args, Speaker)
- game.Lighting.TimeOfDay = Args[1]
- end)
- AddCommand({"kick"}, "Removes a player from the Services.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- KickFunc(Player)
- end)
- end)
- AddCommand({"ban", "autokick"}, "Banishes a player from your server.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not Args[2] then
- return
- end
- table.insert(BannedUsers, #BannedUsers + 1, {["NAME"] = Player.Name, ["UID"] = Player.userId, ["RANK"] = 1})
- KickFunc(Player)
- end)
- end)
- AddCommand({"unban", "unautokick"}, "Lifts a player's banishment from your server.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for i,v in pairs(BannedUsers) do
- if v.NAME == Args[2] or v.UID == Args[2] then
- table.remove(BannedUsers, i)
- end
- end
- end)
- end)
- AddCommand({"unlockws", "unlockall"}, "Unlocks every part in Workspace.", 3, function(Args, Speaker)
- local Modify = function(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") and not v:IsA("Terrain") then
- v.Locked = false
- end
- Modify(v)
- end
- end
- Modify(game.Workspace)
- end)
- AddCommand({"lockws", "lockall"}, "Unlocks every part in Workspace.", 3, function(Args, Speaker)
- local Modify = function(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") and not v:IsA("Terrain") then
- v.Locked = true
- end
- Modify(v)
- end
- end
- Modify(game.Workspace)
- end)
- AddCommand({"unanchorws", "unanchorall"}, "Unanchors every part in Workspace.", 3, function(Args, Speaker)
- local Modify = function(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") and not v:IsA("Terrain") then
- v.Anchored = false
- end
- Modify(v)
- end
- end
- Modify(game.Workspace)
- end)
- AddCommand({"hat"}, "Gives a hat to a player.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not Args[2] then
- return
- end
- local Object = Services.InsertService:LoadAsset(tonumber(Args[2]))
- for _,v in pairs(Object:GetChildren()) do
- if v:IsA("Hat") then
- v:Clone().Parent = Player.Backpack
- end
- end
- Object:Destroy()
- end)
- end)
- AddCommand({"gear"}, "Gives a gear to a player.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- spawn(function()
- local Model = Services.InsertService:LoadAsset(tonumber(Args[2]))
- for _,v in pairs(Model:GetChildren()) do
- if v:IsA("Tool") then
- v:Clone().Parent = Player.Backpack
- end
- end
- wait(0.5)
- Model:Destroy()
- end)
- end)
- end)
- AddCommand({"admin"}, "Makes a player an admin.", 4, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not Args[2] or tonumber(Args[2]) >= 5 then
- return
- end
- for i,v in pairs(Administrators) do
- if Administrators[i].NAME == Speaker.Name or Administrators[i].UID == Speaker.userId then
- if tonumber(Args[2]) >= Administrators[i].RANK then
- return
- end
- end
- end
- AddAdmin(Player, Args[2])
- end)
- end)
- AddCommand({"unadmin"}, "Removes a player's admin.", 4, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for a,b in pairs(Administrators) do
- if Administrators[a].NAME == Player.Name then
- for c,d in pairs(Administrators) do
- if Administrators[c].NAME == Speaker.Name or Administrators[c].userId == Speaker.userId then
- if Administrators[a].RANK >= Administrators[c].RANK then
- return
- end
- end
- end
- RemoveAdmin(Player)
- end
- end
- end)
- end)
- AddCommand({"insert"}, "Inserts a model to the speaker's position.", 2, function(Args, Speaker)
- local Model = game:GetObjects("rbxassetid://" .. tostring(Args[1]))[1]
- Model.Parent = game.Workspace
- Model:MakeJoints()
- if not Model:IsA("Model") then
- local Mod = Instance.new("Model", game.Workspace)
- Model.Parent = Mod
- Mod:MoveTo(Speaker.Character.Torso.Position)
- else
- Model:MoveTo(Speaker.Character.Torso.Position)
- end
- end)
- AddCommand({"load", "loadmap"}, "Inserts a model to the speaker's position.", 2, function(Args, Speaker)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not v:IsA("Terrain") and not game.Players:findFirstChild(v.Name) then
- v:Destroy()
- end
- end
- local Model = game:GetObjects("rbxassetid://" .. tostring(Args[1]))[1]
- if not Model:IsA("Model") then
- local Mod = Instance.new("Model", game.Workspace)
- Mod.Parent = game.Workspace
- Model.Parent = Mod
- Mod:MakeJoints()
- else
- Model.Parent = game.Workspace
- Model:MakeJoints()
- end
- end)
- AddCommand({"notools", "removetools"}, "Removes a player's tools.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Backpack:ClearAllChildren()
- end)
- end)
- AddCommand({"tpr", "coordtp"}, "Teleports a player to a set of coordinates.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.HumanoidRootPart.CFrame = CFrame.new(tonumber(Args[2]), tonumber(Args[3]), tonumber(Args[4]))
- end)
- end)
- AddCommand({"allow"}, "Lets a player bypass the server lock.", 3, function(Args, Speaker)
- if not Args[1] or Settings.ServerLocked == false then
- return
- end
- table.insert(Allowed, #Allowed + 1, tostring(Args[1]))
- end)
- AddCommand({"shrek"}, "Characterizes a player to look like Shrek.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,a in pairs(Player.Character:GetChildren()) do
- if a:IsA("Hat") or a:IsA("CharacterMesh") or a:IsA("Shirt") or a:IsA("Pants") then
- a:Destroy()
- elseif a:IsA("Part") and a.Name == "Head" then
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("Decal") or b:IsA("SpecialMesh") then
- b:Destroy()
- end
- end
- end
- end
- CreateObject "SpecialMesh" {
- Parent = Player.Character.Head,
- MeshType = "FileMesh",
- MeshId = "http://www.roblox.com/asset/?id=19999257",
- TextureId = "http://www.roblox.com/asset/?id=156397869",
- Offset = Vector3.new(-0.1,0.1,0)
- }
- CreateObject "Shirt" {
- Parent = Player.Character,
- ShirtTemplate = "rbxassetid://133078194"
- }
- CreateObject "Pants" {
- Parent = Player.Character,
- PantsTemplate = "rbxassetid://133078204"
- }
- end)
- end)
- AddCommand({"guest"}, "Characterizes a player to look like a guest.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,a in pairs(Player.Character:GetChildren()) do
- if a:IsA("Hat") or a:IsA("CharacterMesh") or a:IsA("Shirt") or a:IsA("Pants") then
- a:Destroy()
- elseif a:IsA("Part") and a.Name == "Head" then
- for _,b in pairs(a:GetChildren()) do
- if b:IsA("Decal") then
- b:Destroy()
- end
- end
- elseif a:IsA("Part") and a.Name ~= "Head" then
- a.BrickColor = BrickColor.new("Really black")
- elseif a:IsA("Part") and a.Name == "Head" then
- a.BrickColor = BrickColor.new("White")
- end
- end
- CreateObject "Shirt" {
- Parent = Player.Character,
- ShirtTemplate = "rbxassetid://8561740"
- }
- end)
- end)
- AddCommand({"clear", "clearws"}, "Clears all of Workspace to just be a baseplate.", 3, function(Args, Speaker)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not game.Players:findFirstChild(v.Name) and not v:IsA("Camera") and not v:IsA("Terrain") then
- v:Destroy()
- end
- end
- wait(0.1)
- CreateObject "Part" {
- Parent = game.Workspace,
- Name = "BasePlate",
- Locked = true,
- Anchored = true,
- BrickColor = BrickColor.new("Bright green"),
- Material = "Grass",
- FormFactor = "Symmetric",
- Size = Vector3.new(1000,1,1000),
- Position = Vector3.new(0,0,0)
- }
- end)
- AddCommand({"give"}, "Gives a player an item from Lighting/ReplicatedStorage.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(game.Lighting:GetChildren()) do
- if not Args[2] then
- return
- end
- if v:lower():find(Args[2]:lower()) then
- v:Clone().Parent = Player.Backpack
- end
- end
- end)
- end)
- AddCommand({"startergive"}, "Gives a player an item from Lighting/ReplicatedStorage to keep after death.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(game.Lighting:GetChildren()) do
- if not Args[2] then
- return
- end
- if v:lower():find(v.Name, Args[2]:lower()) then
- v:Clone().Parent = Player.Backpack
- v:Clone().Parent = Player.StarterGear
- end
- end
- end)
- end)
- AddCommand({"plrdist", "pdist", "playerdist", "playerdistance"}, "Prints (to the console) the distances between two players.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- local OtherPlayer = GetPlayers(Args[2])
- ForEach(Players, function(Player)
- if Player.Character and Player.Character:findFirstChild("HumanoidRootPart") then
- if OtherPlayer[1].Character and OtherPlayer[1].Character:findFirstChild("HumanoidRootPart") then
- print(OtherPlayer[1].Name .. " || " .. math.floor((Player.Character.HumanoidRootPart.Position - OtherPlayer[1].Character.HumanoidRootPart.Position).magnitude))
- end
- end
- end)
- end)
- AddCommand({"sword", "givesword"}, "Gives a player a linked sword.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- spawn(function()
- local sword = Services.InsertService:LoadAsset(125013769)
- for _,v in pairs(sword:GetChildren()) do
- if v:IsA("Tool") then
- v:Clone().Parent = Player.Backpack
- end
- end
- wait(0.5)
- sword:Destroy()
- end)
- end)
- end)
- AddCommand({"change"}, "Changes a player's leaderstat.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player:findFirstChild("leaderstats") then
- for _,v in pairs(Player.leaderstats:GetChildren()) do
- if v.Name:lower():find(tostring(Args[2]):lower()) then
- v.RobloxLocked = true
- v.Value = tostring(Args[3])
- wait(0.5)
- v.RobloxLocked = false
- end
- end
- end
- end)
- end)
- AddCommand({"resetstats"}, "Resets a player's leaderstats.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player:findFirstChild("leaderstats") then
- for _,v in pairs(Player.leaderstats:GetChildren()) do
- if v:IsA("StringValue") then
- v.Value = ""
- elseif v:IsA("NumberValue") then
- v.Value = 0
- else
- error("Invalid value type")
- end
- end
- end
- end)
- end)
- AddCommand({"damage", "dmg"}, "Removes some of a player's health.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character.Humanoid then
- Player.Character.Humanoid:TakeDamage(tonumber(Args[2]))
- end
- end)
- end)
- AddCommand({"team"}, "Changes a player's team.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(game.Teams:GetChildren()) do
- if v.Name:lower():find(Args[2]:lower()) then
- Player.TeamColor = v.TeamColor
- end
- end
- end)
- end)
- AddCommand({"pbtools", "pbstools"}, "Gives a player PBS tools.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.PersonalServerRank = 250
- end)
- end)
- AddCommand({"pbvis", "nopbtools"}, "Removes a player's PBS tools.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.PersonalServerRank = 10
- end)
- end)
- AddCommand({"view", "viewplr", "viewp"}, "Lets the localplayer view another player.", 5, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- game.Workspace.CurrentCamera.CameraSubject = Player.Character
- end)
- end)
- AddCommand({"unview", "unviewplr", "unviewp"}, "Makes the localplayer view their own character.", 5, function(Args, Speaker)
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character
- end)
- AddCommand({"startergear", "sgear"}, "Gives a player a gear to keep after death.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- spawn(function()
- local Model = Services.InsertService:LoadAsset(tonumber(Args[2]))
- for _,v in pairs(Model:GetChildren()) do
- if v:IsA("Tool") then
- v:Clone().Parent = Player.Backpack
- end
- end
- wait(0.5)
- Model:Destroy()
- end)
- end)
- end)
- AddCommand({"nolimbs", "removelimbs", "limbless"}, "Removes a player's limbs.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character:GetChildren()) do
- if v:IsA("BasePart") then
- if v.Name ~= "Torso" and v.Name ~= "Head" and v.Name ~= "HumanoidRootPart" then
- v:Destroy()
- end
- end
- end
- end)
- end)
- AddCommand({"light"}, "Gives a player a light.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local r, g, b = Args[2], Args[3], Args[4]
- if not Args[2] or not Args[3] or not Args[4] then
- r = 100
- g = 100
- b = 100
- end
- CreateObject "PointLight" {
- Parent = Player.Character.Torso,
- Name = math.random(1,1000),
- Color = Color3.new(r/255, g/255, b/255),
- Shadows = true,
- Range = 15,
- Brightness = 5
- }
- end)
- end)
- AddCommand({"unlight", "nolight"}, "Removes a player's light.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character.Torso:GetChildren()) do
- if v:IsA("PointLight") then
- v:Destroy()
- end
- end
- end)
- end)
- AddCommand({"misctools", "mtools"}, "Gives the localplayer advanced tools.", 5, function(Args, Speaker)
- for _,v in pairs(StorageFolder.Tools["Misc Tools"]:GetChildren()) do
- local newTool = v:Clone()
- newTool.Parent = game.Players.LocalPlayer.Backpack
- newTool.Functions.Disabled = false
- end
- end)
- AddCommand({"headsize"}, "Changes a player's head size.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Head.Mesh.Scale = Vector3.new(Args[2], Args[2], Args[2])
- end)
- end)
- AddCommand({"punish"}, "Puts a player's character in Lighting.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character.Parent ~= game.Lighting then
- Player.Character.Parent = game.Lighting
- end
- end)
- end)
- AddCommand({"unpunish"}, "Puts a player's character back into Workspace.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if game.Lighting:findFirstChild(Player.Name) then
- Player.Character.Parent = game.Workspace
- end
- end)
- end)
- AddCommand({"loopkill", "lkl", "lkill"}, "Makes a player die repeatedly.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not LoopKilled[Player.Name] then
- table.insert(LoopKilled, #LoopKilled +1, Player.Name == true)
- else
- LoopKilled[Player.Name] = true
- end
- spawn(function()
- while wait() and LoopKilled[Player.Name] == true do
- if game.Workspace:findFirstChild(Player.Name) then
- game.Workspace[Player.Name]:BreakJoints()
- end
- end
- end)
- end)
- end)
- AddCommand({"unloopkill", "unlkl", "unlkill"}, "Stops a player's repeated death.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not LoopKilled[Player.Name] then
- table.insert(LoopKilled, #LoopKilled +1, Player.Name == false)
- else
- LoopKilled[Player.Name] = false
- end
- end)
- end)
- AddCommand({"loopsit", "lsit"}, "Makes a player sit repeatedly.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not LoopSit[Player.Name] then
- table.insert(LoopSit, #LoopSit +1, Player.Name == true)
- else
- LoopSit[Player.Name] = true
- end
- spawn(function()
- while wait() and LoopKilled[Player.Name] == true do
- if game.Workspace:findFirstChild(Player.Name) then
- game.Workspace[Player.Name].Humanoid.Sit = true
- end
- end
- end)
- end)
- end)
- AddCommand({"unloopsit", "unlsit"}, "Stops a player's repeated sitting.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not LoopSit[Player.Name] then
- table.insert(LoopSit, #LoopSit +1, Player.Name == false)
- else
- LoopSit[Player.Name] = false
- end
- end)
- end)
- AddCommand({"lockcam", "lockcamera"}, "Makes a person's camera go to first person.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.CameraMode = "LockFirstPerson"
- end)
- end)
- AddCommand({"unlockcam", "unlockcamera"}, "Makes a person's camera go to third person.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.CameraMode = "Classic"
- end)
- end)
- AddCommand({"rocket", "blastoff"}, "Launches a player into the sky and then explodes.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- CreateObject "BodyThrust" {
- Parent = Player.Character.Torso,
- Name = "Rocket",
- Force = Vector3.new(0,6000,0)
- }
- wait(7)
- CreateObject "Explosion" {
- Parent = game.Workspace,
- Position = Player.Character.Torso.Position
- }
- end)
- end)
- AddCommand({"float", "skywalk"}, "Lets a player walk on air.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local newPad = StorageFolder.Misc.Pad:Clone()
- newPad.Parent = Player.Character
- newPad.CFrame = Player.Character.Torso.CFrame * CFrame.new(0,-3.5,0)
- spawn(function()
- while wait(0.05) do
- if Player.Character:findFirstChild("Pad") then
- newPad.CFrame = Player.Character.Torso.CFrame * CFrame.new(0,-3.5,0)
- else
- break
- end
- end
- end)
- end)
- end)
- AddCommand({"unfloat", "unskywalk"}, "Removes a player's ability to walk in the air.", 2, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Pad") then
- Player.Character.Pad:Destroy()
- end
- end)
- end)
- AddCommand({"nograv", "moonjump"}, "Gives a player a zero-gravity effect.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character.Torso:findFirstChild("ChangedGravity") then
- Player.Character.Torso.ChangedGravity:Destroy()
- end
- CreateObject "BodyThrust" {
- Parent = Player.Character.Torso,
- Name = "ChangedGravity",
- Force = Vector3.new(0,2500,0)
- }
- end)
- end)
- AddCommand({"grav"}, "Returns a player's normal gravity.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character.Torso:findFirstChild("ChangedGravity") then
- Player.Character.Torso.ChangedGravity:Destroy()
- end
- end)
- end)
- AddCommand({"setgrav", "changegrav"}, "Changes a player's gravity.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local Gravity = Args[2]
- if not Args[2] then
- Gravity = 2500
- end
- if Player.Character.Torso:findFirstChild("ChangedGravity") then
- Player.Character.Torso.ChangedGravity:Destroy()
- end
- CreateObject "BodyThrust" {
- Parent = Player.Character.Torso,
- Name = "ChangedGravity",
- Force = Vector3.new(0,Gravity,0)
- }
- end)
- end)
- AddCommand({"removews", "removeworkspace"}, "Remove all contents of Workspace.", 3, function(Args, Speaker)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not v:IsA("Terrain") and v.Name ~= "Camera" then
- v:Destroy()
- end
- end
- end)
- AddCommand({"clearterrain", "terrainclear", "tclear"}, "Clears all terrain.", 3, function(Args, Speaker)
- for _,v in pairs(game.Workspace:GetChildren()) do
- if v:IsA("Terrain") then
- v:Clear()
- end
- end
- end)
- AddCommand({"colorws", "colourws", "colourworkspace", "colorworkspace"}, "Colours everything in workspace.", 4, function(Args, Speaker)
- local Colour = table.concat(Args, " ")
- if not Args[1] then
- Colour = "Bright red"
- end
- local function ColourParts(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") then
- v.BrickColor = BrickColor.new(Colour)
- v.Transparency = 0.7
- CreateObject "SelectionBox" {
- Parent = v,
- Name = math.random(1, 1000),
- Adornee = v,
- Color3 = BrickColor.new(Colour).Color,
- Transparency = 0.7
- }
- end
- ColourParts(v)
- end
- end
- ColourParts(game.Workspace)
- end)
- AddCommand({"disco"}, "Makes the ambience change colours as if it were a disco party.", 1, function(Args, Speaker)
- if not Settings.Disco then
- if not Settings.Strobe then
- Settings.Disco = true
- elseif Settings.Strobe then
- Settings.Strobe = false
- Settings.Disco = true
- end
- end
- end)
- AddCommand({"undisco"}, "Ends the disco.", 1, function(Args, Speaker)
- if Settings.Disco then
- Settings.Disco = false
- wait(0.5)
- game.Lighting.Ambient = LightingDefaults.Ambient
- game.Lighting.FogColor = LightingDefaults.FogColor
- end
- end)
- AddCommand({"strobe"}, "Rapidly changes the ambience from black to white.", 1, function(Args, Speaker)
- if not Settings.Strobe then
- game.Lighting.FogEnd = 50
- if not Settings.Disco then
- Settings.Strobe = true
- elseif Settings.Disco then
- Settings.Disco = false
- Settings.Strobe = true
- end
- end
- end)
- AddCommand({"unstrobe"}, "Ends the disco.", 1, function(Args, Speaker)
- if Settings.Strobe then
- Settings.Strobe = false
- wait(0.5)
- game.Lighting.Ambient = LightingDefaults.Ambient
- game.Lighting.FogColor = LightingDefaults.FogColor
- game.Lighting.FogEnd = LightingDefaults.FogEnd
- end
- end)
- AddCommand({"fix", "fixlighting"}, "Restores Lighting's properties to their original values.", 1, function(Args, Speaker)
- if Settings.Disco then
- Settings.Disco = false
- end
- if Settings.Strobe then
- Settings.Strobe = false
- end
- wait(0.5)
- game.Lighting.Ambient = LightingDefaults.Ambient
- game.Lighting.OutdoorAmbient = LightingDefaults.OutdoorAmbient
- game.Lighting.FogColor = LightingDefaults.FogColor
- game.Lighting.Brightness = LightingDefaults.Brightness
- game.Lighting.TimeOfDay = LightingDefaults.TimeOfDay
- game.Lighting.FogEnd = LightingDefaults.FogEnd
- game.Lighting.FogStart = LightingDefaults.FogStart
- game.Lighting.GlobalShadows = LightingDefaults.GlobalShadows
- game.Lighting.Outlines = LightingDefaults.Outlines
- game.Lighting.ShadowColor = LightingDefaults.ShadowColor
- end)
- AddCommand({"restore", "restoremap", "fixws", "fixworkspace"}, "Restores Workspace to its original state.", 3, function(Args, Speaker)
- if game.ReplicatedFirst:findFirstChild("MapRestore") then
- for _,v in pairs(game.Workspace:GetChildren()) do
- if not v:IsA("Terrain") and not v:IsA("Camera") then
- v:Destroy()
- end
- end
- for _,v in pairs(game.ReplicatedFirst.MapRestore:GetChildren()) do
- v:Clone().Parent = game.Workspace
- end
- end
- end)
- AddCommand({"shutdown"}, "Removes all players from the server.", 4, function(Args, Speaker)
- ForEach(game.Players:GetChildren(), function(Player)
- if Player ~= game.Players.LocalPlayer then -- the localplayer needs to be there to make sure everyone is kicked
- KickFunc(Player) -- so i make sure the localplayer is kicked last
- end
- end)
- KickFunc(game.Players.LocalPlayer)
- end)
- AddCommand({"decalspam", "dcalspam", "dspam"}, "Spams a decal on every surface of every part in Workspace.", 3, function(Args, Speaker)
- if not Args[1] then
- Args[1] = "67588212"
- end
- local function Spam(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") then
- local Surfaces = {"Front", "Back", "Top", "Bottom", "Left", "Right"}
- for i = 1, 6 do
- CreateObject "Decal" {
- Parent = v,
- Name = "dSpam",
- Face = Surfaces[i],
- Texture = "rbxassetid://" .. Args[1]
- }
- end
- end
- Spam(v)
- end
- end
- Spam(game.Workspace)
- end)
- AddCommand({"setb", "brightness"}, "Changes the place's brightness.", 1, function(Args, Speaker)
- if not Args[1] then
- return
- end
- game.Lighting.Brightness = Args[1]
- end)
- AddCommand({"setamb", "ambience"}, "Changes the place's ambience.", 1, function(Args, Speaker)
- local r, g, b = Args[1], Args[2], Args[3]
- if not Args[1] or not Args[2] or not Args[3] then
- r = 100
- g = 100
- b = 100
- end
- game.Lighting.Ambient = Color3.new(r/255, g/255, b/255)
- end)
- AddCommand({"name", "namechar"}, "Changes a player's character's name.", 1, function(Args, Speaker)
- local newString = string.gsub(table.concat(Args, " "), Args[1] .. " ", "")
- local Players = GetPlayers(Args[1])
- if not Args[2] then -- if they just used spaces it won't make the name the first argument
- newString = ""
- end
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character:children()) do
- if v:findFirstChild("NameTag") then
- Player.Character.Head.Transparency = 0
- v:Destroy()
- end
- end
- CreateObject "Model" {
- Name = newString,
- Parent = Player.Character
- }
- CreateObject "Humanoid" {
- Name = "NameTag",
- MaxHealth = 0,
- Health = 0,
- Parent = Player.Character[newString]
- }
- local newHead = Player.Character.Head:Clone()
- newHead.Parent = Player.Character[newString]
- CreateObject "Weld" {
- Part0 = newHead,
- Part1 = Player.Character.Head,
- Parent = Player.Character[newString]
- }
- Player.Character.Head.Transparency = 1
- end)
- end)
- AddCommand({"unname", "unnamechar"}, "Restores a player's character's name.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- for _,v in pairs(Player.Character:GetChildren()) do
- if v:IsA("Model") and v:findFirstChild("NameTag") then
- v:Destroy()
- Player.Character.Head.Transparency = 0
- end
- end
- end)
- end)
- AddCommand({"jump"}, "Makes a player jump.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Humanoid") then
- Player.Character.Humanoid.Jump = true
- end
- end)
- end)
- AddCommand({"sit"}, "Makes a player sit.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Humanoid") then
- Player.Character.Humanoid.Sit = true
- end
- end)
- end)
- AddCommand({"clone", "clonechar"}, "Clones a player's character.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Player.Character.Archivable = true
- local newChar = Player.Character:Clone()
- newChar.Parent = game.Workspace
- newChar:MoveTo(Player.Character.Torso.Position)
- Player.Character.Archivable = false
- end)
- end)
- AddCommand({"fog", "setfog"}, "Changes the fog colour and end distance.", 1, function(Args, Speaker)
- local r, g, b, fend = Args[1], Args[2], Args[3], Args[4]
- if not Args[1] or not Args[2] or not Args[3] then
- r = 100
- g = 100
- b = 100
- end
- if Args[4] then
- game.Lighting.FogEnd = fend
- end
- game.Lighting.FogColor = Color3.new(r, g, b)
- end)
- AddCommand({"part", "newpart", "addpart", "createpart"}, "Creates a part at the speaker's head's position.", 2, function(Args, Speaker)
- local x, y, z = Args[1], Args[2], Args[3]
- if not Args[1] or not Args[2] or not Args[3] then
- x = 2
- y = 1
- z = 4
- end
- CreateObject "Part" {
- Name = math.random(1, 1000),
- Parent = game.Workspace,
- Size = Vector3.new(x, y, z),
- Position = Speaker.Character.Head.Position + Vector3.new(0, 2, 0),
- Anchored = true
- }
- end)
- AddCommand({"fling"}, "Flings a player's character.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("Torso") and Player.Character:findFirstChild("Humanoid") then
- local xran, zran
- repeat
- xran = math.random(-9999,9999)
- until
- math.abs(xran) >= 5555
- repeat
- zran = math.random(-9999,9999)
- until
- math.abs(zran) >= 5555
- Player.Character.Humanoid.Sit = true
- Player.Character.Torso.Velocity = Vector3.new(0,0,0)
- CreateObject "BodyForce" {
- Parent = Player.Character.Torso,
- Name = "FlingForce",
- Force = Vector3.new(xran * 4, 9999 * 5, zran * 4)
- }
- wait(0.1)
- Player.Character.Torso.FlingForce:Destroy()
- end
- end)
- end)
- AddCommand({"setkeybind", "setkb"}, "Creates a keybind.", 5, function(Args, Speaker)
- local String = table.concat(Args, " ")
- local newString = string.gsub(String, Args[1] .. " ", "")
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == Args[1] then
- table.remove(KeyBinds, i)
- end
- end
- table.insert(KeyBinds, #KeyBinds + 1, {Args[1], newString})
- end)
- AddCommand({"remkeybind", "remkb"}, "Removes a keybind.", 5, function(Args, Speaker)
- for i,v in pairs(KeyBinds) do
- if KeyBinds[i][1] == Args[1] then
- table.remove(KeyBinds, i)
- end
- end
- end)
- AddCommand({"setwp", "setwaypoint"}, "Creates a waypoint at the speaker's position.", 3, function(Args, Speaker)
- local WPName = Args[1]
- if not Args[1] then
- return
- end
- for i,v in pairs(WayPoints) do
- if v.NAME == WPName then
- table.remove(WayPoints, i)
- end
- end
- if Speaker.Character:findFirstChild("Torso") then
- local Torso = Speaker.Character.Torso
- table.insert(WayPoints, #WayPoints + 1, {["NAME"] = WPName, ["COORD"] = {math.floor(Torso.Position.X), math.floor(Torso.Position.Y), math.floor(Torso.Position.Z)}})
- end
- end)
- AddCommand({"remwp", "removewaypoint"}, "Removes a waypoint.", 3, function(Args, Speaker)
- for i,v in pairs(WayPoints) do
- if WayPoints[i].Name == Args[1] then
- table.remove(WayPoints, i)
- end
- end
- end)
- AddCommand({"tpwp"}, "Teleports a player to a waypoint.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if Player.Character:findFirstChild("HumanoidRootPart") then
- for i,v in pairs(WayPoints) do
- if WayPoints[i].NAME == tostring(Args[2]) then
- Player.Character.HumanoidRootPart.CFrame = CFrame.new(WayPoints[i].COORD[1], WayPoints[i].COORD[2], WayPoints[i].COORD[3])
- end
- end
- end
- end)
- end)
- AddCommand({"chat"}, "Shows a chat bubble above a player's head", 3, function(Args, Speaker)
- local String = table.concat(Args, " ")
- local newString = string.gsub(String, Args[1] .. " ", "")
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- Services.Chat:Chat(Player.Character.Head, newString, Enum.ChatColor.Green)
- end)
- end)
- AddCommand({"fly"}, "Enables LocalPlayer fly.", 5, function(Args, Speaker)
- game.Players.LocalPlayer.Character:WaitForChild("Torso")
- local Torso = game.Players.LocalPlayer.Character.Torso
- Settings.Flying = true
- local speed = 0
- local keys = {
- a = false,
- d = false,
- w = false,
- s = false
- }
- local function start()
- CreateObject "BodyPosition" {
- Parent = Torso,
- Name = "FLYPOSITION",
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = Torso.Position
- }
- CreateObject "BodyGyro" {
- Parent = Torso,
- Name = "FLYGYRO",
- maxTorque = Vector3.new(9e9, 9e9, 9e9),
- cframe = Torso.CFrame
- }
- local bPosition = Torso:findFirstChild("FLYPOSITION")
- local bGyro = Torso:findFirstChild("FLYGYRO")
- repeat
- wait()
- game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
- local new = bGyro.cframe - bGyro.cframe.p + bPosition.position
- if not keys.w and not keys.s and not keys.a and not keys.d then
- speed = 1
- end
- if keys.w then
- new = new + game.Workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed = speed + 0.01
- end
- if keys.s then
- new = new - game.Workspace.CurrentCamera.CoordinateFrame.lookVector * speed
- speed = speed + 0.01
- end
- if keys.d then
- new = new * CFrame.new(speed, 0 ,0)
- speed = speed + 0.01
- end
- if keys.a then
- new = new * CFrame.new(-speed, 0, 0)
- speed = speed + 0.01
- end
- if speed > 5 then
- speed = 5
- end
- bPosition.position = new.p
- if keys.w then
- bGyro.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad(speed * 15), 0, 0)
- elseif keys.s then
- bGyro.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(math.rad(speed * 15), 0, 0)
- else
- bGyro.cframe = game.Workspace.CurrentCamera.CoordinateFrame
- end
- until
- Settings.Flying == false
- if bGyro then
- bGyro:Destroy()
- end
- if bPosition then
- bPosition:Destroy()
- end
- Settings.Flying = false
- game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
- speed = 0
- end
- Settings.FlyEvent1 = Mouse.KeyDown:connect(function(key)
- if not Torso or not Torso.Parent then
- Settings.Flying = false
- Settings.FlyEvent1:disconnect()
- Settings.FlyEvent2:disconnect()
- return
- end
- if key == "w" then
- keys.w = true
- elseif key == "s" then
- keys.s = true
- elseif key == "a" then
- keys.a = true
- elseif key == "d" then
- keys.d = true
- elseif key == "e" then
- if Settings.Flying == true then
- Settings.Flying = false
- else
- Settings.Flying = true
- start()
- end
- end
- end)
- Settings.FlyEvent2 = Mouse.KeyUp:connect(function(key)
- if key == "w" then
- keys.w = false
- elseif key == "s" then
- keys.s = false
- elseif key == "a" then
- keys.a = false
- elseif key == "d" then
- keys.d = false
- end
- end)
- start()
- end)
- AddCommand({"unfly"}, "Disables LocalPlayer fly.", 5, function(Args, Speaker)
- if Settings.Flying then
- game.Players.LocalPlayer.Character:findFirstChild("FLYPOSITION"):Destroy()
- game.Players.LocalPlayer.Character:findFirstChild("FLYGYRO"):Destroy()
- Settings.Flying = false
- Settings.FlyEvent1:disconnect()
- Settings.FlyEvent2:disconnect()
- end
- end)
- AddCommand({"noclip"}, "Noclips the LocalPlayer", 5, function(Args, Speaker)
- if not Settings.NoClipped then
- Settings.NoClipped = true
- spawn(function()
- while wait() and Settings.NoClipped == true do
- Speaker.Character.Humanoid:ChangeState("StrafingNoPhysics")
- end
- end)
- end
- end)
- AddCommand({"clip"}, "Clips the LocalPlayer", 5, function(Args, Speaker)
- if Settings.NoClipped then
- Settings.NoClipped = false
- end
- end)
- AddCommand({"esp"}, "Shows a billboard gui over a player's head showing health and distance.", 5, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not ESP[Player.Name] then
- table.insert(ESP, #ESP + 1, Player.Name == true)
- else
- ESP[Player.Name] = true
- end
- if StorageLocation:findFirstChild(Player.Name .. "_ESP") then
- StorageLocation[Player.Name .. "_ESP"]:Destroy()
- end
- local nESP = StorageFolder.GuiObjects.ESPGUI:Clone()
- nESP.Parent = StorageLocation
- nESP.Name = Player.Name .. "_ESP"
- nESP.Enabled = true
- nESP.Adornee = Player.Character.Head
- nESP.Label.TextColor3 = Player.Character.TeamColor.Color
- spawn(function()
- local Position, Health, MaxHealth
- Player.CharacterAdded:connect(function()
- nESP.Adornee = game.Workspace
- game.Workspace:WaitForChild(Player.Name)
- nESP.Adornee = Player.Character.Head
- Position = math.floor(Player:DistanceFromCharacter(game.Players.LocalPlayer.Character.Torso.Position))
- Health = math.floor(Player.Character.Humanoid.Health)
- MaxHealth = math.floor(Player.Character.Humanoid.MaxHealth)
- end)
- Player.Changed:connect(function(Property)
- if Property == "TeamColor" then
- nESP.Label.TextColor3 = Player.Character.TeamColor.Color
- end
- end)
- while wait() and ESP[Player.Name] == true do
- Position = math.floor(Player:DistanceFromCharacter(game.Players.LocalPlayer.Character.Torso.Position))
- Health = math.floor(Player.Character.Humanoid.Health)
- MaxHealth = math.floor(Player.Character.Humanoid.MaxHealth)
- nESP.Label.Text = Player.Name .. " || [" .. tostring(Position) .. "] || Health: " .. tostring(Health) .. "/" .. tostring(MaxHealth)
- end
- end)
- end)
- end)
- AddCommand({"unesp", "noesp", "remesp"}, "[WIP] Removes a player's ESP billboard.", 5, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- if not ESP[Player.Name] then
- table.insert(ESP, #ESP + 1, Player.Name == false)
- else
- ESP[Player.Name] = false
- end
- end)
- end)
- AddCommand({"serverlock", "slock"}, "Locks the server and prevents people from joining it.", 3, function(Args, Speaker)
- if Settings.ServerLocked == false then
- for _,v in pairs(game.Players:GetChildren()) do
- table.insert(Allowed, #Allowed +1, v.Name)
- end
- Settings.ServerLocked = true
- end
- end)
- AddCommand({"serverunlock", "sunlock"}, "Unlocks the server and allows people to join it again.", 3, function(Args, Speaker)
- if Settings.ServerLocked == true then
- for i,v in pairs(Allowed) do
- table.remove(Allowed, i)
- end
- Settings.ServerLocked = false
- end
- end)
- AddCommand({"unlock", "unlockplr"}, "Unlocks a player's body parts.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local function UnLock(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = false
- end
- UnLock(v)
- end
- end
- UnLock(Player.Character)
- end)
- end)
- AddCommand({"lock", "lockplr"}, "Locks a player's body parts.", 1, function(Args, Speaker)
- local Players = GetPlayers(Args[1])
- ForEach(Players, function(Player)
- local function Lock(Instance)
- for _,v in pairs(Instance:GetChildren()) do
- if v:IsA("BasePart") then
- v.Locked = true
- end
- Lock(v)
- end
- end
- Lock(Player.Character)
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement