The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Epic Thing (Cracked) script pastebin roblox
By Epic Thing (Cracked) on 2024-09-22 08:00 am | Syntax: LUA | Views: 8



New Script | Raw | Show/Hide line no. | Copy text to clipboard
  1. do
  2. getreg().whitelist_key = 'cracked';
  3. getreg().ID = 'lol';
  4.  
  5. local base64_custom = {};
  6. do
  7.         -- character table string
  8.         local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  9.         local enc_const1 = 1.899346804; --cringe
  10.         local enc_const2 = 8; --to make c work together with the operations
  11.  
  12.         -- encoding
  13.         base64_custom.enc = function(data)
  14.                 return ((data:gsub('.', function(x)
  15.                         local r,b='',(x:byte() * enc_const1);
  16.                         for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
  17.                         return r;
  18.                 end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
  19.                         if (#x < 6) then return '' end
  20.                         local c=0
  21.                         for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
  22.                         return b:sub(c+1,c+1)
  23.                 end)..({ '', '==', '=' })[#data%3+1])
  24.         end
  25.  
  26.         -- decoding
  27.         base64_custom.dec = function(data)
  28.                 data = string.gsub(data, '[^'..b..'=]', '')
  29.                 return (data:gsub('.', function(x)
  30.                         if (x == '=') then return '' end
  31.                         local r,f='',(b:find(x)-1)
  32.                         for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
  33.                         return r;
  34.                 end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
  35.                         if (#x ~= 8) then return '' end
  36.                         local c=0
  37.                         for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(enc_const2-i) or 0) end
  38.                         return string.char((c/enc_const1) + 1);
  39.                 end));
  40.         end;
  41. end;
  42.  
  43. do
  44.         local BLOXBURG_VERSION = '952';
  45.         local CONSTANT_UUID = 'fe55a2a8-1c84-423c-9cc2-15b4215fb2cb';
  46.         local responses = {
  47.                 ['https://bloxburg.sexy/version.php'] = BLOXBURG_VERSION;
  48.                 ['https://sor.cool/whitelist/bemeingtimesex.lua'] = CONSTANT_UUID;
  49.                 ['https://bloxburg.sexy/getinvite.php'] = 'https://bloxburg.sexy/discord/joinDiscord';
  50.                 ['https://bloxburg.sexy/neighborhoods/getCode.php'] = '';
  51.         };
  52.        
  53.         local replaceclosure = getfenv()[base64_custom.dec('2L/Uzbi8v7zN0tre2L8=')];
  54.         local httpService = game:GetService('HttpService');
  55.  
  56.         replaceclosure(syn.request, newcclosure(function(t)
  57.                 local tur = t.Url;
  58.                 if (tur == 'https://sor.cool/whitelist/bemeingtimesex.lua') then
  59.                         return { Body = CONSTANT_UUID, StatusCode = 200 };
  60.                 elseif (tur == 'https://sor.cool/whitelist/sanity.lua') then
  61.                         return { Body = tostring(os.time()):sub(1, -4), StatusCode = 200 };
  62.                 else
  63.                         local key, id, data = tur:match('^http[s]?://sor%.cool/whitelist/checkauthentication%.lua%??[%w+%?=]-[%?&]Key=([_%w%%]-)&ID=(%w+)&Data=([%w%+/=]*)');
  64.                         if (key) then
  65.                                 data = base64_custom.dec(data);
  66.                                 local nt = 0;
  67.                                 local t = tostring(os.time()):sub(1, -4);
  68.                                 do
  69.                                         local pstart = 3.7;
  70.                                         nt = t * 1.5335;
  71.                                         nt = (nt + ((nt / 2) / (nt / 0.5)));
  72.                                         nt = math.ceil(nt * 1.5 * tonumber(pstart));
  73.                                         nt = tonumber(nt) + 5219;
  74.                                         nt = nt + tonumber(data); --append data
  75.                                 end;
  76.  
  77.                                 return { Body = httpService:JSONEncode{
  78.                                         signature = t;
  79.                                         data = base64_custom.enc(tostring(nt));
  80.                                 }, StatusCode = 200 };
  81.                         end;
  82.                 end;
  83.         end));
  84.  
  85.         replaceclosure(game.HttpGet, newcclosure(function(self, url, is_async)
  86.                 return responses[url];
  87.         end));
  88. end;
  89. end;
  90.  
  91. -- //Check Exploit\\
  92. repeat wait() until game:IsLoaded()
  93. local beta = false
  94. local private = false
  95. local function getexploit()
  96.     local exploit =
  97.         (syn and not is_sirhurt_closure and not pebc_execute and "Synapse") or
  98.         ("Unsupported")
  99.  
  100.     return exploit
  101.  end
  102. if getexploit() == "Unsupported" then
  103.     game.Players.LocalPlayer:Kick("[Void] Exploit not supported! Please use Synapse.")
  104. end
  105. local exploit = getexploit()
  106. --[[
  107.     Release:
  108.         Synapse: 27
  109.         Krnl: 32
  110.     Obfuscated:
  111.         Synapse: 55
  112.         Krnl: 30
  113.     Unobfuscated:
  114.         Synapse: 42
  115.         Krnl: 18
  116. ]]
  117. --[[local krnlCheck = 32
  118. local synapseCheck = 27
  119. num = 0
  120. for i,v in pairs(getgc()) do
  121.     if type(v) == "function" and islclosure(v) and getfenv(v).script and not getfenv(v).script.Parent then
  122.         a = (debug.getinfo(v).source)
  123.         if (string.find(a,"@")) then
  124.             num = num + 1
  125.         end
  126.     end
  127. end
  128. if (exploit == "Synapse" and num > synapseCheck) or (exploit == "Krnl" and num > krnlCheck) then
  129.     print(num)
  130.     game.Players.LocalPlayer:Kick("[Void] Don't execute anything before the script.")
  131.     wait(3)
  132.     while true do end
  133. end]]
  134. --// Variables
  135.  
  136. if not shared.ran then
  137.     shared.ran = true
  138. else
  139.     a = false
  140.     repeat wait() until a
  141. end
  142. local host = 'https://sor.cool/whitelist'
  143. local Key = getreg().whitelist_key or "retardalert"
  144. local ID = getreg().ID or "retardalert"
  145. if(Key == "") then
  146.     Key = "retardalert"
  147. end
  148. if(ID == "") then
  149.     ID = "retardalert"
  150. end
  151. local request = (exploit == "Synapse" and syn.request) or (exploit == "ProtoSmasher" and http_request) or (exploit == "Krnl" and request)
  152. local TweenService = game:GetService("TweenService")
  153. local HttpService = game:GetService("HttpService")
  154. local LocalPlayer = game:GetService("Players").LocalPlayer
  155. local start = tick()
  156. local starttime = os.time()
  157. local checks = {}
  158. local checked = {}
  159. local cracked = false
  160. local jmpkey = math.random(1,10000000)
  161. local jmpcheck4 = math.random(1,10000000)
  162. local jmpcheck2 = nil
  163. local jmpdepend = math.random(1,4)
  164. local jmpcheck1 = nil
  165. local jmpcheck3 = nil
  166.  
  167. local function Create(object, properties)
  168.     local Object = Instance.new(object)
  169.    
  170.     for i, v in pairs(properties) do
  171.         Object[i] = v
  172.     end
  173.    
  174.     return Object
  175. end
  176.  
  177. --// Functions
  178. function noSpace(str)
  179.     local normalisedString = string.gsub(str, "%s+", '%%20')
  180.     return normalisedString
  181. end
  182. function randomString(length)
  183.     local res = ""
  184.     for i = 1, length do
  185.         res = res .. string.char(math.random(97, 122))
  186.     end
  187.     return res
  188. end
  189. local function grabTime(v1)
  190.     if v1 < 1 then
  191.         while true do end
  192.     end
  193.     time11 = tostring(os.time())
  194.     timee = time11:sub(1, -4)
  195.     local a = timee
  196.     local a = a * 1.5335
  197.     timeee = a + ((a / 2) / (a / 0.5))
  198.     timeee = math.ceil((timeee * 1.5 * tonumber(v1)))
  199.     timeee = tonumber(timeee) + 5219
  200.     if timeee < 100 then
  201.         while true do end
  202.     end
  203.     return timeee
  204. end
  205. function grabData()
  206.     return math.cos(math.ldexp(grabTime(3.3) * 6,5) + math.random(1,100000) + 3) + 2
  207. end
  208. function get(Url)
  209.     local res = request({
  210.     Url = (Url);
  211.     Method = 'GET';
  212.     })
  213.     if not (res["StatusCode"]) then
  214.         while true do end
  215.     elseif res["StatusCode"] ~= 200 then
  216.         while wait() do end
  217.         wait(0.6)
  218.         wait(2)
  219.         while true do end
  220.         while wait() do end
  221.     end
  222.     return res["Body"]
  223. end
  224. local function report(report_id,addinfo)
  225.         print(addinfo)
  226.     if cracked == true then
  227.         while wait() do end
  228.     end
  229.     if(addinfo == "" or not addinfo) then
  230.         addinfo = "None"
  231.     else
  232.         addinfo = noSpace(addinfo)
  233.     end
  234.     local res = request(
  235.         {
  236.             Url = host .. "/logs.lua?info=" .. (report_id or "nil") .. "&ID=" .. (ID or "nil") .. "&private="..(tostring(private) or false).."&addinfo=" .. (addinfo or "None"),
  237.             Method = "POST",
  238.         }
  239.     )
  240.     game:GetService("Players").LocalPlayer:Kick("Detected crack attempt. (" .. report_id .. ")")
  241.     repeat wait() until res
  242.     cracked = true
  243.     wait(0.3)
  244.     while true do end
  245.     a = false
  246.     repeat wait() until a == true
  247. end
  248. local function reportOutput(type,text)
  249.     if(text == "" or not text) then
  250.         text = "None"
  251.     else
  252.         text = noSpace(text)
  253.     end
  254.     local res = request(
  255.         {
  256.             Url = host .. "/api/logs/send?channel=" .. 'output' .. "&info=" .. type .. "&key=" .. Key .. "&text=" .. text,
  257.             Method = "POST"
  258.         }
  259.     )
  260. end
  261. local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' -- You will need this for encoding/decoding
  262.  
  263. local Base64 = {}
  264. function Base64.Encode(data)
  265.     data = tostring(data)
  266.     local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  267.     return ((data:gsub('.', function(x)
  268.         local r,b='',x:byte()*(1.899346804)
  269.         for i=8,1,-1 do r=r..(b%2^i-b%2^(i-1)>0 and '1' or '0') end
  270.         return r;
  271.     end)..'0000'):gsub('%d%d%d?%d?%d?%d?', function(x)
  272.         if (#x < 6) then return '' end
  273.         local c=0
  274.         for i=1,6 do c=c+(x:sub(i,i)=='1' and 2^(6-i) or 0) end
  275.         return b:sub(c+1,c+1)
  276.     end)..({ '', '==', '=' })[#data%3+1])
  277. end
  278. -- decoding
  279. function Base64.Decode(data)
  280.     local b='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
  281.     data = string.gsub(data, '[^'..b..'=]', '')
  282.     return (data:gsub('.', function(x)
  283.         if (x == '=') then return '' end
  284.         local r,f='',(b:find(x)-1)
  285.         for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end
  286.         return r;
  287.     end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x)
  288.         if (#x ~= 8) then return '' end
  289.         local c=0
  290.         for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end
  291.             return string.char((c/1.899346804 + 1))
  292.     end))
  293. end
  294. local function base(s)
  295.     return s:lower() == s and ('a'):byte() or ('A'):byte()
  296. end
  297.  
  298. function cipher(str)
  299.     return (str:gsub("%a", function(s)
  300.         local base = base(s)
  301.         return string.char(((s:byte() - base + 13) % 26) + base)
  302.     end));
  303. end
  304.  
  305. function decipher(str)
  306.     return (str:gsub("%a", function(s)
  307.         local base = base(s)
  308.         return string.char(((s:byte() - base - 13) % 26) + base)
  309.     end));
  310. end
  311.  
  312. function encrypt(str)
  313.     local encrypted = ""
  314.     string.gsub(cipher(str), ".", function(char) encrypted = encrypted .. string.format("%02X", string.byte(char)) end)
  315.     return cipher(encrypted)
  316. end
  317. function decrypt(encrypted)
  318.     local decrypted = ""
  319.     string.gsub(decipher(encrypted), "..", function(hexbyte) decrypted = decrypted .. string.char(tonumber(hexbyte, 16)) end)
  320.     return decipher(decrypted);
  321. end
  322.  
  323. function grabVerification()
  324.     local mathrandom = 3
  325.     verifyy = math.random()
  326.     local test = mathrandom * verifyy
  327.     local L = test * verifyy / 2
  328.     return L
  329. end
  330. function checkVerify(check, crash)
  331.     local found
  332.     for i,v in ipairs(checks) do
  333.         if(v == check) then
  334.             found = true
  335.         end
  336.     end
  337.     if(found ~= true) then
  338.         if(crash == true) then
  339.             report(1) -- Verification Check Failed
  340.         end
  341.         return false
  342.     else
  343.         found = false
  344.         for i,v in pairs(checked) do
  345.             if v == check then
  346.                 found = true
  347.             end
  348.         end
  349.         if found == false then
  350.             table.insert(checked, check)
  351.         end
  352.         return true
  353.     end
  354. end
  355. function EndVerify()
  356.     local a = 0
  357.     local b = 0
  358.     for i,v in pairs(checks) do
  359.         a = a + 1
  360.     end
  361.     for i,v in pairs(checked) do
  362.         b = b + 1
  363.     end
  364.     if(a ~= 3 or b ~= 3) then
  365.         report(2) -- Verification End Failed
  366.     end
  367.     if not(b == a) then
  368.         report(2) -- Verification End Failed
  369.     end
  370. end
  371.  
  372. function Verify(check, verification)
  373.     if(checkVerify(check, false)) then
  374.         report(3) -- Verification Failed
  375.     end
  376.     local function func()
  377.         local verificationstring = 2
  378.         local verificationstring = verificationstring + 3 - 2
  379.         local veriffy = verifyy
  380.         local noob = verificationstring * veriffy
  381.         local diot = noob * veriffy / 2
  382.         return diot
  383.     end
  384.     local verificationstring = func()
  385.     if(verification ~= verificationstring) then
  386.         report(3) -- Verification Failed
  387.         return false
  388.     else
  389.         table.insert(checks, check)
  390.         return true
  391.     end
  392. end
  393.  
  394. -- //Anti EQ\\
  395. function eq(a,b)
  396.     if type(a) ~= type(b) then
  397.         report(8, "EQ1, " .. a .. " " .. b) -- EQ Failed
  398.         return false
  399.     end
  400.     a = tostring(a)
  401.     b = tostring(b)
  402.     c = false
  403.     if(string.len(a) ~= string.len(b)) then
  404.         report(8, "EQ2, " .. a .. " " .. b) -- EQ Failed
  405.         return false
  406.     end
  407.     str = 'abc'
  408.     a1 = ''
  409.     a2 = 0
  410.     a3 = {}
  411.     string.gsub(a, ".", function(char)
  412.         a1 = a1 .. string.format("%02X", string.byte(char))
  413.         table.insert(a3,string.format("%02X", string.byte(char)))
  414.     end)
  415.     b1 = ''
  416.     b2 = 0
  417.     b3 = {}
  418.     string.gsub(b, ".", function(char)
  419.         b1 = b1 .. string.format("%02X", string.byte(char))
  420.         table.insert(b3,string.format("%02X", string.byte(char)))
  421.     end)
  422.     for i,v in pairs(a3) do
  423.         a2 = a2 + 1
  424.     end
  425.     for i,v in pairs(b3) do
  426.         b2 = b2 + 1
  427.     end
  428.     if a2 ~= b2 then
  429.         report(8, "EQ3, " .. a .. " " .. b) -- EQ Failed
  430.         return false
  431.     end
  432.     for i=1,a:len() do
  433.         if a3[i] ~= b3[i] then
  434.             report(8, "EQ4, " .. a .. " " .. b) -- EQ Failed
  435.             return false
  436.         end
  437.     end
  438.     for i=1,math.random(1,4) do
  439.         local depend = math.random(1,5)
  440.         if depend == 1 then
  441.             a = a:rep(2)
  442.             b = b:rep(2)
  443.             for i=1,a:len() do
  444.                 if a ~= b then
  445.                     report(8, "EQ5, " .. a .. " " .. b) -- EQ Failed
  446.                     return false
  447.                 else
  448.                     c = true
  449.                 end
  450.             end
  451.             return c
  452.         elseif(depend == 2) then
  453.             if a:reverse() ~= a:reverse() then
  454.                 report(8, "EQ6, " .. a .. " " .. b) -- EQ Failed
  455.                 return false
  456.             elseif(b:reverse() ~= b:reverse()) then
  457.                 report(8, "EQ7, " .. a .. " " .. b) -- EQ Failed
  458.                 return false
  459.             elseif(b:reverse() == a:reverse()) then
  460.                 wtfjmptext = (('a'):rep(jmpdepend*10))
  461.                 return true
  462.             elseif(a:reverse() == b:reverse()) then
  463.                 report(8, "EQ8, " .. a .. " " .. b) -- EQ Failed
  464.                 return false
  465.             else
  466.                 report(8, "EQ9, " .. a .. " " .. b) -- EQ Failed
  467.                 return false
  468.             end
  469.         elseif(depend == 3) then
  470.             if(a:len() ~= b:len()) then
  471.                 report(8, "EQ10, " .. a .. " " .. b) -- EQ Failed
  472.                 return false
  473.             elseif(a:len() ~= a:len()) then
  474.                 report(8, "EQ11, " .. a .. " " .. b) -- EQ Failed
  475.                 return false
  476.             elseif(b:len() ~= b:len()) then
  477.                 report(8, "EQ12, " .. a .. " " .. b) -- EQ Failed
  478.                 return false
  479.             elseif(b:len() == a:len()) then
  480.                 wtfjmptext = (('a'):rep(jmpdepend*10))
  481.                 return true
  482.             elseif(a:len() == b:len()) then
  483.                 report(8, "EQ13, " .. a .. " " .. b) -- EQ Failed
  484.                 return false
  485.             end
  486.         elseif(depend == 4) then
  487.             if not(a:find(b)) then
  488.                 report(8, "EQ14, " .. a .. " " .. b) -- EQ Failed
  489.                 return false
  490.             elseif not (b:find(a)) then
  491.                 report(8, "EQ15, " .. a .. " " .. b) -- EQ Failed
  492.                 return false
  493.             elseif not (b:find(b)) then
  494.                 report(8, "EQ16, " .. a .. " " .. b) -- EQ Failed
  495.                 return false
  496.             elseif not (a:find(a)) then
  497.                 report(8, "EQ17, " .. a .. " " .. b) -- EQ Failed
  498.                 return false
  499.             elseif (a:find(b)) then
  500.                 wtfjmptext = (('a'):rep(jmpdepend*10))
  501.                 return true
  502.             elseif (b:find(a)) then
  503.                 report(8, "EQ18, " .. a .. " " .. b) -- EQ Failed
  504.                 return false
  505.             end
  506.         elseif(depend == 5) then
  507.             local a = a:reverse()
  508.             local b = b:reverse()
  509.             local a = a:len()
  510.             local b = b:len()
  511.             if not (a == b) then
  512.                 report(8, "EQ19, " .. a .. " " .. b) -- EQ Failed
  513.                 return false
  514.             elseif not (a == a) then
  515.                 report(8, "EQ20, " .. a .. " " .. b) -- EQ Failed
  516.                 return false
  517.             elseif not (b == b) then
  518.                 report(8, "EQ21, " .. a .. " " .. b) -- EQ Failed
  519.                 return false
  520.             elseif not (a ~= b) then
  521.                 wtfjmptext = (('a'):rep(jmpdepend*10))
  522.                 return true
  523.             elseif not (b ~= a) then
  524.                 report(8, "EQ22, " .. a .. " " .. b) -- EQ Failed
  525.                 return false
  526.             else
  527.                 report(8, "EQ23, " .. a .. " " .. b) -- EQ Failed
  528.                 return false
  529.             end
  530.         end
  531.     end
  532. end
  533.  
  534. --// Anti-HttpSpy
  535.  
  536. game:HttpGet(host.."/bemeingtimesex.lua")
  537.  
  538. request({
  539.     Url = host .. "/bemeingtimesex.lua";
  540.     Method = "GET";
  541. })
  542.  
  543. for i,v in next, game:GetService("LogService"):GetLogHistory() do
  544.     if v.message:find('bemeingtimesex') or v.message:find('fe55a2a8-1c84-423c-9cc2-15b4215fb2cb') then
  545.         report(5, "HTTP")
  546.     end
  547. end
  548.  
  549. --/ /Anti-Hookfunctions
  550. print'ah1'
  551. local body = get(host .. '/sanity.lua')
  552.  
  553. expectedBody = tostring(os.time())
  554. expectedBody = expectedBody:sub(1, -4)
  555. print'san1'
  556. repeat wait() until body ~= ''
  557. if tonumber(body) ~= tonumber(expectedBody) then
  558.     local a = false
  559.     repeat wait() until a == true
  560. end
  561. local function getfunc()
  562.     return function() end
  563. end
  564.  
  565. spawn(function()
  566.     while wait() do
  567.         if (exploit == "synapse" and not isreadonly(syn)) then
  568.             report(5, "IRO (syn)")
  569.         end
  570.     end
  571. end)
  572.  
  573. if os.time()  tonumber(630)) then
  574.         report(5,"OT-6")
  575.     end
  576. end
  577. end)
  578. local hook1 = 0
  579. spawn(function()
  580. while wait(1) do
  581.     if hook1 > 492374 then
  582.         hook1 = hookTime
  583.     end
  584.     hook1 = hook1 + hookTime
  585.     local a = math.random()
  586.     local b = math.random(hook1,hook1)
  587.     if(a == b) then
  588.         report(5,"MR-1")
  589.     end
  590.     if not (b == hook1) then
  591.         report(5,"MR-2")
  592.     end
  593. end
  594. end)
  595. local hook7 = 0
  596. spawn(function()
  597. while wait(1) do
  598.     if hook7 > 492374 then
  599.         hook7 = hookTime
  600.     end
  601.     hook7 = hook7 + hookTime
  602.     local a = tonumber(math.random())
  603.     local b = tonumber(math.random(hook7,hook7))
  604.     if(a == b) then
  605.         report(5,"TN-1")
  606.     end
  607.     if not (b == hook7) then
  608.         report(5,"TN-2")
  609.     end
  610. end
  611. end)
  612. local hook2 = 0
  613. spawn(function()
  614. while wait(1) do
  615.     if hook2 > 492374 then
  616.         hook2 = hookTime
  617.     end
  618.     hook2 = hook2 + hookTime
  619.     local a = tostring(math.random())
  620.     local b = tostring(math.random(hook2,hook2))
  621.     if(a == b) then
  622.         report(5,"TS-1")
  623.     end
  624.     if not (tonumber(b) == hook2) then
  625.         report(5,"TS-2")
  626.     end
  627. end
  628. end)
  629. local hook3 = 0
  630. spawn(function()
  631. while wait(1) do
  632.     local a = string.char(math.random(51,72))
  633.     local b = string.char(math.random(40,50))
  634.     if(a == b) then
  635.         report(5,"SC-1")
  636.     end
  637. end
  638. end)
  639. local hook4 = 0
  640. spawn(function()
  641. while wait(1) do
  642.     if hook4 > 492374 then
  643.         hook4 = hookTime
  644.     end
  645.     hook4 = hook4 + hookTime
  646.     local string = tostring(math.random(4,7))
  647.     local s = string:sub(1, -1)
  648.     local string2 = tostring(math.random(hook4,hook4))
  649.     local s2 = string2:sub(1, -1)
  650.     if(s == s2) then
  651.         report(5,"SS-1")
  652.     end
  653.     if not (tonumber(s2) == hook4) then
  654.         report(5,"SS-2")
  655.     end
  656. end
  657. end)
  658. local hook6 = 0
  659. spawn(function()
  660. while wait(1) do
  661.     test = math.random(3,6)
  662.     wait(test)
  663.     if(start == os.time()) then
  664.         report(5,"OT-7")
  665.     end
  666. end
  667. end)
  668. local hook8 = 0
  669. spawn(function()
  670. while wait(1) do
  671.     if hook8 > 492374 then
  672.         hook8 = hookTime
  673.     end
  674.     hook8 = hook8 + hookTime
  675.     local a = math.ceil(math.random())
  676.     local b = math.ceil(math.random(hook8,hook8))
  677.     if(a == b) then
  678.         report(5,"MC-1")
  679.     end
  680.     if not (b == hook8) then
  681.         report(5,"MC-2")
  682.     end
  683. end
  684. end)
  685. local hook9 = 0
  686. spawn(function()
  687. while wait(1) do
  688.     if hook9 > 492374 then
  689.         hook9 = hookTime
  690.     end
  691.     hook9 = hook9 + hookTime
  692.     local a = string.char(math.random(51,72))
  693.     local b = string.char(math.random(40,50))
  694.     local c = tonumber(string.byte(a))
  695.     local d = tonumber(string.byte(b))
  696.     if(c == d) then
  697.         report(5,"SB-1")
  698.     end
  699. end
  700. end)
  701. local hook10 = 0
  702. spawn(function()
  703. while wait(1) do
  704.     local a = string.char(math.random(51,72))
  705.     local b = string.char(math.random(40,50))
  706.     local c = a:lower()
  707.     local d = b:lower()
  708.     if(c == d) then
  709.         report(5,"SL-1")
  710.     end
  711. end
  712. end)
  713. local hook11 = 0
  714. spawn(function()
  715. while wait(1) do
  716.     local a = {}
  717.     local aa,b,c = math.random(),math.random(),math.random()
  718.     table.insert(a,aa)
  719.     table.insert(a,b)
  720.     table.insert(a,c)
  721.     local d = 0
  722.     for i,v in pairs(a) do
  723.         d = d + 1
  724.     end
  725.     for i=1,d do
  726.         if not (a[i]) then
  727.             report(5,"TI-1")
  728.         else
  729.             if not (a[i] == aa or a[i] == b or a[i] == c) then
  730.                 report(5,"TI-2")
  731.             end
  732.         end
  733.     end
  734. end
  735. end)
  736. local hook12 = 0
  737. spawn(function()
  738. while wait(1) do
  739.     if hook12 > 492374 then
  740.         hook12 = hookTime
  741.     end
  742.     hook12 = hook12 + hookTime
  743.     local a = math.ceil(math.random(1,5))
  744.     local b = tonumber(string.format("%d",math.random(hook12,hook12)))
  745.     if(a == b) then
  746.         report(5,"SF-1")
  747.     end
  748.     if not (b == hook12) then
  749.         report(5,"SF-2")
  750.     end
  751. end
  752. end)
  753. local hook13 = 0
  754. local hook13T = {}
  755. spawn(function()
  756. while wait(1) do
  757.     if hook13 > 492374 then
  758.         hook13 = hookTime
  759.     end
  760.     hook13 = hook13 + hookTime
  761.     table.insert(hook13T,hook13)
  762.     if not table.find(hook13T,hook13) then
  763.         report(5,"TF-1")
  764.     end
  765. end
  766. end)
  767. local hook14 = 0
  768. spawn(function()
  769. while wait(1) do
  770.      if hook14 > 492374 then
  771.         hook14 = hookTime
  772.     end
  773.     hook14 = hook14 + hookTime
  774.     local a = tostring(hook14):sub(1,-1)
  775.     if a ~= tostring(hook14) then
  776.         report(5,"sub")
  777.     end
  778. end
  779. end)
  780. local hook15 = 0
  781. spawn(function()
  782. while wait(1) do
  783.     if hook15 > 492374 then
  784.         hook15 = hookTime
  785.     end
  786.     hook15 = hook15 + hookTime
  787.     local a = Base64.Encode(tostring(math.random(hook8,hook8)))
  788.     if(a == hook15) then
  789.         report(5,"ENC-1")
  790.     end
  791.     if(tonumber(Base64.Decode(a)) ~= hook15) then
  792.         report(5,"DEC-1")
  793.     end
  794. end
  795. end)
  796. hookTime2 = tostring(os.time())
  797. hookTime2 = hookTime2:sub(1, -4)
  798. hookTime2 = hookTime2 * 1.5335
  799. hookTime2 = hookTime2 + ((hookTime2 / 2) / (hookTime2 / 0.5))
  800. hookTime2 = math.ceil((hookTime2 * 1.5 * 1.72/ 10000))
  801. hookTime2 = tonumber(hookTime2)
  802. if not (hookTime2 == hookTime) then
  803.     report(5,"OT-8")
  804. end
  805. --// Anti-JMP
  806. function jmp(var)
  807.     local table = {}
  808.     setreadonly(table,var)
  809.     if isreadonly(table) then
  810.         return true
  811.     else
  812.         report(6,"SRO")
  813.         return false
  814.     end
  815. end
  816. folder = Create("Folder",{Parent=game.CoreGui,Name='bigmantings'})
  817. local wtf_is_this_table = {
  818.     {aaaaaaaaaa=function() jmpkeyy = jmpkey return {val=true,jmpkey=jmpkey,
  819.         func1=function(jkey,depend)
  820.             if jkey ~= jmpkeyy then
  821.                 report(6,'wtf is this jmp func')
  822.             end
  823.             if depend ~= jmpdepend or depend ~= #tostring(depend) or #tostring(depend) ~= #tostring(jmpdepend) then
  824.                 report(6,'wtf is this jmp func')
  825.             end
  826.             jmpcheck1 = true
  827.             --replace with grabTime with data
  828.             return 123123
  829.         end,
  830.         func2=function(jkey,depend,prev,vcheck)
  831.             if jkey ~= jmpkeyy then
  832.                 report(6,'wtf is this jmp func')
  833.             end
  834.             if depend ~= jmpdepend or depend ~= #tostring(depend) or #tostring(depend) ~= #tostring(jmpdepend) then
  835.                 report(6,'wtf is this jmp func')
  836.             end
  837.             --replace with grabTime with data
  838.             if prev ~= 123123 or #tostring(prev) ~= #tostring(123123) then
  839.                 report(6,'wtf is this jmp func')
  840.             end
  841.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck) ~= (depend) then
  842.                 report(6,'wtf is this jmp func')
  843.             end
  844.             jmpcheck2 = true
  845.             return 'change this to time3'
  846.         end,
  847.         func3=function(jkey,depend,func1res,func2res,vcheck)
  848.             if jkey ~= jmpkeyy then
  849.                 report(6,'wtf is this jmp func')
  850.             end
  851.             if depend ~= jmpdepend or depend ~= #tostring(depend) or #tostring(depend) ~= #tostring(jmpdepend) then
  852.                 report(6,'wtf is this jmp func')
  853.             end
  854.             --replace with grabTime with data
  855.             if func2res ~= 'change this to time3' or #tostring(func2res) ~= #tostring('change this to time3') then
  856.                 report(6,'wtf is this jmp func')
  857.             end
  858.             if func1res ~= 123123 or #tostring(func1res) ~= #tostring(123123) then
  859.                 report(6,'wtf is this jmp func')
  860.             end
  861.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck) ~= (depend) then
  862.                 report(6,'wtf is this jmp func')
  863.             end
  864.             jmpcheck3 = true
  865.             --eq func2res with time3 and checkauth resu
  866.             return {check4=jmpcheck4,check5=57934852,jmp3=function(bool)if bool ~= false then report(6,'wtf is this jmp') else return true end end,jtuseh = game:GetService("TweenService"),fihsefuhh = game:GetService("Players").LocalPlayer,fhiac=game:GetService("UserInputService"),ojh2oa=game:GetService("Players").LocalPlayer:GetMouse()}
  867.         end
  868.     }end},
  869.     {aaaaaaaaaaaaaaaaaaaa=function() jmpkeyy = jmpkey return {val=true,jmpkey=jmpkey,
  870.         func1=function(jkey,depend)
  871.             if jkey ~= jmpkeyy then
  872.                 report(6,'wtf is this jmp func')
  873.             end
  874.             if depend ~= jmpdepend or depend ~= #tostring(depend)+1 or #tostring(depend) ~= #tostring(jmpdepend) then
  875.                 report(6,'wtf is this jmp func')
  876.             end
  877.             jmpcheck1 = true
  878.             --replace with grabTime with data
  879.             return 123123
  880.         end,
  881.         func2=function(jkey,depend,prev,vcheck)
  882.             if jkey ~= jmpkeyy then
  883.                 report(6,'wtf is this jmp func')
  884.             end
  885.             if depend ~= jmpdepend or depend ~= #tostring(depend)+1 or #tostring(depend) ~= #tostring(jmpdepend) then
  886.                 report(6,'wtf is this jmp func')
  887.             end
  888.             --replace with grabTime with data
  889.             if prev ~= 123123 or #tostring(prev) ~= #tostring(123123) then
  890.                 report(6,'wtf is this jmp func')
  891.             end
  892.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+1 ~= (depend) then
  893.                 report(6,'wtf is this jmp func')
  894.             end
  895.             jmpcheck2 = true
  896.             return 'change this to time3'
  897.         end,
  898.         func3=function(jkey,depend,func1res,func2res,vcheck)
  899.             if jkey ~= jmpkeyy then
  900.                 report(6,'wtf is this jmp func')
  901.             end
  902.             if depend ~= jmpdepend or depend ~= #tostring(depend)+1 or #tostring(depend) ~= #tostring(jmpdepend) then
  903.                 report(6,'wtf is this jmp func')
  904.             end
  905.             --replace with grabTime with data
  906.             if func2res ~= 'change this to time3' or #tostring(func2res) ~= #tostring('change this to time3') then
  907.                 report(6,'wtf is this jmp func')
  908.             end
  909.             if func1res ~= 123123 or #tostring(func1res) ~= #tostring(123123) then
  910.                 report(6,'wtf is this jmp func')
  911.             end
  912.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+1 ~= (depend) then
  913.                 report(6,'wtf is this jmp func')
  914.             end
  915.             jmpcheck3 = true
  916.             --eq func2res with time3 and checkauth resu
  917.             return {check4=jmpcheck4,check5=57934852,jmp3=function(bool)if bool ~= false then report(6,'wtf is this jmp') else return true end end,jtuseh = game:GetService("TweenService"),fihsefuhh = game:GetService("Players").LocalPlayer,fhiac=game:GetService("UserInputService"),ojh2oa=game:GetService("Players").LocalPlayer:GetMouse()}
  918.         end
  919.     }end},
  920.     {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=function() jmpkeyy = jmpkey return {val=true,jmpkey=jmpkey,
  921.         func1=function(jkey,depend)
  922.             if jkey ~= jmpkeyy then
  923.                 report(6,'wtf is this jmp func')
  924.             end
  925.             if depend ~= jmpdepend or depend ~= #tostring(depend)+2 or #tostring(depend) ~= #tostring(jmpdepend) then
  926.                 report(6,'wtf is this jmp func')
  927.             end
  928.             jmpcheck1 = true
  929.             --replace with grabTime with data
  930.             return 123123
  931.         end,
  932.         func2=function(jkey,depend,prev,vcheck)
  933.             if jkey ~= jmpkeyy then
  934.                 report(6,'wtf is this jmp func')
  935.             end
  936.             if depend ~= jmpdepend or depend ~= #tostring(depend)+2 or #tostring(depend) ~= #tostring(jmpdepend) then
  937.                 report(6,'wtf is this jmp func')
  938.             end
  939.             --replace with grabTime with data
  940.             if prev ~= 123123 or #tostring(prev) ~= #tostring(123123) then
  941.                 report(6,'wtf is this jmp func')
  942.             end
  943.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+2 ~= (depend) then
  944.                 report(6,'wtf is this jmp func')
  945.             end
  946.             jmpcheck2 = true
  947.             return 'change this to time3'
  948.         end,
  949.         func3=function(jkey,depend,func1res,func2res,vcheck)
  950.             if jkey ~= jmpkeyy then
  951.                 report(6,'wtf is this jmp func')
  952.             end
  953.             if depend ~= jmpdepend or depend ~= #tostring(depend)+2 or #tostring(depend) ~= #tostring(jmpdepend) then
  954.                 report(6,'wtf is this jmp func')
  955.             end
  956.             --replace with grabTime with data
  957.             if func2res ~= 'change this to time3' or #tostring(func2res) ~= #tostring('change this to time3') then
  958.                 report(6,'wtf is this jmp func')
  959.             end
  960.             if func1res ~= 123123 or #tostring(func1res) ~= #tostring(123123) then
  961.                 report(6,'wtf is this jmp func')
  962.             end
  963.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+2 ~= (depend) then
  964.                 report(6,'wtf is this jmp func')
  965.             end
  966.             jmpcheck3 = true
  967.             --eq func2res with time3 and checkauth resu
  968.             return {check4=jmpcheck4,check5=57934852,jmp3=function(bool)if bool ~= false then report(6,'wtf is this jmp') else return true end end,jtuseh = game:GetService("TweenService"),fihsefuhh = game:GetService("Players").LocalPlayer,fhiac=game:GetService("UserInputService"),ojh2oa=game:GetService("Players").LocalPlayer:GetMouse()}
  969.         end
  970.     }end},
  971.     {aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=function() jmpkeyy = jmpkey return {val=true,jmpkey=jmpkey,
  972.         func1=function(jkey,depend)
  973.             if jkey ~= jmpkeyy then
  974.                 report(6,'wtf is this jmp func')
  975.             end
  976.             if depend ~= jmpdepend or depend ~= #tostring(depend)+3 or #tostring(depend) ~= #tostring(jmpdepend) then
  977.                 report(6,'wtf is this jmp func')
  978.             end
  979.             jmpcheck1 = true
  980.             --replace with grabTime with data
  981.             return 123123
  982.         end,
  983.         func2=function(jkey,depend,prev,vcheck)
  984.             if jkey ~= jmpkeyy then
  985.                 report(6,'wtf is this jmp func')
  986.             end
  987.             if depend ~= jmpdepend or depend ~= #tostring(depend)+3 or #tostring(depend) ~= #tostring(jmpdepend) then
  988.                 report(6,'wtf is this jmp func')
  989.             end
  990.             --replace with grabTime with data
  991.             if prev ~= 123123 or #tostring(prev) ~= #tostring(123123) then
  992.                 report(6,'wtf is this jmp func')
  993.             end
  994.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+3 ~= (depend) then
  995.                 report(6,'wtf is this jmp func')
  996.             end
  997.             jmpcheck2 = true
  998.             return 'change this to time3'
  999.         end,
  1000.         func3=function(jkey,depend,func1res,func2res,vcheck)
  1001.             if jkey ~= jmpkeyy then
  1002.                 report(6,'wtf is this jmp func')
  1003.             end
  1004.             if depend ~= jmpdepend or depend ~= #tostring(depend)+3 or #tostring(depend) ~= #tostring(jmpdepend) then
  1005.                 report(6,'wtf is this jmp func')
  1006.             end
  1007.             --replace with grabTime with data
  1008.             if func2res ~= 'change this to time3' or #tostring(func2res) ~= #tostring('change this to time3') then
  1009.                 report(6,'wtf is this jmp func')
  1010.             end
  1011.             if func1res ~= 123123 or #tostring(func1res) ~= #tostring(123123) then
  1012.                 report(6,'wtf is this jmp func')
  1013.             end
  1014.             if vcheck ~= 4 or #tostring(vcheck) ~= 1 or #tostring(vcheck)+3 ~= (depend) then
  1015.                 report(6,'wtf is this jmp func')
  1016.             end
  1017.             jmpcheck3 = true
  1018.             --eq func2res with time3 and checkauth resu
  1019.             return {check4=jmpcheck4,check5=57934852,jmp3=function(bool)if bool ~= false then report(6,'wtf is this jmp') else return true end end,jtuseh = game:GetService("TweenService"),fihsefuhh = game:GetService("Players").LocalPlayer,fhiac=game:GetService("UserInputService"),ojh2oa=game:GetService("Players").LocalPlayer:GetMouse()}
  1020.         end
  1021.     }end},
  1022. }
  1023. function wtf_is_this_jmp(str)
  1024.     StringValue = Create("StringValue",{Parent=folder,Value=str,Name="JMP"})
  1025.     ffs = folder:FindFirstChild("JMP")
  1026.     if ffs == StringValue then
  1027.         if folder:FindFirstChildWhichIsA("StringValue") == StringValue then
  1028.             if ffs.Value == str then
  1029.                 if (#ffs.Value == 10 and jmpdepend == 1) or (#ffs.Value == 20 and jmpdepend == 2) or (#ffs.Value == 30 and jmpdepend == 3) or (#ffs.Value == 40 and jmpdepend == 4) then
  1030.                         d = wtf_is_this_table[jmpdepend][ffs.Value]()
  1031.                         StringValue:Destroy()
  1032.                         jmpkey=nil
  1033.                         return d
  1034.                 else
  1035.                     report(6,'wtf is this jmp')
  1036.                     return false
  1037.                 end
  1038.             else
  1039.                 report(6,'wtf is this jmp')
  1040.                 return false
  1041.             end
  1042.         else
  1043.             report(6,'wtf is this jmp')
  1044.             return false
  1045.         end
  1046.     else
  1047.         report(6,'wtf is this jmp')
  1048.         return false
  1049.     end
  1050. end
  1051. --// Other Checks
  1052. --// Check Whitelist
  1053. local body = get(host .. '/sanity.lua')
  1054.  
  1055. expectedBody = tostring(os.time())
  1056. expectedBody = expectedBody:sub(1, -4)
  1057. print('san2')
  1058. repeat wait() until body ~= ''
  1059. if not (tonumber(body) == tonumber(expectedBody)) then
  1060.     local a = false
  1061.     repeat wait() until a == true
  1062. end
  1063. bool = true
  1064. WBool1 = false
  1065. WBool2 = false
  1066. data = grabData()
  1067. if beta == true then
  1068.     res1 = get(host .. '/checkauthentication.lua?beta=true&Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1069. elseif private == true then
  1070.     res1 = get(host .. '/checkauthentication.lua?private=true&Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1071. else
  1072.     res1 = get(host .. '/checkauthentication.lua?Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1073. end
  1074. local time3 = grabTime(3.7)+data
  1075. resTime = tostring(os.time())
  1076. resTime = resTime:sub(1, -4)
  1077. if res1 == '' then
  1078.     bool = false
  1079.     repeat wait() until bool
  1080. elseif res1 == 'Beta Script Disabled' then
  1081.     bool = false
  1082.     repeat wait() until bool
  1083. elseif res1 == 'Script Disabled' then
  1084.     bool = false
  1085.     repeat wait() until bool
  1086. elseif res1 == "Invalid ID" then
  1087.     bool = false
  1088.     repeat wait() until bool
  1089. elseif res1 == "Invalid Key" then
  1090.     bool = false
  1091.     repeat wait() until bool
  1092. elseif res1 == 'Invalid HWID' then
  1093.     bool = false
  1094.     repeat wait() until bool
  1095. end
  1096. res1 = HttpService:JSONDecode(res1)
  1097. if resTime ~= res1.signature then
  1098.     data = grabData()
  1099.     if beta == true then
  1100.         res1 = get(host .. '/checkauthentication.lua?beta&Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1101.     elseif private == true then
  1102.         res1 = get(host .. '/checkauthentication.lua?private=true&Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1103.     else
  1104.         res1 = get(host .. '/checkauthentication.lua?Key='..Key..'&ID='..getreg().ID..'&Data='..Base64.Encode(tostring(data)))
  1105.     end
  1106.     time3 = grabTime(3.7)+data
  1107.     res1 = HttpService:JSONDecode(res1)
  1108. end
  1109. time3 = tostring(time3)
  1110. Verify(time3,grabVerification())
  1111. WBool1 = true
  1112. Verify(1,grabVerification())
  1113. wtfjmptext = ('a'):rep(5)
  1114. if eq(time3,tostring(Base64.Decode(res1.data)),true) then
  1115.     WBool2 = true
  1116.     checkVerify(1,true)
  1117.     checkVerify(2,true)
  1118.     checkVerify(tostring(Base64.Decode(tostring(res1.data))),true)
  1119.     jmp(WBool1)
  1120.     jmp(WBool2)
  1121.     a = wtf_is_this_jmp(('a'):rep(jmpdepend*10))
  1122.     b = a.func1(a.jmpkey,jmpdepend)
  1123.     c = a.func2(a.jmpkey,jmpdepend,b,4)
  1124.     d = a.func3(a.jmpkey,jmpdepend,b,c,4)
  1125.     time = tostring(tick() - start)
  1126.     time = time:sub(1, -12)
  1127.     time = time .. "s"
  1128.     warn("[VOID] Authenticated in " .. time)
  1129.     local a = EndVerify()
  1130.  
  1131.         local TweenService = d.jtuseh
  1132.         local UserInputService = d.fhiac
  1133.         local Players = game:GetService("Players")
  1134.         local player = d.fihsefuhh
  1135.         local Mouse = d.ojh2oa
  1136.         local RunService = game:GetService("RunService")
  1137.         local TextService = game:GetService("TextService")
  1138.         local PathfindingService = game:GetService("PathfindingService")
  1139.         local Http = game:GetService("HttpService")
  1140.         local TeleportService = game:GetService("TeleportService")
  1141.         local ReplicatedStorage = game:GetService("ReplicatedStorage")
  1142.         local library = {}
  1143.  
  1144.         local floor = math.floor
  1145.         local clamp = math.clamp
  1146.         local ceil = math.ceil
  1147.         local pi = math.pi
  1148.         local atan2 = math.atan2
  1149.         local rad = math.rad
  1150.         local huge = math.huge
  1151.  
  1152.         if not getgenv().PSEnabled then
  1153.                 getgenv().PSEnabled = false
  1154.         end
  1155.  
  1156.         if not getgenv().PSOutput then
  1157.                 getgenv().PSOutput = "File"
  1158.         end
  1159.  
  1160.         if not getgenv().PSFileName then
  1161.                 getgenv().PSFileName = "codes"
  1162.         end
  1163.  
  1164.         if not getgenv().PSWebhook then
  1165.                 getgenv().PSWebhook = ""
  1166.         end
  1167.  
  1168.         local function upload_code(Webhook, code)
  1169.                 local resp = syn.request({
  1170.                         Url = Webhook;
  1171.                         Method = "POST",
  1172.                         Headers = {
  1173.                                 ["Content-Type"] = "application/json"
  1174.                         },
  1175.                         Body = game:GetService("HttpService"):JSONEncode({
  1176.                                 username = "Neighborhood Finder",
  1177.                                 embeds = {{
  1178.                                         title = "New Neighborhood Found";
  1179.                                         fields = {
  1180.                                                 {
  1181.                                                         name = "Code";
  1182.                                                         value = code
  1183.                                                 }
  1184.                                         }
  1185.                                 }}
  1186.                         })
  1187.                 })
  1188.         end
  1189.  
  1190.         local function CodeFarm(Output, FileName, Webhook)
  1191.                 repeat wait() until game:IsLoaded()
  1192.                 repeat wait() until player.PlayerGui:FindFirstChild("MainGUI") and player.PlayerGui.MainGUI:FindFirstChild("IsLoaded")
  1193.  
  1194.                 syn.queue_on_teleport([[
  1195.                         getgenv().PSEnabled = ]]..tostring(getgenv().PSEnabled)..[[
  1196.                        
  1197.                         getgenv().PSOutput = ']]..tostring(getgenv().PSOutput)..[['
  1198.                
  1199.                         getgenv().PSFileName = ']]..tostring(getgenv().PSFileName)..[['
  1200.                        
  1201.                         getgenv().PSWebhook = ']]..tostring(getgenv().PSWebhook)..[['
  1202.                        
  1203.                         shared.whitelist_key = ']]..shared.whitelist_key..[[';
  1204.                         local content = game:HttpGet("https://sor.cool/whitelist/getfile.lua?ID=]]..getreg().ID..[[&type=script")
  1205.                         assert(loadstring(content))()
  1206.                 ]])
  1207.                
  1208.                 local startindex = 10000
  1209.  
  1210.                 local function TeleportToRandomServer()
  1211.                         local data
  1212.                         repeat
  1213.                                 data = game:HttpGet("https://bloxburg.sexy/getRobloxServer.php?startIndex="..tostring(startindex))
  1214.                                 startindex = startindex + 1
  1215.                                 wait()
  1216.                         until data ~= "" and data ~= "None"
  1217.                         TeleportService:TeleportToPlaceInstance(185655149, data)
  1218.                 end
  1219.  
  1220.                 if Output == "File" and not isfile(FileName..".txt") then
  1221.                         writefile(FileName..".txt", "")
  1222.                 end
  1223.  
  1224.                 player.OnTeleport:connect(function(state)
  1225.                         if state == Enum.TeleportState.Failed then
  1226.                                 TeleportToRandomServer()
  1227.                         end
  1228.                 end)
  1229.  
  1230.                 for i,v in next, ReplicatedStorage.Stats:GetChildren() do
  1231.                         if v.Name ~= player.Name then
  1232.                                 local PrivateServer = v.PrivateServer
  1233.                                 if PrivateServer.RenewTime.Value > os.time() and PrivateServer.JoinPermission.Value == 0 then
  1234.                                         if Output == "File" then
  1235.                                                 appendfile(FileName..".txt", v.Name.."\n")
  1236.                                         elseif Output == "Webhook" then
  1237.                                                 upload_code(Webhook, v.Name)
  1238.                                         end
  1239.                                 end
  1240.                         end
  1241.                 end
  1242.  
  1243.                 TeleportToRandomServer()
  1244.         end
  1245.  
  1246.         if PSEnabled == true then
  1247.                 CodeFarm(PSOutput, PSFileName, PSWebhook)
  1248.                 return
  1249.         end
  1250.  
  1251.         local function tweenObject(object, data, time)
  1252.                 local tweenInfo = TweenInfo.new(time, Enum.EasingStyle.Sine, Enum.EasingDirection.Out)
  1253.                 local tween = TweenService:Create(object, tweenInfo, data)
  1254.                 tween:Play()
  1255.                 return tween
  1256.         end
  1257.  
  1258.         function library:Window(TitleWhite, TitleBlue)
  1259.                 if game.CoreGui:FindFirstChild("BloxburgUi") then
  1260.                         game.CoreGui:FindFirstChild("BloxburgUi"):Destroy()
  1261.                 end
  1262.                 local BloxburgUi = Instance.new("ScreenGui")
  1263.                 local MainUIFrame = Instance.new("ImageLabel")
  1264.                 local Cool = Instance.new("ImageLabel")
  1265.                 local BloxburgCool = Instance.new("Frame")
  1266.                 local TabsHolder = Instance.new("ImageLabel")
  1267.                 local UIListLayout = Instance.new("UIListLayout")
  1268.                 local UIPadding = Instance.new("UIPadding")
  1269.                 local BloxburgTitle1 = Instance.new("Frame")
  1270.                 local BloxburgTitle = Instance.new("TextLabel")
  1271.                 local BloxburgHubTitle = Instance.new("TextLabel")
  1272.                 BloxburgUi.Name = "BloxburgUi"
  1273.                 BloxburgUi.Parent = game:GetService("CoreGui")
  1274.                 BloxburgUi.DisplayOrder = 1
  1275.                 MainUIFrame.Name = "MainUIFrame"
  1276.                 MainUIFrame.Parent = BloxburgUi
  1277.                 MainUIFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1278.                 MainUIFrame.BackgroundTransparency = 1.000
  1279.                 MainUIFrame.Position = UDim2.new(0.252025217, 0, 0.226720661, 0)
  1280.                 MainUIFrame.Size = UDim2.new(0, 551, 0, 404)
  1281.                 MainUIFrame.Image = "rbxassetid://3570695787"
  1282.                 MainUIFrame.ImageColor3 = Color3.fromRGB(22, 22, 22)
  1283.                 MainUIFrame.ScaleType = Enum.ScaleType.Slice
  1284.                 MainUIFrame.SliceCenter = Rect.new(100, 100, 100, 100)
  1285.                 MainUIFrame.SliceScale = 0.050
  1286.                 Cool.Name = "Cool"
  1287.                 Cool.Parent = MainUIFrame
  1288.                 Cool.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1289.                 Cool.BackgroundTransparency = 1.000
  1290.                 Cool.Position = UDim2.new(0.06, 0, 0.04, 0)
  1291.                 Cool.Size = UDim2.new(0, 65, 0, 65)
  1292.                 Cool.ZIndex = 2
  1293.                 Cool.Image = "rbxassetid://166652117"
  1294.                 BloxburgCool.Name = "BloxburgCool"
  1295.                 BloxburgCool.Parent = MainUIFrame
  1296.                 BloxburgCool.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1297.                 BloxburgCool.BorderSizePixel = 0
  1298.                 BloxburgCool.Size = UDim2.new(0, 125, 0, 97)
  1299.                 TabsHolder.Name = "TabsHolder"
  1300.                 TabsHolder.Parent = MainUIFrame
  1301.                 TabsHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1302.                 TabsHolder.BackgroundTransparency = 1.000
  1303.                 TabsHolder.Position = UDim2.new(0, 0, 0.240099013, 0)
  1304.                 TabsHolder.Size = UDim2.new(0, 125, 0, 307)
  1305.                 TabsHolder.Image = "rbxassetid://3570695787"
  1306.                 TabsHolder.ImageColor3 = Color3.fromRGB(24, 24, 24)
  1307.                 TabsHolder.ScaleType = Enum.ScaleType.Slice
  1308.                 TabsHolder.SliceCenter = Rect.new(100, 100, 100, 100)
  1309.                 TabsHolder.SliceScale = 0.050
  1310.                 BloxburgTitle1.Name = "BloxburgTitle"
  1311.                 BloxburgTitle1.Parent = MainUIFrame
  1312.                 BloxburgTitle1.BackgroundColor3 = Color3.fromRGB(19, 19, 19)
  1313.                 BloxburgTitle1.BorderSizePixel = 0
  1314.                 BloxburgTitle1.Position = UDim2.new(0.226860255, 0, 0, 0)
  1315.                 BloxburgTitle1.Size = UDim2.new(0, 426, 0, 35)
  1316.                 BloxburgTitle.Name = "BloxburgTitle"
  1317.                 BloxburgTitle.Parent = BloxburgTitle1
  1318.                 BloxburgTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1319.                 BloxburgTitle.BackgroundTransparency = 1.000
  1320.                 BloxburgTitle.BorderColor3 = Color3.fromRGB(27, 42, 53)
  1321.                 BloxburgTitle.Position = UDim2.new(0.0140845068, 0, 0, 0)
  1322.                 BloxburgTitle.Size = UDim2.new(0, 420, 0, 35)
  1323.                 BloxburgTitle.Font = Enum.Font.GothamBold
  1324.                 BloxburgTitle.Text = TitleWhite
  1325.                 BloxburgTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  1326.                 BloxburgTitle.TextSize = 15.000
  1327.                 BloxburgTitle.TextXAlignment = Enum.TextXAlignment.Left
  1328.                 BloxburgHubTitle.Name = "BloxburgHubTitle"
  1329.                 BloxburgHubTitle.Parent = BloxburgTitle
  1330.                 BloxburgHubTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1331.                 BloxburgHubTitle.BackgroundTransparency = 1.000
  1332.                 BloxburgHubTitle.Position = UDim2.new(0.165, 0, 0, 0)
  1333.                 BloxburgHubTitle.Size = UDim2.new(0, 372, 0, 35)
  1334.                 BloxburgHubTitle.Font = Enum.Font.GothamBold
  1335.                 BloxburgHubTitle.Text = TitleBlue
  1336.                 BloxburgHubTitle.TextColor3 = Color3.fromRGB(84, 116, 224)
  1337.                 BloxburgHubTitle.TextSize = 15.000
  1338.                 BloxburgHubTitle.TextXAlignment = Enum.TextXAlignment.Left
  1339.                 UIListLayout.Parent = TabsHolder
  1340.                 UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
  1341.                 UIPadding.Parent = TabsHolder
  1342.                 local MainUITabPickedHolder = Instance.new("Frame")
  1343.                 MainUITabPickedHolder.Name = "MainUITabPickedHolder"
  1344.                 MainUITabPickedHolder.Parent = MainUIFrame
  1345.                 MainUITabPickedHolder.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1346.                 MainUITabPickedHolder.BackgroundTransparency = 1.000
  1347.                 MainUITabPickedHolder.Position = UDim2.new(0.226860255, 0, 0.0866336599, 0)
  1348.                 MainUITabPickedHolder.Size = UDim2.new(0, 426, 0, 369)
  1349.                 local connections = {}
  1350.  
  1351.                 MainUIFrame.InputBegan:connect(function(input)
  1352.                         if input.UserInputType == Enum.UserInputType.MouseButton1 then
  1353.                                 local InitialPos = input.Position
  1354.                                 local InitialFramePos = MainUIFrame.Position
  1355.                                 connections.MouseMoved = UserInputService.InputChanged:Connect(function(input)
  1356.                                         if input.UserInputType == Enum.UserInputType.MouseMovement then
  1357.                                                 local delta = input.Position - InitialPos
  1358.                                                 tweenObject(MainUIFrame, {
  1359.                                                         Position = UDim2.new(InitialFramePos.X.Scale, InitialFramePos.X.Offset + delta.X, InitialFramePos.Y.Scale, InitialFramePos.Y.Offset + delta.Y)
  1360.                                                 }, 0.1)
  1361.                                         end
  1362.                                 end)
  1363.                                 MainUIFrame.InputEnded:connect(function(Input)
  1364.                                         if Input.UserInputType == Enum.UserInputType.MouseButton1 then
  1365.                                                 connections.MouseMoved:Disconnect()
  1366.                                         end
  1367.                                 end)
  1368.                         end
  1369.                 end)
  1370.  
  1371.                 local opened = true
  1372.  
  1373.                 UserInputService.InputBegan:Connect(function(input)
  1374.                         if input.KeyCode == Enum.KeyCode.RightControl then
  1375.                                 if opened == true then
  1376.                                         if MainUIFrame.Parent ~= nil then
  1377.                                                 MainUIFrame.ClipsDescendants = true
  1378.                                                 MainUIFrame:TweenSize(UDim2.new(0, 0, 0, 404), Enum.EasingDirection.In, Enum.EasingStyle.Linear, 0.5, true)
  1379.                                                 opened = false
  1380.                                                 wait(0.5)
  1381.                                         end
  1382.                                 elseif opened == false then
  1383.                                         if MainUIFrame.Parent ~= nil then
  1384.                                                 MainUIFrame:TweenSize(UDim2.new(0, 551, 0, 404), Enum.EasingDirection.Out, Enum.EasingStyle.Linear, 0.5, true)
  1385.                                                 opened = true
  1386.                                                 wait(0.5)
  1387.                                                 MainUIFrame.ClipsDescendants = false
  1388.                                         end
  1389.                                 end
  1390.                         end
  1391.                 end)
  1392.  
  1393.                 local window = {}
  1394.                 function window:Notification(Type, content, callback)
  1395.                         if Type == "Message" then
  1396.                                 local NotificationMain = Instance.new("ImageLabel")
  1397.                                 local NotificationDropShadow = Instance.new("ImageLabel")
  1398.                                 local NotificationTitleHodler = Instance.new("Frame")
  1399.                                 local NotificationTitle = Instance.new("TextLabel")
  1400.                                 local NotificationCool = Instance.new("ImageLabel")
  1401.                                 local NotificationText = Instance.new("TextLabel")
  1402.                                 local NotificationOkay = Instance.new("TextButton")
  1403.                                 NotificationMain.Name = "NotificationMain"
  1404.                                 NotificationMain.Parent = BloxburgUi
  1405.                                 NotificationMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1406.                                 NotificationMain.BackgroundTransparency = 1.000
  1407.                                 NotificationMain.Position = UDim2.new(-0.3, 0, 0.775, 0)
  1408.                                 tweenObject(NotificationMain, {
  1409.                                         Position = UDim2.new(0.015, 0, 0.775, 0)
  1410.                                 }, 0.5)
  1411.                                 NotificationMain.Size = UDim2.new(0, 268, 0, 124)
  1412.                                 NotificationMain.Image = "rbxassetid://3570695787"
  1413.                                 NotificationMain.ImageColor3 = Color3.fromRGB(22, 22, 22)
  1414.                                 NotificationMain.ScaleType = Enum.ScaleType.Slice
  1415.                                 NotificationMain.SliceCenter = Rect.new(100, 100, 100, 100)
  1416.                                 NotificationMain.SliceScale = 0.050
  1417.                                 NotificationDropShadow.Name = "NotificationDropShadow"
  1418.                                 NotificationDropShadow.Parent = NotificationMain
  1419.                                 NotificationDropShadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1420.                                 NotificationDropShadow.BackgroundTransparency = 1.000
  1421.                                 NotificationDropShadow.Position = UDim2.new(-0.315028518, 0, -0.540322602, 0)
  1422.                                 NotificationDropShadow.Size = UDim2.new(0, 442, 0, 258)
  1423.                                 NotificationDropShadow.ZIndex = -1
  1424.                                 NotificationDropShadow.Image = "rbxassetid://5089202498"
  1425.                                 NotificationTitleHodler.Name = "NotificationTitleHodler"
  1426.                                 NotificationTitleHodler.Parent = NotificationMain
  1427.                                 NotificationTitleHodler.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1428.                                 NotificationTitleHodler.BorderSizePixel = 0
  1429.                                 NotificationTitleHodler.Size = UDim2.new(0, 268, 0, 31)
  1430.                                 NotificationTitle.Name = "NotificationTitle"
  1431.                                 NotificationTitle.Parent = NotificationTitleHodler
  1432.                                 NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1433.                                 NotificationTitle.BackgroundTransparency = 1.000
  1434.                                 NotificationTitle.Position = UDim2.new(0.0261194035, 0, 0, 0)
  1435.                                 NotificationTitle.Size = UDim2.new(0, 261, 0, 31)
  1436.                                 NotificationTitle.Font = Enum.Font.GothamSemibold
  1437.                                 NotificationTitle.Text = "Notification"
  1438.                                 NotificationTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  1439.                                 NotificationTitle.TextSize = 14.000
  1440.                                 NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left
  1441.                                 NotificationCool.Name = "NotificationCool"
  1442.                                 NotificationCool.Parent = NotificationTitleHodler
  1443.                                 NotificationCool.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1444.                                 NotificationCool.BackgroundTransparency = 1.000
  1445.                                 NotificationCool.Position = UDim2.new(0.914178967, 0, 0.225806445, 0)
  1446.                                 NotificationCool.Size = UDim2.new(0, 17, 0, 17)
  1447.                                 NotificationCool.Image = "rbxgameasset://Images/w"
  1448.                                 NotificationText.Name = "NotificationText"
  1449.                                 NotificationText.Parent = NotificationMain
  1450.                                 NotificationText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1451.                                 NotificationText.BackgroundTransparency = 1.000
  1452.                                 NotificationText.Position = UDim2.new(-0.0037313432, 0, 0.25, 0)
  1453.                                 NotificationText.Size = UDim2.new(0, 268, 0, 66)
  1454.                                 NotificationText.ZIndex = 2
  1455.                                 NotificationText.Font = Enum.Font.GothamSemibold
  1456.                                 NotificationText.Text = content.Text
  1457.                                 NotificationText.TextColor3 = Color3.fromRGB(233, 233, 233)
  1458.                                 NotificationText.TextSize = 14.000
  1459.                                 NotificationOkay.Name = "NotificationOkay"
  1460.                                 NotificationOkay.Parent = NotificationMain
  1461.                                 NotificationOkay.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1462.                                 NotificationOkay.BorderSizePixel = 0
  1463.                                 NotificationOkay.Position = UDim2.new(0.0223880596, 0, 0.782258093, 0)
  1464.                                 NotificationOkay.Size = UDim2.new(0, 256, 0, 21)
  1465.                                 NotificationOkay.Font = Enum.Font.GothamSemibold
  1466.                                 NotificationOkay.Text = content.ConfirmText
  1467.                                 NotificationOkay.TextColor3 = Color3.fromRGB(233, 233, 233)
  1468.                                 NotificationOkay.TextSize = 13.000
  1469.                                 NotificationOkay.MouseButton1Click:connect(function()
  1470.                                         tweenObject(NotificationMain, {
  1471.                                                 Position = UDim2.new(-0.3, 0, 0.775, 0)
  1472.                                         }, 0.5)
  1473.                                         wait(0.5)
  1474.                                         NotificationMain:Destroy()
  1475.                                 end)
  1476.                         elseif Type == "Error" then
  1477.                                 local ErrorMain = Instance.new("ImageLabel")
  1478.                                 local ErrorDropShadow = Instance.new("ImageLabel")
  1479.                                 local ErrorTitleHolder = Instance.new("Frame")
  1480.                                 local ErrorTitle = Instance.new("TextLabel")
  1481.                                 local ErrorBad = Instance.new("ImageLabel")
  1482.                                 local ErrorText = Instance.new("TextLabel")
  1483.                                 local ErrorOkay = Instance.new("TextButton")
  1484.                                 ErrorMain.Name = "ErrorMain"
  1485.                                 ErrorMain.Parent = BloxburgUi
  1486.                                 ErrorMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1487.                                 ErrorMain.BackgroundTransparency = 1.000
  1488.                                 ErrorMain.Position = UDim2.new(-0.3, 0, 0.775, 0)
  1489.                                 tweenObject(ErrorMain, {
  1490.                                         Position = UDim2.new(0.015, 0, 0.775, 0)
  1491.                                 }, 0.5)
  1492.                                 ErrorMain.Size = UDim2.new(0, 268, 0, 124)
  1493.                                 ErrorMain.Image = "rbxassetid://3570695787"
  1494.                                 ErrorMain.ImageColor3 = Color3.fromRGB(22, 22, 22)
  1495.                                 ErrorMain.ScaleType = Enum.ScaleType.Slice
  1496.                                 ErrorMain.SliceCenter = Rect.new(100, 100, 100, 100)
  1497.                                 ErrorMain.SliceScale = 0.050
  1498.                                 ErrorDropShadow.Name = "ErrorDropShadow"
  1499.                                 ErrorDropShadow.Parent = ErrorMain
  1500.                                 ErrorDropShadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1501.                                 ErrorDropShadow.BackgroundTransparency = 1.000
  1502.                                 ErrorDropShadow.Position = UDim2.new(-0.315028518, 0, -0.540322602, 0)
  1503.                                 ErrorDropShadow.Size = UDim2.new(0, 442, 0, 258)
  1504.                                 ErrorDropShadow.ZIndex = -1
  1505.                                 ErrorDropShadow.Image = "rbxassetid://5089202498"
  1506.                                 ErrorTitleHolder.Name = "ErrorTitleHolder"
  1507.                                 ErrorTitleHolder.Parent = ErrorMain
  1508.                                 ErrorTitleHolder.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1509.                                 ErrorTitleHolder.BorderSizePixel = 0
  1510.                                 ErrorTitleHolder.Size = UDim2.new(0, 268, 0, 31)
  1511.                                 ErrorTitle.Name = "ErrorTitle"
  1512.                                 ErrorTitle.Parent = ErrorTitleHolder
  1513.                                 ErrorTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1514.                                 ErrorTitle.BackgroundTransparency = 1.000
  1515.                                 ErrorTitle.Position = UDim2.new(0.0261194035, 0, 0, 0)
  1516.                                 ErrorTitle.Size = UDim2.new(0, 261, 0, 31)
  1517.                                 ErrorTitle.Font = Enum.Font.GothamSemibold
  1518.                                 ErrorTitle.Text = "ERROR"
  1519.                                 ErrorTitle.TextColor3 = Color3.fromRGB(233, 58, 53)
  1520.                                 ErrorTitle.TextSize = 14.000
  1521.                                 ErrorTitle.TextXAlignment = Enum.TextXAlignment.Left
  1522.                                 ErrorBad.Name = "ErrorBad"
  1523.                                 ErrorBad.Parent = ErrorTitleHolder
  1524.                                 ErrorBad.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1525.                                 ErrorBad.BackgroundTransparency = 1.000
  1526.                                 ErrorBad.Position = UDim2.new(0.914178848, 0, 0.225806445, 0)
  1527.                                 ErrorBad.Size = UDim2.new(0, 17, 0, 17)
  1528.                                 ErrorBad.Image = "rbxgameasset://Images/d"
  1529.                                 ErrorBad.ImageColor3 = Color3.fromRGB(233, 58, 53)
  1530.                                 ErrorText.Name = "ErrorText"
  1531.                                 ErrorText.Parent = ErrorMain
  1532.                                 ErrorText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1533.                                 ErrorText.BackgroundTransparency = 1.000
  1534.                                 ErrorText.Position = UDim2.new(-0.0037313432, 0, 0.25, 0)
  1535.                                 ErrorText.Size = UDim2.new(0, 268, 0, 66)
  1536.                                 ErrorText.ZIndex = 2
  1537.                                 ErrorText.Font = Enum.Font.GothamSemibold
  1538.                                 ErrorText.Text = content.Text
  1539.                                 ErrorText.TextColor3 = Color3.fromRGB(233, 233, 233)
  1540.                                 ErrorText.TextSize = 14.000
  1541.                                 ErrorOkay.Name = "ErrorOkay"
  1542.                                 ErrorOkay.Parent = ErrorMain
  1543.                                 ErrorOkay.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1544.                                 ErrorOkay.BorderSizePixel = 0
  1545.                                 ErrorOkay.Position = UDim2.new(0.0223880596, 0, 0.782258093, 0)
  1546.                                 ErrorOkay.Size = UDim2.new(0, 256, 0, 21)
  1547.                                 ErrorOkay.Font = Enum.Font.GothamSemibold
  1548.                                 ErrorOkay.Text = content.ConfirmText
  1549.                                 ErrorOkay.TextColor3 = Color3.fromRGB(233, 233, 233)
  1550.                                 ErrorOkay.TextSize = 13.000
  1551.                                 ErrorOkay.MouseButton1Click:connect(function()
  1552.                                         tweenObject(ErrorMain, {
  1553.                                                 Position = UDim2.new(-0.3, 0, 0.775, 0)
  1554.                                         }, 0.5)
  1555.                                         wait(0.5)
  1556.                                         ErrorMain:Destroy()
  1557.                                 end)
  1558.                         elseif Type == "Confirm" then
  1559.                                 local NotificationMain = Instance.new("ImageLabel")
  1560.                                 local NotificationDropShadow = Instance.new("ImageLabel")
  1561.                                 local NotificationTitleHodler = Instance.new("Frame")
  1562.                                 local NotificationTitle = Instance.new("TextLabel")
  1563.                                 local NotificationCool = Instance.new("ImageLabel")
  1564.                                 local NotificationText = Instance.new("TextLabel")
  1565.                                 local NotificationYes = Instance.new("TextButton")
  1566.                                 local NotificationNo = Instance.new("TextButton")
  1567.                                 NotificationMain.Name = "NotificationMain"
  1568.                                 NotificationMain.Parent = BloxburgUi
  1569.                                 NotificationMain.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1570.                                 NotificationMain.BackgroundTransparency = 1.000
  1571.                                 NotificationMain.Position = UDim2.new(-0.3, 0, 0.775, 0)
  1572.                                 NotificationMain.Size = UDim2.new(0, 268, 0, 124)
  1573.                                 NotificationMain.Image = "rbxassetid://3570695787"
  1574.                                 NotificationMain.ImageColor3 = Color3.fromRGB(22, 22, 22)
  1575.                                 NotificationMain.ScaleType = Enum.ScaleType.Slice
  1576.                                 NotificationMain.SliceCenter = Rect.new(100, 100, 100, 100)
  1577.                                 NotificationMain.SliceScale = 0.050
  1578.                                 tweenObject(NotificationMain, {
  1579.                                         Position = UDim2.new(0.015, 0, 0.775, 0)
  1580.                                 }, 0.5)
  1581.                                 NotificationDropShadow.Name = "NotificationDropShadow"
  1582.                                 NotificationDropShadow.Parent = NotificationMain
  1583.                                 NotificationDropShadow.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1584.                                 NotificationDropShadow.BackgroundTransparency = 1.000
  1585.                                 NotificationDropShadow.Position = UDim2.new(-0.315028518, 0, -0.540322602, 0)
  1586.                                 NotificationDropShadow.Size = UDim2.new(0, 442, 0, 258)
  1587.                                 NotificationDropShadow.ZIndex = -1
  1588.                                 NotificationDropShadow.Image = "rbxassetid://5089202498"
  1589.                                 NotificationTitleHodler.Name = "NotificationTitleHodler"
  1590.                                 NotificationTitleHodler.Parent = NotificationMain
  1591.                                 NotificationTitleHodler.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1592.                                 NotificationTitleHodler.BorderSizePixel = 0
  1593.                                 NotificationTitleHodler.Size = UDim2.new(0, 268, 0, 31)
  1594.                                 NotificationTitle.Name = "NotificationTitle"
  1595.                                 NotificationTitle.Parent = NotificationTitleHodler
  1596.                                 NotificationTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1597.                                 NotificationTitle.BackgroundTransparency = 1.000
  1598.                                 NotificationTitle.Position = UDim2.new(0.0261194035, 0, 0, 0)
  1599.                                 NotificationTitle.Size = UDim2.new(0, 261, 0, 31)
  1600.                                 NotificationTitle.Font = Enum.Font.GothamSemibold
  1601.                                 NotificationTitle.Text = "Confirm"
  1602.                                 NotificationTitle.TextColor3 = Color3.fromRGB(88, 170, 205)
  1603.                                 NotificationTitle.TextSize = 14.000
  1604.                                 NotificationTitle.TextXAlignment = Enum.TextXAlignment.Left
  1605.                                 NotificationCool.Name = "NotificationCool"
  1606.                                 NotificationCool.Parent = NotificationTitleHodler
  1607.                                 NotificationCool.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1608.                                 NotificationCool.BackgroundTransparency = 1.000
  1609.                                 NotificationCool.Position = UDim2.new(0.914178967, 0, 0.225806445, 0)
  1610.                                 NotificationCool.Size = UDim2.new(0, 17, 0, 17)
  1611.                                 NotificationCool.Image = "rbxgameasset://Images/w"
  1612.                                 NotificationText.Name = "NotificationText"
  1613.                                 NotificationText.Parent = NotificationMain
  1614.                                 NotificationText.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1615.                                 NotificationText.BackgroundTransparency = 1.000
  1616.                                 NotificationText.Position = UDim2.new(-0.0037313432, 0, 0.25, 0)
  1617.                                 NotificationText.Size = UDim2.new(0, 268, 0, 66)
  1618.                                 NotificationText.ZIndex = 2
  1619.                                 NotificationText.Font = Enum.Font.GothamSemibold
  1620.                                 NotificationText.Text = content.Text
  1621.                                 NotificationText.TextColor3 = Color3.fromRGB(233, 233, 233)
  1622.                                 NotificationText.TextSize = 14.000
  1623.                                 NotificationYes.Name = "NotificationYes"
  1624.                                 NotificationYes.Parent = NotificationMain
  1625.                                 NotificationYes.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1626.                                 NotificationYes.BorderSizePixel = 0
  1627.                                 NotificationYes.Position = UDim2.new(0.0223880596, 0, 0.782258093, 0)
  1628.                                 NotificationYes.Size = UDim2.new(0, 128, 0, 21)
  1629.                                 NotificationYes.Font = Enum.Font.GothamSemibold
  1630.                                 NotificationYes.Text = "Yes"
  1631.                                 NotificationYes.TextColor3 = Color3.fromRGB(0, 255, 0)
  1632.                                 NotificationYes.TextSize = 13.000
  1633.                                 NotificationNo.Name = "NotificationNo"
  1634.                                 NotificationNo.Parent = NotificationMain
  1635.                                 NotificationNo.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1636.                                 NotificationNo.BorderSizePixel = 0
  1637.                                 NotificationNo.Position = UDim2.new(0.5, 0, 0.782258093, 0)
  1638.                                 NotificationNo.Size = UDim2.new(0, 128, 0, 21)
  1639.                                 NotificationNo.Font = Enum.Font.GothamSemibold
  1640.                                 NotificationNo.Text = "No"
  1641.                                 NotificationNo.TextColor3 = Color3.fromRGB(233, 0, 0)
  1642.                                 NotificationNo.TextSize = 13.000
  1643.                                 NotificationYes.MouseButton1Click:Connect(function()
  1644.                                         tweenObject(NotificationMain, {
  1645.                                                 Position = UDim2.new(-0.3, 0, 0.775, 0)
  1646.                                         }, 0.5)
  1647.                                         wait(0.5)
  1648.                                         NotificationMain:Destroy()
  1649.                                         NotificationMain = nil
  1650.                                         if callback then
  1651.                                                 callback(true)
  1652.                                         end
  1653.                                 end)
  1654.                                 NotificationNo.MouseButton1Click:Connect(function()
  1655.                                         tweenObject(NotificationMain, {
  1656.                                                 Position = UDim2.new(-0.3, 0, 0.775, 0)
  1657.                                         }, 0.5)
  1658.                                         wait(0.5)
  1659.                                         NotificationMain:Destroy()
  1660.                                         NotificationMain = nil
  1661.                                         if callback then
  1662.                                                 callback(false)
  1663.                                         end
  1664.                                 end)
  1665.                         end
  1666.                 end
  1667.                 local activeTab = nil
  1668.                 local activeTabFrame = nil
  1669.                 function window:Tab(name)
  1670.                         local TabSelected = Instance.new("TextButton")
  1671.                         local TabTOpFrame = Instance.new("Frame")
  1672.                         local TabBottomFrame = Instance.new("Frame")
  1673.                         local MainUITabPicked = Instance.new("ScrollingFrame")
  1674.                         TabSelected.Name = "TabSelected"
  1675.                         TabSelected.Parent = TabsHolder
  1676.                         TabSelected.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1677.                         TabSelected.BorderSizePixel = 0
  1678.                         TabSelected.Size = UDim2.new(0, 125, 0, 30)
  1679.                         TabSelected.AutoButtonColor = false
  1680.                         TabSelected.Font = Enum.Font.GothamSemibold
  1681.                         TabSelected.Text = name
  1682.                         TabSelected.TextColor3 = Color3.fromRGB(66, 66, 66)
  1683.                         TabSelected.TextSize = 13.000
  1684.                         TabTOpFrame.Name = "TabTOpFrame"
  1685.                         TabTOpFrame.Parent = TabSelected
  1686.                         TabTOpFrame.BackgroundColor3 = Color3.fromRGB(84, 116, 224)
  1687.                         TabTOpFrame.BorderColor3 = Color3.fromRGB(84, 116, 224)
  1688.                         TabTOpFrame.BorderSizePixel = 0
  1689.                         TabTOpFrame.Size = UDim2.new(0, 125, 0, 1)
  1690.                         TabTOpFrame.BackgroundTransparency = 1
  1691.                         TabBottomFrame.Name = "TabBottomFrame"
  1692.                         TabBottomFrame.Parent = TabSelected
  1693.                         TabBottomFrame.BackgroundColor3 = Color3.fromRGB(84, 116, 224)
  1694.                         TabBottomFrame.BorderColor3 = Color3.fromRGB(84, 116, 224)
  1695.                         TabBottomFrame.BorderSizePixel = 0
  1696.                         TabBottomFrame.Position = UDim2.new(0, 0, 0.966666639, 0)
  1697.                         TabBottomFrame.Size = UDim2.new(0, 125, 0, 1)
  1698.                         TabBottomFrame.BackgroundTransparency = 1
  1699.                         local UIListLayout_2 = Instance.new("UIListLayout")
  1700.                         local UIPadding_2 = Instance.new("UIPadding")
  1701.                         MainUITabPicked.Name = "MainUITabPicked"
  1702.                         MainUITabPicked.Parent = MainUITabPickedHolder
  1703.                         MainUITabPicked.CanvasSize = UDim2.new(0, 0, 0, 0)
  1704.                         MainUITabPicked.Active = true
  1705.                         MainUITabPicked.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1706.                         MainUITabPicked.BackgroundTransparency = 1.000
  1707.                         MainUITabPicked.Size = UDim2.new(0, 426, 0, 369)
  1708.                         MainUITabPicked.ScrollBarThickness = 2
  1709.                         MainUITabPicked.Visible = false
  1710.                         UIListLayout_2.Parent = MainUITabPicked
  1711.                         UIListLayout_2.SortOrder = Enum.SortOrder.LayoutOrder
  1712.                         UIListLayout_2.Padding = UDim.new(0, 8)
  1713.                         UIPadding_2.Parent = MainUITabPicked
  1714.                         UIPadding_2.PaddingLeft = UDim.new(0, 8)
  1715.                         UIPadding_2.PaddingTop = UDim.new(0, 8)
  1716.                         if activeTab == nil then
  1717.                                 MainUITabPicked.Visible = true
  1718.                                 activeTabFrame = MainUITabPicked
  1719.                                 tweenObject(TabSelected, {
  1720.                                         BackgroundColor3 = Color3.fromRGB(17, 17, 30)
  1721.                                 }, 0.5)
  1722.                                 tweenObject(TabSelected, {
  1723.                                         TextColor3 = Color3.fromRGB(84, 116, 224)
  1724.                                 }, 0.5)
  1725.                                 activeTab = TabSelected
  1726.                                 tweenObject(TabBottomFrame, {
  1727.                                         BackgroundTransparency = 0
  1728.                                 }, 0.5)
  1729.                                 tweenObject(TabTOpFrame, {
  1730.                                         BackgroundTransparency = 0
  1731.                                 }, 0.5)
  1732.                         end
  1733.                         TabSelected.MouseButton1Click:Connect(function()
  1734.                                 tweenObject(activeTab.TabBottomFrame, {
  1735.                                         BackgroundTransparency = 1
  1736.                                 }, 0.5)
  1737.                                 tweenObject(activeTab.TabTOpFrame, {
  1738.                                         BackgroundTransparency = 1
  1739.                                 }, 0.5)
  1740.                                 tweenObject(activeTab, {
  1741.                                         BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1742.                                 }, 0.5)
  1743.                                 tweenObject(activeTab, {
  1744.                                         TextColor3 = Color3.fromRGB(66, 66, 66)
  1745.                                 }, 0.5)
  1746.                                 activeTabFrame.Visible = false
  1747.                                 activeTab = TabSelected
  1748.                                 activeTabFrame = MainUITabPicked
  1749.                                 MainUITabPicked.Visible = true
  1750.                                 tweenObject(TabSelected, {
  1751.                                         BackgroundColor3 = Color3.fromRGB(17, 17, 30)
  1752.                                 }, 0.5)
  1753.                                 tweenObject(TabSelected, {
  1754.                                         TextColor3 = Color3.fromRGB(84, 116, 224)
  1755.                                 }, 0.5)
  1756.                                 tweenObject(TabBottomFrame, {
  1757.                                         BackgroundTransparency = 0
  1758.                                 }, 0.5)
  1759.                                 tweenObject(TabTOpFrame, {
  1760.                                         BackgroundTransparency = 0
  1761.                                 }, 0.5)
  1762.                         end)
  1763.                         local tab = {}
  1764.                         local tabSize = 39
  1765.                         local function ResizeTab()
  1766.                                 MainUITabPicked.CanvasSize = UDim2.new(0, 0, 0, tabSize)
  1767.                         end
  1768.  
  1769.                         function tab:Section(name)
  1770.                                 local SectionBack = Instance.new("ImageLabel")
  1771.                                 local SectionTitleBack = Instance.new("Frame")
  1772.                                 local SectionTitle = Instance.new("TextLabel")
  1773.                                 local SectionFrame = Instance.new("Frame")
  1774.                                 local UIListLayout_3 = Instance.new("UIListLayout")
  1775.                                 local UIPadding_3 = Instance.new("UIPadding")
  1776.                                 local UIListLayout_4 = Instance.new("UIListLayout")
  1777.                                 SectionBack.Name = "Section Back"
  1778.                                 SectionBack.Parent = MainUITabPicked
  1779.                                 SectionBack.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1780.                                 SectionBack.BackgroundTransparency = 1.000
  1781.                                 SectionBack.Position = UDim2.new(0.018779343, 0, -0.978319764, 0)
  1782.                                 SectionBack.Size = UDim2.new(0, 403, 0, 31)
  1783.                                 SectionBack.Image = "rbxassetid://3570695787"
  1784.                                 SectionBack.ImageColor3 = Color3.fromRGB(15, 15, 15)
  1785.                                 SectionBack.ScaleType = Enum.ScaleType.Slice
  1786.                                 SectionBack.SliceCenter = Rect.new(100, 100, 100, 100)
  1787.                                 SectionBack.SliceScale = 0.050
  1788.  
  1789.                                 UIListLayout_4.Parent = SectionBack
  1790.                                 UIListLayout_4.SortOrder = Enum.SortOrder.LayoutOrder
  1791.                                 SectionTitleBack.Name = "SectionTitleBack"
  1792.                                 SectionTitleBack.Parent = SectionBack
  1793.                                 SectionTitleBack.BackgroundColor3 = Color3.fromRGB(14, 14, 14)
  1794.                                 SectionTitleBack.BorderSizePixel = 0
  1795.                                 SectionTitleBack.Size = UDim2.new(0, 403, 0, 31)
  1796.                                 SectionTitle.Name = "SectionTitle"
  1797.                                 SectionTitle.Parent = SectionTitleBack
  1798.                                 SectionTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1799.                                 SectionTitle.BackgroundTransparency = 1.000
  1800.                                 SectionTitle.Position = UDim2.new(0.0148883378, 0, 0, 0)
  1801.                                 SectionTitle.Size = UDim2.new(0, 397, 0, 31)
  1802.                                 SectionTitle.Font = Enum.Font.GothamSemibold
  1803.                                 SectionTitle.Text = name
  1804.                                 SectionTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  1805.                                 SectionTitle.TextSize = 14.000
  1806.                                 SectionTitle.TextXAlignment = Enum.TextXAlignment.Left
  1807.                                 SectionFrame.Name = "SectionFrame"
  1808.                                 SectionFrame.Parent = SectionBack
  1809.                                 SectionFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1810.                                 SectionFrame.BackgroundTransparency = 1.000
  1811.                                 SectionFrame.BorderSizePixel = 0
  1812.                                 SectionFrame.Position = UDim2.new(0, 0, 0.0775000006, 0)
  1813.                                 SectionFrame.Size = UDim2.new(0, 403, 0, 0)
  1814.                                 UIListLayout_3.Parent = SectionFrame
  1815.                                 UIListLayout_3.SortOrder = Enum.SortOrder.LayoutOrder
  1816.                                 UIListLayout_3.Padding = UDim.new(0, 8)
  1817.                                 UIPadding_3.Parent = SectionFrame
  1818.                                 UIPadding_3.PaddingLeft = UDim.new(0, 8)
  1819.                                 UIPadding_3.PaddingTop = UDim.new(0, 8)
  1820.                                
  1821.                                 --tabSize = tabSize +
  1822.                                 tabSize = tabSize + 41
  1823.                                 ResizeTab()
  1824.                                 local sectionSize = 39
  1825.                                 local function ResizeSection()
  1826.                                         SectionBack.Size = UDim2.new(0, 403, 0, sectionSize)
  1827.                                         SectionFrame.Size = UDim2.new(0, 403, 0, sectionSize - 31)
  1828.                                 end
  1829.  
  1830.                                 local section = {}
  1831.                                 function section:Label(name)
  1832.                                         sectionSize = sectionSize + 39
  1833.                                         tabSize = tabSize + 39
  1834.                                         ResizeTab()
  1835.                                         ResizeSection()
  1836.                                         local LabelBack = Instance.new("Frame")
  1837.                                         local LabelTitle = Instance.new("TextLabel")
  1838.                                         LabelBack.Name = "LabelBack"
  1839.                                         LabelBack.Parent = SectionFrame
  1840.                                         LabelBack.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1841.                                         LabelBack.BorderSizePixel = 0
  1842.                                         LabelBack.Position = UDim2.new(0.018779343, 0, 0.233062327, 0)
  1843.                                         LabelBack.Size = UDim2.new(0, 390, 0, 31)
  1844.                                         LabelTitle.Name = "LabelTitle"
  1845.                                         LabelTitle.Parent = LabelBack
  1846.                                         LabelTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1847.                                         LabelTitle.BackgroundTransparency = 1.000
  1848.                                         LabelTitle.Position = UDim2.new(0.0147783253, 0, 0, 0)
  1849.                                         LabelTitle.Size = UDim2.new(0, 400, 0, 31)
  1850.                                         LabelTitle.Font = Enum.Font.GothamSemibold
  1851.                                         LabelTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  1852.                                         LabelTitle.TextSize = 13.000
  1853.                                         LabelTitle.Text = name
  1854.                                         LabelTitle.TextXAlignment = Enum.TextXAlignment.Left
  1855.  
  1856.                                         local label = {}
  1857.                                         function label:Update(name)
  1858.                                                 LabelTitle.Text = name
  1859.                                         end
  1860.                                         return label
  1861.                                 end
  1862.                                 function section:Slider(name, options, callback)
  1863.                                         sectionSize = sectionSize + 63
  1864.                                         tabSize = tabSize + 63
  1865.                                         ResizeTab()
  1866.                                         ResizeSection()
  1867.                                         local Sliderback = Instance.new("Frame")
  1868.                                         local SliderTitle = Instance.new("TextLabel")
  1869.                                         local SliderBarBack = Instance.new("ImageButton")
  1870.                                         local Sliderhandle = Instance.new("ImageLabel")
  1871.                                         local SliderValueBack = Instance.new("ImageLabel")
  1872.                                         local SliderValue = Instance.new("TextBox")
  1873.                                         local TextButton = Instance.new("TextButton")
  1874.                                         local TextButton_2 = Instance.new("TextButton")
  1875.  
  1876.                                         Sliderback.Name = "Sliderback"
  1877.                                         Sliderback.Parent = SectionFrame
  1878.                                         Sliderback.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  1879.                                         Sliderback.BorderSizePixel = 0
  1880.                                         Sliderback.Position = UDim2.new(0.018779343, 0, 0.233062327, 0)
  1881.                                         Sliderback.Size = UDim2.new(0, 390, 0, 55)
  1882.                                         TextButton.Parent = Sliderback
  1883.                                         TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1884.                                         TextButton.BackgroundTransparency = 1
  1885.                                         TextButton.Position = UDim2.new(0.675, 0, 0.0181818306, 0)
  1886.                                         TextButton.Size = UDim2.new(0, 35, 0, 35)
  1887.                                         TextButton.Font = Enum.Font.Gotham
  1888.                                         TextButton.Text = "-"
  1889.                                         TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  1890.                                         TextButton.TextSize = 14.000
  1891.                                         TextButton_2.Parent = Sliderback
  1892.                                         TextButton_2.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1893.                                         TextButton_2.BackgroundTransparency = 1
  1894.                                         TextButton_2.Position = UDim2.new(0.92, 0, 9.31322575e-09, 0)
  1895.                                         TextButton_2.Size = UDim2.new(0, 35, 0, 35)
  1896.                                         TextButton_2.Font = Enum.Font.Gotham
  1897.                                         TextButton_2.Text = "+"
  1898.                                         TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  1899.                                         TextButton_2.TextSize = 14.000
  1900.  
  1901.                                         SliderTitle.Name = "SliderTitle"
  1902.                                         SliderTitle.Parent = Sliderback
  1903.                                         SliderTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1904.                                         SliderTitle.BackgroundTransparency = 1.000
  1905.                                         SliderTitle.Position = UDim2.new(0.0147783253, 0, 0, 0)
  1906.                                         SliderTitle.Size = UDim2.new(0, 400, 0, 31)
  1907.                                         SliderTitle.Font = Enum.Font.GothamSemibold
  1908.                                         SliderTitle.Text = name
  1909.                                         SliderTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  1910.                                         SliderTitle.TextSize = 13.000
  1911.                                         SliderTitle.TextXAlignment = Enum.TextXAlignment.Left
  1912.                                         SliderBarBack.Name = "SliderBarBack"
  1913.                                         SliderBarBack.Parent = Sliderback
  1914.                                         SliderBarBack.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1915.                                         SliderBarBack.BackgroundTransparency = 1.000
  1916.                                         SliderBarBack.Position = UDim2.new(0.0147783253, 0, 0.76363641, 0)
  1917.                                         SliderBarBack.Size = UDim2.new(0, 380, 0, 6)
  1918.                                         SliderBarBack.Image = "rbxassetid://3570695787"
  1919.                                         SliderBarBack.ImageColor3 = Color3.fromRGB(77, 77, 77)
  1920.                                         SliderBarBack.ScaleType = Enum.ScaleType.Slice
  1921.                                         SliderBarBack.SliceCenter = Rect.new(100, 100, 100, 100)
  1922.                                         SliderBarBack.SliceScale = 0.050
  1923.                                         Sliderhandle.Name = "Sliderhandle"
  1924.                                         Sliderhandle.Parent = SliderBarBack
  1925.                                         Sliderhandle.BackgroundColor3 = Color3.fromRGB(84, 116, 224)
  1926.                                         Sliderhandle.BackgroundTransparency = 1.000
  1927.                                         Sliderhandle.Size = UDim2.new(0, 0, 0, 6)
  1928.                                         Sliderhandle.Image = "rbxassetid://3570695787"
  1929.                                         Sliderhandle.ImageColor3 = Color3.fromRGB(84, 116, 224)
  1930.                                         Sliderhandle.ScaleType = Enum.ScaleType.Slice
  1931.                                         Sliderhandle.SliceCenter = Rect.new(100, 100, 100, 100)
  1932.                                         Sliderhandle.SliceScale = 0.050
  1933.                                         SliderValueBack.Name = "SliderValueBack"
  1934.                                         SliderValueBack.Parent = Sliderback
  1935.                                         SliderValueBack.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1936.                                         SliderValueBack.BackgroundTransparency = 1.000
  1937.                                         SliderValueBack.Position = UDim2.new(0.78, 0, 0.109090909, 0)
  1938.                                         SliderValueBack.Size = UDim2.new(0, 50, 0, 25)
  1939.                                         SliderValueBack.Image = "rbxassetid://3570695787"
  1940.                                         SliderValueBack.ImageColor3 = Color3.fromRGB(14, 14, 14)
  1941.                                         SliderValueBack.ScaleType = Enum.ScaleType.Slice
  1942.                                         SliderValueBack.SliceCenter = Rect.new(100, 100, 100, 100)
  1943.                                         SliderValueBack.SliceScale = 0.050
  1944.                                         SliderValue.Name = "SliderValue"
  1945.                                         SliderValue.Parent = SliderValueBack
  1946.                                         SliderValue.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  1947.                                         SliderValue.BackgroundTransparency = 1.000
  1948.                                         SliderValue.Size = UDim2.new(0, 50, 0, 25)
  1949.                                         SliderValue.Font = Enum.Font.GothamSemibold
  1950.                                         SliderValue.Text = options.default or options.min < 0 and options.max > 0 and "0" or tostring(options.min)
  1951.                                         SliderValue.TextColor3 = Color3.fromRGB(233, 233, 233)
  1952.                                         SliderValue.TextSize = 13.000
  1953.  
  1954.                                         if options.default then
  1955.                                                 value = clamp(options.default, options.min, options.max)
  1956.                                                 local percent = 1 - ((options.max - value) / (options.max - options.min))
  1957.                                                 tweenObject(Sliderhandle, {
  1958.                                                         Size = UDim2.new(0, percent * 380, 0, 6)
  1959.                                                 }, 0.1)
  1960.                                                 manual = true
  1961.                                                 SliderValue.Text = tostring(value)
  1962.                                                 manual = false
  1963.                                         end
  1964.  
  1965.                                         local value = options.default or options.min;
  1966.                                         local connections = {}
  1967.                                         local manual = false
  1968.                                         TextButton.MouseButton1Click:Connect(function()
  1969.                                                 value = clamp(value - 1, options.min, options.max)
  1970.                                                 local percent = 1 - ((options.max - value) / (options.max - options.min))
  1971.                                                 tweenObject(Sliderhandle, {
  1972.                                                         Size = UDim2.new(0, percent * 380, 0, 6)
  1973.                                                 }, 0.1)
  1974.                                                 manual = true
  1975.                                                 SliderValue.Text = tostring(value)
  1976.                                                 manual = false
  1977.                                                 if callback then
  1978.                                                         callback(value)
  1979.                                                 end
  1980.                                         end)
  1981.                                         TextButton_2.MouseButton1Click:Connect(function()
  1982.                                                 value = clamp(value + 1, options.min, options.max)
  1983.                                                 local percent = 1 - ((options.max - value) / (options.max - options.min))
  1984.                                                 tweenObject(Sliderhandle, {
  1985.                                                         Size = UDim2.new(0, percent * 380, 0, 6)
  1986.                                                 }, 0.1)
  1987.                                                 manual = true
  1988.                                                 SliderValue.Text = tostring(value)
  1989.                                                 manual = false
  1990.                                                 if callback then
  1991.                                                         callback(value)
  1992.                                                 end
  1993.                                         end)
  1994.                                         SliderValue:GetPropertyChangedSignal("Text"):Connect(function()
  1995.                                                 if not manual then
  1996.                                                         if tonumber(SliderValue.Text) ~= nil then
  1997.                                                                 value = clamp(tonumber(SliderValue.Text), options.min, options.max)
  1998.                                                                 local percent = 1 - ((options.max - value) / (options.max - options.min))
  1999.                                                                 tweenObject(Sliderhandle, {
  2000.                                                                         Size = UDim2.new(0, percent * 380, 0, 6)
  2001.                                                                 }, 0.1)
  2002.                                                                 local con
  2003.                                                                 con = SliderValue.FocusLost:Connect(function()
  2004.                                                                         con:Disconnect()
  2005.                                                                         if callback then
  2006.                                                                                 callback(value)
  2007.                                                                         end
  2008.                                                                 end)
  2009.                                                         end
  2010.                                                 end
  2011.                                         end)
  2012.  
  2013.                                         SliderBarBack.MouseButton1Down:Connect(function()
  2014.                                                 value = floor((((tonumber(options.max) - tonumber(options.min)) / 380) * Sliderhandle.AbsoluteSize.X) + tonumber(options.min) + 0.5) or 0
  2015.                                                 SliderValue.Text = value
  2016.                                                 tweenObject(Sliderhandle, {
  2017.                                                         Size = UDim2.new(0, clamp(Mouse.X - Sliderhandle.AbsolutePosition.X, 0, 380), 0, 6)
  2018.                                                 }, 0.1)
  2019.                                                 tweenObject(Sliderhandle, {
  2020.                                                         ImageColor3 = Color3.fromRGB(255, 255, 255)
  2021.                                                 }, 0.2)
  2022.                                                 if callback then
  2023.                                                         callback(value)
  2024.                                                 end
  2025.                                                 connections.MoveConnection = Mouse.Move:Connect(function()
  2026.                                                         value = floor((((tonumber(options.max) - tonumber(options.min)) / 380) * Sliderhandle.AbsoluteSize.X) + tonumber(options.min) + 0.5) or 0
  2027.                                                         SliderValue.Text = value
  2028.                                                         tweenObject(Sliderhandle, {
  2029.                                                                 Size = UDim2.new(0, clamp(Mouse.X - Sliderhandle.AbsolutePosition.X, 0, 380), 0, 6)
  2030.                                                         }, 0.1)
  2031.                                                         tweenObject(Sliderhandle, {
  2032.                                                                 ImageColor3 = Color3.fromRGB(255, 255, 255)
  2033.                                                         }, 0.2)
  2034.                                                         if callback then
  2035.                                                                 callback(value)
  2036.                                                         end
  2037.                                                 end)
  2038.                                                 connections.ReleaseConnection = UserInputService.InputEnded:Connect(function(mouse)
  2039.                                                         if mouse.UserInputType == Enum.UserInputType.MouseButton1 then
  2040.                                                                 value = floor((((tonumber(options.max) - tonumber(options.min)) / 380) * Sliderhandle.AbsoluteSize.X) + tonumber(options.min) + 0.5) or 0
  2041.                                                                 SliderValue.Text = value
  2042.                                                                 tweenObject(Sliderhandle, {
  2043.                                                                         Size = UDim2.new(0, clamp(Mouse.X - Sliderhandle.AbsolutePosition.X, 0, 380), 0, 6)
  2044.                                                                 }, 0.1)
  2045.                                                                 tweenObject(Sliderhandle, {
  2046.                                                                         ImageColor3 = Color3.fromRGB(84, 116, 224)
  2047.                                                                 }, 0.2)
  2048.                                                                 connections.MoveConnection:Disconnect()
  2049.                                                                 connections.ReleaseConnection:Disconnect()
  2050.                                                                 if callback then
  2051.                                                                         callback(value)
  2052.                                                                 end
  2053.                                                         end
  2054.                                                 end)
  2055.                                         end)
  2056.                                         local slider = {}
  2057.                                         function slider:Update(val)
  2058.                                                 value = clamp(val, options.min, options.max)
  2059.                                                 local percent = 1 - ((options.max - value) / (options.max - options.min))
  2060.                                                 tweenObject(Sliderhandle, {
  2061.                                                         Size = UDim2.new(0, percent * 380, 0, 6)
  2062.                                                 }, 0.1)
  2063.                                                 if callback then
  2064.                                                         callback(value)
  2065.                                                 end
  2066.                                         end
  2067.                                         return slider
  2068.                                 end
  2069.                                 function section:Box(name, callback)
  2070.                                         sectionSize = sectionSize + 39
  2071.                                         tabSize = tabSize + 39
  2072.                                         ResizeTab()
  2073.                                         ResizeSection()
  2074.                                         local TextBoxMain = Instance.new("Frame")
  2075.                                         local TextBoxTitle = Instance.new("TextLabel")
  2076.                                         local TextBox = Instance.new("TextBox")
  2077.                                         local TextBox_Roundify_5px = Instance.new("ImageLabel")
  2078.                                         TextBoxMain.Name = "TextBoxMain"
  2079.                                         TextBoxMain.Parent = SectionFrame
  2080.                                         TextBoxMain.BackgroundColor3 = Color3.fromRGB(24, 24, 24)
  2081.                                         TextBoxMain.BorderColor3 = Color3.fromRGB(27, 42, 53)
  2082.                                         TextBoxMain.BorderSizePixel = 0
  2083.                                         TextBoxMain.Position = UDim2.new(0.018779343, 0, 0.615176141, 0)
  2084.                                         TextBoxMain.Size = UDim2.new(0, 390, 0, 31)
  2085.                                         TextBoxTitle.Name = "TextBoxTitle"
  2086.                                         TextBoxTitle.Parent = TextBoxMain
  2087.                                         TextBoxTitle.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2088.                                         TextBoxTitle.BackgroundTransparency = 1.000
  2089.                                         TextBoxTitle.Position = UDim2.new(0.0147783253, 0, 0, 0)
  2090.                                         TextBoxTitle.Size = UDim2.new(0, 400, 0, 31)
  2091.                                         TextBoxTitle.Font = Enum.Font.GothamSemibold
  2092.                                         TextBoxTitle.Text = name
  2093.                                         TextBoxTitle.TextColor3 = Color3.fromRGB(233, 233, 233)
  2094.                                         TextBoxTitle.TextSize = 13.000
  2095.                                         TextBoxTitle.TextXAlignment = Enum.TextXAlignment.Left
  2096.                                         TextBox.Parent = TextBoxMain
  2097.                                         TextBox.BackgroundColor3 = Color3.fromRGB(13, 13, 13)
  2098.                                         TextBox.BackgroundTransparency = 1.000
  2099.                                         TextBox.BorderSizePixel = 0
  2100.                                         TextBox.Position = UDim2.new(0.270329684, 0, 0.193548381, 0)
  2101.                                         TextBox.Size = UDim2.new(0, 284, 0, 18)
  2102.                                         TextBox.ZIndex = 2
  2103.                                         TextBox.Font = Enum.Font.GothamSemibold
  2104.                                         TextBox.PlaceholderColor3 = Color3.fromRGB(66, 66, 66)
  2105.                                         TextBox.PlaceholderText = name
  2106.                                         TextBox.Text = ""
  2107.                                         TextBox.TextColor3 = Color3.fromRGB(233, 233, 233)
  2108.                                         TextBox.TextSize = 13.000
  2109.                                         TextBox_Roundify_5px.Name = "TextBox_Roundify_5px"
  2110.                                         TextBox_Roundify_5px.Parent = TextBox
  2111.                                         TextBox_Roundify_5px.Active = true
  2112.                                         TextBox_Roundify_5px.AnchorPoint = Vector2.new(0.5, 0.5)
  2113.                                         TextBox_Roundify_5px.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2114.                                         TextBox_Roundify_5px.BackgroundTransparency = 1.000
  2115.                                         TextBox_Roundify_5px.Position = UDim2.new(0.5, 0, 0.5, 0)
  2116.                                         TextBox_Roundify_5px.Selectable = true
  2117.                                         TextBox_Roundify_5px.Size = UDim2.new(1, 0, 1, 0)
  2118.                                         TextBox_Roundify_5px.Image = "rbxassetid://3570695787"
  2119.                                         TextBox_Roundify_5px.ImageColor3 = Color3.fromRGB(13, 13, 13)
  2120.                                         TextBox_Roundify_5px.ScaleType = Enum.ScaleType.Slice
  2121.                                         TextBox_Roundify_5px.SliceCenter = Rect.new(100, 100, 100, 100)
  2122.                                         TextBox_Roundify_5px.SliceScale = 0.040
  2123.                                         local LastSize = -1
  2124.  
  2125.                                         TextBox:GetPropertyChangedSignal("Text"):connect(function()
  2126.                                                 local Size = TextService:GetTextSize(TextBox.Text, TextBox.TextSize + 1, TextBox.Font, TextBoxMain.AbsoluteSize)
  2127.                                                 local Length = string.len(TextBox.Text)
  2128.                                                 if Size.X > 284 then
  2129.                                                         LastSize = Length
  2130.                                                         TextBox.TextScaled = true
  2131.                                                 elseif Size.X = 183 then
  2132.                                                         ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, si - 33)
  2133.                                                         SearchBoxBack.Size = UDim2.new(0, 210, 0, 183)
  2134.                                                 else
  2135.                                                         ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  2136.                                                         SearchBoxBack.Size = UDim2.new(0, 210, 0, si)
  2137.                                                 end
  2138.                                         end
  2139.  
  2140.                                        
  2141.                                         local function searchboxon()
  2142.                                                 if isDone == false then
  2143.                                                         if SearchBoxBack.Position == UDim2.new(0, 0, 0, 0) then
  2144.                                                                 SearchBoxBack.Visible = true
  2145.                                                                 tweenObject(SearchBoxBack, {
  2146.                                                                         Position = UDim2.new(1.05, 0, 0, 0)
  2147.                                                                 }, 0.4)
  2148.                                                         end
  2149.                                                         if #buttons == 0 then
  2150.                                                                 for i, v in next, options do
  2151.                                                                         local TextButton = Instance.new("TextButton")
  2152.                                                                         TextButton.Parent = ScrollingFrame
  2153.                                                                         TextButton.BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  2154.                                                                         TextButton.BorderSizePixel = 0
  2155.                                                                         TextButton.AutoButtonColor = false
  2156.                                                                         TextButton.Position = UDim2.new(-0.0153846154, 0, 0, 0)
  2157.                                                                         TextButton.Size = UDim2.new(0, 215, 0, 30)
  2158.                                                                         TextButton.Font = Enum.Font.GothamSemibold
  2159.                                                                         TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  2160.                                                                         TextButton.TextSize = 14.000
  2161.                                                                         TextButton.Text = v
  2162.                                                                         TextButton.ZIndex = -4
  2163.                                                                         TextButton.Visible = false
  2164.                                                                         table.insert(buttons, TextButton)
  2165.                                                                         TextButton.MouseEnter:Connect(function()
  2166.                                                                                 tweenObject(TextButton, {
  2167.                                                                                         BackgroundColor3 = Color3.fromRGB(77, 77, 77)
  2168.                                                                                 }, 0.2)
  2169.                                                                         end)
  2170.                                                                         TextButton.MouseLeave:Connect(function()
  2171.                                                                                 tweenObject(TextButton, {
  2172.                                                                                         BackgroundColor3 = Color3.fromRGB(22, 22, 22)
  2173.                                                                                 }, 0.2)
  2174.                                                                         end)
  2175.                                                                         TextButton.MouseButton1Click:Connect(function()
  2176.                                                                                 isDone = true
  2177.                                                                                 TextBox.Text = v
  2178.                                                                                 if callback then
  2179.                                                                                         callback(v)
  2180.                                                                                 end
  2181.                                                                                 local tw = tweenObject(SearchBoxBack, {
  2182.                                                                                         Position = UDim2.new(0, 0, 0, 0)
  2183.                                                                                 }, 0.4)
  2184.                                                                                 tw.Completed:wait()
  2185.                                                                                 SearchBoxBack.Visible = false
  2186.                                                                                 for i, v in next, buttons do
  2187.                                                                                         v:Destroy()
  2188.                                                                                         buttons[i] = nil
  2189.                                                                                 end
  2190.                                                                                 isDone = false
  2191.                                                                         end)
  2192.                                                                 end
  2193.                                                         end
  2194.                                                         updateVisibles()
  2195.                                                         for i, v in pairs(buttons) do
  2196.                                                                 if string.sub(string.lower(v.Text), 1, string.len(TextBox.Text)) == string.lower(TextBox.Text) then
  2197.                                                                         if v.Visible == false then
  2198.                                                                                 spawn(function()
  2199.                                                                                         v.Visible = true
  2200.                                                                                         updateVisibles()
  2201.                                                                                         tweenObject(v, {
  2202.                                                                                                 TextTransparency = 0
  2203.                                                                                         }, 0.2)
  2204.                                                                                         tweenObject(v, {
  2205.                                                                                                 BackgroundTransparency = 0
  2206.                                                                                         }, 0.2)
  2207.                                                                                 end)
  2208.                                                                         end
  2209.                                                                 else
  2210.                                                                         if v.Visible == true then
  2211.                                                                                 spawn(function()
  2212.                                                                                         local tw = tweenObject(v, {
  2213.                                                                                                 TextTransparency = 1
  2214.                                                                                         }, 0.2)
  2215.                                                                                         tweenObject(v, {
  2216.                                                                                                 BackgroundTransparency = 0
  2217.                                                                                         }, 0.2)
  2218.                                                                                         tw.Completed:wait(0.1)
  2219.                                                                                         v.Visible = false
  2220.                                                                                         updateVisibles()
  2221.                                                                                 end)
  2222.                                                                         end
  2223.                                                                 end
  2224.                                                         end
  2225.                                                 end
  2226.                                         end
  2227.                                         TextBox.Focused:Connect(searchboxon)
  2228.                                         TextBox.FocusLost:Connect(function()
  2229.                                                 wait(0.5)
  2230.                                                 isDone = true
  2231.                                                 local tw = tweenObject(SearchBoxBack, {
  2232.                                                         Position = UDim2.new(0, 0, 0, 0)
  2233.                                                 }, 0.4)
  2234.                                                 tw.Completed:wait()
  2235.                                                 SearchBoxBack.Visible = false
  2236.                                                 for i, v in next, buttons do
  2237.                                                         v:Destroy()
  2238.                                                         buttons[i] = nil
  2239.                                                 end
  2240.                                                 isDone = false
  2241.                                         end)
  2242.                                         TextBox:GetPropertyChangedSignal("Text"):Connect(searchboxon)
  2243.  
  2244.                                         local searchbox = {}
  2245.                                         function searchbox:Update(val)
  2246.                                                 if table.find(options, val) then
  2247.                                                         TextBox.Text = val
  2248.                                                 end
  2249.                                         end
  2250.                                         return searchbox
  2251.                                 end
  2252.                                 return section
  2253.                         end
  2254.                         return tab
  2255.                 end
  2256.                 return window
  2257.         end
  2258.  
  2259.         local function DisableConnection(signal)
  2260.                 for i, v in next, getconnections(signal) do
  2261.                         v:Disable()
  2262.                 end
  2263.         end
  2264.  
  2265.         local function FireConnection(signal)
  2266.                 for i, v in next, getconnections(signal) do
  2267.                         v:Fire()
  2268.                 end
  2269.         end
  2270.  
  2271.         DisableConnection(player.Idled)
  2272.         DisableConnection(game:GetService("ScriptContext").Error)
  2273.  
  2274.         local DataManager = ReplicatedStorage.Modules.DataManager
  2275.  
  2276.         local Hashes = {}
  2277.         local Remotes = {}
  2278.  
  2279.         for i, v in next, getupvalues(rawget(require(DataManager), "FireServer")) do
  2280.                 if type(v) == "function" then
  2281.                         for k, x in next, getupvalues(v) do
  2282.                                 if type(x) == "table" then
  2283.                                         for a, b in next, x do
  2284.                                                 if typeof(b) == "Instance" then
  2285.                                                         Hashes = x
  2286.                                                         break
  2287.                                                 end
  2288.                                         end
  2289.                                 end
  2290.                         end
  2291.                 end
  2292.         end
  2293.  
  2294.         local remoteAdded
  2295.  
  2296.         for i,v in next, getreg() do
  2297.                 if type(v) == "function" and islclosure(v) and getinfo(v).name == "remoteAdded" then
  2298.                         remoteAdded = v
  2299.                 end
  2300.         end
  2301.  
  2302.         for i, v in next, getupvalues(remoteAdded) do
  2303.                 if type(v) == "function" then
  2304.                         for k, x in next, getupvalues(v) do
  2305.                                 if type(x) == "table" then
  2306.                                         for a, b in next, x do
  2307.                                                 local remote = Hashes[a]
  2308.                                                 if remote then
  2309.                                                         Remotes[b:sub(1, 2) == "F_" and b:sub(3) or b] = remote
  2310.                                                 end
  2311.                                         end
  2312.                                 end
  2313.                         end
  2314.                 end
  2315.         end
  2316.  
  2317.         local function Call(remote, args)
  2318.                 remote = Remotes[remote]
  2319.                 if remote:IsA("RemoteEvent") then
  2320.                         return remote:FireServer(args)
  2321.                 elseif remote:IsA("RemoteFunction") then
  2322.                         return remote:InvokeServer(args)
  2323.                 end
  2324.         end
  2325.  
  2326.         local function GetItemPosition(Position, GroundCFrame)
  2327.                 return GroundCFrame:PointToObjectSpace(Position)
  2328.         end
  2329.  
  2330.         local function GetLoadPosition(Position, GroundCFrame)
  2331.                 return GroundCFrame:PointToWorldSpace(Position)
  2332.         end
  2333.  
  2334.         local function GetItemCFrame(CFrame, GroundCFrame)
  2335.                 return GroundCFrame:ToObjectSpace(CFrame)
  2336.         end
  2337.  
  2338.         local function GetLoadCFrame(CFrame, GroundCFrame)
  2339.                 return GroundCFrame:ToWorldSpace(CFrame)
  2340.         end
  2341.  
  2342.         local function PositionToArray(Position)
  2343.                 return {
  2344.                         [1] = Position.X,
  2345.                         [2] = Position.Y,
  2346.                         [3] = Position.Z
  2347.                 }
  2348.         end
  2349.  
  2350.         local function ArrayToPosition(Array)
  2351.                 return Vector3.new(Array[1], Array[2], Array[3])
  2352.         end
  2353.  
  2354.         local function CFrameToArray(CFrame)
  2355.                 local Array = {}
  2356.                 for i, v in next, {CFrame:components()} do
  2357.                         Array[i] = v
  2358.                 end
  2359.                 return Array
  2360.         end
  2361.  
  2362.         local function ArrayToCFrame(Array)
  2363.                 return CFrame.new(unpack(Array))
  2364.         end
  2365.  
  2366.         local ModulesFolder, ScriptsFolder = ReplicatedStorage.Modules, player.PlayerGui.MainGUI.Scripts
  2367.  
  2368.         local Modules = {
  2369.                 ObjectManager = require(ModulesFolder.ObjectManager);
  2370.                 MaterialData = require(ModulesFolder.Data.MaterialData);
  2371.                 WallHandler = require(ModulesFolder.WallHandler);
  2372.                 ElevatorHandler = require(ModulesFolder.ElevatorHandler);
  2373.                 FenceHandler = require(ModulesFolder.FenceHandler);
  2374.                 ItemData = require(ModulesFolder.ItemManager.ItemData);
  2375.                 ItemManager = require(ModulesFolder.ItemManager);
  2376.                 RoofHandler = require(ModulesFolder.RoofHandler);
  2377.                 PlacementHandler = require(ScriptsFolder.BuildInterface.PlacementHandler);
  2378.                 Polygon = require(ModulesFolder.Utilities.Polygon);
  2379.                 Hotbar = require(ScriptsFolder.Hotbar);
  2380.                 GUIHandler = require(ScriptsFolder.GUIHandler);
  2381.                 JobData = require(ModulesFolder.Data.JobData);
  2382.                 TranslationHandler = require(ScriptsFolder.TranslationHandler);
  2383.                 FoodHandler = require(ModulesFolder.FoodHandler);
  2384.                 VehicleData = require(ModulesFolder.VehicleHandler.VehicleData);
  2385.         }
  2386.  
  2387.         local JobManager = ScriptsFolder.JobManager
  2388.  
  2389.         local JobModules = {
  2390.                 ["Hairdresser"] = require(JobManager.StylezHairdresser);
  2391.                 ["Delivery Person"] = require(JobManager.PizzaPlanetDelivery);
  2392.                 ["Burger Cashier"] = require(JobManager.BloxyBurgersCashier);
  2393.                 ["Pizza Baker"] = require(JobManager.PizzaPlanetBaker);
  2394.                 ["Fisherman"] = require(JobManager.HutFisherman);
  2395.                 ["Miner"] = require(JobManager.CaveMiner);
  2396.                 ["Woodcutter"] = require(JobManager.LumberWoodcutter);
  2397.                 ["Market Cashier"] = require(JobManager.SupermarketCashier);
  2398.                 ["Janitor"] = require(JobManager.CleanJanitor);
  2399.                 ["Stocker"] = require(JobManager.SupermarketStocker);
  2400.                 ["Ice Cream Seller"] = require(JobManager.BensIceCreamSeller);
  2401.                 ["Mechanic"] = require(JobManager.MikesMechanic);
  2402.         }
  2403.  
  2404.         local JobActions = {
  2405.                 EndShift = function(Job)
  2406.                         JobModules[Job]:EndShift()
  2407.                 end;
  2408.                 IsWorking = function()
  2409.                         return require(JobManager):IsWorking()
  2410.                 end;
  2411.                 StartShift = function(Job)
  2412.                         if not require(JobManager):IsWorking() then
  2413.                                 JobModules[Job]:StartShift()
  2414.                         end
  2415.                 end;
  2416.         }
  2417.  
  2418.         local function Pathfind(pos)
  2419.                 local path = PathfindingService:CreatePath()
  2420.                 path:ComputeAsync(player.Character.HumanoidRootPart.Position, pos)
  2421.                 if #path:GetWaypoints() == 0 then
  2422.                         player.Character.Humanoid:MoveTo(pos)
  2423.                         repeat
  2424.                                 wait()
  2425.                         until (player.Character.HumanoidRootPart.Position - pos).magnitude  Stats.Money.Value then
  2426.                         local resp = Modules.GUIHandler:ConfirmBox("You do not have enough money to complete this build ("..tostring(Stats.Money.Value).."/"..tostring(Input.Value.TotalValue).."). Continue?", "Insufficient Funds")
  2427.                         if resp == false then return end
  2428.                 end
  2429.  
  2430.                 if BuildSettings.UseBux and Input.Value.BlockbuxValue > Stats.Blockbux.Value then
  2431.                         local resp = Modules.GUIHandler:ConfirmBox("You do not have enough blockbux to complete this build ("..tostring(Stats.Blockbux.Value).."/"..tostring(Input.Value.BlockbuxValue).."). Continue?", "Insufficient Funds")
  2432.                         if resp == false then return end
  2433.                 end
  2434.  
  2435.                 local function Has(plr, item)
  2436.                         ReplicatedStorage.Stats[plr].Inventory:FindFirstChild(item)
  2437.                 end
  2438.                 local function CostsBux(Item)
  2439.                         for i, v in next, Modules.ItemData do
  2440.                                 if v[Item] then
  2441.                                         local BSPrice = v[Item].BSPrice
  2442.                                         return BSPrice and true, BSPrice or false
  2443.                                 end
  2444.                         end
  2445.                 end
  2446.  
  2447.                 local function GetPrice(Item)
  2448.                         for i, v in next, Modules.ItemData do
  2449.                                 if v[Item] then
  2450.                                         return v[Item].Price
  2451.                                 end
  2452.                         end
  2453.                 end
  2454.                
  2455.                 local Hidden = {}
  2456.                 local IsLocked, IsHidden = Modules.ItemManager.IsLocked, Modules.ItemManager.IsHidden
  2457.  
  2458.                 for i, v in next, Modules.ItemData do
  2459.                         for k, x in next, v do
  2460.                                 if IsLocked(nil, x, player) or IsHidden(nil, x, player) then
  2461.                                         Hidden[k] = k
  2462.                                 end
  2463.                         end
  2464.                 end
  2465.  
  2466.                 local hasStop = false
  2467.                
  2468.                 local Amount = 0
  2469.  
  2470.                 local function Build(Type, Args)
  2471.                         Amount = Amount + 1
  2472.                        
  2473.                         local name = Args.Name or Args.ItemType
  2474.                         local costs, price = CostsBux(name)
  2475.                         local ItemPrice = GetPrice(name)
  2476.  
  2477.                         if Hidden[name] then
  2478.                                 return
  2479.                         end
  2480.  
  2481.                         if name then
  2482.                                 if ItemPrice and ItemPrice > BuildSettings.MaxCost then
  2483.                                         return
  2484.                                 end
  2485.                                 if IsOf(name, "Vehicles") then
  2486.                                         if not BuildSettings.UseCar then
  2487.                                                 return
  2488.                                         end
  2489.                                 end
  2490.                                 if costs then
  2491.                                         if Has(PlotOwner, name) then
  2492.                                                 Args["Moved"] = "Inventory"
  2493.                                         else
  2494.                                                 if BuildSettings.UseBux then
  2495.                                                         if price > BuildSettings.MaxBux then
  2496.                                                                 return
  2497.                                                         end
  2498.                                                 else
  2499.                                                         return
  2500.                                                 end
  2501.                                         end
  2502.                                 end
  2503.                         end
  2504.                        
  2505.                         if Amount % 4 == 0 then
  2506.                                 wait(3)
  2507.                         end
  2508.  
  2509.                         local call = Call("Place" .. Type, Args)
  2510.  
  2511.                         if call == nil and hasStop == false then
  2512.                                 hasStop = true
  2513.                         end
  2514.  
  2515.                         return call
  2516.                 end
  2517.                 local function FixOrientation(orientation)
  2518.                         return orientation + Ground.Orientation.Y
  2519.                 end
  2520.  
  2521.                 local function cframeRotation(CF)
  2522.                         local lv = CF.lookVector
  2523.                         local rot = -atan2(lv.z, lv.x) - pi * 0.5
  2524.                         return rot < 0 and 2 * pi + rot or rot
  2525.                 end
  2526.                
  2527.                 --Init
  2528.                 for i in next, Input.Data do
  2529.                         if Input.Data[i].From then
  2530.                                 Input.Data[i].From = GetLoadPosition(ArrayToPosition(Input.Data[i].From), Ground.CFrame)
  2531.                         end
  2532.                         if Input.Data[i].To then
  2533.                                 Input.Data[i].To = GetLoadPosition(ArrayToPosition(Input.Data[i].To), Ground.CFrame)
  2534.                         end
  2535.                         if Input.Data[i].Position then
  2536.                                 Input.Data[i].Position = GetLoadPosition(ArrayToPosition(Input.Data[i].Position), Ground.CFrame)
  2537.                         end
  2538.                         if Input.Data[i].CFrame then
  2539.                                 Input.Data[i].CFrame = GetLoadCFrame(ArrayToCFrame(Input.Data[i].CFrame), Ground.CFrame)
  2540.                                 Input.Data[i].Position = Input.Data[i].CFrame.p
  2541.                                 Input.Data[i].Rotation = cframeRotation(Input.Data[i].CFrame)
  2542.                                 Input.Data[i].CFrame = nil
  2543.                         end
  2544.                         if Input.Data[i].Center then
  2545.                                 Input.Data[i].Center = ArrayToCFrame(Input.Data[i].Center)
  2546.                         end
  2547.                         if Input.Data[i].Points then
  2548.                                 for k, v in next, Input.Data[i].Points do
  2549.                                         Input.Data[i].Points[k] = GetLoadPosition(ArrayToPosition(Input.Data[i].Points[k]), Ground.CFrame)
  2550.                                 end
  2551.                         end
  2552.                 end
  2553.                 for i in next, Input.External do
  2554.                         for i2 in next, Input.External[i] do
  2555.                                 if Input.External[i][i2].From then
  2556.                                         Input.External[i][i2].From = GetLoadPosition(ArrayToPosition(Input.External[i][i2].From), Ground.CFrame)
  2557.                                 end
  2558.                                 if Input.External[i][i2].To then
  2559.                                         Input.External[i][i2].To = GetLoadPosition(ArrayToPosition(Input.External[i][i2].To), Ground.CFrame)
  2560.                                 end
  2561.                                
  2562.                                 if Input.External[i][i2].CFrame then
  2563.                                         Input.External[i][i2].CFrame = GetLoadCFrame(ArrayToCFrame(Input.External[i][i2].CFrame), Ground.CFrame)
  2564.                                         Input.External[i][i2].Position = Input.External[i][i2].CFrame.p
  2565.                                         Input.External[i][i2].Rotation = cframeRotation(Input.External[i][i2].CFrame)
  2566.                                         Input.External[i][i2].CFrame = nil
  2567.                                 end
  2568.                                 if Input.External[i][i2].Rotation then
  2569.                                         Input.External[i][i2].Rotation = rad(FixOrientation(Input.External[i][i2].Rotation))
  2570.                                 end
  2571.                         end
  2572.                 end
  2573.                
  2574.                 local Heartbeat = game.RunService.Heartbeat
  2575.  
  2576.                 local function MakeObjects(Target, Id)
  2577.                         for i, v in next, Input.External[tostring(Id)] do
  2578.                                 local Args = {
  2579.                                         Name = v.Name;
  2580.                                         Side = v.Side;
  2581.                                         TargetModel = Target;
  2582.                                         Rot = v.Rotation;
  2583.                                         Pos = v.Position;
  2584.                                 }
  2585.  
  2586.                                 if v.Height then
  2587.                                         Args.TypeData = {
  2588.                                                 Height = v.Height
  2589.                                         }
  2590.                                 end
  2591.  
  2592.                                 local Object = nil
  2593.                                 if v.Segment then
  2594.                                         Args = {
  2595.                                                 ItemType = v.Name;
  2596.                                                 From = v.Position;
  2597.                                                 Segment = Target.ObjectModel.Railings[v.Segment]
  2598.                                         }
  2599.                                         Object = Build("Fence", Args)
  2600.                                 else
  2601.                                         Object = Build("Object", Args)
  2602.                                 end
  2603.  
  2604.                                 if Object then
  2605.                                         if v.Color then
  2606.                                                 Detail(Object, "Object", ParseColorGroup(v.Color))
  2607.                                         end
  2608.                                         if v.Image then
  2609.                                                 Call("SetPicture", {
  2610.                                                         Object = Object,
  2611.                                                         ID = v.Image
  2612.                                                 })
  2613.                                         end
  2614.                                         if v.Id then
  2615.                                                 MakeObjects(Object, v.Id)
  2616.                                         end
  2617.                                 end
  2618.                         end
  2619.                 end
  2620.  
  2621.                 local ScreenGui = Instance.new("ScreenGui")
  2622.                 local All = Instance.new("Frame")
  2623.                 local Progress = Instance.new("Frame")
  2624.                 local Label = Instance.new("TextLabel")
  2625.  
  2626.                 ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  2627.                 ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  2628.  
  2629.                 All.Name = "All"
  2630.                 All.Parent = ScreenGui
  2631.                 All.BackgroundColor3 = Color3.fromRGB(28, 218, 255)
  2632.                 All.BorderSizePixel = 0
  2633.                 All.Position = UDim2.new(0.249786139, 0, 0.88429755, 0)
  2634.                 All.Size = UDim2.new(0.5, 0, 0.0500000007, 0)
  2635.  
  2636.                 Progress.Name = "Progress"
  2637.                 Progress.Parent = All
  2638.                 Progress.BackgroundColor3 = Color3.fromRGB(137, 208, 255)
  2639.                 Progress.BorderSizePixel = 0
  2640.                 Progress.Size = UDim2.new(0, 0, 1, 0)
  2641.  
  2642.                 Label.Name = "Label"
  2643.                 Label.Parent = All
  2644.                 Label.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  2645.                 Label.BackgroundTransparency = 1.000
  2646.                 Label.Position = UDim2.new(0.400342166, 0, 0, 0)
  2647.                 Label.Size = UDim2.new(0.197177067, 0, 1, 0)
  2648.                 Label.Font = Enum.Font.Gotham
  2649.                 Label.Text = "0% (0/0)"
  2650.                 Label.TextColor3 = Color3.fromRGB(0, 0, 0)
  2651.                 Label.TextSize = 14.000
  2652.  
  2653.                 local TotalCount = #Input.Data
  2654.  
  2655.                 for i, v in next, Input.Data do
  2656.                         local function BuildItem()
  2657.                                 local C = i/TotalCount
  2658.                                 local Percent = floor(C * 100)
  2659.                                 Label.Text = string.format("%s (%d / %d)", Percent.."%", i, TotalCount)
  2660.                                 Progress.Size = UDim2.new(C, 0, 1, 0)
  2661.  
  2662.                                 if v.Type == "Walls" then
  2663.                                         local Item = Build("Wall", {
  2664.                                                 From = v.From;
  2665.                                                 To = v.To;
  2666.                                         })
  2667.  
  2668.                                         if Item ~= nil then
  2669.                                                 Detail(Item, "Wall", {
  2670.                                                         Color = v.RC or MSGID;
  2671.                                                         Material = v.RM or PlasticID
  2672.                                                 }, "R")
  2673.                                                 Detail(Item, "Wall", {
  2674.                                                         Color = v.LC or MSGID;
  2675.                                                         Material = v.LM or PlasticID
  2676.                                                 }, "L")
  2677.  
  2678.                                                 if v.Id then
  2679.                                                         MakeObjects(Item, v.Id)
  2680.                                                 end
  2681.                                         end
  2682.                                 elseif v.Type == "Floor" then
  2683.                                         local Args = {
  2684.                                                 Points = v.Points
  2685.                                         }
  2686.  
  2687.                                         local Item = Build("Floor", Args)
  2688.  
  2689.                                         if Item ~= nil then
  2690.                                                 if v.Color then
  2691.                                                         Detail(Item, "Object", ParseColorGroup(v.Color))
  2692.                                                 end
  2693.                                                 if v.Id then
  2694.                                                         MakeObjects(Item, v.Id)
  2695.                                                 end
  2696.                                         end
  2697.                                 elseif v.Type == "Roof" then
  2698.                                         local Item = Build("Roof", {
  2699.                                                 Settings = {
  2700.                                                         Height = v.Height;
  2701.                                                         Type = v.Name;
  2702.                                                         IsPreview = true;
  2703.                                                         RotateNum = 0;
  2704.                                                 };
  2705.                                                 Points = v.Points;
  2706.                                                 Start = v.Points[#v.Points];
  2707.                                         })
  2708.  
  2709.                                         if Item ~= nil then
  2710.                                                 if v.Color then
  2711.                                                         Detail(Item, "Object", ParseColorGroup(v.Color))
  2712.                                                 end
  2713.                                                 if v.Id then
  2714.                                                         MakeObjects(Item, v.Id)
  2715.                                                 end
  2716.                                         end
  2717.                                 elseif v.Type == "Pools" then
  2718.                                         local Item = Build("Pool", {
  2719.                                                 ItemType = v.Name;
  2720.                                                 Center = v.Center;
  2721.                                                 Size = Vector2.new(v.X, v.Y)
  2722.                                         })
  2723.  
  2724.                                         if Item ~= nil then
  2725.                                                 if v.Color then
  2726.                                                         Detail(Item, "Object", ParseColorGroup(v.Color))
  2727.                                                 end
  2728.                                                 if v.Id then
  2729.                                                         MakeObjects(Item, v.Id)
  2730.                                                 end
  2731.                                         end
  2732.                                 elseif v.Type == "Paths" then
  2733.                                         local Item = Build("Path", {
  2734.                                                 From = v.From;
  2735.                                                 To = v.To
  2736.                                         })
  2737.  
  2738.                                         if Item ~= nil then
  2739.                                                 if v.Color then
  2740.                                                         Detail(Item, "Object", ParseColorGroup(v.Color, v.Material))
  2741.                                                 end
  2742.                                                 if v.Id then
  2743.                                                         MakeObjects(Item, v.Id)
  2744.                                                 end
  2745.                                         end
  2746.                                 elseif v.Type == "Objects" or v.Type == "Counters" then
  2747.                                         local Args = {
  2748.                                                 Name = v.Name;
  2749.                                                 Side = v.Side;
  2750.                                                 TargetModel = Ground;
  2751.                                                 Rot = v.Rotation;
  2752.                                                 Pos = v.Position;
  2753.                                         }
  2754.  
  2755.                                         if v.Height then
  2756.                                                 Args.TypeData = {
  2757.                                                         Height = v.Height
  2758.                                                 }
  2759.                                         end
  2760.  
  2761.                                         local Object = nil
  2762.                                         if v.Segment then
  2763.                                                 Args = {
  2764.                                                         ItemType = v.Name;
  2765.                                                         From = v.Position;
  2766.                                                         Segment = Target.ObjectModel.Railings[v.Segment]
  2767.                                                 }
  2768.                                                 Object = Build("Fence", Args)
  2769.                                         else
  2770.                                                 Object = Build("Object", Args)
  2771.                                         end
  2772.  
  2773.                                         local Type = v.Segment and "Fence" or "Object"
  2774.  
  2775.                                         if Object then
  2776.                                                 if v.Color then
  2777.                                                         Detail(Object, "Object", ParseColorGroup(v.Color))
  2778.                                                 end
  2779.                                                 if v.Image then
  2780.                                                         Call("SetPicture", {
  2781.                                                                 Object = Object,
  2782.                                                                 ID = v.Image
  2783.                                                         })
  2784.                                                 end
  2785.                                                 if v.Id then
  2786.                                                         MakeObjects(Object, v.Id)
  2787.                                                 end
  2788.                                         end
  2789.                                 elseif v.Type == "Fences" then
  2790.                                         local Item = Build("Fence", {
  2791.                                                 From = v.From;
  2792.                                                 To = v.To;
  2793.                                                 ItemType = v.Name;
  2794.                                         })
  2795.  
  2796.                                         if Item ~= nil then
  2797.                                                 if v.Color then
  2798.                                                         Detail(Item, "Object", ParseColorGroup(v.Color))
  2799.                                                 end
  2800.                                                 if v.Id then
  2801.                                                         MakeObjects(Item, v.Id)
  2802.                                                 end
  2803.                                         end
  2804.                                 elseif v.Type == "Basements" then
  2805.                                         local Item = Build("Basement", {
  2806.                                                 Center = v.Center;
  2807.                                                 Size = Vector2.new(v.X, v.Y);
  2808.                                         })
  2809.  
  2810.                                         if Item ~= nil then
  2811.                                                 if v.Color then
  2812.                                                         Detail(Item, "Object", ParseColorGroup(v.Color))
  2813.                                                 end
  2814.                                                 if v.Id then
  2815.                                                         MakeObjects(Item, v.Id)
  2816.                                                 end
  2817.                                         end
  2818.                                 end
  2819.                         end
  2820.  
  2821.                         BuildItem()
  2822.  
  2823.                         if BuildSettings.Time > 0 then
  2824.                                 wait(BuildSettings.Time)
  2825.                         end
  2826.                 end
  2827.                 ScreenGui:Destroy()
  2828.         end
  2829.  
  2830.         local Objects = {}
  2831.  
  2832.         for i, v in next, ReplicatedStorage.ItemModels:GetChildren() do
  2833.                 for i2, v2 in next, v:GetChildren() do
  2834.                         Objects[v2.Name] = v2
  2835.                 end
  2836.         end
  2837.  
  2838.         for i, v in next, ReplicatedStorage.ItemModels:GetChildren() do
  2839.                 for i2, v2 in next, v:GetChildren() do
  2840.                         Objects[v2.Name] = v2
  2841.                 end
  2842.         end
  2843.  
  2844.         local function LoadPreview(Data)
  2845.                 local Data = game:HttpGet("https://bloxburg.sexy/builds/fromId.php?Id=" .. Data)
  2846.  
  2847.                 local success = pcall(function()
  2848.                         Http:JSONDecode(Data)
  2849.                 end)
  2850.                
  2851.                 if success then
  2852.                         local Plot = ReplicatedStorage.Stats[player.Name].IsBuilding.Value
  2853.                         local Ground = Plot.Ground
  2854.  
  2855.                         local function FixOrientation(orientation)
  2856.                                 return orientation + Ground.Orientation.Y
  2857.                         end
  2858.  
  2859.                         local rad = math.rad
  2860.  
  2861.                         local Input = Http:JSONDecode(Data)
  2862.  
  2863.                         for i in next, Input.Data do
  2864.                                 if Input.Data[i].From then
  2865.                                         Input.Data[i].From = GetLoadPosition(ArrayToPosition(Input.Data[i].From), Ground.CFrame)
  2866.                                 end
  2867.                                 if Input.Data[i].To then
  2868.                                         Input.Data[i].To = GetLoadPosition(ArrayToPosition(Input.Data[i].To), Ground.CFrame)
  2869.                                 end
  2870.                                 if Input.Data[i].Position then
  2871.                                         Input.Data[i].Position = GetLoadPosition(ArrayToPosition(Input.Data[i].Position), Ground.CFrame)
  2872.                                 end
  2873.                                 if Input.Data[i].CFrame then
  2874.                                         Input.Data[i].CFrame = GetLoadCFrame(ArrayToCFrame(Input.Data[i].CFrame), Ground.CFrame)
  2875.                                 end
  2876.                                 if Input.Data[i].Rotation then
  2877.                                         Input.Data[i].Rotation = rad(FixOrientation(Input.Data[i].Rotation))
  2878.                                 end
  2879.                                 if Input.Data[i].Center then
  2880.                                         Input.Data[i].Center = ArrayToCFrame(Input.Data[i].Center)
  2881.                                 end
  2882.                                 if Input.Data[i].Points then
  2883.                                         for k, v in next, Input.Data[i].Points do
  2884.                                                 Input.Data[i].Points[k] = GetLoadPosition(ArrayToPosition(Input.Data[i].Points[k]), Ground.CFrame)
  2885.                                         end
  2886.                                 end
  2887.                         end
  2888.                
  2889.                         for i in next, Input.External do
  2890.                                 for i2 in next, Input.External[i] do
  2891.                                         if Input.External[i][i2].From then
  2892.                                                 Input.External[i][i2].From = GetLoadPosition(ArrayToPosition(Input.External[i][i2].From), Ground.CFrame)
  2893.                                         end
  2894.                                         if Input.External[i][i2].To then
  2895.                                                 Input.External[i][i2].To = GetLoadPosition(ArrayToPosition(Input.External[i][i2].To), Ground.CFrame)
  2896.                                         end
  2897.                                         if Input.External[i][i2].Position then
  2898.                                                 Input.External[i][i2].Position = GetLoadPosition(ArrayToPosition(Input.External[i][i2].Position), Ground.CFrame)
  2899.                                         end
  2900.                                         if Input.External[i][i2].Rotation then
  2901.                                                 Input.External[i][i2].Rotation = rad(FixOrientation(Input.External[i][i2].Rotation))
  2902.                                         end
  2903.                                         if Input.External[i][i2].CFrame then
  2904.                                                 Input.External[i][i2].CFrame = GetLoadCFrame(ArrayToCFrame(Input.External[i][i2].CFrame), Ground.CFrame)
  2905.                                         end
  2906.                                 end
  2907.                         end
  2908.  
  2909.                         local Preview = workspace:FindFirstChild("BuildPreviewer")
  2910.                         if Preview == nil then
  2911.                                 Preview = Instance.new("Model", workspace)
  2912.                                 Preview.Name = "BuildPreviewer"
  2913.                         else
  2914.                                 Preview:ClearAllChildren()
  2915.                         end
  2916.                
  2917.                         local function NewGhost(properties)
  2918.                                 local Item = Instance.new("Part", Preview)
  2919.                                 Item.Anchored = true
  2920.                                 Item.CanCollide = false
  2921.                                 Item.Transparency = 0.5
  2922.                                 Item.Material = "Plastic"
  2923.                                 for i, v in next, properties do
  2924.                                         Item[i] = v
  2925.                                 end
  2926.                                 return Item
  2927.                         end
  2928.  
  2929.                         local function PreviewExternal(Object, Id)
  2930.                                 for i, v in next, Input.External[tostring(Id)] do
  2931.                                         local Clone = Objects[v.Name]:Clone()
  2932.                                         Clone.Parent = Object
  2933.                                         for i, v in next, Clone:GetDescendants() do
  2934.                                                 if v:IsA("BasePart") then
  2935.                                                         v.CanCollide = false
  2936.                                                         if v.Transparency < 1 then
  2937.                                                                 v.Transparency = 0.5
  2938.                                                         end
  2939.                                                 end
  2940.                                         end
  2941.  
  2942.                                         if v.CFrame ~= nil then
  2943.                                                 Clone:SetPrimaryPartCFrame(v.CFrame)
  2944.                                         end
  2945.  
  2946.                                         if v.Image then
  2947.                                                 if Clone:FindFirstChild("Canvas") then
  2948.                                                         Clone.Canvas.Decal.Texture = "rbxassetid://"..v.Image
  2949.                                                         Clone.Canvas.Decal.Transparency = 0.5
  2950.                                                 end
  2951.                                         end
  2952.  
  2953.                                         if v.Height then
  2954.                                                 local _, Size = Clone:GetBoundingBox()
  2955.                                                 local Y = Size.Y
  2956.                                                 for e = 1, v.Height - 1 do
  2957.                                                         local Clone2 = Clone:Clone()
  2958.                                                         Clone2.Position = Clone.Position + Vector3.new(0, Y * e, 0)
  2959.                                                         Clone2.Parent = Clone.Parent
  2960.                                                 end
  2961.                                         end
  2962.  
  2963.                                         if v.Color then
  2964.                                                 for _ = 1, 4 do
  2965.                                                         if Clone:FindFirstChild("ColorGroup" .. tostring(_)) and v.Color[_] ~= nil then
  2966.                                                                 local ColorGroup = Clone:FindFirstChild("ColorGroup" .. tostring(_))
  2967.  
  2968.                                                                 if ColorGroup:FindFirstChild("Object") then
  2969.                                                                         local Target = ColorGroup.Object.Value
  2970.  
  2971.                                                                         if Target:IsA("BasePart") then
  2972.                                                                                 Target.BrickColor = BrickColor.new(v.Color[_][1])
  2973.                                                                         end
  2974.                                                                 end
  2975.                                                         end
  2976.                                                 end
  2977.                                         end
  2978.  
  2979.                                         if v.Id then
  2980.                                                 PreviewExternal(Clone, v.Id)
  2981.                                         end
  2982.                                 end
  2983.                         end
  2984.                         for i, v in next, Input.Data do
  2985.                                 --spawn(function()
  2986.                                         if v.Type == "Walls" then
  2987.                                                 local distance = (v.From - v.To).magnitude
  2988.  
  2989.                                                 local WallModel = Instance.new("Model", Preview)
  2990.  
  2991.                                                 if v.RC or v.LC then
  2992.                                                         local Item = NewGhost({
  2993.                                                                 CFrame = (CFrame.new(v.From, v.To) - Vector3.new(0.125, 0, 0)) * CFrame.new(0, 0, - distance / 2);
  2994.                                                                 Size = Vector3.new(0.25, 12, distance);
  2995.                                                                 TopSurface = "Smooth"
  2996.                                                         })
  2997.                                                         Item.Parent = WallModel
  2998.                                                         Item.Transparency = 0.5
  2999.  
  3000.                                                         local Item2 = NewGhost({
  3001.                                                                 CFrame = (CFrame.new(v.From, v.To) + Vector3.new(0.125, 0, 0)) * CFrame.new(0, 0, - distance / 2);
  3002.                                                                 Size = Vector3.new(0.25, 12, distance);
  3003.                                                                 TopSurface = "Smooth"
  3004.                                                         })
  3005.  
  3006.                                                         Item2.Parent = WallModel
  3007.                                                         Item2.Transparency = 0.5
  3008.  
  3009.                                                         if v.RC then
  3010.                                                                 Item.BrickColor = BrickColor.new(v.RC)
  3011.                                                         end
  3012.  
  3013.                                                         if v.LC then
  3014.                                                                 Item2.BrickColor = BrickColor.new(v.LC)
  3015.                                                         end
  3016.                                                 else
  3017.                                                         local Item = NewGhost({
  3018.                                                                 CFrame = CFrame.new(v.From, v.To) * CFrame.new(0, 0, - distance / 2);
  3019.                                                                 Size = Vector3.new(0.5, 12, distance);
  3020.                                                                 TopSurface = "Smooth"
  3021.                                                         })
  3022.                                                         Item.Parent = WallModel
  3023.                                                 end
  3024.  
  3025.                                                 if v.Id then
  3026.                                                         PreviewExternal(WallModel, v.Id)
  3027.                                                 end
  3028.                                         elseif v.Type == "Roof" then
  3029.                                                 local Item = Modules.RoofHandler:CreateRoof(Plot, v.Points, {
  3030.                                                         Height = v.Height,
  3031.                                                         Type = v.Name,
  3032.                                                         IsPreview = false,
  3033.                                                         RotateNum = 0
  3034.                                                 })
  3035.  
  3036.                                                 for i2, v2 in next, Item.Model:GetDescendants() do
  3037.                                                         if v2 and v2:IsA("BasePart") then
  3038.                                                                 v2.CanCollide = false
  3039.                                                                 if v2.Transparency < 1 then
  3040.                                                                         v2.Transparency = 0.5
  3041.                                                                 end
  3042.                                                                 if v.Color then
  3043.                                                                         v2.BrickColor = BrickColor.new(v.Color[1][1])
  3044.                                                                 end
  3045.                                                         end
  3046.                                                 end
  3047.  
  3048.                                                 Item.Model.Parent = Preview
  3049.                                                 if v.Id then
  3050.                                                         PreviewExternal(Item.Model, v.Id)
  3051.                                                 end
  3052.                                         elseif v.Type == "Fences" then
  3053.                                                 local Success, Info = Modules.FenceHandler:CreateFence(Plot, v.Name, v.From, v.To)
  3054.                                                 if Success == true then
  3055.                                                         local Model = Info:GetModel()
  3056.                                                         Model.Parent = Preview
  3057.                                                         for i2, v2 in next, Model:GetDescendants() do
  3058.                                                                 if v2 and v2:IsA("BasePart") then
  3059.                                                                         v2.CanCollide = false
  3060.                                                                         if v2.Transparency < 1 then
  3061.                                                                                 v2.Transparency = 0.5
  3062.                                                                         end
  3063.                                                                 end
  3064.                                                         end
  3065.                                                 end
  3066.                                                 if v.Id then
  3067.                                                         PreviewExternal(Clone, v.Id)
  3068.                                                 end
  3069.                                         elseif v.Type == "Floor" then
  3070.                                                 local Outline = Modules.Polygon:fromPoints(v.Points)
  3071.  
  3072.                                                 local Item
  3073.                                                 if v.Color then
  3074.                                                         Item = Outline:Fill(function(a, b)
  3075.                                                                 a.Transparency = 0.5;
  3076.                                                                 a.Size = Vector3.new(0.25, a.Size.Y, a.Size.Z);
  3077.                                                                 a.CFrame = a.CFrame;
  3078.                                                                 a.Parent = b;
  3079.                                                                 a.CanCollide = false
  3080.                                                                 a.BrickColor = BrickColor.new(v.Color[1][1])
  3081.                                                         end, Preview)
  3082.                                                         Item.Parent = Preview
  3083.                                                 else
  3084.                                                         Item = Outline:Fill(function(a, b)
  3085.                                                                 a.Transparency = 0.5;
  3086.                                                                 a.Size = Vector3.new(0.25, a.Size.Y, a.Size.Z);
  3087.                                                                 a.CFrame = a.CFrame;
  3088.                                                                 a.Parent = b;
  3089.                                                                 a.CanCollide = false
  3090.                                                         end, Preview)
  3091.                                                         Item.Parent = Preview
  3092.                                                 end
  3093.  
  3094.                                                 if v.Id then
  3095.                                                         PreviewExternal(Item, v.Id)
  3096.                                                 end
  3097.                                         elseif v.Type == "Pools" then
  3098.                                                 local Item = NewGhost({
  3099.                                                         CFrame = GetLoadCFrame(v.Center, Ground.CFrame);
  3100.                                                         Size = Vector3.new(v.X, 1, v.Y);
  3101.                                                         Material = "Water";
  3102.                                                         BrickColor = BrickColor.new("Pastel Blue")
  3103.                                                 })
  3104.                                                 if v.Id then
  3105.                                                         PreviewExternal(Item, v.Id)
  3106.                                                 end
  3107.                                         elseif v.Type == "Paths" then
  3108.                                                 local Corner1 = NewGhost({
  3109.                                                         Size = Vector3.new(0.05, 4.5, 4.5);
  3110.                                                         Shape = "Cylinder";
  3111.                                                         Position = v.From;
  3112.                                                         Rotation = Vector3.new(0, 0, 90);
  3113.                                                 })
  3114.                                                 local Corner2 = NewGhost({
  3115.                                                         Size = Vector3.new(0.05, 4.5, 4.5);
  3116.                                                         Shape = "Cylinder";
  3117.                                                         Position = v.To;
  3118.                                                         Rotation = Vector3.new(0, 0, 90);
  3119.                                                 })
  3120.                                                 local distance = (v.From - v.To).magnitude
  3121.                                                 local Item = NewGhost({
  3122.                                                         CFrame = CFrame.new(v.From, v.To) * CFrame.new(0, 0, - distance / 2);
  3123.                                                         Size = Vector3.new(4.5, 0.05, distance);
  3124.                                                         TopSurface = "Smooth"
  3125.                                                 })
  3126.                                                 if v.Color then
  3127.                                                         Corner1.BrickColor = BrickColor.new(v.Color)
  3128.                                                         Corner2.BrickColor = BrickColor.new(v.Color)
  3129.                                                         Item.BrickColor = BrickColor.new(v.Color)
  3130.                                                 end
  3131.                                                 if v.Id then
  3132.                                                         PreviewExternal(Item, v.Id)
  3133.                                                 end
  3134.                                         elseif v.Type == "Basements" then
  3135.                                                 local Item = NewGhost({
  3136.                                                         CFrame = GetLoadCFrame(v.Center, Ground.CFrame);
  3137.                                                         Size = Vector3.new(v.X, 2, v.Y);
  3138.                                                         BrickColor = BrickColor.new("Black")
  3139.                                                 })
  3140.                                                 if v.Id then
  3141.                                                         PreviewExternal(Item, v.Id)
  3142.                                                 end
  3143.                                         elseif v.Type == "Objects" then
  3144.                                                 local Clone = Objects[v.Name]:Clone()
  3145.                                                 Clone.Parent = Preview
  3146.                                                 for i, v in next, Clone:GetDescendants() do
  3147.                                                         if v:IsA("BasePart") then
  3148.                                                                 v.CanCollide = false
  3149.                                                                 if v.Transparency < 1 then
  3150.                                                                         v.Transparency = 0.5
  3151.                                                                 end
  3152.                                                         end
  3153.                                                 end
  3154.  
  3155.                                                 if v.CFrame ~= nil then
  3156.                                                         Clone:SetPrimaryPartCFrame(v.CFrame)
  3157.                                                 end
  3158.  
  3159.                                                 if v.Height then
  3160.                                                         Modules.ElevatorHandler:UpdateElevatorHeight(Clone, v.Height, true)
  3161.                                                 end
  3162.                                                 if v.Image then
  3163.                                                         if Clone:FindFirstChild("Canvas") then
  3164.                                                                 Clone.Canvas.Decal.Texture = "rbxassetid://"..v.Image
  3165.                                                                 Clone.Canvas.Decal.Transparency = 0.5
  3166.                                                         end
  3167.                                                 end
  3168.                                                 if v.Color then
  3169.                                                         for _ = 1, 4 do
  3170.                                                                 if Clone:FindFirstChild("ColorGroup" .. tostring(_)) and v.Color[_] ~= nil then
  3171.                                                                         local ColorGroup = Clone:FindFirstChild("ColorGroup" .. tostring(_))
  3172.                                                                         if ColorGroup:FindFirstChild("Object") then
  3173.                                                                                 local Target = ColorGroup.Object.Value
  3174.                                                                                 if Target:IsA("BasePart") then
  3175.                                                                                         Target.BrickColor = BrickColor.new(v.Color[_][1])
  3176.                                                                                 end
  3177.                                                                         end
  3178.                                                                 end
  3179.                                                         end
  3180.                                                 end
  3181.                                                 if v.Id then
  3182.                                                         PreviewExternal(Clone, v.Id)
  3183.                                                 end
  3184.                                         end
  3185.                                 --end)
  3186.                         end
  3187.                         if player.PlayerGui.MainGUI:FindFirstChild("BuildMenu") and player.PlayerGui.MainGUI.BuildMenu:FindFirstChild("Build") then
  3188.                                 FireConnection(player.PlayerGui.MainGUI.BuildMenu.Build.MouseButton1Click)
  3189.                         end
  3190.                 end
  3191.         end
  3192.  
  3193.         local function BulldozePlot(Plot)
  3194.                 for i, v in next, Plot.House:GetChildren() do
  3195.                         for k, x in next, v:GetChildren() do
  3196.                                 if x.Name ~= "Poles" then
  3197.                                         Call("BulldozePlot", {
  3198.                                                 Exclude = {}
  3199.                                         })
  3200.                                 end
  3201.                         end
  3202.                 end
  3203.         end
  3204.  
  3205.         local PlayerList, PlayerHouses = {}, {}
  3206.  
  3207.         local function PlayerAdded(plr)
  3208.                 table.insert(PlayerList, plr.Name)
  3209.                 table.insert(PlayerHouses, plr.Name.."'s house")
  3210.         end
  3211.  
  3212.         local function PlayerRemoving(plr)
  3213.                 table.remove(PlayerList, table.find(PlayerList, plr.Name))
  3214.                 table.remove(PlayerHouses, table.find(PlayerHouses, plr.Name.."'s house"))
  3215.         end
  3216.  
  3217.         Players.PlayerAdded:Connect(PlayerAdded)
  3218.         Players.PlayerRemoving:Connect(PlayerRemoving)
  3219.  
  3220.         for i, v in next, Players:GetPlayers() do
  3221.                 PlayerAdded(v)
  3222.         end
  3223.  
  3224.         local Window = library:Window("Bloxburg", "Epic Thing")
  3225.  
  3226.         local Tabs = {
  3227.                 AutoBuild = Window:Tab("Auto Build");
  3228.                 Autofarm = Window:Tab("Autofarm");
  3229.                 Misc = Window:Tab("Misc");
  3230.                 AutoMood = Window:Tab("Auto Mood");
  3231.                 Trolling = Window:Tab("Trolling");
  3232.                 Vehicle = Window:Tab("Vehicle");
  3233.                 PrivateServerFarm = Window:Tab("Code Farm");
  3234.                 StatViewer = Window:Tab("Stat Viewer");
  3235.                 ServerInvite = Window:Tab("Discord Server");
  3236.         }
  3237.  
  3238.         local Sections = {
  3239.                 AutoBuild = {
  3240.                         Save = Tabs.AutoBuild:Section("Save");
  3241.                         Build = Tabs.AutoBuild:Section("Build");
  3242.                         BuildSettings = Tabs.AutoBuild:Section("Settings");
  3243.                 };
  3244.                 Autofarm = {
  3245.                         Main = Tabs.Autofarm:Section("Main");
  3246.                         Settings = Tabs.Autofarm:Section("Settings");
  3247.                         Stats = Tabs.Autofarm:Section("Stats");
  3248.                 };
  3249.                 Misc = {
  3250.                         Random = Tabs.Misc:Section("Random");
  3251.                         AutoDrive = Tabs.Misc:Section("Auto Drive");
  3252.                         Sky = Tabs.Misc:Section("Sky");
  3253.                         FakeMessage = Tabs.Misc:Section("Fake Message");
  3254.                         FakePaycheck = Tabs.Misc:Section("Fake Paycheck");
  3255.                         Skills = Tabs.Misc:Section("Skills");
  3256.                 };
  3257.                 AutoMood = {
  3258.                         Automatic = Tabs.AutoMood:Section("Automatic");
  3259.                         Manual = Tabs.AutoMood:Section("Manual");
  3260.                         AutoCook = Tabs.AutoMood:Section("Auto Cook");
  3261.                 };
  3262.                 Trolling = {
  3263.                         Server = Tabs.Trolling:Section("Server");
  3264.                 };
  3265.                 Vehicle = {
  3266.                         Mods = Tabs.Vehicle:Section("Modifications (re-enter vehicle to apply)");
  3267.                 };
  3268.                 PrivateServerFarm = {
  3269.                         Main = Tabs.PrivateServerFarm:Section("Main");
  3270.                         Settings = Tabs.PrivateServerFarm:Section("Settings");
  3271.                 };
  3272.                 ServerInvite = {
  3273.                         Invite = Tabs.ServerInvite:Section("Invite");
  3274.                 };
  3275.                 StatViewer = {
  3276.                         Viewer = Tabs.StatViewer:Section("Stat Viewer")
  3277.                 }
  3278.         }
  3279.  
  3280.         if game:HttpGet("https://bloxburg.sexy/version.php") ~= tostring(ReplicatedStorage.Version.Value) then
  3281.                 Window:Notification("Error", {
  3282.                         Text = "Bloxburg has updated\nthe script may not work\nand/or be vulnurable";
  3283.                         ConfirmText = "Okay";
  3284.                 })
  3285.         end
  3286.  
  3287.         Sections.ServerInvite.Invite:Button("Copy Server Invite", function()
  3288.                 setclipboard(game:HttpGet("https://bloxburg.sexy/getinvite.php"))
  3289.         end)
  3290.  
  3291.         Sections.PrivateServerFarm.Main:Toggle("Enabled", function(value)
  3292.                 getgenv().PSEnabled = value
  3293.                 if value == true then
  3294.                         syn.queue_on_teleport([[
  3295.                                 getgenv().PSEnabled = ]]..tostring(getgenv().PSEnabled)..[[
  3296.                                
  3297.                                 getgenv().PSOutput = ']]..tostring(getgenv().PSOutput)..[['
  3298.                        
  3299.                                 getgenv().PSFileName = ']]..tostring(getgenv().PSFileName)..[['
  3300.                                
  3301.                                 getgenv().PSWebhook = ']]..tostring(getgenv().PSWebhook)..[['
  3302.                                
  3303.                                 shared.whitelist_key = ']]..shared.whitelist_key..[[';
  3304.                                 local content = game:HttpGet("https://sor.cool/whitelist/getfile.lua?ID=]]..getreg().ID..[[&type=script")
  3305.                                 assert(loadstring(content))()
  3306.                         ]])
  3307.                         TeleportService:Teleport(185655149)
  3308.                 end
  3309.         end)
  3310.  
  3311.         Sections.PrivateServerFarm.Main:Button("Scan Server For Codes", function()
  3312.                 local Output = getgenv().PSOutput
  3313.                 local Amount = 0
  3314.  
  3315.                 if Output == "File" and not isfile(PSFileName..".txt") then
  3316.                         writefile(PSFileName..".txt", "")
  3317.                 end
  3318.  
  3319.                 for i,v in next, ReplicatedStorage.Stats:GetChildren() do
  3320.                         if v.Name ~= player.Name then
  3321.                                 local PrivateServer = v.PrivateServer
  3322.                                 if PrivateServer.RenewTime.Value > os.time() and PrivateServer.JoinPermission.Value == 0 then
  3323.                                         Amount = Amount + 1
  3324.                                         if Output == "File" then
  3325.                                                 appendfile(PSFileName..".txt", v.Name.."\n")
  3326.                                         elseif Output == "Webhook" then
  3327.                                                 upload_code(v.Name)
  3328.                                         end
  3329.                                 end
  3330.                         end
  3331.                 end
  3332.  
  3333.                 Window:Notification("Message", {
  3334.                         Text = "Success!\n"..tostring(Amount).." Codes Were Found";
  3335.                         ConfirmText = "Okay";
  3336.                 })
  3337.         end)
  3338.  
  3339.         local function GetVehicleSpawn()
  3340.                 local Objects = workspace.Plots["Plot_"..player.Name].House.Objects
  3341.                 for i,v in next, Objects:GetChildren() do
  3342.                         if v:FindFirstChild("ObjectData") and v:FindFirstChild("ObjectModel") then
  3343.                                 if v.ObjectData:FindFirstChild("Spawned") and v.ObjectModel:FindFirstChild("Stand") then
  3344.                                         if typeof(v.ObjectData.Spawned.Value) == "Instance" and v.ObjectData.Spawned.Value.Name:sub(1, 8) == "Vehicle_" then
  3345.                                                 return v
  3346.                                         end
  3347.                                 end
  3348.                         end
  3349.                 end
  3350.                 for i,v in next, Objects:GetChildren() do
  3351.                         if v:FindFirstChild("ObjectData") and v:FindFirstChild("ObjectModel") then
  3352.                                 if v.ObjectData:FindFirstChild("Spawned") and v.ObjectModel:FindFirstChild("Stand") then
  3353.                                         if v.ObjectModel:FindFirstChild("Vehicle") then
  3354.                                                 return v
  3355.                                         end
  3356.                                 end
  3357.                         end
  3358.                 end
  3359.         end
  3360.  
  3361.         Sections.PrivateServerFarm.Settings:Picker("Output Location", {"File", "Webhook"}, function(value)
  3362.                 getgenv().PSOutput = value
  3363.         end)
  3364.  
  3365.         Sections.PrivateServerFarm.Settings:Box("File Name", function(value)
  3366.                 getgenv().PSFileName = value
  3367.         end)
  3368.  
  3369.         Sections.PrivateServerFarm.Settings:Box("Webhook Url", function(value)
  3370.                 getgenv().PSWebhook = value
  3371.         end)
  3372.  
  3373.         Sections.Vehicle.Mods:Slider("Forward Speed", {min = 0, max = 100}, function(value)
  3374.                 for i,v in next, Modules.VehicleData do
  3375.                         v.ForwardSpeed = value
  3376.                 end
  3377.         end)
  3378.  
  3379.         Sections.Vehicle.Mods:Slider("Reverse Speed", {min = 0, max = 100}, function(value)
  3380.                 for i,v in next, Modules.VehicleData do
  3381.                         v.ReverseSpeed = value
  3382.                 end
  3383.         end)
  3384.  
  3385.         Sections.Vehicle.Mods:Slider("Turn Speed", {min = 0, max = 100}, function(value)
  3386.                 for i,v in next, Modules.VehicleData do
  3387.                         v.TurnSpeed = value
  3388.                 end
  3389.         end)
  3390.  
  3391.         Sections.Vehicle.Mods:Slider("Spring", {min = 0, max = 50}, function(value)
  3392.                 for i,v in next, Modules.VehicleData do
  3393.                         v.SpringLength = value
  3394.                 end
  3395.         end)
  3396.  
  3397.         Sections.Trolling.Server:Button("Crash Server", function()
  3398.                 local Vehicle = GetVehicleSpawn()
  3399.                 if Vehicle then
  3400.  
  3401.                         require(player.PlayerGui.MainGUI.Scripts.Hotbar):ToPlot()
  3402.                         repeat
  3403.                                 wait()
  3404.                         until player.PlayerGui.MainGUI:FindFirstChild("LoadingFrame_ToPlot")
  3405.                         repeat
  3406.                                 wait()
  3407.                         until not player.PlayerGui.MainGUI:FindFirstChild("LoadingFrame_ToPlot")
  3408.                         wait(3)
  3409.                         CoolTween(Vehicle.ObjectModel.Stand.CFrame, 25)
  3410.  
  3411.                         while RunService.RenderStepped:Wait() do
  3412.                                 Remotes.Interact:FireServer({
  3413.                                         Target = Vehicle,
  3414.                                         Path = "3"
  3415.                                 })
  3416.                                
  3417.                                 Remotes.Interact:FireServer({
  3418.                                         Target = Vehicle,
  3419.                                         Path = "1"
  3420.                                 })
  3421.                         end
  3422.                 else
  3423.                         Window:Notification("Error", {
  3424.                                 Text = "There Must Be a Vehicle Spawner On Your Plot";
  3425.                                 ConfirmText = "Okay";
  3426.                         })
  3427.                 end
  3428.         end)
  3429.  
  3430.         Sections.Trolling.Server:Button("Destroy Car (driver seat only)", function()
  3431.                 for i, v in next, player.Character:GetChildren() do
  3432.                         if v.Name:sub(0, 8) == "Vehicle_" then
  3433.                                 v.Chassi:Destroy()
  3434.                         end
  3435.                 end
  3436.         end)
  3437.  
  3438.         Sections.AutoBuild.Save:SearchBox("Target player", PlayerList, function(target)
  3439.                 local Plot = workspace.Plots:FindFirstChild("Plot_" .. target)
  3440.                 if Plot then
  3441.                         SaveSettings.TargetName = target
  3442.                         SaveSettings.Target = Plot
  3443.                 else
  3444.                         Window:Notification("Error", {
  3445.                                 Text = "Target's Plot Does Not Exist";
  3446.                                 ConfirmText = "Okay";
  3447.                         })
  3448.                 end
  3449.         end)
  3450.  
  3451.         Sections.AutoBuild.Save:Button("Save Build", function()
  3452.                 local Target = SaveSettings.Target
  3453.                 local TargetName = SaveSettings.TargetName
  3454.                 local BuildData = SavePlot(Target)
  3455.  
  3456.                 local PlotData = Http:JSONEncode(BuildData)
  3457.  
  3458.                 if Target then
  3459.                         if not Target:FindFirstChild("LODModel") then
  3460.                                 if not isfolder("bloxburg") then
  3461.                                         makefolder("bloxburg")
  3462.                                 end
  3463.                                
  3464.                                 local Output = SaveSettings.Output
  3465.                                 local name = TargetName .. ".bet"
  3466.                                 --if Output == "Cloud" then
  3467.                                 local response = syn.request({
  3468.                                         Url = "https://bloxburg.sexy/builds/upload";
  3469.                                         Method = "POST";
  3470.                                         Headers = {
  3471.                                                 ["Content-Type"] = "application/json"
  3472.                                         };
  3473.                                         Body = PlotData
  3474.                                 })
  3475.                                 local ValueVariables = BuildData.Value
  3476.                                 if response.Body:find("status") and response.Body:find("output") then
  3477.                                         local parsed_response = Http:JSONDecode(response.Body)
  3478.                                         if parsed_response.status == "success" then
  3479.                                                 setclipboard(parsed_response.output)
  3480.                                                 Window:Notification("Message", {
  3481.                                                         Text = "Build ID Copied to clipboard\nTotal Value: " .. tostring(ValueVariables.TotalValue) .. "\nBlockbux Value: " .. tostring(ValueVariables.BlockbuxValue);
  3482.                                                         ConfirmText = "Okay";
  3483.                                                 })
  3484.                                         else
  3485.                                                 writefile("bloxburg/".. name, PlotData)
  3486.                                                 Window:Notification("Error", {
  3487.                                                         Text = parsed_response.status .. "\nSaved build as file \n" .. name .. "\nTotal Value: " .. tostring(ValueVariables.TotalValue) .. "\nBlockbux Value: " .. tostring(ValueVariables.BlockbuxValue);
  3488.                                                         ConfirmText = "Okay";
  3489.                                                 })
  3490.                                         end
  3491.                                 else
  3492.                                         writefile("bloxburg/".. name, PlotData)
  3493.                                         Window:Notification("Error", {
  3494.                                                 Text = "Error occured\nSaved build as file \n" .. name .. "\nTotal Value: " .. tostring(ValueVariables.TotalValue) .. "\nBlockbux Value: " .. tostring(ValueVariables.BlockbuxValue);
  3495.                                                 ConfirmText = "Okay";
  3496.                                         })
  3497.                                 end
  3498.                         else
  3499.                                 Window:Notification("Error", {
  3500.                                         Text = "Target Plot is Not Rendered";
  3501.                                         ConfirmText = "Okay";
  3502.                                 })
  3503.                         end
  3504.                 else
  3505.                         Window:Notification("Error", {
  3506.                                 Text = "Target Not Selected";
  3507.                                 ConfirmText = "Okay";
  3508.                         })
  3509.                 end
  3510.         end)
  3511.  
  3512.         Sections.AutoBuild.Build:Box("Build ID", function(id)
  3513.                 BuildSettings.Id = id
  3514.         end)
  3515.  
  3516.         Sections.AutoBuild.Build:Button("Show Preview", function()
  3517.                 local id = BuildSettings.Id
  3518.                 if id then
  3519.                         LoadPreview(id)
  3520.                 else
  3521.                         Window:Notification("Error", {
  3522.                                 Text = "Target Not Selected";
  3523.                                 ConfirmText = "Okay";
  3524.                         })
  3525.                 end
  3526.         end)
  3527.  
  3528.         Sections.AutoBuild.Build:Button("Destroy Preview", function()
  3529.                 local Preview = workspace:FindFirstChild("BuildPreviewer")
  3530.                 if Preview and #Preview:GetChildren() > 0 then
  3531.                         Preview:ClearAllChildren()
  3532.                 else
  3533.                         Window:Notification("Error", {
  3534.                                 Text = "Preview Doesn't Exist";
  3535.                                 ConfirmText = "Okay";
  3536.                         })
  3537.                 end
  3538.         end)
  3539.  
  3540.         Sections.AutoBuild.Build:Button("Start Building", function()
  3541.                 local id = BuildSettings.Id
  3542.                 if id then
  3543.                         local Preview = workspace:FindFirstChild("BuildPreviewer")
  3544.                         if Preview then
  3545.                                 Preview:ClearAllChildren()
  3546.                         end
  3547.                         LoadPlot(game:HttpGet("https://bloxburg.sexy/builds/fromId.php?Id=" .. id))
  3548.                 else
  3549.                         Window:Notification("Error", {
  3550.                                 Text = "Target Not Selected";
  3551.                                 ConfirmText = "Okay";
  3552.                         })
  3553.                 end
  3554.         end)
  3555.  
  3556.         Sections.AutoBuild.Build:Button("Bulldoze Current Plot", function()
  3557.                 BulldozePlot(ReplicatedStorage.Stats[player.Name].IsBuilding.Value)
  3558.         end)
  3559.  
  3560.         Sections.AutoBuild.BuildSettings:Slider("Extra Build Delay", {
  3561.                 min = 0,
  3562.                 max = 5000,
  3563.                 default = 0
  3564.         }, function(value)
  3565.                 BuildSettings.Time = value
  3566.         end)
  3567.  
  3568.         Sections.AutoBuild.BuildSettings:Toggle("Use Vehicles", function(value)
  3569.                 BuildSettings.UseCar = value
  3570.         end)
  3571.  
  3572.         Sections.AutoBuild.BuildSettings:Toggle("Use Blockbux", function(value)
  3573.                 BuildSettings.UseBux = value
  3574.         end)
  3575.  
  3576.  
  3577.         Sections.AutoBuild.BuildSettings:Slider("Max Item Cost (Money)", {
  3578.                 min = 0,
  3579.                 max = 200000,
  3580.                 default = 200000
  3581.         }, function(value)
  3582.                 BuildSettings.MaxCost = value
  3583.         end)
  3584.  
  3585.         Sections.AutoBuild.BuildSettings:Slider("Max Item Cost (Blockbux)", {
  3586.                 min = 0,
  3587.                 max = 10000,
  3588.                 default = 0
  3589.         }, function(value)     
  3590.                 BuildSettings.MaxBux = value
  3591.         end)
  3592.  
  3593.         local StatLabels = {
  3594.                 EarningsLabel = Sections.Autofarm.Stats:Label("");
  3595.                 TimeLabel = Sections.Autofarm.Stats:Label("");
  3596.         }
  3597.  
  3598.         local AutofarmSettings = {
  3599.                 ActiveJob = nil;
  3600.                 WorkEnabled = false;
  3601.         }
  3602.  
  3603.         local ColorsValue = {
  3604.                 "Dark stone grey";
  3605.                 "Dark orange";
  3606.                 "Deep orange";
  3607.                 "Lime green";
  3608.                 "Royal purple";
  3609.         }
  3610.  
  3611.         local mt = getrawmetatable(game)
  3612.         local oldNamecall = mt.__namecall
  3613.         setreadonly(mt, false)
  3614.  
  3615.         mt.__namecall = newcclosure(function(self, ...)
  3616.                 local args = {
  3617.                         ...
  3618.                 }
  3619.                 if checkcaller() and getnamecallmethod() == "FireServer" and args[1].Order and args[1].Workstation then
  3620.                         if args[1].Workstation.Parent.Name == "HairdresserWorkstations" and ActiveJob == "Hairdresser" then
  3621.  
  3622.                                 args[1].Order = {
  3623.                                         args[1].Workstation.Occupied.Value.Order.Style.Value,
  3624.                                         args[1].Workstation.Occupied.Value.Order.Color.Value
  3625.                                 }
  3626.  
  3627.                                 return oldNamecall(self, unpack(args))
  3628.  
  3629.                         elseif args[1].Workstation.Parent.Name == "CashierWorkstations" and ActiveJob == "Cashier (Burger)" then
  3630.  
  3631.                                 args[1].Order = {
  3632.                                         args[1].Workstation.Occupied.Value.Order.Burger.Value,
  3633.                                         args[1].Workstation.Occupied.Value.Order.Fries.Value,
  3634.                                         args[1].Workstation.Occupied.Value.Order.Cola.Value
  3635.                                 }
  3636.  
  3637.                                 return oldNamecall(self, unpack(args))
  3638.  
  3639.                         elseif args[1].Workstation.Parent.Name == "BakerWorkstations" and ActiveJob == "Pizza Baker" then
  3640.  
  3641.                                 args[1].Order = {
  3642.                                         true,
  3643.                                         true,
  3644.                                         true,
  3645.                                         args[1].Workstation.Order.Value
  3646.                                 }
  3647.  
  3648.                                 return oldNamecall(self, unpack(args))
  3649.  
  3650.                         end
  3651.                 end
  3652.  
  3653.                 return oldNamecall(self, ...)
  3654.         end)
  3655.  
  3656.         setreadonly(mt, true)
  3657.  
  3658.         local function FindClosest(Item)
  3659.                 local closestBlock = nil
  3660.                 local closestDistance = huge
  3661.                 if Item == "Stone" then
  3662.                         repeat
  3663.                                 wait()
  3664.                         until workspace.Environment.Locations:FindFirstChild("MinerCave")
  3665.                         local closestY = huge
  3666.                         for i, v in next, workspace.Environment.Locations.MinerCave.Folder:GetChildren() do
  3667.                                 if player:DistanceFromCharacter(v.PrimaryPart.Position) < closestDistance and v.PrimaryPart.Position.Y < closestY then
  3668.                                         if (not v:FindFirstChild("B")) or (v:FindFirstChild("B").BrickColor.Name ~= "Bright red") then
  3669.                                                 closestDistance = player:DistanceFromCharacter(v.PrimaryPart.Position)
  3670.                                                 closestBlock = v
  3671.                                                 closestY = v.PrimaryPart.Position.Y
  3672.                                         end
  3673.                                 end
  3674.                         end
  3675.                 elseif Item == "Valuable" then
  3676.                         repeat
  3677.                                 wait()
  3678.                         until workspace.Environment.Locations:FindFirstChild("MinerCave")
  3679.                         local bestColor = "Dark stone grey"
  3680.                         for i, v in next, workspace.Environment.Locations.MinerCave.Folder:GetChildren() do
  3681.                                 if v:FindFirstChild("M") then
  3682.                                         if table.find(ColorsValue, bestColor) < table.find(ColorsValue, v:FindFirstChild("M").BrickColor.Name) then
  3683.                                                 closestBlock = v
  3684.                                                 bestColor = v:FindFirstChild("M").BrickColor.Name
  3685.                                         elseif table.find(ColorsValue, bestColor) == table.find(ColorsValue, v:FindFirstChild("M").BrickColor.Name) then
  3686.                                                 if player:DistanceFromCharacter(v.PrimaryPart.Position) < closestDistance then
  3687.                                                         closestDistance = player:DistanceFromCharacter(v.PrimaryPart.Position)
  3688.                                                         closestBlock = v
  3689.                                                 end
  3690.                                         end
  3691.                                 end
  3692.                         end
  3693.                         if closestBlock == nil then
  3694.                                 closestBlock = FindClosest("Stone")
  3695.                         end
  3696.                 elseif Item == "Trash" then
  3697.                         for i, v in next, workspace.Environment.Locations.GreenClean.Spawns:GetChildren() do
  3698.                                 if player:DistanceFromCharacter(v.Position) < closestDistance and v:FindFirstChildWhichIsA("Decal", true) then
  3699.                                         closestDistance = player:DistanceFromCharacter(v.Position)
  3700.                                         closestBlock = v
  3701.                                 end
  3702.                         end
  3703.                         if closestBlock == nil then
  3704.                                 wait(0.5)
  3705.                                 FindClosest("Trash")
  3706.                         end
  3707.                 elseif Item == "Tree" then
  3708.                         for i, v in next, workspace.Environment.Trees:GetChildren() do
  3709.                                 if player:DistanceFromCharacter(v.PrimaryPart.Position) < closestDistance and v.PrimaryPart.Position.Y > 5 then
  3710.                                         closestDistance = player:DistanceFromCharacter(v.PrimaryPart.Position)
  3711.                                         closestBlock = v
  3712.                                 end
  3713.                         end
  3714.                 elseif Item == "Crate" then
  3715.                         for i, v in next, workspace.Environment.Locations.Supermarket.Crates:GetChildren() do
  3716.                                 if player:DistanceFromCharacter(v.Position) < closestDistance and v.Name == "Crate" then
  3717.                                         closestDistance = player:DistanceFromCharacter(v.Position)
  3718.                                         closestBlock = v
  3719.                                 end
  3720.                         end
  3721.                         if closestBlock == nil then
  3722.                                 wait(0.5)
  3723.                                 FindClosest("Crate")
  3724.                         end
  3725.                 elseif Item == "EmptyShelf" then
  3726.                         for i, v in next, workspace.Environment.Locations.Supermarket.Shelves:GetChildren() do
  3727.                                 if player:DistanceFromCharacter(v.PrimaryPart.Position) < closestDistance and v.IsEmpty.Value == true then
  3728.                                         closestDistance = player:DistanceFromCharacter(v.PrimaryPart.Position)
  3729.                                         closestBlock = v
  3730.                                 end
  3731.                         end
  3732.                         if closestBlock == nil then
  3733.                                 wait(0.5)
  3734.                                 FindClosest("EmptyShelf")
  3735.                         end
  3736.                 elseif Item == "PizzaCrate" then
  3737.                         for i, v in next, workspace.Environment.Locations.PizzaPlanet.IngredientCrates:GetChildren() do
  3738.                                 local dis = (player.Character.HumanoidRootPart.Position - v.Position).magnitude
  3739.                                 if dis < closestDistance then
  3740.                                         closestDistance = dis
  3741.                                         closestBlock = v
  3742.                                 end
  3743.                         end
  3744.                         if closestBlock == nil then
  3745.                                 wait(0.5)
  3746.                                 FindClosest("PizzaCrate")
  3747.                         end
  3748.                 end
  3749.                 return closestBlock
  3750.         end
  3751.  
  3752.         local toGo = nil
  3753.         local Vehicle
  3754.  
  3755.         local LocationCFrame = {
  3756.                 ["Pizza Planet"] = CFrame.new(1092.59473, 13.6776829, 249.286835);
  3757.                 ["Bloxy Burgers"] = CFrame.new(877.985901, 13.070406, 267.987854);
  3758.                 ["Stylez Hairdresser"] = CFrame.new(902.504822, 13.0960951, 166.004135);
  3759.                 ["Lake"] = CFrame.new(985.374207, 13.1055984, 1061.12622);
  3760.                 ["Mike's Motors"] = CFrame.new(1095.50464, 12.9041576, 384.505646);
  3761.                 ["Nightclub"] = CFrame.new(1068.34241, 12.9559097, 27.2332954);
  3762.                 ["City Hall"] = CFrame.new(994.741943, 13.1551933, -225.07254);
  3763.                 ["Gym"] = CFrame.new(841.105408, 12.9554825, -100.579193);
  3764.                 ["BFF Supermarket"] = CFrame.new(840.207581, 13.0544462, -14.4691305);
  3765.                 ["Fancy Furniture"] = CFrame.new(1095.1908, 13.1559048, 139.72467);
  3766.                 ["Lovely Lumber"] = CFrame.new(614.160645, 13.0296869, 772.316162);
  3767.                 ["Cave"] = CFrame.new(519.167419, 13.0106106, 728.404419);
  3768.                 ["Ben's Ice Cream"] = CFrame.new(943.374939, 13.0542393, 1017.85272);
  3769.                 ["Ferris Wheel"] = CFrame.new(986.463562, 13.0917492, 1089.16406);
  3770.         }
  3771.  
  3772.         local locationNames = {}
  3773.  
  3774.         for i in next, LocationCFrame do
  3775.                 table.insert(locationNames, i)
  3776.         end
  3777.  
  3778.         Sections.Misc.AutoDrive:SearchBox("Location", locationNames, function(die)
  3779.                 toGo = die
  3780.         end)
  3781.  
  3782.         Sections.Misc.AutoDrive:SearchBox("Player Location", PlayerList, function(die)
  3783.                 toGo = die
  3784.         end)
  3785.  
  3786.         Sections.Misc.AutoDrive:SearchBox("Player Houses", PlayerHouses, function(die)
  3787.                 toGo = die
  3788.         end)
  3789.  
  3790.         local tween
  3791.         local stop = false
  3792.  
  3793.         local function VehicleTween(item, target, speed)
  3794.                 local dist = (item.Position - target.p).magnitude
  3795.                 tween = game:GetService("TweenService"):Create(item, TweenInfo.new(dist / speed, Enum.EasingStyle.Linear), {
  3796.                         CFrame = target
  3797.                 })
  3798.                 tween:Play()
  3799.                 tween.Completed:wait()
  3800.         end
  3801.  
  3802.         local function playerLocations()
  3803.                 local plrPos = {}
  3804.                 for i, v in next, PlayerList do
  3805.                         local PlayerCharacter = Players[v].Character
  3806.                         if PlayerCharacter and PlayerCharacter:FindFirstChild("HumanoidRootPart") then
  3807.                                 plrPos[v] = PlayerCharacter.HumanoidRootPart.CFrame
  3808.                         end
  3809.                 end
  3810.                 return plrPos
  3811.         end
  3812.  
  3813.         local function houseLocations()
  3814.                 local housePos = {}
  3815.                 for i, v in next, PlayerList do
  3816.                         pcall(function()
  3817.                                 housePos[v.."'s house"] = workspace.Plots["Plot_" .. v].FrontObjects.ItemHolder["Basic Mailbox"].CFrame
  3818.                         end)
  3819.                 end
  3820.                 return housePos
  3821.         end
  3822.  
  3823.         Sections.Misc.AutoDrive:Button("Drive", function()
  3824.                 for i, v in next, player.Character:GetChildren() do
  3825.                         if v.Name:sub(0, 8) == "Vehicle_" then
  3826.                                 Vehicle = v
  3827.                         end
  3828.                 end
  3829.                 if not Vehicle then
  3830.                         Window:Notification("Error", {
  3831.                                 Text = "You must be on a vehicle!";
  3832.                                 ConfirmText = "Okay";
  3833.                         })
  3834.                 else
  3835.                         local oldg = workspace.Gravity
  3836.                         workspace.Gravity = 0
  3837.                         local _, VehicleSize = Vehicle:GetBoundingBox()
  3838.                         local LocationPath = PathfindingService:CreatePath()
  3839.  
  3840.                         local placeToGo = LocationCFrame[toGo] or playerLocations()[toGo] or houseLocations()[toGo]
  3841.                         LocationPath:ComputeAsync(player.Character.HumanoidRootPart.Position, placeToGo.p)
  3842.                         local LocationPoints = LocationPath:GetWaypoints({
  3843.                                 AgentRadius = VehicleSize.X;
  3844.                                 AgentHeight = VehicleSize.Y
  3845.                         })
  3846.  
  3847.                         driving = true
  3848.  
  3849.                         for i, v in next, LocationPoints do
  3850.                                 if stop then
  3851.                                         stop = false
  3852.                                         workspace.Gravity = oldg
  3853.                                         break
  3854.                                 end
  3855.                                 if i % 10 == 0 then
  3856.                                         VehicleTween(Vehicle.PrimaryPart, CFrame.new(v.Position.X, v.Position.Y + 5, v.Position.Z, unpack(GetRelativeComponents(v.Position + Vector3.new(0, 5, 0)))), 60)
  3857.                                 end
  3858.                         end
  3859.                         workspace.Gravity = oldg
  3860.                         if tween then
  3861.                                 tween:Cancel()
  3862.                                 tween = nil
  3863.                         end
  3864.                         driving = false
  3865.                 end
  3866.         end)
  3867.  
  3868.         Sections.Misc.AutoDrive:Button("Stop Driving", function()
  3869.                 stop = true
  3870.         end)
  3871.  
  3872.         local DeliveryFunctions = {
  3873.                 GoPizzaPlanet = nil;
  3874.                 GoCustomer = nil;
  3875.         }
  3876.  
  3877.         local function DeliveryMovement(vehicle, cf)
  3878.                 local Speed = 35
  3879.                 vehicle.PrimaryPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  3880.                 local New = CFrame.new(cf.X, -50, cf.Z)
  3881.                 local BodyVel = Instance.new('BodyVelocity', vehicle.PrimaryPart)
  3882.                 BodyVel.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  3883.                 BodyVel.P = Speed
  3884.                 repeat
  3885.                         local to = (New.p - vehicle.PrimaryPart.Position).Unit * Speed
  3886.                         BodyVel.Velocity = to
  3887.                         wait()
  3888.                 until (vehicle.PrimaryPart.Position - New.p).Magnitude  0 then
  3889.                                         local closest = nil
  3890.                                         local distance = huge
  3891.                                         for i, v in next, EmptyStations do
  3892.                                                 if player:DistanceFromCharacter(v.Scanner.Position) < distance then
  3893.                                                         distance = player:DistanceFromCharacter(v.Scanner.Position)
  3894.                                                         closest = v
  3895.                                                 end
  3896.                                         end
  3897.                                         Station = closest
  3898.                                 end
  3899.                                 if Station == nil then
  3900.                                         wait()
  3901.                                         GetFreeCashierStation()
  3902.                                 end
  3903.                                 return Station
  3904.                         end
  3905.                 end;
  3906.                 GetHairWorkstations = function()
  3907.                         if workspace.Environment.Locations:FindFirstChild("StylezHairStudio") then
  3908.                                 local stations = {}
  3909.                                 for i, v in next, workspace.Environment.Locations.StylezHairStudio.HairdresserWorkstations:GetChildren() do
  3910.                                         if ((v.Mirror:FindFirstChild("HairdresserGUI") and v.Mirror.HairdresserGUI.Used.Visible == false) or v.InUse.Value == player) and v.Occupied.Value ~= nil then
  3911.                                                 table.insert(stations, v)
  3912.                                         end
  3913.                                 end
  3914.                                 return stations
  3915.                         end
  3916.                 end;
  3917.                 GetBurgerWorkstations = function()
  3918.                         if workspace.Environment.Locations:FindFirstChild("BloxyBurgers") then
  3919.                                 local stations = {}
  3920.                                 for i, v in next, workspace.Environment.Locations.BloxyBurgers.CashierWorkstations:GetChildren() do
  3921.                                         if v.InUse.Value == player and v.Occupied.Value ~= nil then
  3922.                                                 table.insert(stations, v)
  3923.                                         end
  3924.                                         if v.InUse.Value == nil and v.Occupied.Value ~= nil then
  3925.                                                 table.insert(stations, v)
  3926.                                         end
  3927.                                 end
  3928.                                 return stations
  3929.                         end
  3930.                 end;
  3931.                 GetFreeHairStation = function()
  3932.                         local station
  3933.                         if workspace.Environment.Locations:FindFirstChild("StylezHairStudio") then
  3934.                                 for i, v in next, workspace.Environment.Locations.StylezHairStudio.HairdresserWorkstations:GetChildren() do
  3935.                                         if v.InUse.Value == nil then
  3936.                                                 station = v
  3937.                                         end
  3938.                                 end
  3939.                         end
  3940.                         if station == nil then
  3941.                                 GetFreeHairStation()
  3942.                         end
  3943.                         return station
  3944.                 end;
  3945.                 GetFreeBurgerStation = function()
  3946.                         if workspace.Environment.Locations:FindFirstChild("BloxyBurgers") then
  3947.                                 local station
  3948.                                 for i, v in next, workspace.Environment.Locations.BloxyBurgers.CashierWorkstations:GetChildren() do
  3949.                                         if v.InUse.Value == nil then
  3950.                                                 station = v
  3951.                                         end
  3952.                                 end
  3953.                                 if station == nil then
  3954.                                         GetFreeBurgerStation()
  3955.                                 end
  3956.                                 return station
  3957.                         end
  3958.                 end;
  3959.         }      
  3960.  
  3961.         local GoToShelf, TakeCrate
  3962.  
  3963.         GoToShelf = function()
  3964.                 if ActiveJob == "Stocker" and WorkEnabled == true then
  3965.                         local shelf = FindClosest("EmptyShelf")
  3966.                         local gotopart = FindClosest("EmptyShelf"):FindFirstChild("Part")
  3967.                         CoolTween(gotopart.CFrame, 12)
  3968.                         Call("RestockShelf", {
  3969.                                 Shelf = shelf
  3970.                         })
  3971.                         TakeCrate()
  3972.                 end
  3973.         end;
  3974.  
  3975.         TakeCrate = function()
  3976.                 if ActiveJob == "Stocker" and WorkEnabled == true then
  3977.                         CoolTween(FindClosest("Crate").CFrame, 12)
  3978.                         Call("TakeFoodCrate", {
  3979.                                 Object = FindClosest("Crate")
  3980.                         })
  3981.                         GoToShelf()
  3982.                 end
  3983.         end
  3984.  
  3985.         local function GrabIceCreamOrder(Workstation)
  3986.                 if Workstation.Occupied.Value ~= nil then
  3987.                         local Order = Workstation.Occupied.Value:WaitForChild("Order")
  3988.                         return {
  3989.                                 Flavor1 = Order.Flavor2.Value,
  3990.                                 Flavor2 = Order.Flavor1.Value,
  3991.                                 Topping = Order.Topping.Value
  3992.                         }
  3993.                 else
  3994.                         wait()
  3995.                         GrabIceCreamOrder(Workstation)
  3996.                 end
  3997.         end
  3998.  
  3999.         local function StartFish()
  4000.                 repeat
  4001.                         wait()
  4002.                 until player.Character:FindFirstChild("Fishing Rod")
  4003.                 local start_time = tick()
  4004.                 Call("UseFishingRod", {
  4005.                         State = true;
  4006.                         Pos = player.Character:FindFirstChild("Fishing Rod").Line.Position
  4007.                 })
  4008.                 wait(2)
  4009.                 local bobberChangeConnection
  4010.                 local originalBobberPosition = player.Character["Fishing Rod"].Bobber.Position.Y
  4011.                 if player.Character:FindFirstChild("Fishing Rod") then
  4012.                         bobberChangeConnection = player.Character["Fishing Rod"].Bobber:GetPropertyChangedSignal("Position"):Connect(function()
  4013.                                 if player.Character:FindFirstChild("Fishing Rod") then
  4014.                                         if originalBobberPosition - player.Character["Fishing Rod"].Bobber.Position.Y < 3 then
  4015.                                                 local time_elapsed = tick() - start_time
  4016.                                                 Call("UseFishingRod", {
  4017.                                                         State = false;
  4018.                                                         Time = time_elapsed;
  4019.                                                 })
  4020.                                                 bobberChangeConnection:Disconnect()
  4021.                                                 StartFish()
  4022.                                         end
  4023.                                 end
  4024.                         end)
  4025.                 end
  4026.         end
  4027.  
  4028.         local WheelPos = {
  4029.                 ["Bloxster"] = Vector3.new(1155.36475, 13.3524084, 411.294983),
  4030.                 ["Classic"] = Vector3.new(1156, 13.3524084, 396.650177),
  4031.                 ["Moped"] = Vector3.new(1154, 13, 402)
  4032.         }
  4033.  
  4034.         local GroceryCashierFunctions = {
  4035.                 BagAmount = function(station)
  4036.                         local amount = 0
  4037.                         for i, v in next, station.Bags:GetChildren() do
  4038.                                 if v.Transparency == 0 then
  4039.                                         amount = amount + 1
  4040.                                 end
  4041.                         end
  4042.                         return amount
  4043.                 end;
  4044.                 RestockBags = function(stat)
  4045.                         local Crate = workspace.Environment.Locations.Supermarket.Crates:FindFirstChild("BagCrate")
  4046.                         CoolTween(Crate.CFrame + Vector3.new(5, 0, -5), 10)
  4047.                         Call("TakeNewBags", {
  4048.                                 Object = Crate
  4049.                         })
  4050.                         repeat
  4051.                                 wait()
  4052.                         until player.Character:FindFirstChild("BFF Bags")
  4053.                         CoolTween(stat.Scanner.CFrame - Vector3.new(3, 0, 0), 10)
  4054.                         Call("RestockBags", {
  4055.                                 Workstation = stat
  4056.                         })
  4057.                         repeat
  4058.                                 wait()
  4059.                         until stat.BagsLeft.Value > 0
  4060.                 end;
  4061.         }
  4062.  
  4063.         local NextCustomer
  4064.         local count = 0
  4065.         local CurrentBags = 1
  4066.         local can_continue = true
  4067.         local JobHandler = {
  4068.                 ["Hairdresser"] = function()
  4069.                         if #WorkstationFunctions.GetHairWorkstations() > 0 then
  4070.                                 for i, workstation in next, WorkstationFunctions.GetHairWorkstations() do
  4071.                                         if workstation.Mirror:FindFirstChild("HairdresserGUI") then
  4072.                                                 workstation.Mirror.HairdresserGUI.Overlay:FindFirstChild("false").ImageRectOffset = Vector2.new(0, 0)
  4073.                                                 workstation.Mirror.HairdresserGUI.Overlay:FindFirstChild("false").ImageColor3 = Color3.new(0, 255, 0)
  4074.                                                 for i, v in next, getconnections(workstation.Mirror.HairdresserGUI.Frame.Done.Activated) do
  4075.                                                         v:Fire()
  4076.                                                 end
  4077.                                         end
  4078.                                 end
  4079.                         end
  4080.                 end;
  4081.                 ["Cashier (Burger)"] = function()
  4082.                         if #WorkstationFunctions.GetBurgerWorkstations() > 0 then
  4083.                                 for i, v in next, WorkstationFunctions.GetBurgerWorkstations() do
  4084.                                         if v.OrderDisplay.DisplayMain:FindFirstChild("CashierGUI") then
  4085.                                                 v.OrderDisplay.DisplayMain.CashierGUI.Overlay:FindFirstChild("false").ImageRectOffset = Vector2.new(0, 0)
  4086.                                                 v.OrderDisplay.DisplayMain.CashierGUI.Overlay:FindFirstChild("false").ImageColor3 = Color3.new(0, 255, 0)
  4087.                                                 for i, v in next, getconnections(v.OrderDisplay.DisplayMain.CashierGUI.Frame.Done.Activated) do
  4088.                                                         v:Fire()
  4089.                                                 end
  4090.                                         end
  4091.                                 end
  4092.                         end
  4093.                 end;
  4094.                 ["Mechanic"] = function()
  4095.                         local v = WorkstationFunctions.GetMotorWorkstation()
  4096.                         if v then
  4097.                                 local customer = v.Occupied.Value
  4098.                                 if customer then
  4099.                                         local Order = customer:WaitForChild("Order")
  4100.                                         if Order:FindFirstChild("Oil") then
  4101.                                                 local Oil = Order.Oil.Value
  4102.                                                 if Oil ~= nil then
  4103.                                                         repeat
  4104.                                                                 CoolTween(CFrame.new(1194, 13, 389), 12)
  4105.                                                                 Remotes["TakeOil"]:FireServer({
  4106.                                                                         Object = workspace.Environment.Locations.MikesMotors.OilCans:FindFirstChildWhichIsA("Model")
  4107.                                                                 })
  4108.                                                                 wait()
  4109.                                                         until player.Character:FindFirstChild("Oil Can") or ActiveJob ~= "Mechanic"
  4110.                                                         CoolTween(CFrame.new(v.Display.Screen.Position + Vector3.new(0, 0, 5)), 12)
  4111.                                                         Remotes["FixBike"]:FireServer({
  4112.                                                                 Workstation = v
  4113.                                                         })
  4114.                                                         repeat
  4115.                                                                 wait()
  4116.                                                         until (not player.Character:FindFirstChild("Oil Can")) or (ActiveJob ~= "Mechanic")
  4117.                                                         Remotes["JobCompleted"]:FireServer({
  4118.                                                                 Workstation = v
  4119.                                                         })
  4120.                                                         wait(2)
  4121.                                                 end
  4122.                                         elseif Order:FindFirstChild("Wheels") then
  4123.                                                 local WheelType = Order.Wheels.Value
  4124.                                                 for i = 1, 2 do
  4125.                                                         repeat
  4126.                                                                 CoolTween(CFrame.new(WheelPos[WheelType]), 12)
  4127.                                                                 Remotes["TakeWheel"]:FireServer({
  4128.                                                                         Object = workspace.Environment.Locations.MikesMotors.TireRacks:FindFirstChild(WheelType)
  4129.                                                                 })
  4130.                                                                 wait()
  4131.                                                         until player.Character:FindFirstChild(WheelType.." Wheel") or ActiveJob ~= "Mechanic"
  4132.                                                         CoolTween(CFrame.new(v.Display.Screen.Position + Vector3.new(0, 0, 5)), 12)
  4133.                                                         if i == 1 then
  4134.                                                                 Remotes["FixBike"]:FireServer({
  4135.                                                                         Workstation = v;
  4136.                                                                         Front = true
  4137.                                                                 })
  4138.                                                         elseif i == 2 then
  4139.                                                                 Remotes["FixBike"]:FireServer({
  4140.                                                                         Workstation = v;
  4141.                                                                 })
  4142.                                                         end
  4143.                                                         repeat
  4144.                                                                 wait()
  4145.                                                         until (not player.Character:FindFirstChild(WheelType.." Wheel")) or (ActiveJob ~= "Mechanic")
  4146.                                                         if i == 2 then
  4147.                                                                 Remotes["JobCompleted"]:FireServer({
  4148.                                                                         Workstation = v
  4149.                                                                 })
  4150.                                                         end
  4151.                                                         wait(2)
  4152.                                                 end
  4153.                                         elseif Order:FindFirstChild("Color") then
  4154.                                                 local ColorValue = Order.Color.Value
  4155.                                                 if ColorValue ~= nil then
  4156.                                                         repeat
  4157.                                                                 CoolTween(CFrame.new(Vector3.new(1173, 13, 388)), 12)
  4158.                                                                 Remotes["TakePainter"]:FireServer({
  4159.                                                                         Object = workspace.Environment.Locations.MikesMotors.PaintingEquipment:FindFirstChild(ColorValue)
  4160.                                                                 })
  4161.                                                                 wait()
  4162.                                                         until player.Character:FindFirstChild("Spray Painter") or ActiveJob ~= "Mechanic"
  4163.                                                         CoolTween(CFrame.new(v.Display.Screen.Position + Vector3.new(0, 0, 5)), 12)
  4164.                                                         Remotes["FixBike"]:FireServer({
  4165.                                                                 Workstation = v
  4166.                                                         })
  4167.                                                         repeat
  4168.                                                                 wait()
  4169.                                                         until (not player.Character:FindFirstChild("Spray Painter")) or (ActiveJob ~= "Mechanic")
  4170.                                                         Remotes["JobCompleted"]:FireServer({
  4171.                                                                 Workstation = v
  4172.                                                         })
  4173.                                                         wait(2)
  4174.                                                 end
  4175.                                         end
  4176.                                 end
  4177.                         end
  4178.                 end;
  4179.                 ["Pizza Baker"] = function()
  4180.                         local Station = WorkstationFunctions.GetFreeBakerStation()
  4181.                         if Station ~= nil then
  4182.                                 if Station.Order.IngredientsLeft.Value == 0 then
  4183.                                         repeat
  4184.                                                 wait()
  4185.                                         until not currentPlayerTween
  4186.                                         local Crate = FindClosest("PizzaCrate")
  4187.                                         player.Character.Humanoid:MoveTo((Crate.CFrame + Vector3.new(7, 0, 0)).p)
  4188.                                         if not player.Character:FindFirstChild("Ingredient Crate") then
  4189.                                                 Remotes["TakeIngredientCrate"]:FireServer({
  4190.                                                         Object = Crate
  4191.                                                 })
  4192.                                         end
  4193.                                         repeat
  4194.                                                 wait()
  4195.                                         until player.Character:FindFirstChild("Ingredient Crate")
  4196.                                         player.Character.Humanoid:MoveTo((Station.CounterTop.CFrame - Vector3.new(7, 0, 0)).p)
  4197.                                         Remotes["RestockIngredients"]:FireServer({
  4198.                                                 Workstation = Station;
  4199.                                         })
  4200.                                         repeat
  4201.                                                 wait()
  4202.                                         until Station.Order.IngredientsLeft.Value > 0
  4203.                                 end
  4204.                                 if Station.OrderDisplay.DisplayMain:FindFirstChild("BakerGUI") then
  4205.                                         Station.OrderDisplay.DisplayMain.BakerGUI.Overlay:FindFirstChild("false").ImageRectOffset = Vector2.new(0, 0)
  4206.                                         Station.OrderDisplay.DisplayMain.BakerGUI.Overlay:FindFirstChild("false").ImageColor3 = Color3.new(0, 255, 0)
  4207.                                         for i, v in next, getconnections(Station.OrderDisplay.DisplayMain.BakerGUI.Frame.Done.Activated) do
  4208.                                                 v:Fire()
  4209.                                         end
  4210.                                 end
  4211.                         end
  4212.                 end;
  4213.                 ["Ice Cream Seller"] = function()
  4214.                         for i, v in next, workspace.Environment.Locations.BensIceCream.CustomerTargets:GetChildren() do
  4215.                                 if v:FindFirstChild("Occupied") and v.Occupied.Value ~= nil then
  4216.                                         local order = v.Occupied.Value:WaitForChild("Order")
  4217.                                         if player.Character:FindFirstChild("Ice Cream Cup") then
  4218.                                                 Remotes["UnequipItem"]:FireServer({
  4219.                                                         Item = player.Character:FindFirstChild("Ice Cream Cup")
  4220.                                                 })
  4221.                                         else
  4222.                                                 Remotes["TakeIceCreamCup"]:FireServer({})
  4223.                                                 repeat
  4224.                                                         wait()
  4225.                                                 until player.Character:FindFirstChild("Ice Cream Cup") and player.Character:FindFirstChild("Ice Cream Cup"):FindFirstChild("Ball1") and player.Character:FindFirstChild("Ice Cream Cup"):FindFirstChild("Ball2")
  4226.  
  4227.                                                 Remotes["AddIceCreamScoop"]:FireServer({
  4228.                                                         Taste = order:WaitForChild("Flavor1").Value,
  4229.                                                         Ball = player.Character["Ice Cream Cup"].Ball1
  4230.                                                 })
  4231.  
  4232.                                                 Remotes["AddIceCreamScoop"]:FireServer({
  4233.                                                         Taste = order.Flavor2.Value,
  4234.                                                         Ball = player.Character["Ice Cream Cup"].Ball2
  4235.                                                 })
  4236.  
  4237.                                                 Remotes["AddIceCreamTopping"]:FireServer({
  4238.                                                         Taste = order.Topping.Value,
  4239.                                                 })
  4240.  
  4241.                                                 Remotes["JobCompleted"]:FireServer({
  4242.                                                         Workstation = v
  4243.                                                 })
  4244.                                         end
  4245.                                 end
  4246.                         end
  4247.                         wait()
  4248.                 end;
  4249.                 ["Woodcutter"] = function()
  4250.                         local Tree = FindClosest("Tree")
  4251.  
  4252.                         if Tree then
  4253.                                 CoolTween(Tree.PrimaryPart.CFrame, 12)
  4254.                                 repeat
  4255.                                         Remotes["UseHatchet"]:FireServer({
  4256.                                                 Tree = Tree
  4257.                                         })
  4258.                                         wait()
  4259.                                 until (Tree.PrimaryPart.Position.Y < 0) or (ActiveJob ~= "Woodcutter") or (WorkEnabled == false)
  4260.                         end
  4261.                 end;
  4262.                 ["Janitor"] = function()
  4263.                         local Trash = FindClosest("Trash")
  4264.  
  4265.                         if Trash then
  4266.                                 if Trash:FindFirstChild("Object") and Trash:FindFirstChild("Object"):IsA("Part") then
  4267.                                         CoolTween(Trash.Object.CFrame, 12)
  4268.                                 else
  4269.                                         CoolTween(Trash.CFrame, 12)
  4270.                                 end
  4271.                                 Remotes["CleanJanitorObject"]:InvokeServer({
  4272.                                         Spawn = Trash
  4273.                                 })
  4274.                         end
  4275.                 end;
  4276.                 ["Miner"] = function()
  4277.                         local TargetBlock = FindClosest("Valuable")
  4278.                         TargetBlock.PrimaryPart.CanCollide = false
  4279.                         if TargetBlock then
  4280.                                 CoolTween(TargetBlock.PrimaryPart.CFrame, 20)
  4281.  
  4282.                                 local TargetX, TargetY, TargetZ = string.match(TargetBlock.Name, "(.+):(.+):(.+)")
  4283.                                 local TargetVector = Vector3.new(TargetX, TargetY, TargetZ)
  4284.                                 Remotes["MineBlock"]:InvokeServer({
  4285.                                         P = TargetVector
  4286.                                 })
  4287.                         end;
  4288.                 end;
  4289.         }
  4290.  
  4291.         local function NextCustomer()
  4292.                 if ActiveJob == "Cashier (Market)" then
  4293.                         local Station = WorkstationFunctions.GetFreeCashierStation()
  4294.                         count = 0
  4295.                         CurrentBags = 1
  4296.                         if Station.BagsLeft.Value == 0 then
  4297.                                 GroceryCashierFunctions.RestockBags(Station)
  4298.                         end
  4299.                         repeat
  4300.                                 for i, v in next, Station.DroppedFood:GetChildren() do
  4301.                                         count = count + 1
  4302.                                         if count / CurrentBags == 3 then
  4303.                                                 Remotes["TakeNewBag"]:FireServer({
  4304.                                                         Workstation = Station
  4305.                                                 })
  4306.                                                 CurrentBags = CurrentBags + 1
  4307.                                                 if Station.BagsLeft.Value == 0 then
  4308.                                                         GroceryCashierFunctions.RestockBags(Station)
  4309.                                                         wait()
  4310.                                                 end
  4311.                                         end
  4312.                                         Remotes["ScanDroppedItem"]:FireServer({
  4313.                                                 Item = v
  4314.                                         })
  4315.                                         wait(0.1)
  4316.                                 end
  4317.                                 wait()
  4318.                         until ActiveJob ~= "Cashier (Market)" or Station.Occupied.Value ~= nil and (Station.Occupied.Value.Head.Position - Station.CustomerTarget_2.Position).magnitude < 3
  4319.                         Remotes["JobCompleted"]:FireServer({
  4320.                                 Workstation = Station
  4321.                         })
  4322.                         NextCustomer()
  4323.                 end
  4324.         end
  4325.  
  4326.         local OldEndShift = JobModules["Delivery Person"].EndShift
  4327.         JobModules["Delivery Person"].EndShift = function(...)
  4328.                 if ActiveJob == "Delivery Person" and WorkEnabled and JobActions.IsWorking() and player.Character:FindFirstChild("Vehicle_Delivery Moped") then
  4329.                         return
  4330.                 end
  4331.                 return OldEndShift(...)
  4332.         end
  4333.  
  4334.         local OldAlertBox = Modules.GUIHandler.AlertBox
  4335.         Modules.GUIHandler.AlertBox = function(...)
  4336.                 local args = {...}
  4337.                 if ActiveJob == "Delivery Person" and WorkEnabled and JobActions.IsWorking() and player.Character:FindFirstChild("Vehicle_Delivery Moped") and args[2] == "E_LeftWorkplace" then
  4338.                         return
  4339.                 end
  4340.                 return OldAlertBox(...)
  4341.         end
  4342.  
  4343.         local JobFunctions = {
  4344.                 ["Cashier (Burger)"] = {
  4345.                         Start = function()
  4346.                                 JobActions.StartShift("Cashier (Burger)")
  4347.                                 GoToStation = true
  4348.                                 CoolTween(CFrame.new(WorkstationFunctions.GetFreeBurgerStation().OrderDisplay.DisplayMain.Position) - Vector3.new(3, 0, 0), 12)
  4349.                                 GoToStation = false
  4350.                         end;
  4351.                         End = function()
  4352.                                 JobActions.EndShift("Cashier (Burger)")
  4353.                         end;
  4354.                         GoTo = function()
  4355.                                 require(JobManager):GoToWork("BloxyBurgersCashier")
  4356.                         end;
  4357.                 };
  4358.                 ["Hairdresser"] = {
  4359.                         Start = function()
  4360.                                 JobActions.StartShift("Hairdresser")
  4361.                                 GoToStation = true
  4362.                                 CoolTween(WorkstationFunctions.GetFreeHairStation().Stool.PrimaryPart.CFrame, 12)
  4363.                                 GoToStation = false
  4364.                         end;
  4365.                         End = function()
  4366.                                 JobActions.EndShift("Hairdresser")
  4367.                         end;
  4368.                         GoTo = function()
  4369.                                 require(JobManager):GoToWork("StylezHairdresser")
  4370.                         end;
  4371.                 };
  4372.                 ["Mechanic"] = {
  4373.                         Start = function()
  4374.                                 repeat
  4375.                                         wait()
  4376.                                 until JobActions.IsWorking()
  4377.                                 CoolTween(CFrame.new(WorkstationFunctions.GetFreeMotorWorkstation().Display.Screen.Position + Vector3.new(0, 0, 5)), 12)
  4378.                                 JobActions.StartShift("Mechanic")
  4379.                         end;
  4380.                         End = function()
  4381.                                 JobActions.EndShift("Mechanic")
  4382.                                 if currentPlayerTween then
  4383.                                         currentPlayerTween:Cancel()
  4384.                                         currentPlayerTween = nil
  4385.                                 end
  4386.                         end;
  4387.                         GoTo = function()
  4388.                                 require(JobManager):GoToWork("MikesMechanic")
  4389.                         end;
  4390.                 };
  4391.                 ["Pizza Baker"] = {
  4392.                         Start = function()
  4393.                                 JobActions.StartShift("Pizza Baker")
  4394.                                 local Station = WorkstationFunctions.GetFreeBakerStation()
  4395.                                 if Station ~= nil then
  4396.                                         CoolTween(Station.CounterTop.CFrame - Vector3.new(7, 0, 0), 12)
  4397.                                 end
  4398.                         end;
  4399.                         End = function()
  4400.                                 JobActions.EndShift("Pizza Baker")
  4401.                         end;
  4402.                         GoTo = function()
  4403.                                 require(JobManager):GoToWork("PizzaPlanetBaker")
  4404.                         end;
  4405.                 };
  4406.                 ["Delivery Person"] = {
  4407.                         Start = function()
  4408.                                 if currentPlayerTween then
  4409.                                         currentPlayerTween:Cancel()
  4410.                                         currentPlayerTween = nil
  4411.                                 end
  4412.                                 JobActions.StartShift("Delivery Person")
  4413.                                 Call("UsePizzaMoped", {})
  4414.                                 repeat
  4415.                                         wait()
  4416.                                 until player.Character:FindFirstChild("Vehicle_Delivery Moped")
  4417.                                 DeliveryFunctions.GoPizzaPlanet()
  4418.                         end;
  4419.                         End = function()
  4420.                                 if currentPlayerTween then
  4421.                                         currentPlayerTween:Cancel()
  4422.                                         currentPlayerTween = nil
  4423.                                 end
  4424.                                 Call("UsePizzaMoped", {})
  4425.                                 wait(0.2)
  4426.                                 player.Character.Humanoid.Jump = true
  4427.                                 wait(0.2)
  4428.                                 JobActions.EndShift("Delivery Person")
  4429.                         end;
  4430.                         GoTo = function()
  4431.                                 require(JobManager):GoToWork("PizzaPlanetDelivery")
  4432.                         end;
  4433.                 };
  4434.                 ["Fisherman"] = {
  4435.                         Start = function()
  4436.                                 JobActions.StartShift("Fisherman")
  4437.                                 Pathfind(Vector3.new(1040.20239, 11.5224304, 1093.23889))
  4438.                                 StartFish()
  4439.                         end;
  4440.                         End = function()
  4441.                                 JobActions.EndShift("Fisherman")
  4442.                         end;
  4443.                         GoTo = function()
  4444.                                 require(JobManager):GoToWork("HutFisherman")
  4445.                         end;
  4446.                 };
  4447.                 ["Ice Cream Seller"] = {
  4448.                         Start = function()
  4449.                                 CoolTween(CFrame.new(930.419434, 14.1130867, 1049.05457, -0.948081434, 5.13790361e-08, 0.318027735, 4.70168509e-08, 1, -2.13919567e-08, -0.318027735, -5.32865396e-09, -0.948081434), 12)
  4450.                                 JobActions.StartShift("Ice Cream Seller")
  4451.                         end;
  4452.                         End = function()
  4453.                                 JobActions.EndShift("Ice Cream Seller")
  4454.                         end;
  4455.                         GoTo = function()
  4456.                                 require(JobManager):GoToWork("BensIceCreamSeller")
  4457.                         end;
  4458.                 };
  4459.                 ["Stocker"] = {
  4460.                         Start = function()
  4461.                                 JobActions.StartShift("Stocker")
  4462.                                 TakeCrate()
  4463.                         end;
  4464.                         End = function()
  4465.                                 JobActions.EndShift("Stocker")
  4466.                                 if currentPlayerTween then
  4467.                                         currentPlayerTween:Cancel()
  4468.                                         currentPlayerTween = nil
  4469.                                 end
  4470.                         end;
  4471.                         GoTo = function()
  4472.                                 require(JobManager):GoToWork("SupermarketStocker")
  4473.                         end;
  4474.                 };
  4475.                 ["Cashier (Market)"] = {
  4476.                         Start = function()
  4477.                                 local Station
  4478.                                 repeat
  4479.                                         Station = WorkstationFunctions.GetFreeCashierStation()
  4480.                                 until Station ~= nil
  4481.                                 CoolTween(Station.Scanner.CFrame - Vector3.new(3, 0, 0), 10)
  4482.                                 JobActions.StartShift("Cashier (Market)")
  4483.                                 NextCustomer()
  4484.                         end;
  4485.                         End = function()
  4486.                                 JobActions.EndShift("Cashier (Market)")
  4487.                         end;
  4488.                         GoTo = function()
  4489.                                 require(JobManager):GoToWork("SupermarketCashier")
  4490.                         end;
  4491.                 };
  4492.                 ["Woodcutter"] = {
  4493.                         Start = function()
  4494.                                 JobActions.StartShift("Woodcutter")
  4495.                         end;
  4496.                         End = function()
  4497.                                 JobActions.EndShift("Woodcutter")
  4498.                         end;
  4499.                         GoTo = function()
  4500.                                 require(JobManager):GoToWork("LumberWoodcutter")
  4501.                         end;
  4502.                 };
  4503.                 ["Janitor"] = {
  4504.                         Start = function()
  4505.                                 JobActions.StartShift("Janitor")
  4506.                         end;
  4507.                         End = function()
  4508.                                 JobActions.EndShift("Janitor")
  4509.                                 JobActions.EndShift("Stocker")
  4510.                                 if currentPlayerTween then
  4511.                                         currentPlayerTween:Cancel()
  4512.                                         currentPlayerTween = nil
  4513.                                 end
  4514.                         end;
  4515.                         GoTo = function()
  4516.                                 require(JobManager):GoToWork("CleanJanitor")
  4517.                         end;
  4518.                 };
  4519.                 ["Miner"] = {
  4520.                         Start = function()
  4521.                                 JobActions.StartShift("Miner")
  4522.                                 if player.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity") then
  4523.                                         player.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  4524.                                 end
  4525.                                 local bv = Instance.new("BodyVelocity", player.Character.HumanoidRootPart)
  4526.                                 bv.Velocity = Vector3.new(0, 0, 0)
  4527.                         end;
  4528.                         End = function()
  4529.                                 JobActions.EndShift("Miner")
  4530.                                 if player.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity") then
  4531.                                         player.Character.HumanoidRootPart:FindFirstChildOfClass("BodyVelocity"):Destroy()
  4532.                                 end
  4533.                         end;
  4534.                         GoTo = function()
  4535.                                 require(JobManager):GoToWork("CaveMiner")
  4536.                         end;
  4537.                 };
  4538.         }
  4539.  
  4540.         local savedPos = nil
  4541.         local moveCheck = 0
  4542.  
  4543.         coroutine.resume(coroutine.create(function()
  4544.                 while wait(0.5) do
  4545.                         if ActiveJob == "Delivery Person" and WorkEnabled then
  4546.                                 if not player.Character:FindFirstChild("Vehicle_Delivery Moped") then
  4547.                                         if currentPlayerTween then
  4548.                                                 currentPlayerTween:Cancel()
  4549.                                                 currentPlayerTween = nil
  4550.                                         end
  4551.                                 end
  4552.                                 if not JobActions.IsWorking() then
  4553.                                         require(JobManager):GoToWork("PizzaPlanetDelivery")
  4554.                                 end
  4555.                         end
  4556.                 end
  4557.         end))
  4558.  
  4559.         local JobList = {
  4560.                 "Burger Cashier";
  4561.                 "Hairdresser";
  4562.                 "Mechanic";
  4563.                 "Pizza Baker";
  4564.                 "Delivery Person";
  4565.                 "Fisherman";
  4566.                 "Ice Cream Seller";
  4567.                 "Stocker";
  4568.                 "Market Cashier";
  4569.                 "Woodcutter";
  4570.                 "Janitor";
  4571.                 "Miner";
  4572.         }
  4573.  
  4574.         local StopSettings = {
  4575.                 StopAfterAmount = false,
  4576.                 StopAmount = nil
  4577.         }
  4578.  
  4579.         Sections.Autofarm.Main:SearchBox("Job", JobList, function(value)
  4580.                 local lastActive = ActiveJob
  4581.                 ActiveJob = value
  4582.                 if WorkEnabled and lastActive then
  4583.                         JobFunctions[lastActive]["End"]()
  4584.                 end
  4585.         end)
  4586.  
  4587.         Sections.Autofarm.Main:Button("Go To Job", function()
  4588.                 if ActiveJob ~= nil then
  4589.                         JobFunctions[ActiveJob]["GoTo"]()
  4590.                 else
  4591.                         Window:Notification("Error", {
  4592.                                 Text = "Job Not Selected";
  4593.                                 ConfirmText = "Okay";
  4594.                         })
  4595.                 end
  4596.         end)
  4597.  
  4598.         Sections.Autofarm.Main:Toggle("Enabled", function(bool)
  4599.                 WorkEnabled = bool
  4600.                 if ActiveJob ~= nil then
  4601.                         if JobFunctions[ActiveJob] ~= nil then
  4602.                                 if bool == true then
  4603.                                         JobFunctions[ActiveJob]["Start"]()
  4604.                                 elseif bool == false then
  4605.                                         JobFunctions[ActiveJob]["End"]()
  4606.                                 end
  4607.                         end
  4608.                 else
  4609.                         Window:Notification("Error", {
  4610.                                 Text = "Job Not Selected";
  4611.                                 ConfirmText = "Okay";
  4612.                         })
  4613.                 end
  4614.         end)
  4615.  
  4616.         Sections.Autofarm.Settings:Toggle("Stop After Amount", function(bool)
  4617.                 StopSettings.StopAfterAmount = bool
  4618.         end)
  4619.  
  4620.         Sections.Autofarm.Settings:Box("Amount", function(val)
  4621.                 StopSettings.StopAmount = tonumber(val)
  4622.         end)
  4623.  
  4624.         for i, v in next, game:GetService("ReplicatedStorage").Stats[player.Name].SkillData:GetChildren() do
  4625.                 local Name = v.Name
  4626.                 if Name ~= "Cooking" then
  4627.                         Sections.Misc.Skills:Slider(Name, {
  4628.                                 min = 1,
  4629.                                 max = 10,
  4630.                                 default = v.Value
  4631.                         }, function(value)
  4632.                                 v.Value = value
  4633.                         end)
  4634.                 end
  4635.         end
  4636.  
  4637.         local function AttemptTeleport()
  4638.                 local fail = Call("JoinPrivateServer", {
  4639.                         Search = game:HttpGet("https://bloxburg.sexy/neighborhoods/getCode.php")
  4640.                 })
  4641.  
  4642.                 if fail then
  4643.                         AttemptTeleport()
  4644.                 end
  4645.         end
  4646.  
  4647.         Sections.Misc.Random:Button("Private Server", function()
  4648.                 Window:Notification("Message", {
  4649.                         Text = "Teleporting...";
  4650.                         ConfirmText = "Okay";
  4651.                 })
  4652.                
  4653.                 AttemptTeleport()
  4654.         end)
  4655.  
  4656.         local FakePaycheck = {
  4657.                 pamount = nil;
  4658.                 pjob = nil;
  4659.         }
  4660.  
  4661.         Sections.Misc.FakePaycheck:Box("Amount", function(am)
  4662.                 if tonumber(am) ~= nil then
  4663.                         FakePaycheck.pamount = am
  4664.                 else
  4665.                         Window:Notification("Error", {
  4666.                                 Text = "Amount must be a number!";
  4667.                                 ConfirmText = "Okay";
  4668.                         })
  4669.                 end
  4670.         end)
  4671.  
  4672.         Sections.Misc.FakePaycheck:Box("Job", function(Input)
  4673.                 FakePaycheck.pjob = Input
  4674.         end)
  4675.  
  4676.         Sections.Misc.FakePaycheck:Button("Fake Paycheck", function()
  4677.                 if not FakePaycheck.pamount or not FakePaycheck.pjob then
  4678.                         Window:Notification("Error", {
  4679.                                 Text = "Amount/Job were not provided";
  4680.                                 ConfirmText = "Okay";
  4681.                         })
  4682.                 else
  4683.                         local JobData = Modules.JobData
  4684.                         local old = JobData.GetJob
  4685.                         JobData.GetJob = function(...)
  4686.                                 local args = {
  4687.                                         ...
  4688.                                 }
  4689.                                 if args[2] == FakePaycheck.pjob then
  4690.                                         return {
  4691.                                                 Title = FakePaycheck.pjob,
  4692.                                                 ID = 69,
  4693.                                                 Name = FakePaycheck.pjob,
  4694.                                                 Location = Instance.new("Model"),
  4695.                                                 AwardName = "bruh moment"
  4696.                                         }
  4697.                                 end
  4698.                                 return old(...)
  4699.                         end
  4700.                         local TranslationHandler = Modules.TranslationHandler
  4701.                         local old2 = TranslationHandler.Format
  4702.                         TranslationHandler.Format = function(...)
  4703.                                 local args = {
  4704.                                         ...
  4705.                                 }
  4706.                                 if args[2] == "T_Job"..FakePaycheck.pjob then
  4707.                                         return FakePaycheck.pjob
  4708.                                 end
  4709.                                 return old2(...)
  4710.                         end
  4711.  
  4712.                         require(JobManager):ShowPaycheck(FakePaycheck.pamount, FakePaycheck.pjob)
  4713.                 end
  4714.         end)
  4715.  
  4716.         local FakeMessage = {
  4717.                 messageText = nil;
  4718.                 Type = nil;    
  4719.         }
  4720.  
  4721.         Sections.Misc.FakeMessage:Picker("Type", {
  4722.                 "Message",
  4723.                 "Error",
  4724.                 "Confirmation"
  4725.         }, function(a)
  4726.                 FakeMessage.Type = a
  4727.         end)
  4728.  
  4729.         Sections.Misc.FakeMessage:Box("Text", function(a)
  4730.                 FakeMessage.messageText = a
  4731.         end)
  4732.  
  4733.         Sections.Misc.FakeMessage:Button("Fake Message", function()
  4734.                 if FakeMessage.messageText then
  4735.                         local GUIHandler = Modules.GUIHandler
  4736.                         if FakeMessage.Type == "Message" or FakeMessage.Type == nil then
  4737.                                 spawn(function()
  4738.                                         GUIHandler:MessageBox(FakeMessage.messageText)
  4739.                                 end)
  4740.                         elseif FakeMessage.Type == "Error" then
  4741.                                 spawn(function()
  4742.                                         GUIHandler:AlertBox(FakeMessage.messageText)
  4743.                                 end)
  4744.                         elseif FakeMessage.Type == "Confirmation" then
  4745.                                 spawn(function()
  4746.                                         GUIHandler:ConfirmBox(FakeMessage.messageText)
  4747.                                 end)
  4748.                         end
  4749.                 end
  4750.         end)
  4751.  
  4752.         local SkySettings = {
  4753.                 SkyEnabled = false;
  4754.                 Time = "Day";
  4755.                 Weather = "Clear";
  4756.         }
  4757.  
  4758.         Sections.Misc.Sky:Toggle("Enabled", function(bool)
  4759.                 SkySettings.SkyEnabled = bool
  4760.         end)
  4761.  
  4762.         Sections.Misc.Sky:Picker("Time of Day", {
  4763.                 "Day",
  4764.                 "Night"
  4765.         }, function(selected)
  4766.                 SkySettings.Time = selected
  4767.                 if SkySettings.SkyEnabled then
  4768.                         if SkySettings.Time == "Day" then
  4769.                                 game:GetService("Lighting"):FindFirstChild("TimeOfDay").Value = 500
  4770.                         elseif SkySettings.Time == "Night" then
  4771.                                 game:GetService("Lighting"):FindFirstChild("TimeOfDay").Value = 0
  4772.                         end
  4773.                 end
  4774.         end)
  4775.  
  4776.         Sections.Misc.Sky:Picker("Weather", {
  4777.                 "Clear",
  4778.                 "Rain",
  4779.                 "Fog",
  4780.                 "Snow"
  4781.         }, function(selected)
  4782.                 SkySettings.Weather = selected
  4783.                 if SkySettings.SkyEnabled then
  4784.                         if SkySettings.Weather == "Clear" then
  4785.                                 game:GetService("Lighting"):FindFirstChild("Weather").Value = ""
  4786.                         else
  4787.                                 game:GetService("Lighting"):FindFirstChild("Weather").Value = SkySettings.Weather
  4788.                         end
  4789.                 end
  4790.         end)
  4791.  
  4792.         local TimeOfDay = game:GetService("Lighting"):FindFirstChild("TimeOfDay")
  4793.         TimeOfDay:GetPropertyChangedSignal("Value"):Connect(function()
  4794.                 if SkySettings.SkyEnabled and SkySettings.Time ~= nil then
  4795.                         if SkySettings.Time == "Day" then
  4796.                                 TimeOfDay.Value = 500
  4797.                         elseif SkySettings.Time == "Night" then
  4798.                                 TimeOfDay.Value = 0
  4799.                         end
  4800.                 end
  4801.         end)
  4802.  
  4803.         local Weather = game:GetService("Lighting"):FindFirstChild("Weather")
  4804.         Weather:GetPropertyChangedSignal("Value"):Connect(function()
  4805.                 if SkySettings.SkyEnabled and SkySettings.Weather ~= nil then
  4806.                         if SkySettings.Weather == "Clear" then
  4807.                                 Weather.Value = ""
  4808.                         else
  4809.                                 Weather.Value = SkySettings.Weather
  4810.                         end
  4811.                 end
  4812.         end)
  4813.  
  4814.         local function GetClosestAppliance(Types)
  4815.                 local Results = {}
  4816.                 for i, v in next, workspace.Plots["Plot_"..player.Name].House:GetChildren() do
  4817.                         for k, x in next, v:GetDescendants() do
  4818.                                 for a, b in next, Types do
  4819.                                         if x.Name:find(b) and x:IsA("Part") then
  4820.                                                 table.insert(Results, x)
  4821.                                         end
  4822.                                 end
  4823.                         end
  4824.                 end
  4825.                 if #Results == 1 then
  4826.                         return Results[1]
  4827.                 else
  4828.                         local closest
  4829.                         local last = huge
  4830.                         for i, v in next, Results do
  4831.                                 local mag = (player.Character.HumanoidRootPart.Position - v.Position).magnitude
  4832.                                 if mag < last then
  4833.                                         last = mag
  4834.                                         closest = v
  4835.                                 end
  4836.                         end
  4837.                         return closest
  4838.                 end
  4839.         end
  4840.  
  4841.         local FoodHandler = Modules.FoodHandler
  4842.         local FoodData = FoodHandler.FoodData
  4843.         local CookActions = FoodHandler.CookActions
  4844.  
  4845.         local function GetApplianceFromRecipe(recipe)
  4846.                 local Types = {
  4847.                         "Stove",
  4848.                         "Counter"
  4849.                 }
  4850.                 local Action = CookActions[recipe]
  4851.                 local Type = Action.Type or Action.Types
  4852.                 local Result
  4853.                 if typeof(Type) == "table" then
  4854.                         for i, v in next, Type do
  4855.                                 if table.find(Types, v) then
  4856.                                         if v == "Counters" then
  4857.                                                 v = "Counter"
  4858.                                         end
  4859.                                         Type = v
  4860.                                 end
  4861.                         end
  4862.                 else
  4863.                         if Type == "Counters" then
  4864.                                 Type = "Counter"
  4865.                         end
  4866.                 end
  4867.                 if table.find(Types, Type) then
  4868.                         return Type
  4869.                 end
  4870.         end
  4871.  
  4872.         local function GetRecipe(name)
  4873.                 local Recipe = FoodData[name].Recipe
  4874.                 local Result = {}
  4875.                 for i, v in next, Recipe do
  4876.                         if type(v) == "table" then
  4877.                                 for k, x in next, v do
  4878.                                         if GetApplianceFromRecipe(x) then
  4879.                                                 table.insert(Result, x)
  4880.                                         end
  4881.                                 end
  4882.                         else
  4883.                                 table.insert(Result, v)
  4884.                         end
  4885.                 end
  4886.                 return Result
  4887.         end
  4888.  
  4889.         local function GetMood(Type)
  4890.                 return ceil(ReplicatedStorage.Stats[player.Name].MoodData[Type].Value)
  4891.         end
  4892.  
  4893.         local AutoMoodVariables = {
  4894.                 MoodWhenLowAmount = 0;
  4895.                 Food = "Garden Salad";
  4896.                 MoodWhenLow = false;
  4897.                 EnabledMoods = {};
  4898.                 AutoCompleteCookingChallenges = false;
  4899.                 SelectedFood = "Garden Salad";
  4900.                 Cooking = false;
  4901.                 DoingAutoMood = false;
  4902.                 GetToAmount = 90;
  4903.                 TimeOut = 120;
  4904.         }
  4905.  
  4906.         local function GetLowMoods()
  4907.                 local low = {}
  4908.                 for i, v in next, {
  4909.                         "Hunger",
  4910.                         "Fun",
  4911.                         "Energy",
  4912.                         "Hygiene"
  4913.                 } do
  4914.                         if GetMood(v) < AutoMoodVariables.GetToAmount then
  4915.                                 table.insert(low, v)
  4916.                         end
  4917.                 end
  4918.                 return low
  4919.         end
  4920.  
  4921.         player.PlayerGui.MainGUI.Scripts.Hotbar.ChildAdded:Connect(function(child)
  4922.                 if (AutoMoodVariables.AutoCompleteCookingChallenges or AutoMoodVariables.Cooking) and child:IsA("BindableEvent") then
  4923.                         wait()
  4924.                         child:Fire(true)
  4925.                 end
  4926.         end)
  4927.  
  4928.         local CharConnection
  4929.         local CurrentConnection
  4930.  
  4931.         local function AutoCook(Food, IsAuto)
  4932.                 local FinishedFood
  4933.  
  4934.                 if IsAuto then
  4935.                         for i, Counter in next, workspace.Plots["Plot_"..player.Name].House.Counters:GetChildren() do
  4936.                                 if Counter:FindFirstChild("ItemHolder") then
  4937.                                         for k, x in next, Counter.ItemHolder:GetChildren() do
  4938.                                                 if x:FindFirstChild("ObjectData") and x.ObjectData:FindFirstChild("FoodQuantity") then
  4939.                                                         if x.ObjectData.FoodQuantity.Value > -1 then
  4940.                                                                 FinishedFood = x
  4941.                                                                 CharConnection = player.Character.ChildAdded:connect(function(child)
  4942.                                                                         if child:IsA("Model") and (child.Name:find(Food) or Food:find(child.Name)) and not child.Name:find("Ingredients") then
  4943.                                                                                 if GetMood("Hunger") < AutoMoodVariables.GetToAmount then
  4944.                                                                                         Remotes["Eat"]:FireServer({
  4945.                                                                                                 Item = child
  4946.                                                                                         })
  4947.                                                                                 else
  4948.                                                                                         CharConnection:Disconnect()
  4949.                                                                                         return "Completed"
  4950.                                                                                 end
  4951.                                                                         end
  4952.                                                                 end)
  4953.                                                                 Pathfind(Counter.AttachPos.Position)
  4954.                                                                 Remotes["Interact"]:FireServer({
  4955.                                                                         Target = FinishedFood,
  4956.                                                                         Path = "2"
  4957.                                                                 })
  4958.                                                         else
  4959.                                                                 CharConnection = player.Character.ChildAdded:connect(function(child)
  4960.                                                                         if child:IsA("Model") and (child.Name:find(Food) or Food:find(child.Name)) and not child.Name:find("Ingredients") then
  4961.                                                                                 Remotes["UnequipItem"]:FireServer({
  4962.                                                                                         Item = child
  4963.                                                                                 })
  4964.                                                                                 CharConnection:Disconnect()
  4965.                                                                         end
  4966.                                                                 end)
  4967.                                                                 Pathfind(Counter.AttachPos.Position)
  4968.                                                                 Remotes["Interact"]:FireServer({
  4969.                                                                         Target = x,
  4970.                                                                         Path = "1"
  4971.                                                                 })
  4972.                                                         end
  4973.                                                 end
  4974.                                         end
  4975.                                 end
  4976.                         end
  4977.                 end
  4978.  
  4979.                 if not FinishedFood then
  4980.                         local Fridge = GetClosestAppliance({
  4981.                                 "Fridge"
  4982.                         })
  4983.  
  4984.                         if Fridge == nil then
  4985.                                 Window:Notification("Error", {
  4986.                                         Text = "You must have a fridge on your plot";
  4987.                                         ConfirmText = "Okay";
  4988.                                 })
  4989.                                 return
  4990.                         end
  4991.                         Pathfind(Fridge.AttachPos.Position)
  4992.                         Remotes["Interact"]:FireServer({
  4993.                                 Target = Fridge,
  4994.                                 Path = "1"
  4995.                         })
  4996.                         Remotes["TakeIngredient"]:FireServer({
  4997.                                 Name = Food
  4998.                         })
  4999.                         local CurrentChild
  5000.                         local Recipe = GetRecipe(Food)
  5001.                         AutoMoodVariables.Cooking = true
  5002.                         local function DoAction(CookProgress, child)
  5003.                                 local AppFromRec = GetApplianceFromRecipe(Recipe[CookProgress + 1])
  5004.                                 local Appliance = GetClosestAppliance({
  5005.                                         AppFromRec
  5006.                                 })
  5007.                                 if Appliance == nil then
  5008.                                         Window:Notification("Error", {
  5009.                                                 Text = "You must have a "..AppFromRec.." on your plot";
  5010.                                                 ConfirmText = "Okay";
  5011.                                         })
  5012.                                         return
  5013.                                 end
  5014.                                 Pathfind(Appliance.AttachPos.Position)
  5015.                                 if AppFromRec == "Stove" then
  5016.                                         Remotes["Interact"]:FireServer({
  5017.                                                 Target = Appliance,
  5018.                                                 Path = "1"
  5019.                                         })
  5020.                                         if Recipe[CookProgress + 1] == "Bake" then
  5021.                                                 repeat
  5022.                                                         wait()
  5023.                                                 until not player.Character:FindFirstChild(child.Name)
  5024.                                                 repeat
  5025.                                                         Remotes["Interact"]:FireServer({
  5026.                                                                 Target = Appliance,
  5027.                                                                 Path = "1"
  5028.                                                         })
  5029.                                                         wait(1)
  5030.                                                 until player.Character:FindFirstChild(child.Name)
  5031.                                                 CurrentConnection:Disconnect()
  5032.                                                 local NewCookProgress = player.Character:FindFirstChild(child.Name):WaitForChild("CookProgress")
  5033.                                                 CurrentConnection = NewCookProgress:GetPropertyChangedSignal("Value"):connect(function()
  5034.                                                         DoAction(NewCookProgress.Value, CurrentChild)
  5035.                                                 end)
  5036.                                         end
  5037.                                 elseif AppFromRec == "Counter" then
  5038.                                         Remotes["Interact"]:FireServer({
  5039.                                                 Target = Appliance,
  5040.                                                 Path = "2"
  5041.                                         })
  5042.                                 end
  5043.                         end
  5044.                         CharConnection = player.Character.ChildAdded:connect(function(child)
  5045.                                 if child.Name == Food and AutoMoodVariables.Cooking and IsAuto then
  5046.                                         local Appliance = GetClosestAppliance({
  5047.                                                 "Counter"
  5048.                                         })
  5049.                                         if Appliance == nil then
  5050.                                                 Window:Notification("Error", {
  5051.                                                         Text = "You must have a counter on your plot";
  5052.                                                         ConfirmText = "Okay";
  5053.                                                 })
  5054.                                                 return
  5055.                                         end
  5056.                                         Pathfind(Appliance.AttachPos.Position)
  5057.                                         Remotes["Interact"]:FireServer({
  5058.                                                 Target = Appliance,
  5059.                                                 Path = "3",
  5060.                                                 Pos = Appliance.ObjectModel.PlaceArea.Position
  5061.                                         })
  5062.                                         FinishedFood = Appliance:WaitForChild("ItemHolder"):WaitForChild(Food)
  5063.                                         AutoMoodVariables.Cooking = false
  5064.                                         if GetMood("Hunger") < AutoMoodVariables.GetToAmount then
  5065.                                                 Remotes["Interact"]:FireServer({
  5066.                                                         Target = FinishedFood,
  5067.                                                         Path = "2"
  5068.                                                 })
  5069.                                         end
  5070.                                 end
  5071.                                 if child:IsA("Model") and (child.Name:find(Food) or Food:find(child.Name)) and not child.Name:find("Ingredients") and not AutoMoodVariables.Cooking and IsAuto then
  5072.                                         if GetMood("Hunger") < AutoMoodVariables.GetToAmount then
  5073.                                                 Remotes["Eat"]:FireServer({
  5074.                                                         Item = child
  5075.                                                 })
  5076.                                         else
  5077.                                                 CharConnection:Disconnect()
  5078.                                                 CurrentConnection:Disconnect()
  5079.                                         end
  5080.                                 end
  5081.                                 if child:IsA("Model") and child.Name:find("Ingredients") then
  5082.                                         local CookProgress = child:WaitForChild("CookProgress")
  5083.                                         if not CurrentConnection then
  5084.                                                 DoAction(CookProgress.Value, child)
  5085.                                                 CurrentConnection = CookProgress:GetPropertyChangedSignal("Value"):connect(function()
  5086.                                                         DoAction(CookProgress.Value, child)
  5087.                                                 end)
  5088.                                         end
  5089.                                         CurrentChild = child
  5090.                                 end
  5091.                         end)
  5092.                 end
  5093.         end
  5094.  
  5095.         local function AutoMood(MoodType)
  5096.                 if MoodType == "Hunger" then
  5097.                         AutoCook(AutoMoodVariables.SelectedFood, true)
  5098.                 elseif MoodType == "Hygiene" then
  5099.                         local Appliance = GetClosestAppliance({
  5100.                                 "Bath",
  5101.                                 "Shower",
  5102.                                 "The Barrel",
  5103.                                 "Jacuzzi"
  5104.                         })
  5105.                         if Appliance == nil then
  5106.                                 Window:Notification("Error", {
  5107.                                         Text = "You must have a bath/shower on your plot";
  5108.                                         ConfirmText = "Okay";
  5109.                                 })
  5110.                                 return
  5111.                         end
  5112.                         local AttachPos = Appliance:FindFirstChild("AttachPos") or Appliance:FindFirstChild("AttachPos1")
  5113.                         Pathfind(AttachPos.Position)
  5114.                         Remotes["Interact"]:FireServer({
  5115.                                 Target = Appliance,
  5116.                                 Path = "1"
  5117.                         })
  5118.                 elseif MoodType == "Fun" then
  5119.                         local Appliance = GetClosestAppliance({
  5120.                                 "TV",
  5121.                                 "Television",
  5122.                                 "Pixelview"
  5123.                         })
  5124.                         if Appliance == nil then
  5125.                                 Window:Notification("Error", {
  5126.                                         Text = "You must have a TV on your plot";
  5127.                                         ConfirmText = "Okay";
  5128.                                 })
  5129.                                 return
  5130.                         end
  5131.                         Pathfind(Appliance.Position)
  5132.                         Remotes["Interact"]:FireServer({
  5133.                                 Target = Appliance,
  5134.                                 Path = "1"
  5135.                         })
  5136.                         wait(1)
  5137.                         Remotes["Interact"]:FireServer({
  5138.                                 Target = Appliance,
  5139.                                 Path = "3"
  5140.                         })
  5141.                 elseif MoodType == "Energy" then
  5142.                         local Appliance = GetClosestAppliance({
  5143.                                 "Bed"
  5144.                         })
  5145.                         if Appliance == nil then
  5146.                                 Window:Notification("Error", {
  5147.                                         Text = "You must have a bed on your plot";
  5148.                                         ConfirmText = "Okay";
  5149.                                 })
  5150.                                 return
  5151.                         end
  5152.                         local AttachPos = Appliance:FindFirstChild("AttachPos") or Appliance:FindFirstChild("AttachPos1")
  5153.                         Pathfind(AttachPos.Position)
  5154.                         Remotes["Interact"]:FireServer({
  5155.                                 Target = Appliance,
  5156.                                 Path = "1"
  5157.                         })
  5158.                 end
  5159.         end
  5160.  
  5161.         local AllFoods = {}
  5162.  
  5163.         for i, v in next, FoodData do
  5164.                 if not v.IsQuick and not v.Hidden then
  5165.                         table.insert(AllFoods, i)
  5166.                 end
  5167.         end
  5168.  
  5169.         for i, v in next, {
  5170.                 "Hunger",
  5171.                 "Fun",
  5172.                 "Energy",
  5173.                 "Hygiene"
  5174.         } do
  5175.                 Sections.AutoMood.Manual:Toggle(v, function(value)
  5176.                         if value then
  5177.                                 table.insert(AutoMoodVariables.EnabledMoods, v)
  5178.                         else
  5179.                                 table.remove(AutoMoodVariables.EnabledMoods, table.find(AutoMoodVariables.EnabledMoods, v))
  5180.                         end
  5181.                 end)
  5182.         end
  5183.  
  5184.         local AutoBoostWhenLowToggle = Sections.AutoMood.Automatic:Toggle("Auto Boost Mood At Amount", function(value)
  5185.                 AutoMoodVariables.MoodWhenLow = value
  5186.         end)
  5187.  
  5188.         local AutoBoostWhenLowAmountSlider = Sections.AutoMood.Automatic:Slider("Amount", {
  5189.                 min = 0,
  5190.                 max = 100
  5191.         }, function(value)
  5192.                 AutoMoodVariables.MoodWhenLowAmount = value
  5193.         end)
  5194.  
  5195.         local GetToAmountSlider = Sections.AutoMood.Automatic:Slider("Get Moods To Amount", {
  5196.                 min = 0,
  5197.                 max = 100,
  5198.                 default = 90
  5199.         }, function(value)
  5200.                 AutoMoodVariables.GetToAmount = value
  5201.         end)
  5202.  
  5203.         local AutoMoodTimeoutSlider = Sections.AutoMood.Automatic:Slider("Auto Mood Timeout", {
  5204.                 min = 10,
  5205.                 max = 300,
  5206.                 default = 120
  5207.         }, function(value)
  5208.                 AutoMoodVariables.TimeOut = value
  5209.         end)
  5210.  
  5211.         local AutoBoostMoodButton = Sections.AutoMood.Manual:Button("Boost Selected Moods", function()
  5212.                 if not AutoMoodVariables.DoingAutoMood then
  5213.                         if JobActions.IsWorking() then
  5214.                                 WorkEnabled = false
  5215.                                 JobFunctions[ActiveJob]["End"]()
  5216.                                 wait(1)
  5217.                                 require(player.PlayerGui.MainGUI.Scripts.Hotbar):ToPlot()
  5218.                                 repeat
  5219.                                         wait()
  5220.                                 until player.PlayerGui.MainGUI:FindFirstChild("LoadingFrame_ToPlot")
  5221.                                 repeat
  5222.                                         wait()
  5223.                                 until not player.PlayerGui.MainGUI:FindFirstChild("LoadingFrame_ToPlot")
  5224.                                 wait(3)
  5225.                         end
  5226.                         for i, v in next, AutoMoodVariables.EnabledMoods do
  5227.                                 AutoMood(v)
  5228.                                 repeat
  5229.                                         wait()
  5230.                                 until GetMood(v) >= AutoMoodVariables.GetToAmount
  5231.                                 if v == "Hygiene" then
  5232.                                         wait(1)
  5233.                                         player.Character.Humanoid.Jump = true
  5234.                                 end
  5235.                                 if v == "Fun" then
  5236.                                         Remotes["Interact"]:FireServer({
  5237.                                                 Target = GetClosestAppliance({
  5238.                                                         "TV",
  5239.                                                         "Television",
  5240.                                                         "Pixelview"
  5241.                                                 }),
  5242.                                                 Path = "1"
  5243.                                         })
  5244.                                 end
  5245.                                 if v == "Energy" then
  5246.                                         wait(1)
  5247.                                         player.Character.Humanoid.Jump = true
  5248.                                 end
  5249.                         end
  5250.                 end
  5251.         end)
  5252.  
  5253.         local AutoCompleteCookingChallengesToggle = Sections.AutoMood.AutoCook:Toggle("Auto Complete Cooking Challenges", function(value)
  5254.                 AutoMoodVariables.AutoCompleteCookingChallenges = value
  5255.         end)
  5256.  
  5257.         local FoodSearchBox = Sections.AutoMood.AutoCook:SearchBox("Food", AllFoods, function(value)
  5258.                 AutoMoodVariables.SelectedFood = value
  5259.         end)
  5260.  
  5261.         local CookFoodButton = Sections.AutoMood.AutoCook:Button("Cook Food", function()
  5262.                 AutoCook(AutoMoodVariables.SelectedFood, false)
  5263.         end)
  5264.  
  5265.         for i, v in next, game:GetService("ReplicatedStorage").Stats[player.Name].MoodData:GetChildren() do
  5266.                 v:GetPropertyChangedSignal("Value"):Connect(function()
  5267.                         if GetMood(v.Name) = AutoMoodVariables.GetToAmount
  5268.                                         if v == "Hygiene" then
  5269.                                                 wait(0.5)
  5270.                                                 player.Character.Humanoid.Jump = true
  5271.                                         end
  5272.                                         if v == "Fun" then
  5273.                                                 Remotes["Interact"]:FireServer({
  5274.                                                         Target = GetClosestAppliance({
  5275.                                                                 "TV",
  5276.                                                                 "Television",
  5277.                                                                 "Pixelview"
  5278.                                                         }),
  5279.                                                         Path = "1"
  5280.                                                 })
  5281.                                         end
  5282.                                         if v == "Energy" then
  5283.                                                 wait(0.5)
  5284.                                                 player.Character.Humanoid.Jump = true
  5285.                                         end
  5286.                                 end
  5287.                                 AutoMoodVariables.DoingAutoMood = false
  5288.                                 if WasWorking then      
  5289.                                         JobFunctions[ActiveJob]["GoTo"]()
  5290.                                         repeat
  5291.                                                 wait()
  5292.                                         until JobActions.IsWorking()
  5293.                                         WorkEnabled = true
  5294.                                         JobFunctions[ActiveJob]["Start"]()
  5295.                                 end
  5296.                         end
  5297.                 end)    
  5298.         end
  5299.  
  5300.         coroutine.wrap(function()
  5301.                 while wait() do
  5302.                         if WorkEnabled and ActiveJob ~= nil and JobHandler[ActiveJob] ~= nil then
  5303.                                 JobHandler[ActiveJob]()
  5304.                         end
  5305.                 end
  5306.         end)()
  5307.  
  5308.         coroutine.wrap(function()
  5309.                 while wait() do
  5310.                         if JobActions.IsWorking() then
  5311.                                 if StopSettings.StopAfterAmount == true and StopSettings.StopAmount ~= nil and floor(ReplicatedStorage.Stats[player.Name].Job.ShiftEarnings.Value) >= StopSettings.StopAmount then
  5312.                                         WorkEnabled = false
  5313.                                         JobFunctions[ActiveJob]["End"]()
  5314.                                         wait(1)
  5315.                                         Modules.Hotbar:ToPlot()
  5316.                                 end
  5317.                                 StatLabels.EarningsLabel:Update("Shift Earnings: "..tostring(floor(ReplicatedStorage.Stats[player.Name].Job.ShiftEarnings.Value)))
  5318.                                 StatLabels.TimeLabel:Update("Shift Duration: "..player.PlayerGui.MainGUI.Bar.CharMenu.WorkFrame.WorkFrame.TimeLabel.TextLabel.Text)
  5319.                         else
  5320.                                 StatLabels.EarningsLabel:Update("Shift Earnings: 0")
  5321.                                 StatLabels.TimeLabel:Update("Shift Duration: 0s")
  5322.                                 repeat wait() until JobActions.IsWorking()
  5323.                         end
  5324.                 end
  5325.         end)()
  5326.  
  5327.         local statFunctions
  5328.         do
  5329.                 statFunctions = setmetatable({}, {
  5330.                         __tostring = function()
  5331.                                 return "StatViewer"
  5332.                         end,
  5333.                 })
  5334.                 statFunctions.__index = statFunctions
  5335.                 function statFunctions.new(...)
  5336.                         local self = setmetatable({}, statFunctions)
  5337.                         self:constructor(...)
  5338.                         return self
  5339.                 end
  5340.                 function statFunctions:constructor(player)
  5341.                         self.statFolder = ReplicatedStorage.Stats[player]
  5342.                 end
  5343.                 function statFunctions:getStat(statType)
  5344.                         return self.statFolder:FindFirstChild(statType, true).Value
  5345.                 end
  5346.         end
  5347.  
  5348.         local otherStatLabels = {}
  5349.  
  5350.         local selectStatPlayer = Sections.StatViewer.Viewer:SearchBox("Select player", PlayerList, function(target)
  5351.                 local userStats = statFunctions.new(target)
  5352.                 for i, v in next, otherStatLabels do
  5353.                         v:Update(string.format("%s: %s", i, userStats:getStat(i)))
  5354.                 end
  5355.         end)
  5356.  
  5357.         otherStatLabels.Money = Sections.StatViewer.Viewer:Label("Money: 0")
  5358.         otherStatLabels.Blockbux = Sections.StatViewer.Viewer:Label("Blockbux: 0")
  5359.         otherStatLabels.Houses = Sections.StatViewer.Viewer:Label("Houses: 0")
  5360. else
  5361.     report(7,'R6, ' .. time3 .. " " .. res3) --Response Spoofing
  5362.     return
  5363. end



  • Recent Roblox Scripts