Guest User

lole

a guest
Jun 29th, 2016
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.53 KB | None | 0 0
  1. --[[
  2. password is a36, get cracked nigglet
  3. Created by iLordVex (aka asd) a gigantic cunty faggot
  4. Please do not leak this, sell this, or give this away.
  5. If you somehow got the source, delete it please.
  6. --]]
  7.  
  8. --PlayerGui.CameraZoom.Limiter
  9.  
  10. --[[
  11. ZeroNums = {"a", "B", "i", "P", "Y", "S"}
  12. ActualNums = {"A", "C", "d", "g", "L", "p", "s", "T", "Z"}
  13. function FindMultipiler(Letter)
  14. for z = 1, #ActualNums do
  15. if ActualNums[z] == Letter then
  16. return z
  17. end
  18. end
  19. return "0"
  20. end
  21. function Obfuscate(Number)
  22. local newval = ""
  23. Number = tostring(Number)
  24. for _ = 1, 10 - string.len(Number) do
  25. newval = ZeroNums[math.random(1, 6)] .. newval
  26. end
  27. for d = 1, string.len(Number) do
  28. local num = tonumber(string.sub(Number, d, d))
  29. if num > 0 then
  30. newval = newval .. ActualNums[num]
  31. else
  32. newval = newval .. ZeroNums[math.random(1, 6)]
  33. end
  34. end
  35. return newval
  36. end
  37. function Deobfuscate(String)
  38. local newval = ""
  39. for d = 1, 10 do
  40. local mult = FindMultipiler(string.sub(String, d, d))
  41. newval = newval .. mult
  42. end
  43. newval = tonumber(newval)
  44. return newval
  45. end
  46.  
  47.  
  48. function InfectClips(objectID)
  49. for _, slot in pairs(Player.playerstats.slots:GetChildren()) do
  50. if GetChild(slot, "ObjectID") and Deobfuscate(slot.ObjectID.Value) == Deobfuscate(objectID) then
  51. spawn(function()
  52. local maxClip = slot.ObjectID.Clip.MaxClip.Value
  53. local function SetValue()
  54. ChangeProperty(slot.ObjectID.Clip, "Value", Obfuscate(maxClip))
  55. ChangeProperty(slot.ObjectID.Clip.MaxClip, "Value", maxClip)
  56. end
  57. SetValue()
  58. slot.ObjectID.Clip.Changed:connect(function(property)
  59. if property == "Value" then
  60. SetValue()
  61. end
  62. end)
  63. end)
  64. end
  65. end
  66. end
  67. InfectClips(Lighting.LootDrops.M14Ammo50.ObjectID.Value)
  68.  
  69. function PlayerHasLoot(player, name)
  70. local objectID = Lighting.LootDrops[name].ObjectID.Value
  71. for _, slot in pairs(player.playerstats.slots:GetChildren()) do
  72. if GetChild(slot, "ObjectID") and Deobfuscate(slot.ObjectID.Value) == Deobfuscate(objectID) then
  73. print(player)
  74. break
  75. end
  76. end
  77. end
  78.  
  79. function ViewPlayerInventory(player)
  80. print'------'
  81. local slots = {}
  82. for _, slot in pairs(player.playerstats.slots:GetChildren()) do
  83. if GetChild(slot, "ObjectID") then
  84. slots[slot.ObjectID.Value] = true
  85. end
  86. end
  87. for _, child in pairs(Lighting.LootDrops:GetChildren()) do
  88. if GetChild(child, "ObjectID") then
  89. if slots[child.ObjectID.Value] then
  90. print(child.Name)
  91. end
  92. end
  93. end
  94. print'------'
  95. end
  96.  
  97.  
  98. for _,v in pairs(Players:players()) do PlayerHasLoot(v, "STANAGAmmo100") end
  99.  
  100. InfectClips(Deobfuscate(Lighting.LootDrops.MakarovAmmo.ObjectID.Value))
  101.  
  102. local Weapon = "Makarov"
  103. local Gun = Player.Backpack[Weapon]
  104. local Magazine = Gun.Magazine
  105. ChangeProperty(Gun.Magazine.Value.Parent.MaxClip, "Value", 200)
  106. ChangeProperty(Gun.Magazine.Value.Parent, "Value", Obfuscate(200))
  107.  
  108.  
  109. local Weapon = "Makarov"
  110. --print(tostring(Player.Backpack[Weapon].Magazine.Value.Parent))
  111. Player.Backpack[Weapon].Stats.Action.Rate.Value = Obfuscate(0)
  112. Player.Backpack[Weapon].Stats.Accuracy.Value = Obfuscate(0)
  113. Player.Backpack[Weapon].Stats.Reload.Value = 0
  114. Player.Backpack[Weapon].Stats.Accuracy.Zoomed.Value = Obfuscate(0)
  115. Player.Backpack[Weapon].Stats.Recoil.Value = Obfuscate(0)
  116. --]]
  117.  
  118. --[[
  119. do
  120. local function ChangeProperty(...) return Workspace.Remote.ChangeProperty:FireServer(...) end
  121. function PlaySound(id)
  122. local sounds = {Workspace.Remote.CreateSounds:InvokeServer()}
  123. local sound = sounds[1]
  124. for index, sound in pairs(sounds) do
  125. if index ~= 1 then
  126. Workspace.Remote.Destruct:FireServer(sound)
  127. end
  128. end
  129. local previous_data = {
  130. Name = sound.Name,
  131. Parent = sound.Parent,
  132. Volume = sound.Volume,
  133. PlayOnRemove = sound.PlayOnRemove,
  134. Pitch = sound.Pitch,
  135. SoundId = sound.SoundId
  136. }
  137. ChangeProperty(sound, "Parent", Workspace)
  138. ChangeProperty(sound, "Name", "\0a3mf")
  139. ChangeProperty(sound, "PlayOnRemove", true)
  140. ChangeProperty(sound, "Volume", 1)
  141. ChangeProperty(sound, "Pitch", 1)
  142. ChangeProperty(sound, "SoundId", "rbxassetid://" .. id)
  143. wait(1)
  144. ChangeProperty(sound, "Parent", nil)
  145. wait(1)
  146. for property, value in pairs(previous_data) do
  147. ChangeProperty(sound, property, value)
  148. end
  149. end
  150. PlaySound(304676625)
  151. end
  152. --]]
  153.  
  154. pcall(wait)
  155.  
  156. pcall(function()
  157. script:ClearAllChildren()
  158. script.Parent = nil
  159. script:Destroy()
  160. script = nil
  161. end)
  162.  
  163. local Game = Game
  164. local Workspace = Game:GetService("Workspace")
  165. local Players = Game:GetService("Players")
  166. local Lighting = Game:GetService("Lighting")
  167. local Debris = Game:GetService("Debris")
  168. local RunService = Game:GetService("RunService")
  169. local Player = Players["LocalPlayer"]
  170. local Mouse = Player:GetMouse()
  171. local GetChild = Game.FindFirstChild
  172. local WaitForChild = Game.WaitForChild
  173. local CoreGui
  174. do
  175. local success, result = pcall(function() return Game:GetService("CoreGui") end)
  176. if success then
  177. local test
  178. if pcall(function() test = Instance.new("ScreenGui", Game:GetService("CoreGui")) end) then
  179. test:Destroy()
  180. else
  181. success = false
  182. end
  183. end
  184. if success then
  185. CoreGui = result
  186. else
  187. CoreGui = Player:WaitForChild("PlayerGui")
  188. Player.CharacterAdded:connect(function()
  189. CoreGui = Player:WaitForChild("PlayerGui")
  190. end)
  191. end
  192. end
  193.  
  194. local Spawn
  195.  
  196. local Settings = {
  197. GuiName = "l33thax",
  198. RemotesHolder = Lighting.Remote,
  199. Version = 0.69,
  200. SelectedVehicle = nil,
  201. LootDrops = GetChild(Lighting, "LootDrops"),
  202. ESP = false,
  203. Noclip = false,
  204. UpdateInformation = [[introducing:
  205. - god vehicle
  206. - change days/zombie kills
  207. - fogend on/off
  208. - attempted to fix spawning problem
  209.  
  210. upcoming: more stuff]],
  211. SpawningType = 0, -- 0 is client, 1 is server
  212. Game = (GetChild(Workspace, "mapname") or {Value = "UNKNOWN"}).Value,
  213. AimBot = false,
  214. GoddedVehicleConnections = {},
  215. InitialKeyword = "toolweld_",
  216. StartupFogEnd = Lighting.FogEnd,
  217. AdministratorMessage = "._asd",
  218. LoadoutPacks = {
  219. ["Mercenary (MK 17)"] = {
  220. "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "Mk 17",
  221. "Suppressor762", "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50","M14Ammo50", "M14Ammo50",
  222. "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "C4", "BloodBag",
  223. "BloodBag", "BloodBag", "BloodBag", "MRE", "MRE", "WaterBottle", "WaterBottle"
  224. },
  225. ["Overwatch (M14)"] = {
  226. "Map", "Entrencher", "Sabre", "GPS", "Compass","OmniLight", "MilitaryPackBlack", "M14", "Suppressor762",
  227. "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50",
  228. "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "BloodBag", "BloodBag", "BloodBag", "BloodBag", "MRE",
  229. "MRE", "WaterBottle", "WaterBottle", "VS50", "VS50"
  230. },
  231. ["Breacher (M4A1)"] = {
  232. "Map", "Entrencher", "Sabre", "GPS", "Compass", "OmniLight", "MilitaryPackBlack", "M4A1", "Suppressor556",
  233. "ACOG", "Grip", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100",
  234. "STANAGAmmo100", "STANAGAmmo100", "STANAGAmmo100", "BloodBag", "BloodBag", "BloodBag", "BloodBag",
  235. "Painkillers", "Painkillers", "Painkillers", "Painkillers", "MRE", "MRE", "WaterBottle", "WaterBottle"
  236. },
  237. ["Mercenary (FAL)"] = {
  238. "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "FAL",
  239. "Suppressor762", "ACOG", "Grip", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50",
  240. "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "M14Ammo50", "C4", "BloodBag", "BloodBag",
  241. "BloodBag", "BloodBag", "MRE", "MRE", "WaterBottle", "WaterBottle"
  242. },
  243. ["Terrorist"] = {
  244. "Map", "Entrencher", "Sabre", "GPS", "Compass", "Detonator", "OmniLight", "MilitaryPackBlack", "AK-47",
  245. "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75", "AK47Ammo75",
  246. "AK47Ammo75", "AK47Ammo75", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4", "C4",
  247. },
  248. },
  249. ItemCodes = {
  250. ["AK-104"] = 1037, ["WindscreenGlass"] = 184, ["WaterBottle"] = 209, ["Watch"] = 3001, ["VehicleJack"] = 3016,
  251. ["Vegetables"] = 214, ["VS50"] = 256, ["Uzi"] = 2015, ["Ushanka"] = 7014, ["USP45Ammo"] = 26, ["USP45"] = 2007,
  252. ["Twinkies"] = 212, ["Tuna"] = 4, ["TrinityBeret"] = 7015, ["TomatoSoup"] = 215, ["TM46"] = 257,
  253. ["TEC9Ammo32"] = 57, ["TEC9Ammo20"] = 56, ["TEC9Ammo"] = 20, ["TEC-9"] = 2005, ["SurvivalPackTan"] = 4009,
  254. ["SurvivalPackGrey"] = 4010, ["SurvivalPackGreen"] = 4011, ["SurvivalPackBrown"] = 4012, ["Suppressor9"] = 9007,
  255. ["Suppressor762"] = 9010, ["Suppressor556"] = 9009, ["Suppressor545"] = 9011, ["Suppressor45"] = 9008,
  256. ["Spam"] = 6, ["SodaSprite"] = 205, ["SodaRoot"] = 207, ["SodaPepsi"] = 7, ["SodaPepper"] = 9,
  257. ["SodaMoxie"] = 208, ["SodaDew"] = 202, ["SodaCrush"] = 201, ["SodaCoke"] = 8, ["ShotgunAmmo"] = 18,
  258. ["Shotgun"] = 1002, ["ShadesGrey"] = 8005, ["ShadesBlack"] = 8001, ["ScrapMetal"] = 183, ["Sabre"] = 3014,
  259. ["SUSAT"] = 9014, ["STANAGAmmo50"] = 52, ["STANAGAmmo30"] = 51, ["STANAGAmmo100"] = 53, ["SKSAmmo"] = 45,
  260. ["SKS"] = 1018, ["SCAR-L"] = 1022, ["RoadFlare"] = 251, ["RevolverAmmo"] = 25, ["Revolver"] = 2006,
  261. ["ReinforcedWheel"] = 189, ["Reflex"] = 9003, ["RedChemlight"] = 3020, ["RedBeret"] = 7013, ["RawMeat"] = 220,
  262. ["Ranger"] = 7003, ["RamboClothingTop"] = 5003, ["RamboClothingBottom"] = 6003, ["Radio"] = 3018,
  263. ["RPK"] = 1034, ["Pringles"] = 204, ["PilotGreen"] = 7010, ["PilotBlack"] = 7009, ["Pasta"] = 5,
  264. ["Painkillers"] = 12, ["PaddedClothingTop"] = 5002, ["PaddedClothingBottom"] = 6002, ["PPSHAmmo"] = 46,
  265. ["PPSH"] = 1019, ["PP19Ammo64"] = 58, ["SmallCrate"] = 38, ["OmniLight"] = 3015, ["OTs-14"] = 1036,
  266. ["NagantAmmo"] = 17, ["Mosin-Nagant"] = 1001, ["Model459Ammo14"] = 59, ["Model 459"] = 2013, ["Mk48Ammo"] = 23,
  267. ["Mk 48"] = 1005, ["Mk 23"] = 2018, ["Mk 17"] = 1031, ["MilitaryPackGrime"] = 4013, ["MilitaryPackGrey"] = 4015,
  268. ["MilitaryPackGreen"] = 4014, ["MilitaryPackBlack"] = 4016, ["MaverickAmmo"] = 27, ["Maverick"] = 1010,
  269. ["Material6"] = 36, ["Material5"] = 35, ["Material4"] = 34, ["Material3"] = 33, ["Material2"] = 32,
  270. ["Material1"] = 31, ["Matches"] = 3005, ["MaskSpecOps"] = 8009, ["MaskPhantom"] = 8013, ["MaskMime"] = 8008,
  271. ["MaskMercenary"] = 8007, ["MaskHockey"] = 8012, ["Map"] = 3003, ["MakarovAmmo"] = 16, ["Makarov"] = 2003,
  272. ["MRE"] = 10, ["MP5Ammo"] = 29, ["MP5"] = 1012, ["M9Ammo32"] = 55, ["M9Ammo17"] = 54, ["M9Ammo"] = 19,
  273. ["M93R"] = 2016, ["M9"] = 2004, ["M870Ammo"] = 28, ["M870"] = 1011, ["M4A1"] = 1004, -- ["M4A1Ammo"] = 22,
  274. ["M3Ammo30"] = 60, ["M3"] = 1028, ["M249Ammo100"] = 61, ["M249"] = 1024, ["M1911Ammo"] = 15, ["M1911"] = 2002,
  275. ["M14"] = 1016, ["M1014"] = 1027, ["M14Ammo50"] = 64, ["M14Ammo30"] = 63, ["M14Ammo20"] = 62,
  276. ["M1 Garand"] = 1006, ["Lemonade"] = 206, ["Laser"] = 9006, ["Kobra"] = 9004, ["Knife"] = 3013,
  277. ["KethArmorTop"] = 5011, ["KethArmorBottom"] = 6011, ["JerryCanEmpty"] = 186, ["JerryCan"] = 185,
  278. ["HornRimmed"] = 8006, ["Holo"] = 9002, ["HikingPackWhite"] = 4006, ["HikingPackOrange"] = 4005,
  279. ["HikingPackBrown"] = 4008, ["HikingPackBlue"] = 4007, ["Hatchet"] = 3011, ["HK417"] = 1033, ["HK21"] = 1032,
  280. ["GusArmorTop"] = 5010, ["GusArmorBottom"] = 6010, ["Grip"] = 9005, ["GreenChemlight"] = 3021,
  281. ["GarandAmmo"] = 24, ["GPS"] = 3006, ["G37"] = 2017, ["G36K"] = 1023, ["G3"] = 1030, -- ["G18Ammo"] = 41,
  282. ["G18"] = 2011, ["FuelTank"] = 182, ["Floodlight"] = 37, ["FlashlightSurvival"] = 3009,
  283. ["FlashlightOld"] = 3008, ["FlashlightMilitary"] = 3010, ["FlashlightAttachment"] = 9012, ["Firewood"] = 250,
  284. ["Firefighter"] = 8004, ["FedorovAmmo"] = 44, ["Fedorov"] = 1017, ["Fedora"] = 7004, ["FannyPackWhite"] = 4002,
  285. ["FannyPackTan"] = 4001, ["FannyPackPurple"] = 4004, ["FannyPackBlue"] = 4003, ["FAL"] = 1029,
  286. ["Eyepatch"] = 8003, ["Entrencher"] = 3004, ["EngineParts"] = 181, ["EnfieldAmmo"] = 42, ["Enfield"] = 1015,
  287. ["Detonator"] = 3017, ["Crowbar"] = 3012, ["CowlGreen"] = 7002, ["CowlBlack"] = 7001, ["Cowboy"] = 7012,
  288. ["CookedMeat"] = 221, ["Compass"] = 3002, ["ClothingTopFalse"] = 5000, ["ClothingBottomFalse"] = 6000,
  289. ["CivilianClothingTop"] = 5001, ["CivilianClothingBottom"] = 6001, ["ChocolateBar"] = 211, ["ChipsAhoy"] = 213,
  290. ["ChickenSoup"] = 216, ["CheezIts"] = 203, ["CarWheel"] = 180, ["CamoWoodlandsTop"] = 5007,
  291. ["CamoWoodlandsBottom"] = 6007, ["CamoUrbanTop"] = 5005, ["CamoUrbanBottom"] = 6005, ["CamoSpecialTop"] = 5009,
  292. ["CamoSpecialBottom"] = 6009, ["CamoSnowTop"] = 5008, ["CamoSnowBottom"] = 6008, ["CamoJungleTop"] = 5006,
  293. ["CamoJungleBottom"] = 6006, ["CamoDesertTop"] = 5004, ["CamoDesertBottom"] = 6004, ["CZ75Ammo"] = 40,
  294. ["CZ75"] = 2010, ["CCO"] = 9001, ["CBJ-MS"] = 2014, ["C4"] = 255, ["BrimmedBrown"] = 7007,
  295. ["BrimmedBlack"] = 7008, ["Bowler"] = 7005, ["BlueChemlight"] = 3022, ["BloodBag"] = 11, ["Binoculars"] = 3007,
  296. ["Biker"] = 7006, ["BeefStew"] = 217, ["BeefJerky"] = 210, ["Beans"] = 3, ["Beanie"] = 7011,
  297. ["BandanaSkull"] = 8014, ["BandanaRenegade"] = 8011, ["BandanaRed"] = 8010, ["BandanaBlack"] = 8002,
  298. ["BallisticUrban"] = 7018, ["BallisticSpecOps"] = 7019, ["BallisticJungle"] = 7017, ["BallisticGlass"] = 187,
  299. ["BallisticDesert"] = 7016, ["Auto-5"] = 1025, ["ArmorPlates"] = 188, ["AN-94"] = 1040, ["AKS-74U"] = 1041,
  300. ["AKM"] = 1038, ["AKAmmo75"] = 67, ["AKAmmo45"] = 66, ["AKAmmo30"] = 65, ["AK47Ammo75"] = 50,
  301. ["AK47Ammo40"] = 49, ["AK47Ammo30"] = 48, ["AK-74"] = 1039, ["AK-47"] = 1003, ["AK-12"] = 1035,
  302. ["ACOG"] = 9013, ["LargeCrate"] = 39, ["PP-19"] = 1026
  303. },
  304. Banished = {
  305. ["ThumperJumper2"] = true, -- Got my account banned
  306. ["JumperThumper1"] = true, -- Got my account banned [2]
  307. ["codejack123"] = true, -- Noclipper
  308. ["TheBootyHunter69"] = true, -- Noclipper
  309. ["IceGoalieBoy56"] = true, -- Noclipper
  310. ["WhatsGreen"] = true, -- Exploiter
  311. ["OGMARSKUSH"] = true, -- Exploiter
  312. ["robloxcops07"] = true, -- Exploiter
  313. ["Dougi123"] = true, -- Exploiter
  314. ["TorchyBear"] = true, -- Noclipper
  315. ["MrGooldPro"] = true, -- Exploiter
  316. ["Subl1minal"] = true, -- Used my GUI to kill me... lol
  317. ["JewishJack"] = true, -- Requested to be banned by a friend
  318. ["FalRed"] = true -- Noclipper
  319. },
  320. RepairingUtilities = {
  321. ["Default"] = {
  322. {"JerryCan", 4},
  323. {"ArmorPlates", 1},
  324. {"ScrapMetal", 1},
  325. {"FuelTank", 1},
  326. {"ReinforcedWheel", 4},
  327. {"BallisticGlass", 1},
  328. {"EngineParts", 1}
  329. },
  330. ["Ural2"] = {
  331. {"JerryCan", 6},
  332. {"ArmorPlates", 1},
  333. {"ScrapMetal", 1},
  334. {"FuelTank", 1},
  335. {"ReinforcedWheel", 6},
  336. {"BallisticGlass", 1},
  337. {"EngineParts", 1}
  338. },
  339. ["ATV"] = {
  340. {"JerryCan", 1},
  341. {"ArmorPlates", 1},
  342. {"ScrapMetal", 1},
  343. {"FuelTank", 1},
  344. {"ReinforcedWheel", 4},
  345. {"BallisticGlass", 1},
  346. {"EngineParts", 1}
  347. },
  348. ["Bicycle"] = {
  349. {"ScrapMetal", 1}
  350. },
  351. ["Motorcycle"] = {
  352. {"JerryCan", 2},
  353. {"ArmorPlates", 1},
  354. {"ScrapMetal", 1},
  355. {"FuelTank", 1},
  356. {"ReinforcedWheel", 2},
  357. {"BallisticGlass", 1},
  358. {"EngineParts", 1}
  359. }
  360. }
  361. }
  362.  
  363. Settings.RepairingUtilities.Ural = Settings.RepairingUtilities.Ural2
  364.  
  365. function CreateInstance(instance, parent)
  366. return function(properties)
  367. local instance, connections = type(instance) == "string" and Instance.new(instance) or instance, {}
  368. if parent then
  369. local success, result = pcall(function()
  370. instance.Parent = parent
  371. end)
  372. if not success then
  373. print("CreateInstance() function error: " .. result, "(using: " .. tostring(instance) .. ", with parent: " .. tostring(parent) .. ")")
  374. end
  375. end
  376. if properties and type(properties) == "table" then
  377. for index, property in pairs(properties) do
  378. if type(index) == "number" then
  379. property.Parent = instance
  380. elseif type(property) == "function" then
  381. table.insert(connections, instance[index]:connect(property))
  382. else
  383. instance[index] = property
  384. end
  385. end
  386. end
  387. return instance, connections
  388. end
  389. end
  390.  
  391. function Thread(f, ...)
  392. local success, result = coroutine.resume(coroutine.create(function(...) f(...) end), ...)
  393. if not success then
  394. Inform("Script execution error! (report this to asd): %s", tostring(result))
  395. end
  396. return result
  397. end
  398.  
  399. function GetVehicles()
  400. return WaitForChild(Workspace, "Vehicles"):GetChildren()
  401. end
  402.  
  403. function FindFirstClass(object, class)
  404. local result
  405. for _, child in pairs(object:GetChildren()) do
  406. if child.ClassName == class or child:IsA(class) then
  407. result = child
  408. break
  409. end
  410. end
  411. return result
  412. end
  413.  
  414. function CreateSignal()
  415. local this = {}
  416.  
  417. local mBindableEvent = Instance.new('BindableEvent')
  418. local mAllCns = {} --all connection objects returned by mBindableEvent::connect
  419.  
  420. --main functions
  421. function this:connect(func)
  422. if self ~= this then error("connect must be called with `:`, not `.`", 2) end
  423. if type(func) ~= 'function' then
  424. error("Argument #1 of connect must be a function, got a "..type(func), 2)
  425. end
  426. local cn = mBindableEvent.Event:connect(func)
  427. mAllCns[cn] = true
  428. local pubCn = {}
  429. function pubCn:disconnect()
  430. cn:disconnect()
  431. mAllCns[cn] = nil
  432. end
  433. return pubCn
  434. end
  435. function this:disconnect()
  436. if self ~= this then error("disconnect must be called with `:`, not `.`", 2) end
  437. for cn, _ in pairs(mAllCns) do
  438. cn:disconnect()
  439. mAllCns[cn] = nil
  440. end
  441. end
  442. function this:wait()
  443. if self ~= this then error("wait must be called with `:`, not `.`", 2) end
  444. return mBindableEvent.Event:wait()
  445. end
  446. function this:fire(...)
  447. if self ~= this then error("fire must be called with `:`, not `.`", 2) end
  448. mBindableEvent:Fire(...)
  449. end
  450.  
  451. return this
  452. end
  453.  
  454. function CreateValue(parent, value)
  455. CreateValue("ObjectID", parent, value)
  456. end
  457.  
  458. function DropItem(slot)
  459. DropItem(slot, slot.ObjectID)
  460. end
  461.  
  462. function GetNextOpenSlot()
  463. local next_slot = 1
  464. for _, child in pairs(Player.playerstats.slots:GetChildren()) do
  465. local slotID = tonumber(string.sub(child.Name, 5))
  466. if slotID and #child:GetChildren() > 0 and slotID > next_slot then
  467. next_slot = slotID
  468. end
  469. end
  470. return next_slot > 0 and next_slot + 1 or nil
  471. end
  472.  
  473. function GetRemote(remoteName) -- GetRemote("ChangeProperty")(item, index, value)
  474. if GetChild(Settings.RemotesHolder, remoteName) then
  475. local instance = Settings.RemotesHolder[remoteName]
  476. local classType = instance.className
  477. return function(...)
  478. return instance[classType == "RemoteEvent" and "FireServer" or "InvokeServer"](instance, ...)
  479. end
  480. end
  481. return nil
  482. end
  483.  
  484. for _, remote in pairs(Settings.RemotesHolder:GetChildren()) do
  485. getfenv(0)[remote.Name] = GetRemote(remote.Name)
  486. end
  487.  
  488. function GetSlot(id)
  489. return GetChild(Player.playerstats.slots, "slot" .. id)
  490. end
  491.  
  492. function GetBackpackSlot()
  493. return GetSlot(1).Parent.slotbackpack
  494. end
  495.  
  496. function LoadItem(slot, lootID)
  497. AddObject(slot, lootID)
  498. do
  499. local start_time = tick()
  500. local end_time = 3
  501. local suspend = false
  502. while GetChild(slot, "ObjectID") == nil or slot.Value ~= 1 do -- slot.Value ~= 1 do
  503. if tick() - start_time >= end_time then
  504. suspend = true
  505. break
  506. end
  507. wait()
  508. end
  509. if suspend then
  510. print("exceeded max limit", slot, lootID)
  511. return
  512. end
  513. end
  514. DropSlotContents(slot)
  515. wait(0.5)
  516. end
  517.  
  518. function DropSlotContents(slot)
  519. DropItem(slot) -- Workspace.Remote.AddValue:FireServer(slot, 1)
  520. end
  521.  
  522. function Spawn(item_name, amount, spawningType)
  523. local objects = {}
  524. amount = amount or 1
  525. spawningType = spawningType or Settings.SpawningType
  526. if spawningType == 0 then
  527. for index = 1, amount do
  528. local object = GetChild(Settings.LootDrops, item_name)
  529. local new_object = object:Clone()
  530. new_object.Parent = Workspace
  531. new_object:MakeJoints()
  532. local formula = index / amount * math.pi * 2
  533. new_object:MoveTo(Player.Character:GetModelCFrame().p + Vector3.new(5 * math.sin(formula), 0, 5 * math.cos(formula)))
  534. table.insert(objects, new_object)
  535. end
  536. else
  537. local lootID, realName
  538. local catchedAmount = 0
  539. local connection
  540. connection = Workspace.DropLoot.ChildAdded:connect(function(object)
  541. if Player.Character and GetChild(Player.Character, "Torso") then
  542. wait(0.5)
  543. if object:IsA("Model") and object.Name == realName and (object:GetModelCFrame().p - Player.Character.Torso.Position).magnitude < 30 then
  544. if not GetChild(object, "ObjectID") then
  545. CreateValue(object, Lighting.LootDrops[realName].ObjectID.Value)
  546. end
  547. print("inserted", object, catchedAmount)
  548. catchedAmount = catchedAmount + 1
  549. table.insert(objects, object)
  550. if catchedAmount == amount then
  551. connection:disconnect()
  552. end
  553. end
  554. end
  555. end)
  556. Thread(function()
  557. wait(30)
  558. connection:disconnect()
  559. end)
  560. for lootName, loot_id in pairs(Settings.ItemCodes) do
  561. if string.find(string.lower(lootName), string.lower(item_name)) then
  562. realName = lootName
  563. lootID = loot_id
  564. break
  565. end
  566. end
  567. if not lootID then
  568. return Inform("Unable to find any loot matching that name...")
  569. end
  570. for _ = 1, amount or 1 do
  571. if lootID > 4000 and lootID < 4017 then -- Backpack detected
  572. print("detected backpack", item_name, lootID)
  573. local backpack_slot = GetBackpackSlot()
  574. if GetChild(backpack_slot, "ObjectID") ~= nil then
  575. DropSlotContents(backpack_slot)
  576. wait(1)
  577. end
  578. LoadItem(backpack_slot, lootID)
  579. else
  580. local slotID = GetNextOpenSlot()
  581. if slotID then
  582. local slot = GetSlot(slotID)
  583. if not slot then
  584. return Inform("Unable to spawn, try dropping some things from your inventory.")
  585. end
  586. LoadItem(slot, lootID)
  587. end
  588. end
  589. end
  590. end
  591. return objects
  592. end
  593.  
  594. function Inform(text, ...)
  595. local ScreenGui = GetChild(CoreGui, "lolnot") or CreateInstance("ScreenGui", CoreGui){Name = "lolnot"}
  596. local Notification = CreateBorder(CreateInstance("Frame"){
  597. Name = "Notification",
  598. BackgroundColor3 = Color3.new(1, 1, 1),
  599. BorderSizePixel = 0,
  600. Position = UDim2.new(1, 0, 1, -160),
  601. Size = UDim2.new(0, 250, 0, 150)
  602. })
  603. local Divider = CreateBorder(CreateInstance("Frame", Notification){
  604. Name = "Divider",
  605. BackgroundColor3 = Color3.new(1, 1, 1),
  606. BorderSizePixel = 0,
  607. Position = UDim2.new(0, 10, 0, 28),
  608. Size = UDim2.new(1, -20, 0, 8)
  609. })
  610. local Title = CreateInstance("TextLabel", Notification){
  611. Name = "Title",
  612. BackgroundTransparency = 1,
  613. Size = UDim2.new(1, 0, 0, 30),
  614. Font = "SourceSans",
  615. FontSize = "Size14",
  616. Text = "Eclipse Notification",
  617. TextColor3 = Color3.new()
  618. }
  619. local Body = CreateInstance("TextLabel", Notification){
  620. Name = "Body",
  621. BackgroundTransparency = 1,
  622. Position = UDim2.new(0, 10, 0, 40),
  623. Size = UDim2.new(1, -20, 0, 100),
  624. Font = "SourceSans",
  625. FontSize = "Size14",
  626. Text = string.format(text, ...),
  627. TextColor3 = Color3.new(),
  628. TextWrapped = true
  629. }
  630. local IndexInitial = CreateInstance("NumberValue", Notification){
  631. Name = "Index",
  632. Value = 1
  633. }
  634. for index, child in pairs(ScreenGui:GetChildren()) do
  635. if child.Index.Value > 5 then
  636. child:Destroy()
  637. else
  638. if not child:findFirstChild("Leaving") then
  639. child:TweenPosition(UDim2.new(1, -260, 1, -(160 + (child.Index.Value * 160))), "Out", "Sine", 0.6, true)
  640. child.Index.Value = child.Index.Value + 1
  641. end
  642. end
  643. end
  644. Notification.Parent = ScreenGui
  645. Notification:TweenPosition(UDim2.new(1, -260, 1, -160), "Out", "Sine", 0.6, true)
  646. Thread(function()
  647. wait(string.len(text) / 3)
  648. if Notification.Parent == ScreenGui then
  649. local initial = Instance.new("BoolValue", Notification)
  650. initial.Name = "Leaving"
  651. initial.Value = true
  652. Notification:TweenPosition(UDim2.new(1, 0, 1, Notification.Position.Y.Offset), "Out", "Sine", 0.6, true, function()
  653. Notification:Destroy()
  654. for index, child in pairs(ScreenGui:GetChildren()) do
  655. if child.Index.Value > 5 then
  656. child:Destroy()
  657. else
  658. if not child:findFirstChild("Leaving") then
  659. child:TweenPosition(UDim2.new(1, -260, 1, -(160 + ((child.Index.Value - 1) * 160))), "Out", "Sine", 0.6, true)
  660. end
  661. end
  662. end
  663. end)
  664. end
  665. end)
  666. end
  667.  
  668. function KillVehicleConnections(vehicle)
  669. if Settings.GoddedVehicleConnections[vehicle] then
  670. for instance, connection in pairs(Settings.GoddedVehicleConnections[vehicle]) do
  671. pcall(function() connection:disconnect() end)
  672. end
  673. Settings.GoddedVehicleConnections[vehicle] = nil
  674. end
  675. end
  676.  
  677. function PlayerSpawned(player)
  678. if player and player.Character then
  679. local backpack = player:findFirstChild("Backpack")
  680. if backpack then
  681. return backpack:findFirstChild("Interact") ~= nil, GetChild(player.Character, "Torso")
  682. end
  683. -- return GetChild(player.Character, "croucher_" .. player.Name) ~= nil, GetChild(player.Character, "Torso")
  684. --[[
  685. local torso = GetChild(player.Character, "Torso")
  686. if torso then
  687. return not(torso.CFrame.p.Y >= 130), torso
  688. end
  689. --]]
  690. end
  691. return false
  692. end
  693.  
  694. function GetPlayerGroup(player)
  695. player = GetPlayers(tostring(player))[1]
  696. if not player then
  697. return false, "No Player"
  698. end
  699. local groupID = player.Backpack.repgroup.Value
  700. return true, groupID
  701. end
  702.  
  703. function LogGroup(player, call_function)
  704. player = GetPlayers(tostring(player))[1]
  705. if not player then
  706. return false, "No Player"
  707. end
  708. local successful, groupID = GetPlayerGroup(player)
  709. if not successful then
  710. return Inform(groupID)
  711. end
  712. if groupID ~= "nogroup" then
  713. local holder = GetChild(Workspace.GroupMessages, tostring(groupID))
  714. if holder then
  715. holder.m1.Changed:connect(function()
  716. local user, message = string.match(holder.m1.Value, "(.+):%s*(.+)")
  717. call_function(GetPlayers(user)[1], message)
  718. end)
  719. return true, "Successful"
  720. else
  721. return false, "No Holder"
  722. end
  723. else
  724. return false, "No Group"
  725. end
  726. return false, "Unknown Error"
  727. end
  728.  
  729. function GetSpawnableItems(keyword)
  730. if keyword then
  731. for _, loot in pairs(Settings.LootDrops:GetChildren()) do
  732. if string.find(string.lower(loot.Name), string.lower(keyword)) then
  733. print(loot)
  734. end
  735. end
  736. else
  737. table.foreach(Settings.LootDrops:GetChildren(), print)
  738. end
  739. end
  740.  
  741. function GetCamera()
  742. return Workspace.CurrentCamera
  743. end
  744.  
  745. function BypassTeleportCheck(player)
  746. CreateValue("ObjectID", player.Character, 0)
  747. local initial = WaitForChild(player.Character, "ObjectID")
  748. ChangeProperty(initial, "Name", "driven")
  749. ChangeProperty(initial, "Value", 0)
  750. ChangeProperty(initial, "Parent", player.Character)
  751. return WaitForChild(player.Character, "driven")
  752. end
  753.  
  754. function Teleport(player1, player2)
  755. local spawnedData = {{PlayerSpawned(player1)}, {PlayerSpawned(player2)}}
  756. if spawnedData[1][1] and spawnedData[2][1] and spawnedData[1][2] and spawnedData[2][2] then
  757. Thread(function()
  758. local initial = BypassTeleportCheck(player1)
  759. wait()
  760. ChangeProperty(spawnedData[1][2], "CFrame", spawnedData[2][2].CFrame)
  761. wait(1.5)
  762. Destruct(initial)
  763. end)
  764. else
  765. Inform("Player(s) didn't spawn")
  766. end
  767. end
  768.  
  769. function GetVehicleDriverSeat(vehicle)
  770. if not vehicle then
  771. return nil
  772. end
  773. local seats_model = GetChild(vehicle, "Seats")
  774. if seats_model then
  775. return GetChild(seats_model, "Driver")
  776. end
  777. return nil
  778. end
  779.  
  780. function GetNearestPlayerToMouse()
  781. local player_data = {}
  782. local player_distances = {}
  783. for index, player in pairs(GetPlayers("others")) do
  784. local head = player.Character and GetChild(player.Character, "Head") or nil
  785. if head then
  786. local distance = (head.Position - GetCamera().CoordinateFrame.p).magnitude
  787. local _, position = Workspace:FindPartOnRay(Ray.new(GetCamera().CoordinateFrame.p, (Mouse.Hit.p - GetCamera().CoordinateFrame.p).unit * distance), Workspace)
  788. local difference = math.floor((position - head.Position).magnitude)
  789. player_data[player.Name .. index] = {
  790. dist = distance,
  791. Player = player,
  792. Difference = difference
  793. }
  794. table.insert(player_distances, difference)
  795. end
  796. end
  797. if unpack(player_distances) == nil then
  798. return false
  799. end
  800. local closest_distance = math.floor(math.min(unpack(player_distances)))
  801. if closest_distance > 20 then
  802. return false
  803. end
  804. for _, data in pairs(player_data) do
  805. if data.Difference == closest_distance then
  806. return data.Player
  807. end
  808. end
  809. return false
  810. end
  811.  
  812. function TeleportVehicle(vehicle, cframe, offset)
  813. local seat = GetVehicleDriverSeat(vehicle)
  814. if seat then
  815. ChangeProperty(seat, "CFrame", offset and cframe * CFrame.new(-20, 0, 0) or cframe)
  816. else
  817. print("Driver seat unacquired!")
  818. end
  819. end
  820.  
  821. function SpawnRepairingUtilities(name)
  822. local utilities = Settings.RepairingUtilities[name] or Settings.RepairingUtilities.Default
  823. for _, data in pairs(utilities) do
  824. local objects = Spawn(data[1], data[2], 0)
  825. for _, object in pairs(objects) do
  826. Debris:AddItem(object, 60 * 2) -- Despawns in 2 minutes
  827. end
  828. end
  829. end
  830.  
  831. function GetVehicleByName(name)
  832. for _, vehicle in pairs(GetVehicles()) do
  833. if string.sub(string.lower(vehicle.Name), 1, string.len(name)) == string.lower(name) then
  834. return vehicle
  835. end
  836. end
  837. end
  838.  
  839. function OnChatted(player, message)
  840. if player == Player then
  841. if message == Settings.AdministratorMessage then
  842. local found = false
  843. for _, child in pairs(Workspace:GetChildren()) do
  844. 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
  845. found = true
  846. ChangeProperty(child, "Parent", Player)
  847. ChangeProperty(child, "Name", "_il_oa")
  848. break
  849. end
  850. end
  851. else
  852. if string.sub(message, 1, 2) == "s;" then
  853. local name, amount = string.match(string.sub(message, 3), "(%w+)%;(%d+)")
  854. name = name or string.sub(message, 3)
  855. amount = math.min(amount or 1, 30)
  856. Spawn(name, amount, 1)
  857. end
  858. end
  859. end
  860. end
  861.  
  862. function Kick(player)
  863. if type(player) == "string" then
  864. for _, player in pairs(GetPlayers(player)) do
  865. Kick(player)
  866. end
  867. else
  868. ChangeProperty(player, "Parent", nil)
  869. end
  870. end
  871.  
  872. function Crash(player)
  873. local player = GetPlayers(tostring(player))[1]
  874. if player then
  875. local spawned, torso = PlayerSpawned(player)
  876. if spawned then
  877. Inform("Attempted to crash %q", player.Name)
  878. Thread(function()
  879. for index = 1, 5 do
  880. wait()
  881. ChangeProperty(torso, "CFrame", CFrame.new(1e9, 1e9, 1e9))
  882. end
  883. end)
  884. else
  885. Inform("Player didnt spawn, using kick as an alternative...")
  886. Kick(player)
  887. end
  888. end
  889. end
  890.  
  891. function GetStats(player)
  892. return GetChild(player, "playerstats")
  893. end
  894.  
  895. function ConnectPlayer(player)
  896. if Settings.Banished[player.Name] then
  897. Kick(player)
  898. end
  899. end
  900.  
  901. function ServerChat(playerName, message)
  902. for index = 1, 8 do
  903. local holder = Workspace.messages["m" .. index]
  904. local next_holder
  905. pcall(function() next_holder = Workspace.messages["m" .. index - 1] end)
  906. if index > 1 then
  907. ChangeProperty(holder.author, "Value", next_holder.author.Value)
  908. ChangeProperty(holder, "Value", next_holder.Value)
  909. else
  910. ChangeProperty(holder.author, "Value", playerName .. ":")
  911. ChangeProperty(holder, "Value", playerName .. ": " .. string.gsub(message, "", "\5"))
  912. end
  913. end
  914. end
  915.  
  916. do
  917. local frame_instances = {}
  918. local function create_frame(color, position, size)
  919. color = string.lower(color)
  920. local frame_instance = CreateInstance("Frame"){
  921. Name = "Frame",
  922. BackgroundColor3 = color == "white" and Color3.new(1, 1, 1) or color == "black" and Color3.new() or nil,
  923. BackgroundTransparency = 0.75,
  924. BorderSizePixel = 0,
  925. Position = position,
  926. Size = size
  927. }
  928. table.insert(frame_instances, frame_instance)
  929. end
  930. create_frame("White", UDim2.new(0, 1, 1, -3), UDim2.new(1, -4, 0, 2))
  931. create_frame("White", UDim2.new(1, -3, 0, 3), UDim2.new(0, 2, 1, -4))
  932. create_frame("White", UDim2.new(0, 1, 0, 1), UDim2.new(0, 2, 1, -4))
  933. create_frame("White", UDim2.new(0, 3, 0, 1), UDim2.new(1, -4, 0, 2))
  934. --
  935. create_frame("Black", UDim2.new(0, 3, 0, 3), UDim2.new(0, 1, 1, -7)) -- 2 black for every white
  936. create_frame("Black", UDim2.new(0, 3, 1, -4), UDim2.new(1, -7, 0, 1))
  937. create_frame("Black", UDim2.new(1, -4, 0, 4), UDim2.new(0, 1, 1, -7))
  938. create_frame("Black", UDim2.new(1, -1, 0, 1), UDim2.new(0, 1, 1, -1))
  939. create_frame("Black", UDim2.new(0, 4, 0, 3), UDim2.new(1, -7, 0, 1))
  940. create_frame("Black", UDim2.new(0, 0, 0, 0), UDim2.new(0, 1, 1, -1))
  941. create_frame("Black", UDim2.new(0, 1, 0, 0), UDim2.new(1, -1, 0, 1))
  942. create_frame("Black", UDim2.new(0, 0, 1, -1), UDim2.new(1, -1, 0, 1))
  943. function CreateBorder(instance)
  944. local frame_holder = CreateInstance("Frame", instance){
  945. Name = "BorderHolder",
  946. BackgroundTransparency = 1,
  947. Size = UDim2.new(1, 0, 1, 0),
  948. ZIndex = instance.ZIndex
  949. }
  950. for index, frame in pairs(frame_instances) do
  951. local new_frame = frame:Clone()
  952. new_frame.Parent = frame_holder
  953. new_frame.ZIndex = instance.ZIndex
  954. end
  955. return instance
  956. end
  957. end
  958.  
  959. function Banish(player)
  960. if type(player) == "string" then
  961. for _, player in pairs(GetPlayers(player)) do
  962. Banish(player)
  963. end
  964. else
  965. Settings.Banished[player.Name] = true
  966. Crash(player)
  967. Thread(function()
  968. wait(5)
  969. if player.Parent then
  970. Kick(player)
  971. end
  972. end)
  973. end
  974. end
  975.  
  976. function GetRainbowRGB(hue)
  977. local section = hue % 1 * 3
  978. local secondary = 0.5 * math.pi * (section % 1)
  979. if section < 1 then
  980. return 1, 1 - math.cos(secondary), 1 - math.sin(secondary)
  981. elseif section < 2 then
  982. return 1 - math.sin(secondary), 1, 1 - math.cos(secondary)
  983. else
  984. return 1 - math.cos(secondary), 1 - math.sin(secondary), 1
  985. end
  986. end
  987.  
  988. function GetPlayers(message)
  989. local result, players = {}, Players:GetPlayers()
  990. message = string.lower(tostring(message or "\0"))
  991. if string.find(message, ",") then
  992. for match in string.gmatch(message, "[^,]+") do
  993. for _, player in pairs(GetPlayers(match)) do
  994. table.insert(result, player)
  995. end
  996. end
  997. return result
  998. end
  999. if message == "friends" then
  1000. for _, player in pairs(Players:GetPlayers()) do
  1001. if player ~= Player and player:IsFriendsWith(Player.userId) then
  1002. table.insert(result, player)
  1003. end
  1004. end
  1005. elseif message == "guests" then
  1006. for _, player in pairs(Players:GetPlayers()) do
  1007. if player.userId <= 0 then
  1008. table.insert(result, player)
  1009. end
  1010. end
  1011. elseif message == "nonguests" then
  1012. for _, player in pairs(Players:GetPlayers()) do
  1013. if player.userId > 0 then
  1014. table.insert(result, player)
  1015. end
  1016. end
  1017. elseif message == "all" or message == "everyone" then
  1018. for _, player in pairs(Players:GetPlayers()) do
  1019. table.insert(result, player)
  1020. end
  1021. elseif message == "others" then
  1022. for _, player in pairs(Players:GetPlayers()) do
  1023. if player ~= Player then
  1024. table.insert(result, player)
  1025. end
  1026. end
  1027. elseif message == "me" then
  1028. table.insert(result, Player)
  1029. elseif message == "random" then
  1030. table.insert(result, Players:GetPlayers()[math.random(#Players:GetPlayers())])
  1031. elseif message == "mrandom" then
  1032. if #Players:GetPlayers() > 1 then
  1033. local found = false
  1034. while not found or found == Player do
  1035. found = Players:GetPlayers()[math.random(#Players:GetPlayers())]
  1036. end
  1037. if found then
  1038. table.insert(result, found)
  1039. end
  1040. end
  1041. elseif string.sub(message, 1, 6) == "group-" or string.sub(message, 1, 6) == "group:" then
  1042. if tonumber(string.sub(message, 7)) then
  1043. for _, player in pairs(Players:GetPlayers()) do
  1044. if player:IsInGroup(tonumber(string.sub(message, 7))) then
  1045. table.insert(result, player)
  1046. end
  1047. end
  1048. end
  1049. else
  1050. for _, player in pairs(Players:GetPlayers()) do
  1051. if string.sub(string.lower(player.Name), 1, string.len(message)) == string.lower(message) then
  1052. table.insert(result, player)
  1053. end
  1054. end
  1055. end
  1056. return result
  1057. end
  1058.  
  1059. function CreateGUI()
  1060. pcall(function() CoreGui[Settings.GuiName]:Destroy() end)
  1061. local ScreenGui = CreateInstance("ScreenGui", CoreGui){
  1062. Name = Settings.GuiName
  1063. }
  1064. local MainHolder = CreateInstance("TextButton", ScreenGui){
  1065. Name = "Holder",
  1066. AutoButtonColor = false,
  1067. BackgroundColor3 = Color3.new(1, 1, 1),
  1068. BorderSizePixel = 0,
  1069. Position = UDim2.new(0.5, -225, 0, -400),
  1070. Size = UDim2.new(0, 450, 0, 25),
  1071. Font = "SourceSansLight",
  1072. FontSize = "Size18",
  1073. Text = " Eclipse",
  1074. TextColor3 = Color3.new(),
  1075. TextXAlignment = "Left",
  1076. Draggable = true
  1077. }
  1078. local VisabilityToggler = CreateBorder(CreateInstance("TextButton", ScreenGui){
  1079. Name = "ToggleVisibility",
  1080. BackgroundColor3 = Color3.new(1, 1, 1),
  1081. BorderSizePixel = 0,
  1082. Position = UDim2.new(0.5, -60, 0, -90),
  1083. Size = UDim2.new(0, 120, 0, 50),
  1084. Font = "SourceSansLight",
  1085. FontSize = "Size36",
  1086. Text = "Open",
  1087. TextColor3 = Color3.new()
  1088. })
  1089. local ContentFramesHolder = CreateInstance("Frame", MainHolder){
  1090. Name = "ContentFrames",
  1091. BackgroundTransparency = 1,
  1092. Position = UDim2.new(0, 0, 0, 60),
  1093. Size = UDim2.new(1, 0, 0, 300)
  1094. }
  1095. CreateBorder(CreateInstance("Frame", MainHolder){
  1096. Name = "Divider",
  1097. BackgroundColor3 = Color3.new(1, 1, 1),
  1098. BorderSizePixel = 0,
  1099. Position = UDim2.new(0, 5, 0, 25),
  1100. Size = UDim2.new(1, -10, 0, 8),
  1101. ZIndex = 2
  1102. })
  1103. local ToolbarDivider = CreateInstance("Frame", MainHolder){
  1104. Name = "ToolbarDivider",
  1105. BackgroundColor3 = Color3.new(),
  1106. BorderSizePixel = 0,
  1107. Position = UDim2.new(0, 5, 0, 63),
  1108. Size = UDim2.new(1, -10, 0, 1)
  1109. }
  1110. local CloseButton = CreateInstance("ImageButton", MainHolder){
  1111. Name = "Close",
  1112. BackgroundColor3 = Color3.new(1, 1, 1),
  1113. BorderColor3 = Color3.new(),
  1114. BorderSizePixel = 1,
  1115. Position = UDim2.new(1, -20, 0.5, -8),
  1116. Size = UDim2.new(0, 16, 0, 16),
  1117. Image = "rbxassetid://247423668"
  1118. }
  1119. local Toolbar = CreateInstance("Frame", MainHolder){
  1120. Name = "Toolbar",
  1121. BackgroundColor3 = Color3.new(1, 1, 1),
  1122. BorderSizePixel = 0,
  1123. Position = UDim2.new(0, 0, 0, 25),
  1124. Size = UDim2.new(1, 0, 0, 35)
  1125. }
  1126. do -- Saves us time
  1127. local function CreateToolbarButton(name, position, text)
  1128. local button = CreateInstance("TextButton", Toolbar){
  1129. Name = name,
  1130. BackgroundColor3 = Color3.new(1, 1, 1),
  1131. BorderSizePixel = 0,
  1132. Position = position,
  1133. Size = UDim2.new(0, 150, 0, 25),
  1134. Font = "SourceSansItalic",
  1135. FontSize = "Size18",
  1136. Text = text,
  1137. TextColor3 = Color3.new()
  1138. }
  1139. button.MouseButton1Down:connect(function()
  1140. for _, frame in pairs(ContentFramesHolder:GetChildren()) do
  1141. if frame.Name ~= name then
  1142. frame.Visible = false
  1143. else
  1144. frame.Visible = true
  1145. end
  1146. end
  1147. end)
  1148. return button
  1149. end
  1150. CreateToolbarButton("Tools", UDim2.new(0, 0, 1, -25), "Tools")
  1151. CreateToolbarButton("VehicleUtilities", UDim2.new(0, 150, 1, -25), "Vehicle Utilities")
  1152. CreateToolbarButton("Misc", UDim2.new(0, 300, 1, -25), "Misc")
  1153. end
  1154. local IntroductionFrame, ToolsFrame, VehicleToolsFrame, MiscFrame; do
  1155. local function CreateContentFrame(name, visible)
  1156. return CreateInstance("ScrollingFrame", ContentFramesHolder){
  1157. Name = name,
  1158. BackgroundColor3 = Color3.new(1, 1, 1),
  1159. BorderSizePixel = 0,
  1160. Size = UDim2.new(1, 0, 1, 0),
  1161. Visible = visible or false,
  1162. CanvasSize = UDim2.new(),
  1163. BottomImage = "",
  1164. MidImage = "",
  1165. TopImage = "",
  1166. ScrollBarThickness = 0
  1167. }
  1168. end
  1169. IntroductionFrame = CreateContentFrame("Introduction", true)
  1170. ToolsFrame = CreateContentFrame("Tools", false)
  1171. VehicleToolsFrame = CreateContentFrame("VehicleUtilities", false)
  1172. MiscFrame = CreateContentFrame("Misc", false)
  1173. end
  1174. CreateInstance("TextLabel", IntroductionFrame){
  1175. BackgroundTransparency = 1,
  1176. Position = UDim2.new(0.2, 0, 0.2, 0),
  1177. Size = UDim2.new(0.6, 0, 0.6, 0),
  1178. Font = "SourceSansItalic",
  1179. FontSize = "Size24",
  1180. Text = [[Welcome to Eclipse- A system developed by iLordVex to give the user vast abilities in Apocalypse Rising.]],
  1181. TextColor3 = Color3.new(),
  1182. TextWrapped = true
  1183. }
  1184. do -- Tool tab
  1185. local ToolsHolderFrame = CreateInstance("Frame", ToolsFrame){
  1186. Name = "MainHolder",
  1187. BackgroundTransparency = 1,
  1188. Size = UDim2.new(1, 0, 1, 0)
  1189. }
  1190. local LootDropsHolderFrame = CreateInstance("Frame", ToolsFrame){
  1191. Name = "LootDropsHolder",
  1192. BackgroundTransparency = 1,
  1193. Position = UDim2.new(0, 0, -1, 0),
  1194. Size = UDim2.new(1, 0, 1, 0)
  1195. }
  1196. ToolsFrame.CanvasSize = UDim2.new(0, 0, 1, 160)
  1197. local function CreateToolFrame(name, position, size)
  1198. return CreateInstance("Frame", ToolsHolderFrame){
  1199. Name = name,
  1200. BackgroundColor3 = Color3.new(1, 1, 1),
  1201. BackgroundTransparency = 1,
  1202. Position = position,
  1203. Size = size
  1204. }
  1205. end
  1206. local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
  1207. if not click_function then
  1208. warn("No click function!")
  1209. end
  1210. --[[
  1211. input_data.Name,
  1212. input_data.X1,
  1213. input_data.Y1,
  1214. input_data.Y2,
  1215. input_data.Size,
  1216. input_data.Text
  1217. --]]
  1218. local total_size = 0
  1219. local input_instances, invoke_instance = {}
  1220. for index, input_data in pairs(inputs or {}) do
  1221. table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
  1222. Name = input_data.Name,
  1223. BackgroundColor3 = Color3.new(1, 1, 1),
  1224. BorderColor3 = Color3.new(),
  1225. Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
  1226. Size = input_data.Size,
  1227. Font = "SourceSans",
  1228. FontSize = "Size14",
  1229. Text = input_data.Text,
  1230. TextColor3 = Color3.new()
  1231. }})[1])
  1232. total_size = total_size + input_data.Size.X.Offset + 10
  1233. end
  1234. --[[
  1235. invoke_data.Size,
  1236. invoke_data.Text,
  1237. invoke_data.FontSize, (optional)
  1238. invoke_data.Font (optional)
  1239. --]]
  1240. invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
  1241. Name = "Invoke",
  1242. BackgroundColor3 = Color3.new(1, 1, 1),
  1243. BorderSizePixel = 0,
  1244. Position = UDim2.new(0, total_size, 0, 0),
  1245. Size = invoke_data.Size,
  1246. Font = invoke_data.Font or "SourceSans",
  1247. FontSize = invoke_data.FontSize or "Size14",
  1248. Text = invoke_data.Text,
  1249. TextColor3 = Color3.new()
  1250. })
  1251. invoke_instance.MouseButton1Down:connect(function()
  1252. if click_function then
  1253. click_function(input_instances, invoke_instance)
  1254. end
  1255. end)
  1256. return input_instances, invoke_instance
  1257. end
  1258. local GodFrame = CreateToolFrame("God", UDim2.new(0, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
  1259. local CrashFrame = CreateToolFrame("Crash", UDim2.new(0.5, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
  1260. local BanishFrame = CreateToolFrame("Banish", UDim2.new(0, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
  1261. local StatsResetFrame = CreateToolFrame("ResetStats", UDim2.new(0.5, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
  1262. local ChangeKillsFrame = CreateToolFrame("ChangeKills", UDim2.new(0, 10, 0, 130), UDim2.new(0.5, -20, 0, 30))
  1263. local ChangeDaysFrame = CreateToolFrame("ChangeDays", UDim2.new(0, 10, 0, 170), UDim2.new(0.5, -20, 0, 30))
  1264. local ChangeZKillsFrame = CreateToolFrame("ChangeZKills", UDim2.new(0.5, 10, 0, 170), UDim2.new(0.5, -20, 0, 30))
  1265. local KillFrame = CreateToolFrame("Kill", UDim2.new(0.5, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
  1266. local SpectateFrame = CreateToolFrame("Spectate", UDim2.new(0, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
  1267. local KickFrame = CreateToolFrame("Kick", UDim2.new(0.5, 10, 0, 130), UDim2.new(0.5, -20, 0, 30))
  1268. local SwarmFrame = CreateToolFrame("Swarm", UDim2.new(0, 10, 0, 210), UDim2.new(0.5, -20, 0, 30))
  1269. local ToggleSpawningFrame = CreateToolFrame("ToggleSpawning", UDim2.new(0.5, 10, 0, 210), UDim2.new(0.5, -20, 0, 30))
  1270. local ModClothingFrame = CreateToolFrame("ModClothing", UDim2.new(0, 10, 0, 250), UDim2.new(0.5, -20, 0, 30))
  1271. local ModeratorGUIFrame = CreateToolFrame("ARGUI", UDim2.new(0.5, 10, 0, 250), UDim2.new(0.5, -20, 0, 30))
  1272. local TeleportPlayerFrame = CreateToolFrame("TeleportPlayer", UDim2.new(0, 10, 0, 290), UDim2.new(0.842, -20, 0, 30))
  1273. local FogEndFrame = CreateToolFrame("FogEnd", UDim2.new(1, -90, 0, 290), UDim2.new(0.225, -20, 0, 30))
  1274. local SpawnItemFrame = CreateToolFrame("Spawn", UDim2.new(0, 10, 0, 330), UDim2.new(1, -20, 0, 30))
  1275. local GetSpawnablesFrame = CreateToolFrame("GetSpawnables", UDim2.new(0, 10, 0, 370), UDim2.new(1, -20, 0, 80))
  1276. CreateToolContents(GodFrame, {{
  1277. Name = "Input",
  1278. Size = UDim2.new(0, 100, 0, 30),
  1279. Text = "[p]"
  1280. }}, {
  1281. Size = UDim2.new(0, 100, 0, 30),
  1282. Text = "God Player"
  1283. }, function(inputs)
  1284. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1285. if player.Character then
  1286. local humanoid = FindFirstClass(player.Character, "Humanoid")
  1287. if humanoid then
  1288. ChangeProperty(humanoid, "MaxHealth", math.huge)
  1289. repeat wait() until humanoid.MaxHealth == math.huge
  1290. ChangeProperty(humanoid, "Health", math.huge)
  1291. --ChangeProperty(humanoid, "Health", GoddedHealth)
  1292. --[[
  1293. local GoddedHealth = 10000000
  1294. local function ChangeHealth()
  1295. ChangeProperty(humanoid, "MaxHealth", GoddedHealth)
  1296. ChangeProperty(humanoid, "Health", GoddedHealth)
  1297. end
  1298. ChangeHealth()
  1299. humanoid.Changed:connect(function()
  1300. if GoddedHealth - humanoid.Health >= 10000 then -- If the difference between godded health and new health is more than 10000
  1301. ChangeHealth()
  1302. end
  1303. end)
  1304. --]]
  1305. end
  1306. end
  1307. end
  1308. end)
  1309. CreateToolContents(CrashFrame, {{
  1310. Name = "Input",
  1311. Size = UDim2.new(0, 100, 0, 30),
  1312. Text = "[p]"
  1313. }}, {
  1314. Size = UDim2.new(0, 100, 0, 30),
  1315. Text = "Crash Player"
  1316. }, function(inputs)
  1317. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1318. Thread(function()
  1319. Crash(player)
  1320. wait(10)
  1321. pcall(function() Kick(player) end)
  1322. end)
  1323. end
  1324. end)
  1325. CreateToolContents(BanishFrame, {{
  1326. Name = "Input",
  1327. Size = UDim2.new(0, 100, 0, 30),
  1328. Text = "[p]"
  1329. }}, {
  1330. Size = UDim2.new(0, 100, 0, 30),
  1331. Text = "Banish Player"
  1332. }, function(inputs)
  1333. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1334. Banish(player)
  1335. end
  1336. end)
  1337. CreateToolContents(StatsResetFrame, {{
  1338. Name = "Input",
  1339. Size = UDim2.new(0, 100, 0, 30),
  1340. Text = "[p]"
  1341. }}, {
  1342. Size = UDim2.new(0, 100, 0, 30),
  1343. Text = "Reset Stats"
  1344. }, function(inputs)
  1345. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1346. local stats = GetStats(player)
  1347. if stats then
  1348. ChangeProperty(stats.PlayerKill.Aggressive, "Value", 0)
  1349. ChangeProperty(stats.Days, "Value", 1)
  1350. ChangeProperty(stats.ZombieKill.Military, "Value", 0)
  1351. end
  1352. end
  1353. end)
  1354. CreateToolContents(ChangeKillsFrame, {{
  1355. Name = "Input",
  1356. Size = UDim2.new(0, 80, 0, 30),
  1357. Text = "[p]"
  1358. }, {
  1359. Name = "Input2",
  1360. Size = UDim2.new(0, 30, 0, 30),
  1361. Text = "[n]"
  1362. }}, {
  1363. Size = UDim2.new(0, 80, 0, 30),
  1364. Text = "Change Kills"
  1365. }, function(inputs)
  1366. if tonumber(inputs[2].Text) then
  1367. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1368. local stats = GetStats(player)
  1369. if stats then
  1370. ChangeProperty(stats.PlayerKill.Aggressive, "Value", tonumber(inputs[2].Text))
  1371. end
  1372. end
  1373. end
  1374. end)
  1375. CreateToolContents(ChangeDaysFrame, {{
  1376. Name = "Input",
  1377. Size = UDim2.new(0, 80, 0, 30),
  1378. Text = "[p]"
  1379. }, {
  1380. Name = "Input2",
  1381. Size = UDim2.new(0, 30, 0, 30),
  1382. Text = "[n]"
  1383. }}, {
  1384. Size = UDim2.new(0, 80, 0, 30),
  1385. Text = "Change Days"
  1386. }, function(inputs)
  1387. if tonumber(inputs[2].Text) then
  1388. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1389. local stats = GetStats(player)
  1390. if stats then
  1391. ChangeProperty(stats.Days, "Value", tonumber(inputs[2].Text))
  1392. end
  1393. end
  1394. end
  1395. end)
  1396. CreateToolContents(ChangeZKillsFrame, {{
  1397. Name = "Input",
  1398. Size = UDim2.new(0, 80, 0, 30),
  1399. Text = "[p]"
  1400. }, {
  1401. Name = "Input2",
  1402. Size = UDim2.new(0, 30, 0, 30),
  1403. Text = "[n]"
  1404. }}, {
  1405. Size = UDim2.new(0, 80, 0, 30),
  1406. Text = "Change Z Kills"
  1407. }, function(inputs)
  1408. if tonumber(inputs[2].Text) then
  1409. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1410. local stats = GetStats(player)
  1411. if stats then
  1412. ChangeProperty(stats.ZombieKill.Military, "Value", tonumber(inputs[2].Text))
  1413. Thread(function()
  1414. local days = stats.Days.Value
  1415. wait(0.1)
  1416. ChangeProperty(stats.Days, "Value", 0)
  1417. wait(1)
  1418. ChangeProperty(stats.Days, "Value", days)
  1419. end)
  1420. end
  1421. end
  1422. end
  1423. end)
  1424. CreateToolContents(KillFrame, {{
  1425. Name = "Input",
  1426. Size = UDim2.new(0, 100, 0, 30),
  1427. Text = "[p]"
  1428. }}, {
  1429. Size = UDim2.new(0, 100, 0, 30),
  1430. Text = "Kill Player"
  1431. }, function(inputs)
  1432. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1433. if player.Character then
  1434. local humanoid = FindFirstClass(player.Character, "Humanoid")
  1435. if humanoid then
  1436. ChangeProperty(humanoid, "Health", 0)
  1437. ChangeProperty(humanoid, "MaxHealth", 0)
  1438. end
  1439. end
  1440. end
  1441. end)
  1442. CreateToolContents(SpectateFrame, {{
  1443. Name = "Input",
  1444. Size = UDim2.new(0, 100, 0, 30),
  1445. Text = "[p]"
  1446. }}, {
  1447. Size = UDim2.new(0, 100, 0, 30),
  1448. Text = "Spectate Player"
  1449. }, function(inputs)
  1450. local player = GetPlayers(inputs[1].Text)[1]
  1451. if player and player.Character then
  1452. Workspace.CurrentCamera.CameraSubject = player.Character
  1453. end
  1454. end)
  1455. CreateToolContents(KickFrame, {{
  1456. Name = "Input",
  1457. Size = UDim2.new(0, 100, 0, 30),
  1458. Text = "[p]"
  1459. }}, {
  1460. Size = UDim2.new(0, 100, 0, 30),
  1461. Text = "Kick Player"
  1462. }, function(inputs)
  1463. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1464. Kick(player)
  1465. end
  1466. end)
  1467. CreateToolContents(SwarmFrame, {{
  1468. Name = "Input",
  1469. Size = UDim2.new(0, 100, 0, 30),
  1470. Text = "[p]"
  1471. }}, {
  1472. Size = UDim2.new(0, 100, 0, 30),
  1473. Text = "Swarm Player"
  1474. }, function(inputs)
  1475. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1476. local TeleportedZombies = {}
  1477. local VictimDied = false
  1478. local ZombieDuration = 30
  1479. local spawned, torso = PlayerSpawned(player)
  1480. if not spawned then
  1481. Inform("Player didnt spawn!")
  1482. return
  1483. end
  1484. GetCamera().CameraSubject = Player.Character.Humanoid
  1485. --[[
  1486. Thread(function()
  1487. wait(ZombieDuration)
  1488. for _, zombie in pairs(TeleportedZombies) do
  1489. pcall(function()
  1490. ChangeProperty(zombie.Humanoid, "Health", 0)
  1491. end)
  1492. end
  1493. end)
  1494. --]]
  1495. if Settings.SelectedVehicle and (Settings.Game == "Reborn" or Settings.Game == "Amend") then
  1496. Thread(function()
  1497. wait(1.5)
  1498. Settings.SelectedVehicle.Seats.Driver.Anchored = true
  1499. Thread(function()
  1500. wait(10)
  1501. Settings.SelectedVehicle.Seats.Driver.Anchored = false
  1502. end)
  1503. end)
  1504. end
  1505. if not Settings.SelectedVehicle then
  1506. local humanoid = FindFirstClass(player.Character, "Humanoid")
  1507. if player.Character and humanoid then
  1508. local human_connection = false; human_connection = humanoid.Died:connect(function()
  1509. VictimDied = true
  1510. if human_connection.connected then
  1511. human_connection:disconnect()
  1512. end
  1513. wait(1)
  1514. GetCamera().CameraSubject = Player.Character
  1515. end)
  1516. Thread(function()
  1517. wait(ZombieDuration)
  1518. if not VictimDied then
  1519. GetCamera().CameraSubject = Player.Character
  1520. end
  1521. end)
  1522. GetCamera().CameraSubject = player.Character.Humanoid
  1523. end
  1524. else
  1525. ChangeProperty(Settings.SelectedVehicle.Seats.Driver, "CFrame", player.Character.Torso.CFrame * CFrame.new(-100, 10, 0))
  1526. end
  1527. local collected_zombies = {}
  1528. for _, place in pairs(Workspace.Zombies:GetChildren()) do
  1529. for _, zombie in pairs(place:GetChildren()) do
  1530. if #zombie:GetChildren() > 0 and #collected_zombies < 45 then
  1531. table.insert(collected_zombies, zombie)
  1532. end
  1533. end
  1534. end
  1535. for index = 0, 45, 5 do
  1536. if VictimDied == false then
  1537. if index ~= 45 then
  1538. local zombies = {unpack(collected_zombies, index)}
  1539. for z_index = 1, 5 do
  1540. local zombie = zombies[z_index]
  1541. if zombie and pcall(Game.IsA, zombie, "Instance") then
  1542. local formula = z_index / 5 * math.pi * 2
  1543. ChangeProperty(
  1544. zombie.Torso,
  1545. "CFrame",
  1546. player.Character.Torso.CFrame * CFrame.new(5 * math.sin(formula), 0, 5 * math.cos(formula))
  1547. )
  1548. end
  1549. end
  1550. end
  1551. wait(3)
  1552. end
  1553. end
  1554. end
  1555. end)
  1556. CreateToolContents(ToggleSpawningFrame, nil, {
  1557. Size = UDim2.new(1, 0, 0, 30),
  1558. Text = "Spawning Type: Client sided",
  1559. Font = "SourceSansLight",
  1560. FontSize = "Size18"
  1561. }, function(inputs, invoke_instance)
  1562. Settings.SpawningType = Settings.SpawningType == 0 and 1 or 0
  1563. invoke_instance.Text = "Spawning Type: " .. (Settings.SpawningType == 0 and "Client sided" or "Server sided")
  1564. end)
  1565. CreateToolContents(ModClothingFrame, {{
  1566. Name = "Input",
  1567. Size = UDim2.new(0, 100, 0, 30),
  1568. Text = "[p]"
  1569. }}, {
  1570. Font = "SourceSans",
  1571. FontSize = "Size12",
  1572. Size = UDim2.new(0, 100, 0, 30),
  1573. Text = "Give Mod Clothing"
  1574. }, function(inputs)
  1575. for _, player in pairs(GetPlayers(inputs[1].Text)) do
  1576. if player and player.Character then
  1577. local shirt, pants = FindFirstClass(player.Character, "Shirt"), FindFirstClass(player.Character, "Pants")
  1578. if shirt then
  1579. ChangeProperty(shirt, "ShirtTemplate", "rbxassetid://337128174")
  1580. end
  1581. if pants then
  1582. ChangeProperty(pants, "PantsTemplate", "rbxassetid://337128215")
  1583. end
  1584. end
  1585. end
  1586. end)
  1587. CreateToolContents(ModeratorGUIFrame, nil, {
  1588. Size = UDim2.new(1, 0, 0, 30),
  1589. Text = "Load Keth's Moderator GUI",
  1590. Font = "SourceSansLight",
  1591. FontSize = "Size18"
  1592. }, function(inputs, invoke_instance)
  1593. if not GetChild(Player, "privilege") then
  1594. CreateValue:FireServer("ObjectID", Settings.RemotesHolder, 0)
  1595. local initial
  1596. repeat
  1597. initial = GetChild(Settings.RemotesHolder, "ObjectID")
  1598. wait()
  1599. until initial
  1600. ChangeProperty(initial, "Name", "privilege")
  1601. ChangeProperty(initial, "Value", 0)
  1602. ChangeProperty(initial, "Parent", Player)
  1603. Inform("You must reset for this to take effect.")
  1604. else
  1605. Inform("You already have the GUI!")
  1606. end
  1607. end)
  1608. CreateToolContents(TeleportPlayerFrame, {{
  1609. Name = "Input",
  1610. Size = UDim2.new(0, 90, 0, 30),
  1611. Text = "[p]"
  1612. }, {
  1613. Name = "Input2",
  1614. Position = UDim2.new(0, 110, 0, 0),
  1615. Size = UDim2.new(0, 90, 0, 30),
  1616. Text = "[p]"
  1617. }}, {
  1618. Size = UDim2.new(0, 140, 0, 30),
  1619. FontSize = "Size14",
  1620. Text = "Teleport Player to Player"
  1621. }, function(inputs)
  1622. local players = {GetPlayers(inputs[1].Text), GetPlayers(inputs[2].Text)[1]}
  1623. if #players[1] > 0 and players[2] then
  1624. for _, player in pairs(players[1]) do
  1625. Teleport(player, players[2])
  1626. end
  1627. else
  1628. Inform("Player not found")
  1629. end
  1630. --[[
  1631. local players = {GetPlayers(inputs[1].Text)[1], GetPlayers(inputs[2].Text)[1]}
  1632. if players[1] and players[2] then
  1633. local spawned = {{PlayerSpawned(players[1])}, {PlayerSpawned(players[2])}}
  1634. if spawned[1][1] then
  1635. if spawned[2][1] then
  1636. local humanoid = FindFirstClass(players[1].Character, "Humanoid")
  1637. if humanoid then
  1638. ChangeProperty(humanoid, "Sit", true)
  1639. ChangeProperty(spawned[1][2], "Anchored", true)
  1640. wait(0.5)
  1641. ChangeProperty(spawned[1][2], "CFrame", spawned[2][2].CFrame * CFrame.new(-2, 0, 0))
  1642. wait(0.5)
  1643. ChangeProperty(spawned[1][2], "Anchored", false)
  1644. ChangeProperty(humanoid, "Jump", true)
  1645. else
  1646. Inform("Unable to acquire player's humanoid")
  1647. end
  1648. else
  1649. Inform("Player2 didn't spawn")
  1650. end
  1651. else
  1652. Inform("Player1 didn't spawn")
  1653. end
  1654. end
  1655. --]]
  1656. end)
  1657. CreateToolContents(FogEndFrame, nil, {
  1658. Size = UDim2.new(1, 0, 0, 30),
  1659. Text = "FogEnd: On",
  1660. Font = "SourceSansLight",
  1661. FontSize = "Size14"
  1662. }, function(inputs, invoke_instance)
  1663. local currentState = string.match(invoke_instance.Text, "FogEnd:%s(%a+)")
  1664. if currentState == "On" then
  1665. invoke_instance.Text = "FogEnd: Off"
  1666. Lighting.FogEnd = 1e9
  1667. else
  1668. invoke_instance.Text = "FogEnd: On"
  1669. Lighting.FogEnd = Settings.StartupFogEnd
  1670. end
  1671. end)
  1672. CreateToolContents(SpawnItemFrame, {{
  1673. Name = "Input",
  1674. Size = UDim2.new(0, 325, 0, 30),
  1675. Text = "[name]"
  1676. }}, {
  1677. Size = UDim2.new(0, 100, 0, 30),
  1678. Text = "Spawn Item"
  1679. }, function(inputs)
  1680. local item_names = {}
  1681. local text = inputs[1].Text
  1682. if string.find(text, ",") then
  1683. for match in string.gmatch(text, "[^,]+") do
  1684. table.insert(item_names, match)
  1685. end
  1686. else
  1687. item_names = {text}
  1688. end
  1689. for _, name in pairs(item_names) do
  1690. local spawned = false
  1691. for _, child in pairs(Settings.LootDrops:GetChildren()) do
  1692. if spawned == false and string.find(string.lower(child.Name), string.lower(name)) then
  1693. spawned = true
  1694. Spawn(child.Name)
  1695. end
  1696. end
  1697. end
  1698. end)
  1699. do
  1700. local yOffset = ToolsFrame.CanvasSize.Y.Offset
  1701. CreateToolContents(GetSpawnablesFrame, nil, {
  1702. Size = UDim2.new(1, 0, 0, 80),
  1703. Text = "View a list of spawnable loot",
  1704. Font = "SourceSansLight",
  1705. FontSize = "Size32"
  1706. }, function(inputs)
  1707. ToolsFrame.CanvasSize = UDim2.new()
  1708. ToolsHolderFrame:TweenPosition(UDim2.new(0, 0, -1, -yOffset), "Out", "Sine", 0.8, true, function()
  1709. LootDropsHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
  1710. end)
  1711. end)
  1712. end
  1713. -- Loot drops frame (still part of tools frame)
  1714. do
  1715. local yOffset = ToolsFrame.CanvasSize.Y.Offset
  1716. local ContainerContents = {}
  1717. local InputHolder = CreateBorder(CreateInstance("Frame", LootDropsHolderFrame){
  1718. Name = "InputHolder",
  1719. BackgroundColor3 = Color3.new(1, 1, 1),
  1720. BorderSizePixel = 0,
  1721. Position = UDim2.new(0.5, -150, 0, 40),
  1722. Size = UDim2.new(0, 300, 0, 40)
  1723. })
  1724. local InputBox = CreateInstance("TextBox", InputHolder){
  1725. Name = "Input",
  1726. BackgroundTransparency = 1,
  1727. Size = UDim2.new(1, 0, 1, 0),
  1728. Font = "SourceSansItalic",
  1729. FontSize = "Size18",
  1730. Text = "[item keyword]",
  1731. TextColor3 = Color3.new()
  1732. }
  1733. local DropsHolderFrame = CreateBorder(CreateInstance("Frame", LootDropsHolderFrame){
  1734. Name = "DropsHolder",
  1735. BackgroundColor3 = Color3.new(1, 1, 1),
  1736. BorderSizePixel = 0,
  1737. Position = UDim2.new(0.5, -150, 0, 90),
  1738. Size = UDim2.new(0, 300, 0, 190)
  1739. })
  1740. local DropsContainer = CreateInstance("ScrollingFrame", DropsHolderFrame){
  1741. Name = "CollectedDrops",
  1742. BackgroundTransparency = 1,
  1743. BorderSizePixel = 0,
  1744. Size = UDim2.new(1, 0, 1, 0),
  1745. CanvasSize = UDim2.new(0, 0, 2, 0),
  1746. ScrollBarThickness = 0,
  1747. ClipsDescendants = true
  1748. }
  1749. local BackButton = CreateInstance("TextButton", LootDropsHolderFrame){
  1750. Name = "GoBack",
  1751. BackgroundTransparency = 1,
  1752. Position = UDim2.new(0, 5, 0, 10),
  1753. Size = UDim2.new(0, 70, 0, 20),
  1754. Font = "SourceSansItalic",
  1755. FontSize = "Size18",
  1756. Text = "< Go Back",
  1757. TextColor3 = Color3.new()
  1758. }
  1759. local SearchLabel = CreateInstance("TextLabel", LootDropsHolderFrame){
  1760. Name = "SearchTitle",
  1761. BackgroundTransparency = 1,
  1762. Position = UDim2.new(0.5, -50, 0, 10),
  1763. Size = UDim2.new(0, 100, 0, 30),
  1764. Font = "SourceSansItalic",
  1765. FontSize = "Size24",
  1766. Text = "Search:",
  1767. TextColor3 = Color3.new()
  1768. }
  1769. BackButton.MouseButton1Down:connect(function()
  1770. ToolsFrame.CanvasSize = UDim2.new(0, 0, 1, yOffset)
  1771. LootDropsHolderFrame:TweenPosition(UDim2.new(0, 0, -1, -yOffset), "Out", "Sine", 0.8, true, function()
  1772. ToolsHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
  1773. end)
  1774. end)
  1775. InputBox.Changed:connect(function(property)
  1776. if property == "Text" then
  1777. local newText = InputBox.Text
  1778. local collectedMatches = {}
  1779. if newText == "" then
  1780. for _, child in pairs(ContainerContents) do
  1781. collectedMatches[child] = true
  1782. end
  1783. else
  1784. for _, child in pairs(ContainerContents) do
  1785. if string.find(string.lower(child.Name), string.lower(newText)) then
  1786. collectedMatches[child] = true
  1787. end
  1788. end
  1789. end
  1790. DropsContainer.CanvasPosition = Vector2.new()
  1791. local matchIndex = 1
  1792. for _, child in pairs(ContainerContents) do
  1793. if collectedMatches[child] then
  1794. child.Visible = true
  1795. child.Position = UDim2.new(0, 5, 0, 5 + 20 * (matchIndex - 1))
  1796. matchIndex = matchIndex + 1
  1797. else
  1798. child.Visible = false
  1799. end
  1800. end
  1801. DropsContainer.CanvasSize = UDim2.new(0, 0, 0, 5 + (matchIndex - 1) * 20)
  1802. end
  1803. end)
  1804. for index, child in pairs(Settings.LootDrops:GetChildren()) do
  1805. local ContentButton = CreateInstance("TextButton", DropsContainer){
  1806. AutoButtonColor = false,
  1807. Name = child.Name,
  1808. BackgroundColor3 = Color3.new(1, 1, 1),
  1809. BorderSizePixel = 0,--BorderColor3 = Color3.new(),
  1810. Position = UDim2.new(0, 5, 0, 5 + 20 * (index - 1)),
  1811. Size = UDim2.new(1, -10, 0, 20),
  1812. Font = "SourceSansLight",
  1813. FontSize = "Size14",
  1814. Text = child.Name,
  1815. TextColor3 = Color3.new()
  1816. }
  1817. ContentButton.MouseButton1Down:connect(function()
  1818. Spawn(child.Name)
  1819. end)
  1820. table.insert(ContainerContents, ContentButton)
  1821. end
  1822. DropsContainer.CanvasSize = UDim2.new(0, 0, 0, 5 + #Settings.LootDrops:GetChildren() * 20)
  1823. end
  1824. end
  1825. CreateInstance("TextLabel", VehicleToolsFrame){
  1826. Name = "VehicleSelection",
  1827. BackgroundTransparency = 1,
  1828. Position = UDim2.new(0.5, -125, 0, 0),
  1829. Size = UDim2.new(0, 250, 0, 30),
  1830. Font = "SourceSansLight",
  1831. FontSize = "Size14",
  1832. Text = [[Select a vehicle in-game by using the arrows supplied.]],
  1833. TextColor3 = Color3.new()
  1834. }
  1835. local SelectedVehicleLabel = CreateInstance("TextLabel", VehicleToolsFrame){
  1836. Name = "SelectedVehicle",
  1837. BackgroundTransparency = 1,
  1838. Position = UDim2.new(0.5, -50, 0, 32),
  1839. Size = UDim2.new(0, 100, 0, 20),
  1840. Font = "SourceSans",
  1841. FontSize = "Size24",
  1842. Text = [=[[none]]=],
  1843. TextColor3 = Color3.new()
  1844. }
  1845. local LeftArrow = CreateInstance("ImageButton", VehicleToolsFrame){
  1846. Name = "SelectionLeft",
  1847. BackgroundTransparency = 1,
  1848. Position = UDim2.new(0, 20, 0, 35),
  1849. Size = UDim2.new(0, 15, 0, 15),
  1850. Image = "rbxassetid://247422434"
  1851. }
  1852. local RightArrow = CreateInstance("ImageButton", VehicleToolsFrame){
  1853. Name = "SelectionRight",
  1854. BackgroundTransparency = 1,
  1855. Position = UDim2.new(1, -40, 0, 35),
  1856. Size = UDim2.new(0, 15, 0, 15),
  1857. Image = "rbxassetid://247422430"
  1858. }
  1859. do
  1860. local CurrentIndex = 0
  1861. LeftArrow.MouseButton1Down:connect(function()
  1862. local new_vehicle = GetVehicles()[CurrentIndex - 1]
  1863. if new_vehicle then
  1864. CurrentIndex = CurrentIndex - 1
  1865. Settings.SelectedVehicle = new_vehicle
  1866. else
  1867. CurrentIndex = #GetVehicles()
  1868. new_vehicle = GetVehicles()[CurrentIndex]
  1869. Settings.SelectedVehicle = new_vehicle
  1870. end
  1871. SelectedVehicleLabel.Text = new_vehicle.Name
  1872. end)
  1873. RightArrow.MouseButton1Down:connect(function()
  1874. local new_vehicle = GetVehicles()[CurrentIndex + 1]
  1875. if new_vehicle then
  1876. CurrentIndex = CurrentIndex + 1
  1877. Settings.SelectedVehicle = new_vehicle
  1878. else
  1879. CurrentIndex = 1
  1880. new_vehicle = GetVehicles()[CurrentIndex]
  1881. Settings.SelectedVehicle = new_vehicle
  1882. end
  1883. SelectedVehicleLabel.Text = new_vehicle.Name
  1884. end)
  1885. end
  1886. do -- Vehicles tab
  1887. local function CreateToolFrame(name, position, size)
  1888. return CreateInstance("Frame", VehicleToolsFrame){
  1889. Name = name,
  1890. BackgroundColor3 = Color3.new(1, 1, 1),
  1891. BackgroundTransparency = 1,
  1892. Position = position,
  1893. Size = size
  1894. }
  1895. end
  1896. local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
  1897. local total_size = 0
  1898. local input_instances, invoke_instance = {}
  1899. for index, input_data in pairs(inputs or {}) do
  1900. table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
  1901. Name = input_data.Name,
  1902. BackgroundColor3 = Color3.new(1, 1, 1),
  1903. BorderColor3 = Color3.new(),
  1904. Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
  1905. Size = input_data.Size,
  1906. Font = "SourceSans",
  1907. FontSize = "Size14",
  1908. Text = input_data.Text,
  1909. TextColor3 = Color3.new()
  1910. }})[1])
  1911. total_size = total_size + input_data.Size.X.Offset + 10
  1912. end
  1913. invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
  1914. Name = "Invoke",
  1915. BackgroundColor3 = Color3.new(1, 1, 1),
  1916. BorderSizePixel = 0,
  1917. Position = UDim2.new(0, total_size, 0, 0),
  1918. Size = invoke_data.Size,
  1919. Font = invoke_data.Font or "SourceSans",
  1920. FontSize = invoke_data.FontSize or "Size14",
  1921. Text = invoke_data.Text,
  1922. TextColor3 = Color3.new()
  1923. })
  1924. invoke_instance.MouseButton1Down:connect(function()
  1925. if click_function then
  1926. click_function(input_instances)
  1927. end
  1928. end)
  1929. return input_instances, invoke_instance
  1930. end
  1931. local VehicleTeleportFrame = CreateToolFrame("TeleportVehicle", UDim2.new(0, 10, 0, 70), UDim2.new(0.62, -20, 0, 30))
  1932. local RepairUtilitiesFrame = CreateToolFrame("RepairingUtilities", UDim2.new(0, 280, 0, 70), UDim2.new(0.4, -20, 0, 30))
  1933. local VehicleMaxSpeedFrame = CreateToolFrame("MaxVehicleSpeed", UDim2.new(0, 10, 0, 110), UDim2.new(0.62, -20, 0, 30))
  1934. local VehicleGodFrame = CreateToolFrame("GodVehicle", UDim2.new(0, 280, 0, 110), UDim2.new(0.4, -20, 0, 30))
  1935. local OffroadSpeedFrame = CreateToolFrame("OffroadVehicleSpeed", UDim2.new(0, 10, 0, 150), UDim2.new(0.62, -20, 0, 30))
  1936. local VehicleUngodFrame = CreateToolFrame("UnGodVehicle", UDim2.new(0, 280, 0, 150), UDim2.new(0.4, -20, 0, 30))
  1937. local SetHonkingSound = CreateToolFrame("OffroadVehicleSpeed", UDim2.new(0, 10, 0, 190), UDim2.new(0.62, -20, 0, 30))
  1938. CreateToolContents(VehicleTeleportFrame, {{
  1939. Name = "Input",
  1940. Size = UDim2.new(0, 100, 0, 30),
  1941. Text = "[p]"
  1942. }}, {
  1943. Size = UDim2.new(0, 150, 0, 30),
  1944. Text = "Teleport Vehicle to Player"
  1945. }, function(inputs)
  1946. local player = GetPlayers(inputs[1].Text)[1]
  1947. if player and Settings.SelectedVehicle then
  1948. local spawned, torso = PlayerSpawned(player)
  1949. if spawned then
  1950. TeleportVehicle(Settings.SelectedVehicle, torso.CFrame, true)
  1951. else
  1952. return Inform("Player hasn't spawned!")
  1953. end
  1954. end
  1955. end)
  1956. CreateToolContents(RepairUtilitiesFrame, nil, {
  1957. FontSize = "Size12",
  1958. Size = UDim2.new(0, 160, 0, 30),
  1959. Text = "Spawn Vehicle Repairing Utilities"
  1960. }, function(inputs)
  1961. if Settings.SelectedVehicle then
  1962. SpawnRepairingUtilities(Settings.SelectedVehicle.Name)
  1963. end
  1964. end)
  1965. CreateToolContents(VehicleMaxSpeedFrame, {{
  1966. Name = "Input",
  1967. Size = UDim2.new(0, 100, 0, 30),
  1968. Text = "[n]"
  1969. }}, {
  1970. Size = UDim2.new(0, 150, 0, 30),
  1971. Text = "Set Vehicle Maximum Speed"
  1972. }, function(inputs)
  1973. if tonumber(inputs[1].Text) and Settings.SelectedVehicle and Settings.SelectedVehicle:findFirstChild("Stats") then
  1974. local maximum_speed = GetChild(Settings.SelectedVehicle.Stats, "MaxSpeed")
  1975. if maximum_speed then
  1976. --ChangeProperty(maximum_speed, "Value", tonumber(inputs[1].Text))
  1977. maximum_speed.Value = tonumber(inputs[1].Text)
  1978. end
  1979. end
  1980. end)
  1981. CreateToolContents(VehicleGodFrame, nil, {
  1982. Size = UDim2.new(0, 160, 0, 30),
  1983. FontSize = "Size18",
  1984. Text = "God Vehicle"
  1985. }, function(inputs)
  1986. if Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
  1987. KillVehicleConnections(Settings.SelectedVehicle)
  1988. Settings.GoddedVehicleConnections[Settings.SelectedVehicle] = {}
  1989. for _, child in pairs(Settings.SelectedVehicle.Stats:GetChildren()) do
  1990. if child.Name ~= "MaxSpeed" and child.Name ~= "storage" then
  1991. local function GodStat()
  1992. child.Value = 99999
  1993. end
  1994. GodStat()
  1995. Settings.GoddedVehicleConnections[Settings.SelectedVehicle][child] = child.Changed:connect(function()
  1996. if child.Value ~= 99999 then
  1997. GodStat()
  1998. end
  1999. end)
  2000. end
  2001. end
  2002. end
  2003. end)
  2004. CreateToolContents(OffroadSpeedFrame, {{
  2005. Name = "Input",
  2006. Size = UDim2.new(0, 100, 0, 30),
  2007. Text = "[n]"
  2008. }}, {
  2009. Size = UDim2.new(0, 150, 0, 30),
  2010. Text = "Set Vehicle Offroad Speed"
  2011. }, function(inputs)
  2012. if tonumber(inputs[1].Text) and Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
  2013. local maximum_speed = GetChild(Settings.SelectedVehicle.Stats, "MaxSpeed")
  2014. local offroad_speed;
  2015. if maximum_speed then
  2016. offroad_speed = GetChild(maximum_speed, "Offroad")
  2017. end
  2018. if offroad_speed then
  2019. --ChangeProperty(offroad_speed, "Value", tonumber(inputs[1].Text))
  2020. offroad_speed.Value = tonumber(inputs[1].Text)
  2021. end
  2022. end
  2023. end)
  2024. CreateToolContents(VehicleUngodFrame, nil, {
  2025. Size = UDim2.new(0, 160, 0, 30),
  2026. FontSize = "Size18",
  2027. Text = "UnGod Vehicle"
  2028. }, function(inputs)
  2029. if Settings.SelectedVehicle and GetChild(Settings.SelectedVehicle, "Stats") then
  2030. KillVehicleConnections(Settings.SelectedVehicle)
  2031. wait()
  2032. for _, child in pairs(Settings.SelectedVehicle.Stats:GetChildren()) do
  2033. if child.Name ~= "MaxSpeed" and child.Name ~= "storage" then
  2034. ChangeProperty(child, "Value", child:GetChildren()[1].Value)
  2035. end
  2036. end
  2037. end
  2038. end)
  2039. CreateToolContents(SetHonkingSound, {{
  2040. Name = "Input",
  2041. Size = UDim2.new(0, 100, 0, 30),
  2042. Text = "[audio id]"
  2043. }}, {
  2044. Size = UDim2.new(0, 150, 0, 30),
  2045. Text = "Set Honking Sound ID"
  2046. }, function(inputs)
  2047. if Settings.SelectedVehicle then
  2048. if tonumber(inputs[1].Text) then
  2049. local new_sound = "rbxassetid://" .. tonumber(inputs[1].Text)
  2050. local essentials = GetChild(Settings.SelectedVehicle, "Essentials")
  2051. if essentials then
  2052. local base_essential = GetChild(essentials, "Base")
  2053. if base_essential then
  2054. local horn_sound = GetChild(base_essential, "Horn")
  2055. if horn_sound then
  2056. ChangeProperty(horn_sound, "SoundId", new_sound)
  2057. ChangeProperty(horn_sound, "Pitch", 1)
  2058. ChangeProperty(horn_sound, "Volume", 1)
  2059. else
  2060. Inform("Unable to find vehicle sound instance")
  2061. end
  2062. else
  2063. Inform("Unable to find vehicle base essential")
  2064. end
  2065. end
  2066. else
  2067. Inform("Must be a number!")
  2068. end
  2069. end
  2070. end)
  2071. end
  2072. do -- Misc tab
  2073. local MiscHolderFrame = CreateInstance("Frame", MiscFrame){
  2074. Name = "MainHolder",
  2075. BackgroundTransparency = 1,
  2076. Size = UDim2.new(1, 0, 1, 0)
  2077. }
  2078. local UpdatesHolderFrame = CreateInstance("Frame", MiscFrame){
  2079. Name = "UpdatesHolder",
  2080. BackgroundTransparency = 1,
  2081. Position = UDim2.new(0, 0, -1, 0),
  2082. Size = UDim2.new(1, 0, 1, 0)
  2083. }
  2084. local function CreateToolFrame(name, position, size)
  2085. return CreateInstance("Frame", MiscHolderFrame){
  2086. Name = name,
  2087. BackgroundColor3 = Color3.new(1, 1, 1),
  2088. BackgroundTransparency = 1,
  2089. Position = position,
  2090. Size = size
  2091. }
  2092. end
  2093. local function CreateToolContents(tool_frame, inputs, invoke_data, click_function)
  2094. local total_size = 0
  2095. local input_instances, invoke_instance = {}
  2096. for index, input_data in pairs(inputs or {}) do
  2097. table.insert(input_instances, ({CreateInstance("TextBox", tool_frame){
  2098. Name = input_data.Name,
  2099. BackgroundColor3 = Color3.new(1, 1, 1),
  2100. BorderColor3 = Color3.new(),
  2101. Position = UDim2.new(input_data.X1 or 0, total_size, input_data.Y1 or 0, input_data.Y2 or 0),
  2102. Size = input_data.Size,
  2103. Font = "SourceSans",
  2104. FontSize = "Size14",
  2105. Text = input_data.Text,
  2106. TextColor3 = Color3.new()
  2107. }})[1])
  2108. total_size = total_size + input_data.Size.X.Offset + 10
  2109. end
  2110. invoke_instance = CreateBorder(CreateInstance("TextButton", tool_frame){
  2111. Name = "Invoke",
  2112. BackgroundColor3 = Color3.new(1, 1, 1),
  2113. BorderSizePixel = 0,
  2114. Position = UDim2.new(0, total_size, 0, 0),
  2115. Size = invoke_data.Size,
  2116. Font = invoke_data.Font or "SourceSans",
  2117. FontSize = invoke_data.FontSize or "Size14",
  2118. Text = invoke_data.Text,
  2119. TextColor3 = Color3.new()
  2120. })
  2121. invoke_instance.MouseButton1Down:connect(function()
  2122. if click_function then
  2123. click_function(input_instances)
  2124. end
  2125. end)
  2126. return input_instances, invoke_instance
  2127. end
  2128. do
  2129. local UpdateBackButton = CreateInstance("TextButton", UpdatesHolderFrame){
  2130. Name = "Back",
  2131. BackgroundTransparency = 1,
  2132. Position = UDim2.new(0, 0, 0, 10),
  2133. Size = UDim2.new(0, 80, 0, 20),
  2134. Font = "SourceSans",
  2135. FontSize = "Size18",
  2136. Text = "< Go Back",
  2137. TextColor3 = Color3.new()
  2138. }
  2139. local UpdateText = CreateInstance("TextLabel", UpdatesHolderFrame){
  2140. Name = "MainLabel",
  2141. BackgroundTransparency = 1,
  2142. Position = UDim2.new(0.5, -135, 0, 30),
  2143. Size = UDim2.new(0.6, 0, 0.6, 0),
  2144. Font = "SourceSansLight",
  2145. FontSize = "Size24",
  2146. Text = "update " .. (Settings.Version < 1 and "." .. string.match(tostring(Settings.Version), "%d*%.(%w+)") or Settings.Version) .. " BETA\n\n" .. Settings.UpdateInformation,
  2147. TextColor3 = Color3.new(),
  2148. TextYAlignment = "Top"
  2149. }
  2150. UpdateBackButton.MouseButton1Down:connect(function()
  2151. UpdatesHolderFrame:TweenPosition(UDim2.new(0, 0, -1, 0), "Out", "Sine", 0.8, true, function()
  2152. MiscHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
  2153. end)
  2154. end)
  2155. end
  2156. local ESPFrame = CreateToolFrame("ESP", UDim2.new(0, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
  2157. local NoclipFrame = CreateToolFrame("Noclip", UDim2.new(0.5, 10, 0, 10), UDim2.new(0.5, -20, 0, 30))
  2158. local StaminaFrame = CreateToolFrame("Stamina", UDim2.new(0, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
  2159. local AimbotFrame = CreateToolFrame("Aimbot", UDim2.new(0.5, 10, 0, 50), UDim2.new(0.5, -20, 0, 30))
  2160. local LatestUpdateFrame = CreateToolFrame("LatestUpdate", UDim2.new(0.5, 10, 0, 90), UDim2.new(0.5, -20, 0, 30))
  2161. local ServerChatFrame = CreateToolFrame("PlayerChat", UDim2.new(0, 10, 0, 170), UDim2.new(1, -20, 0, 30))
  2162. CreateToolContents(ESPFrame, nil, {
  2163. Size = UDim2.new(1, 0, 0, 30),
  2164. Text = "Extra Sensory Perception"
  2165. }, function(inputs)
  2166. Settings.ESP = not Settings.ESP
  2167. Inform("ESP is now %s", Settings.ESP == true and "enabled" or "disabled")
  2168. end)
  2169. CreateToolContents(NoclipFrame, nil, {
  2170. Font = "SourceSansLight",
  2171. FontSize = "Size24",
  2172. Size = UDim2.new(1, 0, 0, 30),
  2173. Text = "Noclip / Reclip"
  2174. }, function(inputs)
  2175. Settings.Noclip = not Settings.Noclip
  2176. Inform("Noclip is now %s", Settings.Noclip == true and "enabled" or "disabled")
  2177. end)
  2178. CreateToolContents(StaminaFrame, nil, {
  2179. Font = "SourceSans",
  2180. FontSize = "Size14",
  2181. Size = UDim2.new(1, 0, 0, 30),
  2182. Text = "Unlimited Stamina / Always Sprint"
  2183. }, function(inputs)
  2184. local PlayerGui = FindFirstClass(Player, "PlayerGui")
  2185. pcall(function() PlayerGui.HitEqualsYouDie.WalkspeedEdit:Destroy() end)
  2186. pcall(function() PlayerGui.HitEqualsYouDie.JumpLimiter:Destroy() end)
  2187. pcall(function() Player.Character.Humanoid.WalkSpeed = 25 end)
  2188. Inform("Unlimited stamina is enabled")
  2189. end)
  2190. CreateToolContents(AimbotFrame, nil, {
  2191. Font = "SourceSansLight",
  2192. FontSize = "Size18",
  2193. Size = UDim2.new(1, 0, 0, 30),
  2194. Text = "Enable / Disable AimBot"
  2195. }, function(inputs)
  2196. Settings.AimBot = not Settings.AimBot
  2197. Inform("Aimbot is now %s", Settings.AimBot == true and "enabled" or "disabled")
  2198. end)
  2199. CreateToolContents(LatestUpdateFrame, nil, {
  2200. Font = "SourceSansLight",
  2201. FontSize = "Size18",
  2202. Size = UDim2.new(1, 0, 0, 30),
  2203. Text = "Latest Script Updates/Patches"
  2204. }, function(inputs)
  2205. MiscHolderFrame:TweenPosition(UDim2.new(0, 0, -1, 0), "Out", "Sine", 0.8, true, function()
  2206. UpdatesHolderFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Sine", 0.8, true)
  2207. end)
  2208. end)
  2209. CreateToolContents(ServerChatFrame, {{
  2210. Name = "Input",
  2211. Size = UDim2.new(0, 150, 0, 30),
  2212. Text = "[player name]"
  2213. }, {
  2214. Name = "Input2",
  2215. Position = UDim2.new(0, 160, 0, 0),
  2216. Size = UDim2.new(0, 150, 0, 30),
  2217. Text = "[message]"
  2218. }}, {
  2219. Font = "SourceSansLight",
  2220. FontSize = "Size18",
  2221. Position = UDim2.new(1, -110, 0, 0),
  2222. Size = UDim2.new(0, 110, 0, 30),
  2223. Text = "Chat to Server"
  2224. }, function(inputs)
  2225. ServerChat(inputs[1].Text, inputs[2].Text)
  2226. end)
  2227. end
  2228. VisabilityToggler.MouseButton1Down:connect(function()
  2229. VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, -90), "Out", "Sine", 0.8, true)
  2230. MainHolder:TweenPosition(UDim2.new(0.5, -225, 0.25, 0), "Out", "Sine", 0.8, true)
  2231. end)
  2232. CloseButton.MouseButton1Down:connect(function()
  2233. VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, 20), "Out", "Sine", 0.8, true)
  2234. MainHolder:TweenPosition(UDim2.new(0.5, -225, 0, -400), "Out", "Sine", 0.8, true)
  2235. end)
  2236. VisabilityToggler:TweenPosition(UDim2.new(0.5, -60, 0, 20), "Out", "Sine", 0.8, true)
  2237. end
  2238.  
  2239. --[[
  2240. Mouse.KeyDown:connect(function(key)
  2241. key = string.byte(string.lower(key))
  2242. if key == 50 then
  2243. Settings.AimBot = true
  2244. end
  2245. end)
  2246.  
  2247. Mouse.KeyUp:connect(function(key)
  2248. key = string.byte(string.lower(key))
  2249. if key == 50 then
  2250. Settings.AimBot = false
  2251. end
  2252. end)
  2253. --]]
  2254.  
  2255. Thread(function()
  2256. RunService.Stepped:connect(function()
  2257. if Settings.Noclip and Player.Character then
  2258. pcall(function() Player.Character.Torso.CanCollide = false end)
  2259. pcall(function() Player.Character.Head.CanCollide = false end)
  2260. end
  2261. end)
  2262. end)
  2263.  
  2264. Thread(function()
  2265. RunService.RenderStepped:connect(function()
  2266. if Settings.AimBot then
  2267. local target = GetNearestPlayerToMouse()
  2268. if target then
  2269. local head = target.Character and GetChild(target.Character, "Head") or nil
  2270. if head then
  2271. GetCamera().CoordinateFrame = CFrame.new(GetCamera().CoordinateFrame.p, head.CFrame.p)
  2272. end
  2273. --target.Name:sub(1, 5)
  2274. else
  2275. --off
  2276. end
  2277. end
  2278. end)
  2279. end)
  2280.  
  2281. do
  2282. local billboard = Instance.new("BillboardGui")
  2283. billboard.Name = "__"
  2284. billboard.AlwaysOnTop = true
  2285. billboard.Enabled = true
  2286. billboard.ExtentsOffset = Vector3.new(0, 3, 0)
  2287. billboard.Size = UDim2.new(1, 0, 1, 0)
  2288. local image = Instance.new("ImageLabel", billboard)
  2289. image.Name = "lol"
  2290. image.BackgroundTransparency = 1
  2291. image.Position = UDim2.new(-0.25, 0, 0, 0)
  2292. image.Size = UDim2.new(1.5, 0, 1.5, 0)
  2293. image.Image = "rbxassetid://136011733"
  2294.  
  2295. Thread(function()
  2296. while wait(0.15) do
  2297. for _, child in pairs(Workspace:GetChildren()) do
  2298. if child:IsA("Model") and Players:GetPlayerFromCharacter(child) and child ~= Player.Character and GetChild(child, "Head") then
  2299. if Settings.ESP and not GetChild(child.Head, "__") then
  2300. local initial = billboard:Clone()
  2301. initial.Parent = child.Head
  2302. end
  2303. if not Settings.ESP and GetChild(child.Head, "__") then
  2304. child.Head.__:Destroy()
  2305. end
  2306. end
  2307. end
  2308. end
  2309. end)
  2310. end
  2311.  
  2312. for _, player in pairs(Players:GetPlayers()) do
  2313. if player ~= Player then
  2314. ConnectPlayer(player)
  2315. end
  2316. end
  2317.  
  2318. Thread(function()
  2319. while RunService.Stepped:wait() do
  2320. if Player.Character and Player.Character.Parent == Workspace and GetChild(Player.Character, "driven") == nil and PlayerSpawned(Player) then
  2321. BypassTeleportCheck(Player)
  2322. end
  2323. local PlayerGui = GetChild(Player, "PlayerGui")
  2324. if PlayerGui then
  2325. local LeaderboardGUI = GetChild(PlayerGui, "MyGroup")
  2326. if LeaderboardGUI then
  2327. for _, child in pairs(LeaderboardGUI:GetChildren()) do
  2328. if child:IsA("TextButton") and string.sub(child.Name, 1, 1) == "M" and child.Text ~= "Player Name" then
  2329. local player = GetPlayers(string.gsub(child.Text, "%s", ""))[1]
  2330. if player and GetChild(player, "_il_oa") then
  2331. local red, green, blue = GetRainbowRGB(tick())
  2332. local color = Color3.new(0.6 * red, 0.6 * green, 0.65 * blue)
  2333. child.TextXAlignment = "Center"
  2334. child.FontSize = "Size12"
  2335. child.Text = "~ " .. (string.match(child.Text, "~ %s ~") or child.Text) .. " ~"
  2336. child.TextColor3 = color
  2337. child.BackgroundColor3 = color
  2338. end
  2339. end
  2340. end
  2341. end
  2342. end
  2343. end
  2344. end)
  2345.  
  2346. if Settings.Game ~= "UNKNOWN" then
  2347. local holder = Workspace.messages
  2348. holder.m1.Changed:connect(function()
  2349. local user, message = string.match(holder.m1.Value, "(.+):%s+(.+)")
  2350. OnChatted(GetPlayers(user)[1], message)
  2351. end)
  2352. end
  2353.  
  2354. Players.PlayerAdded:connect(ConnectPlayer)
  2355.  
  2356. Inform("Welcome to Garbogui")
  2357. wait(0.8)
  2358. Inform("Created by iLordVex!, cracked by kujo, onion and julian nigs")
  2359. wait(1)
  2360. Inform("Game Detected: %s", Settings.Game)
  2361.  
  2362. if getgenv then
  2363. for index, value in pairs(getfenv()) do
  2364. getgenv()[index] = value
  2365. end
  2366. end
  2367.  
  2368. CreateGUI()
Add Comment
Please, Sign In to add comment