Repository navigation
Expand file tree
/
Copy pathFNDF-lobby.lua
More file actions
1 lines (1 loc) · 3.76 KB
/
Copy pathFNDF-lobby.lua
File metadata and controls
1 lines (1 loc) · 3.76 KB
1
game.StarterGui:SetCore('SendNotification',{Title='Foxname ss2',Text='Loading Script...',Duration=6})local a='FoxnameData'local b=a..'/99nfarm_state.json'local function c()return typeof(isfile)=='function'and typeof(readfile)=='function'and typeof(writefile)=='function'end local function d()if c()and isfile(b)then local e,f=pcall(function()return game:GetService'HttpService':JSONDecode(readfile(b))end)if e and type(f)=='table'then return f end end local e=(typeof(getgenv)=='function'and getgenv())or _G if e and type(e._Foxname99nState)=='table'then return e._Foxname99nState end return{needsUpdateEquipped=false}end local function e(f)local g=(typeof(getgenv)=='function'and getgenv())or _G if g then g._Foxname99nState=f end if not c()then return false end if typeof(isfolder)=='function'and typeof(makefolder)=='function'and not isfolder(a)then pcall(function()makefolder(a)end)end local h=pcall(function()writefile(b,game:GetService'HttpService':JSONEncode(f))end)return h end local function f()return d().needsUpdateEquipped==true end local function g(h,i)local j=d()j.needsUpdateEquipped=h and true or false j.reason=i j.updatedAt=os.time()e(j)end local function h()if typeof(hookfunction)~='function'or typeof(newcclosure)~='function'or typeof(checkcaller)~='function'then return end local i=typeof(getrenv)=='function'and getrenv()if i then if i.print and not(typeof(isfunctionhooked)=='function'and isfunctionhooked(i.print))then local j j=hookfunction(i.print,newcclosure(function(...)if checkcaller()then return j(...)end end))end if i.warn and not(typeof(isfunctionhooked)=='function'and isfunctionhooked(i.warn))then local j j=hookfunction(i.warn,newcclosure(function(...)if checkcaller()then return j(...)end end))end end if typeof(warn)=='function'and not(typeof(isfunctionhooked)=='function'and isfunctionhooked(warn))then local j j=hookfunction(warn,newcclosure(function(...)if checkcaller()then if i and i.warn and i.warn~=warn then pcall(i.warn,...)end return j(...)end end))end if typeof(print)=='function'and not(typeof(isfunctionhooked)=='function'and isfunctionhooked(print))then local j j=hookfunction(print,newcclosure(function(...)if checkcaller()then if i and i.print and i.print~=print then pcall(i.print,...)end return j(...)end end))end end h()local function i()local j=game:GetService'ReplicatedStorage'local k,l,m=j:FindFirstChild'RemoteEvents'or j:WaitForChild('RemoteEvents',15),tostring(getgenv().fox_opt_loop_profile or'moderate'):lower(),{safe=0.45,moderate=0.6,max=0.9}local n,o=m[l]or m.moderate,false local function p()if not f()then return false end local q=k and k:FindFirstChild'UpdateEquipped'if not q then warn[[[Foxname] UpdateEquipped remote not found; keeping pending flag.]]return false end local r=pcall(function()q:FireServer'None'end)if r then g(false,'fired')return true end warn[[[Foxname] UpdateEquipped remote fire failed; keeping pending flag.]]return false end local q=p()if q then game.StarterGui:SetCore('SendNotification',{Title='foxname ss2',Text='class unequipped',Duration=6})end local r=k and k:FindFirstChild'TeleportEvent'game.StarterGui:SetCore('SendNotification',{Title='Foxname ss2',Text='Teleporting to game',Duration=10})if r then local s=game:GetService'Workspace'local function t()for u=3,1,-1 do local v=s:FindFirstChild('Teleporter'..u)if v and v:FindFirstChild'BillboardHolder'then local w=v.BillboardHolder:FindFirstChild'BillboardGui'if w and w:FindFirstChild'Players'then local x=tostring(w.Players.Text)if x=='0/5'then return u end end end end return nil end local function u(v)local w={[1]='Add',[2]=v}r:FireServer(unpack(w))task.wait(0.5)r:FireServer('Chosen',nil,1,{Hardcore='On',Biome='Jungle'})end task.spawn(function()while true do if o then break end local v=t()if v then u(v)end task.wait(n)end end)else warn'TeleportEvent not found, ignore spam.'end end i()