Violence District Script NO KEY (November 2026) | Killer & Survivor ESP, Generator TP

PUBLISHEDUPDATED
What changed
  • 2026-11-14 — Added Script #22: Parry Delay & More.
  • 2026-11-11 — Added Script #21: # SmugHub | Violence District & More.
  • 2026-11-11 — Added Script #20: Updated for Violence Update.
  • 2026-11-07 — Added Script #19: Killer ESP & More.
  • 2026-11-07 — Added Script #18: Working Script.
  • 2026-11-07 — Added Script #17: Auto Bot & More.
  • 2026-11-06 — Added Script #16: Updated for WEEK 2 x BUTCHER Update.
  • 2026-11-05 — Added Script #15: ESP & More.
  • 2026-11-04 — Added Script #15: Note: combat features are off in this build. & More.
  • 2026-11-01 — Added Script #14: Updated for WEEK 2 x BUTCHER Update.
  • 2026-10-31 — Added Script #13: Feather Hub.
  • 2026-10-23 — Added Script #12: Aeris Hub.
  • 2026-10-22 — Added Script #11: LEENZ HUB & More.
  • 2026-10-21 — Added Script #10: Auto Farm & More.
  • 2026-10-17 — Added Script #9: ❤️ SURVIVOR : & More.
Verified Working1 Active Script100% Free

If you’re looking for a simple, no-hassle way to boost your gameplay in Violence District , you’re in the right place.

Finding scripts that actually work, and don’t make you jump through 12 hoops with keys and timers can be a pain, so I decided to break down one of the smoothest options you can use right now.

This Violence District scripts setup gives you Auto TP To Generator, Full ESP, and a bunch of quality features that just make the whole experience way more fun (and honestly, way easier).

Script Features:

  • Walk Speed
  • Killer ESP
  • Survivor ESP
  • TP To Generator

Tip – Always use a high UNC and sUNC executor and consider testing scripts on an alt Roblox account first. If you’re ready to go, just copy the code below and paste it into your executor to get started safely.

Violence District Script:

Working ScriptFree
loadstring(game:HttpGet("https://raw.githubusercontent.com/volmaksDev/My-Scripts/refs/heads/main/ViolenceDistrict.lua"))()
Compatible executors: HydrogenMacSploitAWP.GGDelta

Script #2 ESP & More

Script #2 · ESP & MoreFree
ESPTeleport
loadstring(game:HttpGet("https://solanahub.my.id/raw/violence-district.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #3 ESP & More

Script #3 · ESP & MoreFree
ESP
loadstring(game:HttpGet("https://jnkie.com/loaders/westwell"))()
Executor compatibility changes over time. Check current reports before testing.

Script #4 Snowy Hub

Script #4 · Snowy HubFree
ESPTeleport
loadstring(game:HttpGet("https://flowauth.net/v1/ui/a87f00d9adf63658655fcd02ab86a4ef.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #5 God Mode & More

Script #5 · God Mode & MoreFree
God Mode
loadstring(game:HttpGet("https://vanzloader.vercel.app/ziaanhub/main.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #6 God Mode & More

Script #6 · God Mode & MoreFree
God Mode
loadstring(game:HttpGet("https://api.jnkie.com/api/v1/luascripts/public/fd1b80e7b478037a06cb07110f3055c4b67daa7d2d505ff5111db349728ecb0e/download"))()
Executor compatibility changes over time. Check current reports before testing.

Script #7 Auto Farm & More

Script #7 · Auto Farm & MoreFree
Auto FarmKill AuraESPAimbotTeleportSpeed Boost
loadstring(game:HttpGet("https://rawscripts.net/raw/Violence-District-Open-Source-fully-auto-generator-script-with-working-ESP-65319"))()
Executor compatibility changes over time. Check current reports before testing.

Script #8 Oxio Hub (Killer Aimbot, Silent Aim & ESP Update)

Script #8 · Oxio HubFree
Silent AimESP)
loadstring(game:HttpGet("https://raw.githubusercontent.com/LSSOPS/OpenSource/refs/heads/main/OxioHub_Violence_District.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #9 ❤️ SURVIVOR : & More

Script #9 · ❤️ SURVIVOR : & MoreFree
❤️ SURVIVOR :AFK Autofarm :▸ AFK Farm (Full Auto)▸ Hide Skill Check RingAuto Generators :▸ Auto Generator Repair
loadstring(game:HttpGet("https://api.neoxsoftworks.eu/loader", true))()
Executor compatibility changes over time. Check current reports before testing.

Script #10 Auto Farm & More

Script #10 · Auto Farm & MoreFree
Auto FarmKill Aura
loadstring(game:HttpGet("https://raw.githubusercontent.com/jewsmpnigeria-cmyk/Scripts/refs/heads/main/violence_district_g0.txt"))()
Executor compatibility changes over time. Check current reports before testing.

Script #11 LEENZ HUB & More

Script #11 · LEENZ HUB & MoreFree
LEENZ HUB
loadstring(game:HttpGet("https://raw.githubusercontent.com/leenz66/vd/refs/heads/main/vd.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #12 Aeris Hub

Script #12 · Aeris HubFree
🔮 Aeris Hub | All for you⚡ Features🎯 Silent Aim & Target Lock👁️ Player ESP & Visual Tracers🌾 Auto Farm & Auto Collect📍 Instant Teleport & Waypoints
loadstring(game:HttpGet("https://aeris-loader-site.vercel.app/api/script"))()
Executor compatibility changes over time. Check current reports before testing.

Script #13 Feather Hub

Script #13 · Feather HubFree
SURVIVORAuto skill check (generators + healing)Auto parry (only on real attacks)Auto vault, fast vault, auto pallet drop, auto slideShield rush at full speedRepair blocked generators, bring back hidden repair spots
loadstring(game:HttpGet("https://api.aegisloader.com/loader/BqjOaFyqTY"))()
Executor compatibility changes over time. Check current reports before testing.

Script #14 Pandu Hub (WEEK 2 x BUTCHER Update)

Script #14 · Pandu HubFree
Auto Self HealSelf Heal AutoAuto HealAuto WiggleWiggle AutoEscape Wiggle
loadstring(game:HttpGet("https://api.jnkie.com/api/v1/luascripts/public/4c0045de1f124abcf40764f56fa6b0989e0238a91459c1f9185ddaf08d011a32/download"))()
Executor compatibility changes over time. Check current reports before testing.

Script #15 Note: combat features are off in this build. & More

Script #15 · Note: combat features are off in this build. & MoreFree
Note: combat features are off in this build.
return({function(a,...)a.t,a.o,a.q=a:t(),a:o(),a:q()a.E=a:E()return a:k()(...)end,function(f,j)return function(...)local o,m,r,i,l,e,a,c,k,n,q,h,b,d,_ b=f.T[-0x59dc]or f:Y(3702872028,3702871942,-0x59dc)while true do if b>=0b10011001 then if b<0b11011011 then if b>0b10011010 then b=f.T[-0x23ee]or f:Y(0x346f4705,0x346f472c,-0x23ee)elseif b<=0x99 then r,b,e,q,k,h,a=j[0b110][0b11][j[0b110][0b10]],f.T[-0x3c49]or f:X(0b1000,-0x3c49),d,{},j[0b101][0b11][j[0b101][0b10]],j[0b1000][0b11][j[0b1000][0b10]],i _,q=q,j[0b10][0b11][j[0b10][0b10]]else n=n(f.i(d))l,d=j[0b100][0b11][j[0b100][0b10]],j[0b111][0b11][j[0b111][0b10]]b,l=f.T[-0x6bee]or f:X(0b11101000,-0x6bee),l[0b11100]end elseif b<=0b11100000 then if b<=0xdb then e=1 a,r=n.n,l+e k,a,e={},{},a-l h=k a[0b10110]=h a[0b11101]=e b,i=f.T[-0x5a4b]or f:V(0x23bdbf8a,0x4e334a8,0x1ed9ce7d,-0x5a4b),a else a(h,k,_,q,o)b=c<=m and 0x179-b or 0b100100110-b end else d=d(l)i=j[0b100][0b11][j[0b100][0b10]]i,b,l=j[0b11][0b11][j[0b11][0b10]],0x3f70/b,i[0b11000]end elseif b>0b1000110 then if b>0b1011000 then n,b,c,d,m=j[1][0b11][j[1][0b10]],f.T[-0x757c]or f:X(0x9a,-0x757c),0x47,f.h(...),0xd9 else i(r,e,a,h,k)i,r=j[0b1001][0b11][j[0b1001][0b10]],n.n b=l<r and 0b100110011-b or(f.T[-0x45e1]or f:W(0x439eb0db,0x7afede7,0xc5060d6,-0x45e1))end elseif b>0x29 then e,a,r=1,l,n k,b,h=d,f.T[0x605a]or f:W(0x363c0958,0x18482f2d,0x7137f12b,0x605a),e elseif b<=0b1011 then if b<=0b1000 then k=k(_,q)b,_=0xde-b,j[0b1010][0b11][j[0b1010][0b10]]else a,k,o,h,q=j[0b11][0b11][j[0b11][0b10]],r,1,n,r+e b,o,_,q=b+0b11010101,i[0b10110],q-o,o end else r=f.h(r(e,a,h,k,_))return f.i(r)end end end end,bit32.bnot,function(f)return function(n,d,l,i,r,e,a)local _,h,m,b,s,p,o,k,q b=f.T[-0x279a]or f:V(0x3c24a91b,0x2490c214,0x179353a1,-0x279a)repeat if b<=0b1010 then _,k=0b110001,e[0b1100]h,k,b,_=k-_,e[0b1011],f.T[0x77b3]or f:Y(0x630ab838,0x630ab8b7,0x77b3),e[0b1110]p,q=1,r[k]o=h+p r[o]=q o=q[_]else r[h]=o m,p,o,s=i,nil,n,nil return o,p,s,m end until false end end,function(f)return function(n,d,l,B,A,e,a)local o,j,p,g,h,_,y,q,t,i,m,C,u,z,r,b,c,s,w t=f.T[-0x3895]or f:X(0b11100101,-0x3895)while true do if t>0x8a then if t>=0xc4 then if t<0b11100101 then if t>0xc4 then t,q=f.T[-0x17ee]or f:V(3296644095,3001077639,0x119da7f8,-0x17ee),1 b=w-q else b,c=0x1b,e[1]w,b=c-b,1 q,c,b=-1,w-b,nil t=c==q and(f.T[-0x4bb6]or f:X(0xa0,-0x4bb6))or(f.T[0x7bc6]or f:Y(3997694770,3997694929,0x7bc6))end elseif t<=0xe5 then o,y=0x28,e[0b1100]h,y,o=y-o,e[0b1011],0b111100 C,o,y=y-o,0b10110,e[0b10100]o,t,_=0,f.T[0x605a]or f:X(0x58,0x605a),y-o else t,r=f.T[0x6615]or f:V(0x33e3743e,0x555cf72,0x2e8df961,0x6615),0xb5 end elseif t<=0b10100101 then if t>0xa0 then m=1 t,s=0x459c/t,_-m elseif t>0b10010000 then q,j=B-m,1 b=q+j t=r<j and 0b110000101-t or 0xc4-t else t,y=f.T[-0x35db]or f:W(3100994398,0xc1e3dd3,0x37ec569c,-0x35db),B-h end else m(w,c,b,q,j)w,t,c=e[0b10],f.T[0x7571]or f:V(0xbfe56c9,0x987d970,0x2771139,0x7571),0x24 m=w-c end elseif t<0b1010010 then if t<=0x2d then if t>=0b100100 then if t<=0x24 then u,j,z,q,g=B,b,m,n,true return q,j,g,u,z else s=f.h(s(f.i(m)))t=r<i and(f.T[0x7571]or f:W(0x47537df,3512252716,0x17a787b8,0x7571))or t+0xcd end else t,o=0b1010010-t,1 y=C-o end elseif t>0x49 then r,i=0xe8,0b11010111 t=y and(f.T[0x4ea]or f:W(0x7f7643d3,0x5ce99e,0x2c2ec0,0x4ea))or(f.T[0x7e93]or f:X(0,0x7e93))else p=p(f.i(s))m,s=0,p.n t=_==m and(f.T[0xf9b]or f:X(0x8a,0xf9b))or(f.T[-0x4667]or f:Y(3669546864,3669546965,-0x4667))end elseif t<=0b1101100 then if t>0x58 then b,c,t,w,j,q,m=s,1,f.T[0x4c70]or f:V(3763086206,0x6dbc0ccb,0x7290929e,0x4c70),p,A,h,a[0b11111]elseif t<=0b1010010 then p,t,o=a[0x1b],t+0x32,A[h]w,s,m,b=A,o,a[0b10111],1 c,b=h+b,h+y else y=C==o t=y and 0x3180/t or 0x1ad0/t end elseif t<=0x84 then t,m=0x1734/t,f.h(m(w,c,b))else w,m=1,h+s t,B=f.T[-0x5775]or f:V(0x45a2f9fb,0x1e8a9bb6,0x2717a97d,-0x5775),m-w end end end end,h=function(...)return{[1]={...},[0b10]=select("#",...)}end,function(f)return function(n,d,l,i,r,e,a)local s,t,o,_,m,j,b,p,k,y,g,c,w,h,q,u t=f.T[0x2555]or f:Y(2294076862,2294076859,0x2555)while true do if t>0x69 then if t>0b10100000 then if t<0b11001101 then t,m=f.T[-0x709e]or f:V(2598093694,0x2df42873,0x6ce75696,-0x709e),f.h(m(w,c,b))elseif t<=0b11001101 then t=f.T[0x64b2]or f:W(2620512255,0xdbe3d1e,0x354de34d,0x64b2)m(w,c,b,q,j)w,c,m=nil,nil,n else s=f.h(s(f.i(m)))t=g<=u and t+-0x6a or(f.T[0x1157]or f:Y(3554000624,3554000531,0x1157))end elseif t>0x91 then m,t,w=h+s,f.T[-0x25f6]or f:V(0x2af7ec30,0x274bddd2,0x3ab7233,-0x25f6),1 i=m-w elseif t<=0b10001100 then if t<=0x6b then b=i return m,w,c,b else p=p(f.i(s))s,m=p.n,0 t=_==m and(f.T[-0x4bb6]or f:V(2166568634,2160921310,0x567fe0,-0x4bb6))or(f.T[0x1157]or f:V(0x31b750e5,0x1a63281f,0x1754c403,0x1157))end else w,j,m,q,c,t,b=p,r,a[0x1f],h,1,f.T[0x57a4]or f:Y(3918163270,3918163339,0x57a4),s end elseif t<0x4d then if t<=0b100111 then if t<0b11100 then o,y=0x2c,e[0b1100]t,o,y,h=f.T[-0x3497]or f:X(0b100111,-0x3497),0x3b,e[0b1011],y-o k,o,y=y-o,0x37,e[0x14]o,_=0,y-o elseif t>0x1c then y=k==o t=y and t+-0b1011 or 0x9e7/t else t,y=0x71c/t,i-h end else u,g=0b11110010,0xc6 t=y and 0x138d/t or(f.T[0x72e5]or f:V(4045102619,0x741e340a,0x7cfdaed1,0x72e5))end elseif t<=0x64 then if t>=0b1100011 then if t>0x63 then t,o=t+-0b10111,1 y=k-o else m=1 s=_-m t=g>=m and(f.T[-0x25f6]or f:W(0x192b76b7,0x2b8dd11,2212211656,-0x25f6))or(f.T[0x6728]or f:X(0b1101001,0x6728))end else o,p=r[h],a[0b11011]w,s,b,t,m=r,o,1,f.T[0x40f3]or f:V(2678860480,0x74e287c3,0x2aca0ee5,0x40f3),a[0b10111]c,b=h+b,h+y end else t,g=0xf5-t,0x6a end end end end,function(f,v)return function(n,d,l,B,A,e,a)local x,z,s,g,c,p,u,t,_,h,m,q,j,b,w,k,o,y t=f.T[0x3466]or f:Y(0x38ba834b,0x38ba8307,0x3466)repeat if t>0x82 then if t<=0b10111111 then if t<0xa5 then if t>=0x94 then if t<=0b10010100 then s=0b10 p[0b1101]=s t,o=0x11ec/t,p _[y]=o s,y,p=1,a[0b10010],n+h o=p-s _=y[o]else t,c=f.T[0x1878]or f:V(0x6f981d2d,0x223ad758,0x4d5dca0c,0x1878),c(f.i(b))p=p..c end else t=s>m and 0b11101011-t or t+0b1000110 end elseif t>0b10101010 then t=w~=w and(f.T[0x5f0e]or f:W(0x3eb4d4fa,0x5176c27c,0x6e8a45aa,0x5f0e))or 0x3eac/t elseif t<=0xa5 then t=w~=w and(f.T[-0x4d7c]or f:X(0b1100110,-0x4d7c))or(f.T[0x2b9b]or f:W(0x21aa5fdf,0x3225e39,0x12241f3,0x2b9b))else q=q(j,g)t,j,g,u=f.T[0x2a5a]or f:X(0x25,0x2a5a),v[0b11][0b11][v[0b11][0b10]],k,#k end elseif t>0b11101101 then t,j=0x134c/t,f.h(j(g,u))elseif t>0b11100101 then s=s+w t=w>0 and 0x7b21/t or(f.T[-0x234b]or f:W(0x68adc1df,0xe56f8,0x1b7d3,-0x234b))elseif t<=0xcb then t=w<=0 and(f.T[-0x3895]or f:X(0b11100101,-0x3895))or 0x170-t else t=s<m and(f.T[-0x4d7c]or f:W(3439432950,0xa84f81b,0x277d534c,-0x4d7c))or 0b110001010-t end elseif t<0x38 then if t>=0x1f then if t<0b100010 then p,s,o="",0,_[0b1110]b,c=1,#o m,w=c-b,b t=m~=m and(f.T[-0x4d7c]or f:X(0x66,-0x4d7c))or 0x6c8/t elseif t>0x22 then x=#k z=s%x t,u=t+0b11010010,u-z else t=s<m and(f.T[-0x4d7c]or f:V(0x585b51e8,0x3bb3c930,0x1ca823fa,-0x4d7c))or 0x2e-t end elseif t<=0b1100 then g,j,t,c,q,b=1,o,0xb6-t,v[1][0b11][v[1][0b10]],v[0b11][0b11][v[0b11][0b10]],v[0b10][0b11][v[0b10][0b10]]g=s+g else t,b=0xcd0/t,f.h(b(q,f.i(j)))end elseif t>=0b1100110 then if t<=0x7c then if t<=0b1100110 then t,s=t+0b10110,p y=s else _[0b1110]=y y,p,o,s=n,nil,nil,B return y,o,p,s end else t=s>m and(f.T[-0x4d7c]or f:W(0x84d3dfe,0x1eb8ca0e,3304667225,-0x4d7c))or(f.T[0x3a97]or f:V(2634417808,0x23cb9521,0x793b256a,0x3a97))end elseif t>0x4c then t=w<=0 and t+-0x32 or t+-0b1001000 elseif t>0x38 then k,_=e[0b1100],0b101 _,h,o,k=a[0b10010],k-_,1,e[0b1110]s,t,p,y=0,f.T[-0x714a]or f:Y(3005795575,3005795427,-0x714a),{},n-o p[0b1100]=s else t=w>0 and(f.T[0x5057]or f:V(0x28cfb29f,0x1d1b0c74,0xbb40245,0x5057))or(f.T[0x3a97]or f:V(2284721077,0x5ff8923a,0x28361d74,0x3a97))end until false end end,function(f)return function(n,d,l,i,g,e,a)local k,m,h,b,_ b=f.T[0x1088]or f:V(2395872898,0x619f7eef,0x2d2f238e,0x1088)repeat if b>=0b1011011 then k,b,_=e[0b1100],f.T[0x7050]or f:W(0x3b58707e,0x2317b9cf,0x20ead049,0x7050),0b100000 h,m,_=k-_,e[0b1110],a[0b1111]k=_[m]g[h]=k k,h,_=nil,n,nil else m=i return h,k,_,m end until false end end,function(f,v)return function(n)local d,E,A,u,G,j,w,x,c,s,m,e,r,o,B,b,y,D,l,F,g,C,i,z,h,a,q,t,k,_ t=f.T[0x7092]or f:X(0xa9,0x7092)repeat if t>0b1110100 then if t<=0xc9 then if t<0xa4 then if t>=0b10001111 then if t>0x9c then t=m~=m and(f.T[-0x3c6e]or f:Y(0x18ac2e16,0x18ac2eca,-0x3c6e))or t+-0b1010001 elseif t>0x99 then m=m(w,c,b)l[0b11][l[0b10]]=l[0b11][l[0b10]]+y t=k<=a and t+-0b1011011 or t+-0b1010100 elseif t<=0b10001111 then G=G+m t=m>0 and(f.T[0x4f8d]or f:V(0x43a670c2,0x42334563,0x17386e7,0x4f8d))or t+-0b10001 else e=e(D)F,D=A,1 C=D t=F~=F and(f.T[-0x410c]or f:V(4193975839,3041039797,0x44b7ac99,-0x410c))or 0x6c2d/t end elseif t>0x7e then t=C~=C and 0b11111100-t or(f.T[0x4ea]or f:X(0b1010010,0x4ea))elseif t>=0b1111000 then if t>0x78 then t=m<=0 and 0x13c-t or(f.T[0x3e1a]or f:X(0b11011011,0x3e1a))else t,j=f.T[0x2b9b]or f:X(0b1100,0x2b9b),j(g,u)g=0b111 g=G*g end else t,h,D,z,o,x=t+-0x69,0b101011,e,0b10011010,0xdb,0b1100 A=D end elseif t<0b10111011 then if t>0b10101001 then t=C>0 and t+-0b10101000 or 0b101110000-t elseif t>0b10100110 then x,z,d=0xb6,0b1000011,n d={[0b10]=1,[1]=d}d[0b11]=d l=1 l={[0b10]=1,[1]=l}l[0b11]=l e=0 C,F,D=1,0b100,e t=F~=F and(f.T[0x44e6]or f:W(0xd8e927f,0x41bf9a9e,0xe5192d9,0x44e6))or(f.T[-0x3118]or f:W(3805032687,0x829d453,0x406f4a7,-0x3118))elseif t<=0b10100100 then i,y,t,r=0x77,G,t+0x58,0x24 else t=C~=C and 0x386a/t or 0b100011010-t end elseif t<=0xc1 then if t>=0xbe then if t>0b10111110 then t=D<F and(f.T[-0x410c]or f:Y(4159677225,4159677404,-0x410c))or t+0x12 else t=G<s and t+0b10111 or t+0b11101 end else t=C~=C and 0b101111100-t or t+-0x8d end elseif t<=0b11000011 then b=b(q,j)c=not b t=c and t+0x12 or 0x6ced/t else t,y=t+0b1000,y(E,f.i(G))E,e,s,G=v[0b10][0b11][v[0b10][0b10]],y,0b10000000,_ end elseif t>=0xe8 then if t<=0xf5 then if t>=0b11101011 then if t<0b11110100 then t=D<F and 0b101100010-t or 0x7a17/t elseif t<=0xf4 then E=G t=k<a and(f.T[0x44e6]or f:X(0b1110111,0x44e6))or(f.T[0x2555]or f:W(2743034791,0x51307ae,0x6ed086f,0x2555))else D=e t,B=0b11110101/t,D end elseif t<=0xe8 then t,c=f.T[0x1e67]or f:V(2226424995,0x51078267,0x33acae5d,0x1e67),c(b,f.i(q))j,E,b,q=0b10000000,c,v[0b10][0b11][v[0b10][0b10]],w else t=C>0 and(f.T[-0x421c]or f:W(0x3628895e,0x4352fdec,0x3cc438e9,-0x421c))or(f.T[0x22fd]or f:X(0b10100110,0x22fd))end elseif t<=0b11111010 then if t<=0b11111000 then t=C<=0 and 0b101011000-t or(f.T[-0x334c]or f:V(3138059450,0x5c1bc449,0x5eee7be6,-0x334c))else e=e()return e end else _=y t=r>i and(f.T[-0x4ad6]or f:Y(2732637173,2732637157,-0x4ad6))or t+-0xf1 end elseif t>0xd5 then if t>0xdc then t,G=t+-0b11010,f.h(G(s,m))elseif t>0b11011011 then t=G<s and 0xb70c/t or 0x157c/t else t=m~=m and(f.T[0x6b51]or f:V(0x744f772b,0x632ba1b9,0x112429a1,0x6b51))or 0x1563/t end elseif t<0b11010011 then if t>0xcc then E=E(G,s)y=not E t=y and(f.T[0x44e6]or f:W(4000483583,0x6341562,0xa554015,0x44e6))or(f.T[0x7e93]or f:W(2750345154,0x5d84b79,0xa38c498,0x7e93))else c=q t=r>i and(f.T[-0x522b]or f:Y(0x726851bc,0x726851bf,-0x522b))or 0xf24/t end elseif t<0xd4 then k,E,a=0xc4,0,0b11101101 s,m,G=0b100,1,E t=s~=s and(f.T[0x6b51]or f:X(0b11010101,0x6b51))or t+-0x65 elseif t>0xd4 then G=E y=G t=k<a and t+-0xd2 or t+-0b11000010 else E=""t,_=f.T[0x3714]or f:W(2292673619,0xaef497,0x2990f56,0x3714),E end elseif t<0x31 then if t>=0b10000 then if t>=0b100011 then if t>=0x2c then if t<=0x2d then if t<=0b101100 then t=G>s and 0b100000001-t or(f.T[0x4fd5]or f:W(0x64dc61ff,0x6c20bdf7,0x2e005887,0x4fd5))else t=G>s and 0x2571/t or(f.T[0x793a]or f:Y(0x18649e4a,0x18649ee8,0x793a))end else t=C<=0 and 0b11101111-t or(f.T[-0x709e]or f:Y(3972033627,3972033672,-0x709e))end elseif t<=0b100011 then D=D+C t=C>0 and 0xfb9/t or(f.T[0x4497]or f:Y(2953661398,2953661230,0x4497))else c,g,u,j,q,t,b=v[0b111][0b11][v[0b111][0b10]],w,0b1111111,v[0b11][0b11][v[0b11][0b10]],v[0b100][0b11][v[0b100][0b10]],f.T[0x681c]or f:V(0x510540aa,0x2375caa2,0x2d9031d4,0x681c),E end elseif t>0b10100 then j,t,q,b,g=d[0b11][d[0b10]],f.T[0x6728]or f:X(0x69,0x6728),"B",v[1][0b11][v[1][0b10]],l[0b11][l[0b10]]elseif t<0x13 then t=f.T[0x7bc6]or f:Y(2661157039,2661156940,0x7bc6)elseif t<=0x13 then t,w=f.T[0x6f53]or f:X(0b100110,0x6f53),c else E=E(G,s,m)G=1 l[0b11][l[0b10]],G=l[0b11][l[0b10]]+G,E t=z>=x and 0x1310/t or(f.T[0x4a61]or f:W(3761071540,0xccaf1a2,0x205a143,0x4a61))end elseif t<0b1011 then if t<=0b11 then if t<1 then D=D+C t=C>0 and(f.T[0x67d]or f:X(0b1101101,0x67d))or t+0x71 elseif t>1 then E,k,a=0,0xed,0b10101110 t=y==E and(f.T[-0x76c1]or f:X(0b11010100,-0x76c1))or 0b111011-t else B={[0b10]=1,[1]=B}t,B[0b11]=f.T[0x6a4e]or f:V(0xf7d3933,0xa93c7d1,0x4e9bd9c,0x6a4e),B A=nil A={[0b10]=1,[1]=A}A[0b11]=A A[0b11][A[0b10]]=f:Q{v[1],B,v[0b111],l,v[0b110],v[0b11],d,A,v[0b1000],v[0b101],v[0b100],v[0b10]}e=A[0b11][A[0b10]]end else _=E t=o<h and t+0b11110 or 0b101000101/t end elseif t<0b1101 then if t>0b1011 then t=0x40-t else E,G,y,t,s,w,m=e,v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],0x4d-t,v[0b11][0b11][v[0b11][0b10]],0x7f,_ end elseif t>0b1101 then e,t,r,D,i=v[0b110][0b11][v[0b110][0b10]],f.T[-0x45e1]or f:X(0x99,-0x45e1),0xde,A,0xf8 else t=D>F and(f.T[-0x410c]or f:V(0x1df18ca4,0x3c7aeca,0x1a29822b,-0x410c))or 0b11001000-t end elseif t<=0x54 then if t>0b1000010 then if t>=0b1010010 then if t>0x52 then t=D>F and(f.T[0x44e6]or f:V(0x5519590d,0x4e91cbee,0x68819f0,0x44e6))or(f.T[0x22fd]or f:Y(2313426593,2313426439,0x22fd))else t,s,E,k,G,m=0b1100110-t,d[0b11][d[0b10]],v[1][0b11][v[1][0b10]],0x94,"B",l[0b11][l[0b10]]end elseif t<=0b1001000 then a,w,k=0b10010101,m,0xbe t,G=0b100111100-t,w else t=m<=0 and(f.T[-0x3c6e]or f:V(3654050368,0x35840ee2,2756235094,-0x3c6e))or 0x6a-t end elseif t>0b111000 then if t>0x41 then s=s(m,w)m=0b111 m=D*m t=k<w and 0x68-t or(f.T[-0x4ad6]or f:W(0x71e3b512,0x359e243,0xbe2651,-0x4ad6))else t,e[D]=t+-0b11110,_ end elseif t>=0x34 then if t>0x34 then m="c"t,s,m=t+0x64,m..y,v[1][0b11][v[1][0b10]]b,c,w=l[0b11][l[0b10]],d[0b11][d[0b10]],s else t,q=t+0xb4,f.h(q(j,g))end else t=C~=C and 0x126-t or t+0xa2 end elseif t<0x6e then if t<0b1101001 then if t<=0b1010111 then t=D<F and 0x2871/t or(f.T[0x4ea]or f:X(0b1010010,0x4ea))else t=D<F and(f.T[-0x410c]or f:W(0x1202e8f5,0x7af6d2,0xcc90e23,-0x410c))or t+-0x2f end elseif t>0x69 then t=D>F and(f.T[0x44e6]or f:V(2875500666,0x6ec7f02e,0x3c9c247b,0x44e6))or 0b11011110-t else b=b(q,j,g)q=1 q,l[0b11][l[0b10]]=b,l[0b11][l[0b10]]+q t=z<=x and 0b100111101-t or 0x53ac/t end elseif t<0b1110011 then if t>0x6e then t=C<=0 and(f.T[-0x70d1]or f:W(0x706470eb,0x585daf9e,0x2c2ad15d,-0x70d1))or t+0x14 else t=m>0 and(f.T[-0x146d]or f:W(2770875695,0xda62925,0x331d9998,-0x146d))or 0b100010000-t end elseif t>0b1110011 then t=C<=0 and 0xcb-t or(f.T[0x4ea]or f:V(0x62f01ecd,0xcfaee4c,0x55f5b3ef,0x4ea))else t=D>F and t+0x82 or 0b101101011-t end until false end end,function(f)local d,_,b,a,c b=0xf2 repeat if b<0b11110010 then c={[0b10]=1,[1]=c}c[0b11]=c d={[0b10]=1,[1]=d}d[0b11]=d _={[0b10]=1,[1]=_}_[0b11]=_ a=f:p{c,_,d}return a else a=string d,c,a=a.byte,a.char,bit32 b,_=0b10111000,a.bxor end until false end,function(a,b,c,d,e)a.T[e]=a.d(a.a(4294967295,d+c))+(-a.a(a.b(4294967295,a.a(d+c,4294967295)),a.c(a.a(d+c,4294967295),4294967295))+a.c(a.d(a.c(b,0xbca4)),a.d(a.a(c+d,4294967295)))+(a.a(a.a(0xffff,d),a.a(c,0xffff))*a.b(a.a(d,0xffff),a.a(c,0xffff))+a.a(a.d(a.a(d,0xffff)),a.a(c,0xffff))*a.a(a.d(a.a(c,0xffff)),a.a(d,0xffff))-a.a(0xffff,c)*a.a(d,0xffff)))return a.T[e]end,function(f)return function(n,d,l,i,g,e,a)local h,k,m,_ k,m,_,h=nil,i,nil,n return h,k,_,m end end,function(f,j)return function(c,d,l)local k,g,b,i,a,_,e b=f.T[-0x30e5]or f:X(0x7b,-0x30e5)repeat if b>0x7b then e[0b11111]=a g=e g={[0b10]=1,[1]=g}g[0b11]=g e={[0b10]=1,[1]=e}e[0b11]=e e[0b11][e[0b10]]=f:S()a=f:R{j[1],j[0b101],j[0b1000],c,j[0b10],e,j[0b11],j[0b1010],i,g}return a elseif b>0x70 then _,k=0b10111011,0x73 c={[0b10]=1,[1]=c}c[0b11]=c g,e={},0 g[0x1d]=e a={}e=a g[0b10110]=e i=g b,i=f.T[0x65ce]or f:Y(0x58b9fe13,0x58b9fe32,0x65ce),{[0b10]=1,[1]=i}i[0b11]=i e={}elseif b<=0b100001 then a=j[1][0b11][j[1][0b10]]b,e[0x1b]=f.T[-0xeaa]or f:X(0x70,-0xeaa),a a=j[0b111][0b11][j[0b111][0b10]]e[0b1111]=a a=j[0b100][0b11][j[0b100][0b10]]e[0b11110]=a a=c[0b11][c[0b10]][0b11010]e[0x1a]=a a=j[0b11][0b11][j[0b11][0b10]]e[0b11]=a else e[0x13]=d a=c[0b11][c[0b10]][0b1010]e[0b1010]=a a=j[0b1001][0b11][j[0b1001][0b10]]e[0b10101]=a a=c[0b11][c[0b10]][0x12]e[0b10010]=a a=j[0b110][0b11][j[0b110][0b10]]e[0b10111]=a a=j[0b1000][0b11][j[0b1000][0b10]]b=k<_ and b+0x10 or b+-0b1001111 end until false end end,{},function(a,b,c,d)a.T[d]=a.o(b,c)return a.T[d]end,function(a,b,c)a.T[c]=b return a.T[c]end,function(a,b)return a.E(a.t(a.q"{|E|RH(FLJPyawMRaIyP7*+rIDd}-XzEAxB?nyNi3P$-k|F$Uzv0wM5UH>EoUS9eW*fjqmj$_J+NjDDv3|{s%ygCfo|9Q;QW(hPncK^vwm<1y37PtTVNoGw<80>ui_;p74N4)zP|7;a*9I|TaZ2wpNU+ts@S%3d}HHKTo13Os%G7fHSBZ^+u|5$ItCxOc%QU3t}0y)bBW?=tpWCw#yze$Y$T)%7x1px&E{{;sH1qA{H1pfsH1qKTQ0tWv80U-ng1^@&9A_oRM0R=w<{|E*QGY0|#F8@9^11&o_3K#z=B|RJf1ONa500"),b)end,function(a,b,c,d)a.T[d]=a.c(a.d(b),a.d(c))*0b10+(a.c(a.c(b,c),a.b(b,b))+(a.b(a.d(c),a.a(b,c))+(a.b(a.a(0xffff,c),a.a(0xffff,c))*a.a(a.a(c,0xffff),a.a(0xffff,c))+a.a(a.d(a.a(0xffff,c)),a.a(0xffff,c))*a.a(a.a(c,0xffff),a.d(a.a(c,0xffff)))-a.a(0xffff,c)*a.a(c,0xffff)))+-0b10*c)+-0b10*a.d(a.b(c,c))+a.c(a.b(c,b),a.b(c,4294967295))return a.T[d]end,bit32.bxor,bit32.bor,function(f)local b,_,g,i,d,c b=0b1010010 repeat if b>0b1010010 then i=g.band _={[0b10]=1,[1]=_}_[0b11]=_ i={[0b10]=1,[1]=i}i[0b11]=i g=f:r{d,c,i,_}return g else _=string d,c=_.gsub,_.char c={[0b10]=1,[1]=c}c[0b11]=c d={[0b10]=1,[1]=d}d[0b11]=d g=bit32 b,_=0b11001111,g.rshift end until false end,function(f,v)return function(n,d,l,i,A,e,a)local h,y,t,j,g,b,u,k,s,q,c,m,o,_,z,p,w t=f.T[0x3949]or f:X(0b11001110,0x3949)while true do if t>=0b10000100 then if t>0b10111110 then if t<0xd4 then if t>0xce then b,c,g,j,q=v[0b10][0b11][v[0b10][0b10]],v[1][0b11][v[1][0b10]],1,o,v[0b11][0b11][v[0b11][0b10]]t,g=0x28a0/t,s+g else t,k,_=f.T[0x1f0e]or f:V(2432576792,0x49e8757a,0x47161c4c,0x1f0e),e[0b1100],0b111011 o,_,h,k=1,a[0x12],k-_,e[0b1110]p,y,s={},n-o,0 p[0b1100]=s end elseif t<0b11101111 then o,s,p=_[0b1110],0,""b,c=1,#o w,m=b,c-b t=m~=m and(f.T[0x5ad5]or f:Y(0x7a154ab2,0x7a154a18,0x5ad5))or(f.T[0x254a]or f:V(0x17b5b8df,0x251065c,0x1563fde6,0x254a))elseif t>0xef then _[0b1110]=y o,p,y,s=nil,nil,n,i return y,o,p,s else t=s<m and(f.T[0x5ad5]or f:V(2649811089,0x627bfbed,0x3b7458b2,0x5ad5))or t+-0x1f end elseif t>0xaa then if t>0xb0 then t=s<m and(f.T[0x5ad5]or f:Y(0x2f97d241,0x2f97d2eb,0x5ad5))or t+-0x9b else t=s>m and(f.T[0x5ad5]or f:X(0xaa,0x5ad5))or(f.T[-0x146d]or f:V(0x70e794a4,0x4f7f8f36,0x216798f7,-0x146d))end elseif t<0xa2 then if t<=0b10000100 then t,z,u=0x183c/t,1,s%z u=u+z else t=w<=0 and(f.T[0x71ae]or f:X(0xbe,0x71ae))or(f.T[0x559]or f:V(0x2feb2d7d,0x15ceb6ab,0x1a1cdb4f,0x559))end elseif t<=0xa2 then t,c=t+-0b100011,c(f.i(b))p=p..c else s=p t,y=f.T[-0x1bb6]or f:Y(4115199049,4115199158,-0x1bb6),s end elseif t<0x32 then if t<0x23 then if t>0b1100 then t,b=f.T[0x793a]or f:X(0xa2,0x793a),f.h(b(q,j,g))else t=w<=0 and 0b11111011-t or(f.T[0x1f64]or f:V(0x3259c40c,0x31ffa591,0x59d2e7,0x1f64))end elseif t>0b101101 then j=j(g,u)g=0x100 t,g=f.T[-0x5cfe]or f:W(2912302015,0x793485,0x1c7cbd9,-0x5cfe),s%g elseif t>0x23 then t=w~=w and t+0xc2 or(f.T[0x2b9b]or f:X(0b1100,0x2b9b))else t=w~=w and(f.T[0x5ad5]or f:X(0b10101010,0x5ad5))or(f.T[0x1f64]or f:W(0x349830df,0x423207f,0x71d6f51,0x1f64))end elseif t<=0x74 then if t>0b111001 then t=s>m and t+0b110110 or(f.T[0x35e0]or f:V(2983577392,2210346492,0x2e164506,0x35e0))elseif t>0b110010 then t=w>0 and 0b11101001-t or(f.T[-0x146d]or f:X(0b101101,-0x146d))else q=q(j,g)g,t,j,z=k,t+0x52,v[0b11][0b11][v[0b11][0b10]],#k end elseif t>0b1111010 then s=s+w t=w>0 and(f.T[-0x3120]or f:V(0x62a2e5f6,0x168b7fd7,0x4c16d94f,-0x3120))or(f.T[0x35e0]or f:W(0x2c1b0d97,0x25dfe8dd,0x1b0097e1,0x35e0))else s=0b10 p[0b1101]=s t,o=f.T[-0x76c1]or f:X(0b11010100,-0x76c1),p _[y]=o y,s,p=a[0x12],1,n+h o=p-s _=y[o]end end end end,i=(function()local function m(i,j,k)if j>k then return end return i[j],m(i,j+1,k)end return function(o)return m(o[1],1,o[0b10])end end)(),function(f)local c,h,b,a,d,l,i,g,e b=0b10011111 while true do if b<0x90 then h=f:u{a,c,d,g,e,i,l}return h elseif b<=0b10010000 then h={}a=h c={[0b10]=1,[1]=c}c[0b11]=c d={[0b10]=1,[1]=d}b,d[0b11]=0xb6-b,d l={[0b10]=1,[1]=l}l[0b11]=l i={[0b10]=1,[1]=i}i[0b11]=i g={[0b10]=1,[1]=g}g[0b11]=g e={[0b10]=1,[1]=e}e[0b11]=e a={[0b10]=1,[1]=a}a[0b11]=a else h=string h,d,l,c=bit32,h.sub,h.byte,h.unpack g,i,h=h.band,h.rshift,table b,e=0b10010000,h.concat end end end,l=function(f,d,l,...)local a,b,o,q,i,_,p,g,k,h,e,n b=0b11111011 repeat if b<=0b10010111 then if b<0b1000111 then if b<0b1111 then if b<=0b1010 then b=a<=0 and 0x51-b or 0b100001-b else p=0x18749 o,b,p=p*g,0xdd-b,0x63a9 q=o+p _,q=q%i,1 k=_+q _,h=g+q,d[k]k=n[_]n[h]=k end elseif b>0b1111 then b=a~=a and 0xcab/b or 0b100101-b else b=g>e and 0x8d or 0b10010110/b end elseif b<=0b10001101 then if b>=0b1111011 then if b<=0b1111011 then b=a<=0 and 0b101001100-b or 0b1110 else g,a,b,e=n[l],f.h(...),b+0x24,n end else b=g<e and 0b10001101 or 0b10111 end else b=a>0 and 0b10101010 or 0x181-b end elseif b>0xd1 then if b<=0xea then b=a~=a and 0b11010001 or 0x7b else g,h,i,n=0,1,#d,f a,e=h,i-h b=e~=e and 0b10001101 or 0x97 end elseif b>0b11001111 then b=g<e and 0x8d or 0b1110 elseif b>=0xb1 then if b>0b10110001 then g=g+a b=a>0 and b+-0xc0 or 0b11011001-b else g=f.h(g(e,f.i(a)))return f.i(g)end else b=g>e and 0x8d or 0xea end until false end,bit32.band,getfenv(),function(f,v)return function(n)local u,d,a,h,p,i,m,r,_,l,k,s,e,g,c,o,b,t t=0b1010001 repeat if t<0b10000010 then if t>0x48 then if t>0x62 then h,a,e=l,n,v[0b111][0b11][v[0b111][0b10]]e=e(a,h)a=1 h,l,k=0b1000,l+a,a t=(h~=h or(k>0 and a>h or(k<=0 or k~=k)and a<h))and 0xd4 or t+0b1000010 elseif t<=0b1010001 then l=v[1][0b11][v[1][0b10]]d=l[n]t=d and 0x48 or 0b110010 else u=#n t=l<=u and 0b10110111 or 0x9a end elseif t<0x47 then if t<=0b101 then o,t,p=#i,0x28a/t,1 u=o+p i[u]=_ p,u,o=-0x800,v[0b11][0b11][v[0b11][0b10]],r.._ u=u(o,p)r=u else l,t,r=1,0xd4,{}i,r=r,""end elseif t<=0x47 then s,o,u,p=l,">I2",v[0b10][0b11][v[0b10][0b10]],n u=u(o,p,s)o=0b10 g,l,p,s,m=0b101,l+o,#r,v[0b110][0b11][v[0b110][0b10]],u s=s(m,g)o,m,s,g=p-s,u,v[0b100][0b11][v[0b100][0b10]],0x1f s=s(m,g)m=0b11 s,g,m,p=v[0b11][0b11][v[0b11][0b10]],o,r,s+m c,t,b=o+p,0x2ab6/t,1 c=c-b s=s(m,g,c)_=s else return d end elseif t<=0b10111100 then if t<=0xb7 then if t<0b10011010 then a=a+k t=(k>0 and a>h or k<=0 and a<h or k~=k)and t+0b1010010 or 0xc0 elseif t>0x9a then p,u,s,o=l,v[0b11][0b11][v[0b11][0b10]],l,n u=u(o,p,s)_,u=u,1 t,l=0b101010001-t,l+u else o,u,p=e,v[0b110][0b11][v[0b110][0b10]],1 u=u(o,p)e=u t=_ and 0b10011111-t or 0x82 end else o=1 u,o=l+o,#n t=u<=o and 0b100000011-t or 0x9a end elseif t<0b11000000 then a,e=i,v[0b101][0b11][v[0b101][0b10]]e=e(a)a=v[1][0b11][v[1][0b10]]a[n]=e return e elseif t>0xc0 then e=#n t=l<=e and 0x6858/t or 0xbe else u,o,p,_=v[0b100][0b11][v[0b100][0b10]],e,1,nil u=u(o,p)o=0 t=u~=o and t+-0x5e or 0b10111100 end until false end end,function(f)return function(n,d,l,i,r)local s,o,k,m,j,g,h,b,_,c,z,y,e,a,u,t,q,p,w t=0x97 while true do if t<0xbc then if t<=0x5b then q,b,w,c,j=m+o,m,e,n,1 q=q-j w=f.h(w(c,b,q))return f.i(w)else e,a,t,h,k=r[0x17],r[0x12],0b11101000,1,-1 end elseif t>0b10111100 then y,s,w,_,m,p,o=nil,nil,1,a[h],nil,nil,nil h,c=h+w,_[0b1101]g,j,q,w,z,b,c,u=n,k,i,l[c],r,d,h,_ w,c,b,q,j=w(c,b,q,j,g,u,z)o,p,m,y,s=c,b,j,w,q t=p and 0x5278/t or 0xaa60/t else k,t,h=s,0b11101000,y end end end end,function(f,h)return function(c,d)local i,g,e,b,_ b=0b11110001 repeat if b<=0xf1 then if b<=0b11011010 then b,_=0b11111111,_(i)c,_=_,h[0b10][0b11][h[0b10][0b10]]i,e,g=c,true,d else _,b,i=h[1][0b11][h[1][0b10]],0b11011010,c end else _=_(i,g,e)return _ end until false end end,function(f)return function(n,d,l,i,g,e,a)local h,m,_,k k,_=e[0b1100],0b111011 k,h=e[0b1110],k-_ g[h]=k m,k,h,_=i,nil,n,nil return h,k,_,m end end,function(f,v)return function()local d,F,i,o,w,c,H,A,g,a,G,n,z,_,h,u,k,E,m,C,B,e,I,D,r,x,p,q,l,b,j,s,y H=f.T[0x5968]or f:X(0b1000110,0x5968)repeat if H<=0b110100110 then if H>0xb7 then if H>=0b100100100 then if H<0b101101001 then if H>0b101001110 then if H<0x15a then if H<=0x154 then if H<0x153 then if H<=0b101001111 then H,y[0b10100]=f.T[-0x5b09]or f:X(0x20c,-0x5b09),E c,m,w,s=v[0b100][0b11][v[0b100][0b10]],"B",v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]]else A=A(e)e,D=1,B F=e H=D~=D and 0b110010001-H or H+0b10010000 end elseif H>0b101010011 then y[0b1100]=E H,c,w,m,s=f.T[-0x5bd6]or f:V(3751057897,0x1d80adb,3720092676,-0x5bd6),v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],"B",v[1][0b11][v[1][0b10]]else H=G~=G and(f.T[-0x215c]or f:X(0x305,-0x215c))or(f.T[0x19a3]or f:W(2974823823,0x3aaf8802,0x11f9fbf9,0x19a3))end elseif H>0b101011000 then H,E=f.T[0x5181]or f:X(0b100100001,0x5181),G else H=B<A and 0x233-H or(f.T[-0x7268]or f:V(2256217738,2226788303,0x1c182e2,-0x7268))end elseif H<=0x161 then if H<0x160 then if H>0b101011010 then H=y<E and(f.T[-0x3cd4]or f:Y(3074280247,3074279944,-0x3cd4))or(f.T[-0x7634]or f:Y(2830825215,2830825284,-0x7634))else H=q<=0 and(f.T[0x430]or f:V(0x15a1a49f,0x565ed08,0x103b2cae,0x430))or 0xe9d2/H end elseif H<=0x160 then H=y<=0 and 0x2a7-H or 0x4f1-H else H=f.T[-0x5a4b]or f:Y(0x3e5e90e8,0x3e5e90e3,-0x5a4b)end elseif H<=0x163 then H,w=f.T[-0x25f6]or f:X(0b10010001,-0x25f6),w(c,b)c=0b111 c=C*c else H,_=f.T[-0x27f4]or f:X(0xd2,-0x27f4),_(y,E,G)y,E=G,1 end elseif H>=0b100110110 then if H<=0b101000110 then if H<=0x13f then if H>=0b100111000 then if H<=0b100111000 then H=G>0 and(f.T[0x5d58]or f:V(4240067716,0x2fdf6bb3,3436939096,0x5d58))or(f.T[0x7b18]or f:W(4145039295,0x522bcdd,0x34b7eb9,0x7b18))else E=0 s,m,G=0b100,1,E H=s~=s and(f.T[-0x29e]or f:V(4067725581,0x59036acf,2574303569,-0x29e))or 0x12257/H end else H=A>e and(f.T[0x7a02]or f:V(3782886374,0x112ab219,3494923589,0x7a02))or(f.T[-0x1cee]or f:X(0x2cd,-0x1cee))end else H=m<=0 and(f.T[-0x1b09]or f:X(0x1e0,-0x1b09))or 0x2c0-H end elseif H>0x14c then H,c=0x45f6c/H,w m=c elseif H>0x147 then G=G(s,m)s=0b111 H,s=f.T[0x60e2]or f:X(0x60,0x60e2),e*s else H=C<_ and(f.T[0x34ec]or f:W(0x12414cbf,2646698910,0x7f095d1,0x34ec))or(f.T[0x62d8]or f:V(3729738712,0x5f5cdd99,0x7ef31754,0x62d8))end elseif H<0x12d then if H>0x12b then H=e>D and 0x1e0-H or 0x2e5-H elseif H>0b100100100 then w=w(c,b,q)b,c=1,q c=c+b H=o<b and H+0x2bf or(f.T[0x3979]or f:X(0x110,0x3979))else H=y>E and(f.T[0x7b17]or f:W(0xf45d257,0x4ac9d6f3,2773372034,0x7b17))or(f.T[-0x5296]or f:V(2206863373,0x5502ed27,0x2e87c174,-0x5296))end elseif H<0b100110010 then if H>0x12d then H,y[0b1011]=f.T[-0x14e6]or f:Y(0x1d3f2d30,0x1d3f2ed3,-0x14e6),E m,s,c,w="B",v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]]else j=j(g,u)g=0b111 H,g=f.T[0x38f]or f:W(4006638447,0x5384e,0x1124565a,0x38f),G*g end elseif H<=0x132 then E(G,s)E=0b10011010 H=_<E and 0x8bda/H or 0xb0e8/H else H=e<=0 and(f.T[0x37a9]or f:W(0x5d1aa2db,0x48e6bc,0x3b6842,0x37a9))or 0xdf0e/H end elseif H<=0b110000001 then if H>=0b101110110 then if H>=0b101111100 then if H<=0x180 then if H>=0x17d then if H<=0x17d then H,w=0x515-H,1 m=m+w v[0b100][0b11][v[0b100][0b10]],m=m,s G=m else H,s=0x180/H,s(m,w,c)w,m=1,c m=m+w end else H=C>_ and 0x1ab-H or 0x564-H end else j,c,q,w,H,m,b=0b1111111,v[0b1011][0b11][v[0b1011][0b10]],s,_,0x3f421/H,v[0b11][0b11][v[0b11][0b10]],v[0b110][0b11][v[0b110][0b10]]end elseif H<=0b101110111 then if H>0b101110110 then H=B>A and(f.T[0x3e1a]or f:Y(2286596837,2286596670,0x3e1a))or(f.T[0x705c]or f:V(0x560266f4,0x47e47bba,0xe1e5d43,0x705c))else y=y(E,G,s)G,H,E=1,0x3322/H,s end else H,q,g,j,b=f.T[0x6026]or f:Y(0x25dcfb01,0x25dcfaad,0x6026),"B",v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]]end elseif H>0b101101101 then if H<0x174 then H=F~=F and 0b110101110-H or H+-0xec elseif H>0b101110100 then H,y[1]=H+0b1101101,E else l=l(B)A,B=d,1 e=B H=A~=A and 0x24f-H or(f.T[0x4865]or f:W(0x9e677fd,0x48905483,0x37702f33,0x4865))end elseif H>0b101101011 then C=C(_,y)F=not C H=F and(f.T[0x5ac3]or f:Y(3378769321,3378769287,0x5ac3))or 0x1423a/H elseif H<=0b101101010 then if H<=0b101101001 then H=e<D and H+-0b11110000 or(f.T[-0x234b]or f:V(3076585799,2289419660,0x2eea7f9c,-0x234b))else H,y[0b10100]=0x2a994/H,E end else H=f.T[-0x66ec]or f:X(0x1a7,-0x66ec)end elseif H>0b110010110 then if H<=0x1a2 then if H<=0x1a0 then if H<=0x19e then if H<=0b110011010 then H=y<E and 0x3f8fe/H or 0x176c4/H else m,v[0b100][0b11][v[0b100][0b10]]=s,m H,G=f.T[0x4af9]or f:X(0x3a4,0x4af9),m end else H=e<D and 0x219-H or 0x27d-H end else G,H,E=y,0x2dec4/H,v[0b101][0b11][v[0b101][0b10]]end elseif H>0b110100100 then H=G>0 and(f.T[-0x28bf]or f:Y(2864817981,2864817623,-0x28bf))or H+0x125 else s=s(m,w,c)H,m=f.T[-0x7baf]or f:Y(2681812535,2681812148,-0x7baf),c end elseif H>=0x18d then if H<=0b110001111 then if H>=0x18e then if H>0b110001110 then H,E=0x34c-H,G else H=A<e and 0b110101010-H or 0x3a4d0/H end else H=c<b and 0x205f6/H or(f.T[0x3681]or f:X(0b10101101,0x3681))end else H,E=0x1def4/H,G end elseif H<0b110001001 then s=s(m,w,c)H,w,m=H+0x23f,1,c m=m+w elseif H<=0x189 then H,G=0x32b-H,E y=G else H=G<=0 and(f.T[-0x215c]or f:X(0x305,-0x215c))or(f.T[0x41f3]or f:Y(2470082719,2470083261,0x41f3))end elseif H>0b11101011 then if H>=0b11111100 then if H<=0b100010000 then if H<0b100000011 then if H>=0xfd then if H<=0xfd then p,e,h,H,A=0b111100,B,0x37,f.T[0x5e7]or f:W(0x35857159,0x4ef43bc,0x322cc19,0x5e7),v[0b101][0b11][v[0b101][0b10]]else H=f.T[-0x583]or f:X(0x2a9,-0x583)end else H,C=H+-0x69,_ end elseif H<0b100001011 then if H>0x103 then H=F>0 and(f.T[0xf63]or f:W(0x732b33ff,0x32aa85a,0x555dba3,0xf63))or(f.T[-0x3b4f]or f:X(0x3d3,-0x3b4f))else H,C=0x2163/H,C(_,y,E)y,_=1,E _=_+y end elseif H<=0b100001011 then H=D<=0 and H+0x253 or(f.T[-0x5395]or f:V(0x64ff43b8,0x9f7a0e6,0x5b085e43,-0x5395))else v[0b100][0b11][v[0b100][0b10]],c=c,w H,m=0x37d-H,c end elseif H<=0b100011110 then if H>=0b100011001 then if H<=0x119 then H=m<=0 and(f.T[-0x54a1]or f:V(2351007128,0x59424150,0x32def99b,-0x54a1))or 0x9e10/H else H,y=0x9d86/H,f.h(y(E,G))end elseif H<=0b100010011 then H=B>A and 0xeb41/H or H+0x280 else H,c=0x30c-H,c(b,f.i(q))q,b,E,j=w,v[0b1100][0b11][v[0b1100][0b10]],c,0b10000000 end elseif H>0x120 then y[0b10]=E w,m,s,H,c=v[0b111][0b11][v[0b111][0b10]],"B",v[1][0b11][v[1][0b10]],f.T[-0x6a50]or f:X(0x205,-0x6a50),v[0b100][0b11][v[0b100][0b10]]else H,j=H+0b11101011,j+m v[0b100][0b11][v[0b100][0b10]],j=j,q c=j end elseif H>=0xf4 then if H>=0b11111000 then if H>=0xfa then if H<=0xfa then k,H,a,D=0b101111,H+0x171,0b11011110,"c"e,D=D..l,v[1][0b11][v[1][0b10]]_,F,C=v[0b100][0b11][v[0b100][0b10]],e,v[0b111][0b11][v[0b111][0b10]]else H=F~=F and 0xb07c/H or(f.T[-0xdf6]or f:Y(0x7372ad9b,0x7372ad30,-0xdf6))end else H,E=0x2d5-H,G end elseif H<=0xf5 then if H<=0xf4 then H,F=f.T[-0x5a4b]or f:X(0b1011,-0x5a4b),C[_]else d=0b1101100 H=n~=d and(f.T[0x4b05]or f:W(0x405c28f6,0xae640ad,0x343c45c9,0x4b05))or(f.T[-0xfe5]or f:W(0x6e1811e9,0xf4e2862,2172124720,-0xfe5))end else m,v[0b100][0b11][v[0b100][0b10]]=s,m G=m H=k<=a and(f.T[-0xfd6]or f:X(0x28e,-0xfd6))or 0x18624/H end elseif H>=0b11101111 then if H<0xf0 then H,m,v[0b100][0b11][v[0b100][0b10]]=0xef0/H,s,m G=m elseif H>0b11110000 then H=0x211-H else k,A=0b1011110,0 e,D,F=A,0b100,1 H=D~=D and 0x7170/H or(f.T[-0x20bf]or f:W(0x5579c51f,0x18062a2,0x67fb708,-0x20bf))end elseif H>0b11101101 then B=""d=B H=k>a and 0x1bb76/H or 0x1de-H elseif H>0xec then H=A>e and(f.T[0x7a02]or f:Y(0x798f60ff,0x798f60e3,0x7a02))or(f.T[0b11110011]or f:V(0x32158b0d,0x13ec6c71,0x1e28c7d3,0b11110011))else F="c"D,H,F=F..B,0x325b8/H,v[1][0b11][v[1][0b10]]y,C,_=v[0b100][0b11][v[0b100][0b10]],D,v[0b111][0b11][v[0b111][0b10]]end elseif H<0b11010011 then if H<0xc4 then if H>=0xbe then if H>=0xbf then if H<=0b10111111 then H=e~=e and(f.T[0x3e1a]or f:W(0x20f41cff,0x3d3f9c7b,0x50c16760,0x3e1a))or(f.T[-0x7268]or f:X(0b10011111,-0x7268))else H,v[0b100][0b11][v[0b100][0b10]],E=0b100010001-H,E,y _=E end else y=0b10011010 H,_=f.T[-0x279a]or f:W(0x377bd74f,0x47a6e11e,0xdd1eec,-0x279a),y end elseif H<0b10111010 then y=y(E,G,s)G,E=1,s H,E=0x8c32/H,E+G elseif H>0xba then H,C,v[0b100][0b11][v[0b100][0b10]]=f.T[0x195f]or f:Y(0x42240ad0,0x42240a31,0x195f),F,C D=C else E,y,H,_,C=v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],H+0x49,"B",v[1][0b11][v[1][0b10]]end elseif H<0xcb then if H<=0xc5 then if H>0xc4 then C=C+B H,v[0b100][0b11][v[0b100][0b10]],C=f.T[0x10c7]or f:W(3737850622,0x14ca3857,0xb6a548e,0x10c7),C,F e=C else H,G=f.T[-0x6c1c]or f:V(3009338610,0x29222f4f,2319201205,-0x6c1c),G(s,f.i(m))m,F,s,w=E,G,v[0b1100][0b11][v[0b1100][0b10]],0b10000000 end else H=m~=m and H+0b100011001 or H+0b1111111 end elseif H>=0xcf then if H>0xcf then y=y+E y,v[0b100][0b11][v[0b100][0b10]]=_,y H,C=0xf1-H,y else H=y>E and(f.T[-0x6dc8]or f:W(3465172731,0x10144f7b,0x4fd300,-0x6dc8))or(f.T[-0x7c8]or f:X(0x153,-0x7c8))end elseif H>0xcb then H,y,E,s,G=f.T[-0x3922]or f:X(0xb9,-0x3922),v[1][0b11][v[1][0b10]],"B",v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]]else H=F~=F and(f.T[0x6bc7]or f:W(4022111611,0x29c,0b1100001,0x6bc7))or H+0b10010 end elseif H<=0xe1 then if H<=0b11011011 then if H<=0xd6 then if H<=0xd5 then if H>0b11010011 then s[0b1110]=m w,c=s[0b1001],0 m=w~=c H=m and(f.T[-0x25ec]or f:X(0x2f5,-0x25ec))or(f.T[0x2705]or f:V(2645735773,2300350652,0x14957620,0x2705))else d=B H=o<=h and H+0b11101 or(f.T[0x10c7]or f:W(2615317757,0x11758542,0xe8ea4a4,0x10c7))end else y=0xb9 H,_=f.T[-0x279a]or f:V(4161695779,0x27026a87,3507249670,-0x279a),y end elseif H<=0b11011001 then y,C=0,v[0b10][0b11][v[0b10][0b10]]E,s,G=y,1,0b100 H=G~=G and 0x101b/H or 0x345-H else o,A=0x42,0 D,e,F=0b100,A,1 H=D~=D and 0x99fc/H or(f.T[0x725]or f:W(2861383351,0x3882d2d,0xc89540,0x725))end elseif H>=0b11011101 then if H<=0b11011101 then H,y,s,G,E=0x253aa/H,v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],"B"else H,e=f.T[0x2049]or f:W(0x440a84bf,0xf078b98,0x12d74a5,0x2049),D end else o,h,F=0x9a,0b10100100,F+l v[0b100][0b11][v[0b100][0b10]],F=F,D A=F H=k<a and(f.T[0x4ef7]or f:V(0x6dff95b1,0x5a243666,0x13daf32c,0x4ef7))or 0x1408c/H end elseif H<0xe9 then if H>=0xe4 then if H>0b11100100 then b,w,c,q,H,j,g=v[0b1011][0b11][v[0b1011][0b10]],v[0b11][0b11][v[0b11][0b10]],y,v[0b110][0b11][v[0b110][0b10]],f.T[0x289c]or f:V(4170989275,3169018637,0x3bb91fed,0x289c),m,0b1111111 else H,A=f.T[-0x30e5]or f:V(0x294b933d,0x1e29b885,0xb21775d,-0x30e5),e end else B=B+e H=e>0 and(f.T[-0x22e9]or f:Y(3324682999,3324682554,-0x22e9))or(f.T[0x3f55]or f:Y(4119973033,4119973430,0x3f55))end elseif H<0xea then H=m>0 and(f.T[0x7bf2]or f:Y(0x7c0bb75f,0x7c0bb4db,0x7bf2))or 0xb51f/H elseif H>0b11101010 then H=p<=I and(f.T[-0x5a4b]or f:V(3491169598,2653069802,0x31f517a7,-0x5a4b))or 0x6c52/H else H=G~=G and(f.T[-0x6dc8]or f:V(2815951901,2708587381,0x666f74d,-0x6dc8))or(f.T[0x41f3]or f:V(3583427415,2305629623,0x4c29601a,0x41f3))end elseif H>=0b1110100 then if H>0x98 then if H>=0xaa then if H<0b10110000 then if H>=0xad then if H>=0b10101110 then if H>0b10101110 then y=1 H=C>y and(f.T[-0x6aa5]or f:Y(0x6924908e,0x692490e4,-0x6aa5))or(f.T[0x4298]or f:V(2989995897,0x3e63f01c,0x73d31b7c,0x4298))else B,v[0b100][0b11][v[0b100][0b10]],H,h,o=l,B,0x1d3a/H,0x12,0xd5 d=B end else z,H,r,x,u="B",0x24325/H,v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]]end elseif H>0xab then s,H,c,m,w=v[1][0b11][v[1][0b10]],f.T[0x5384]or f:W(3577926399,0x293dbaf,0x26204c48,0x5384),v[0b100][0b11][v[0b100][0b10]],"B",v[0b111][0b11][v[0b111][0b10]]elseif H>0b10101010 then s,H,G,y,E=v[0b100][0b11][v[0b100][0b10]],H+0x31d,v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]],"B"else C=C+y H=y>0 and H+0x254 or 0x20a-H end elseif H<=0b10110100 then if H<=0b10110010 then if H<=0xb1 then if H>0xb0 then E[0b1100]=G E[0b101]=G E[0x14]=G E[0b100]=G E[0b1101]=C H,E[1]=0xfe7/H,G y,G,E=E,A,v[0b1010][0b11][v[0b1010][0b10]]s=y else H,E=0x47f-H,f.h(E(G,s))end else A,e={},0 A[0x1c]=e D={}e=D A[0x1a]=e e=0 A[0x18]=e D={}H=o<e and(f.T[-0x4f17]or f:X(0b111100110,-0x4f17))or 0b101010010-H end else H,e=f.T[-0x484b]or f:Y(3273845003,3273845238,-0x484b),A B=e end elseif H<=0b10110110 then if H<=0xb5 then C=0b10 H=D==C and H+-0b1110010 or 0b101010011-H else B,a,k=0,0x52,0x48 H=l==B and 0xa934/H or(f.T[0x6a4e]or f:W(0x56bb89fa,0x283d2c,0x1839d2,0x6a4e))end else H,y=f.T[-0x279a]or f:Y(2258138676,2258138686,-0x279a),0b10111001 _=y end elseif H>=0b10011111 then if H>=0b10100011 then if H<=0xa5 then if H<0xa4 then H,y=0x65e/H,0xb9 _=y elseif H>0xa4 then H,F=f.T[-0x5a4b]or f:W(3125052347,0x397267e8,0xc170423,-0x5a4b),1/0 else y=0b10 H=C>y and(f.T[-0x3811]or f:X(0b11001,-0x3811))or(f.T[0x2b9b]or f:W(0x35f2105d,0x6d0b863f,0x15015c6f,0x2b9b))end else k,C,a=0xaf,0b110,0xca H=D==C and 0b101000010-H or 0x6907/H end elseif H<=0b10100000 then if H>0b10011111 then e=D A[0x12]=e D={}e=D A[0b1010]=e A[0b111]=l A[0x19]=d e=0 A[0b1000]=e B=A return B else _,E,H,C,y="B",v[0b100][0b11][v[0b100][0b10]],f.T[-0x2615]or f:X(0x212,-0x2615),v[1][0b11][v[1][0b10]],v[0b111][0b11][v[0b111][0b10]]end else C=0b100 H=D==C and(f.T[0x57a4]or f:W(2254502653,0xff24ae8,0x3917b9e5,0x57a4))or H+-0b10010110 end elseif H>0x9c then if H<=0b10011101 then q="c"H,q,b=0x179c8/H,v[1][0b11][v[1][0b10]],q..m g,j,u=v[0b111][0b11][v[0b111][0b10]],b,v[0b100][0b11][v[0b100][0b10]]else C=0b101 H=D==C and 0x85ee/H or(f.T[0xfb1]or f:X(0b10100111,0xfb1))end elseif H>0x9b then y=f.T[-0x29bd]or f:U(f.q"Tnh",f.q"Vg",-0x29bd)_,y=y..C,v[1][0b11][v[1][0b10]]E,H,s,G=_,f.T[0x68aa]or f:X(0x3c3,0x68aa),v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]]elseif H>0x9a then H,F=H+-0x90,1/-0 elseif H<=0x99 then _=_(y,E)C=not _ H=C and(f.T[0x7a02]or f:Y(4203861923,4203861951,0x7a02))or(f.T[-0xda4]or f:X(0x3a,-0xda4))else s=s(m,w,c)H,m=f.T[0x61a7]or f:V(0x38735ea1,0x24ab7d1b,0x13c86419,0x61a7),c end elseif H<=0x89 then if H<0b1111100 then if H<0b1110111 then if H>0x75 then B=0 D,e,A=1,0b100,B H=e~=e and(f.T[0x7a02]or f:Y(3604907774,3604907746,0x7a02))or 0x16c9a/H elseif H<=0x74 then B,H,l=d,0xa890/H,v[0b101][0b11][v[0b101][0b10]]else E=0b100011 H=_>E and(f.T[-0x2b7f]or f:V(4119074157,3310290512,0x3035a30e,-0x2b7f))or(f.T[0x3466]or f:Y(0x651af866,0x651af82a,0x3466))end elseif H<0x79 then if H<=0b1110111 then y=0b1010 H=C<y and(f.T[-0x715e]or f:X(0b10110111,-0x715e))or(f.T[-0x5fbb]or f:X(0b10101,-0x5fbb))else F=C H=k>=a and(f.T[0x4b05]or f:X(0b1110110,0x4b05))or 0x163-H end elseif H>0b1111001 then H,l=0x5586/H,A else o,e=0xa9,A H,B=f.T[-0x2a30]or f:Y(0x72cc558b,0x72cc5599,-0x2a30),e end elseif H<=0b10000101 then if H<=0x80 then if H<0b1111101 then E=0xaa H=_<=E and 0x11cd0/H or(f.T[0x2cfb]or f:X(0x226,0x2cfb))elseif H>0x7d then a,o,l,k,h=0b11001011,0b11110100,0,0b1000101,0xd7 A,B,e=0b100,l,1 H=A~=A and(f.T[0x5ac3]or f:V(2984350604,0x3d191f50,0x74c80fb6,0x5ac3))or(f.T[0x469d]or f:Y(0x59cfb237,0x59cfb07f,0x469d))else B=B+e H=e>0 and 0xb71b/H or H+0x230 end elseif H>0b10000010 then H,q=f.T[-0x1bb6]or f:V(4111858203,2684101003,0x551924b5,-0x1bb6),q(j,g)j=0b111 j=E*j else E,G,H,s,y="B",v[0b111][0b11][v[0b111][0b10]],0x1f8-H,v[0b100][0b11][v[0b100][0b10]],v[1][0b11][v[1][0b10]]end elseif H<=0b10000111 then if H<=0b10000110 then e=e+F H=F>0 and(f.T[-0x11f5]or f:X(0x31c,-0x11f5))or 0x156da/H else H,B=0x15a-H,A end else G,y,_,H,E=v[0b100][0b11][v[0b100][0b10]],"B",v[1][0b11][v[1][0b10]],0x1ed-H,v[0b111][0b11][v[0b111][0b10]]end elseif H<=0b10010001 then if H>=0x8e then if H<0b10010000 then if H<=0x8e then _=0 G,E,y=1,0b100,_ H=E~=E and(f.T[0x7b17]or f:X(0x255,0x7b17))or(f.T[-0x42d1]or f:V(4032540149,2259524040,0x69ad76a1,-0x42d1))else _,H,k,E,y,G,a=v[1][0b11][v[1][0b10]],0x13dd7/H,0x6e,v[0b111][0b11][v[0b111][0b10]],f.T[0x5c7c]or f:U(f.q"G;R",f.q"3I",0x5c7c),v[0b100][0b11][v[0b100][0b10]],0b11001111 end elseif H>0b10010000 then H=f.T[0x4c7d]or f:X(0x2e7,0x4c7d)else H,w=0x14520/H,v[0b1000][0b11][v[0b1000][0b10]]end elseif H>=0x8c then if H<=0b10001100 then _,H,y,s,E,G,m=v[0b11][0b11][v[0b11][0b10]],0x1d8-H,A,C,v[0b1011][0b11][v[0b1011][0b10]],v[0b110][0b11][v[0b110][0b10]],0x7f else C=C(_,f.i(y))y,_,B,H,E=F,v[0b1100][0b11][v[0b1100][0b10]],C,H+0b1100,0b10000000 end else H,C=f.T[0x43df]or f:X(0b100,0x43df),_ end elseif H>=0b10010110 then if H<=0x97 then if H<=0b10010110 then H,a,k,D=0x1c20/H,0xbc,0b1000111,F else k,w,m,H,s,c,a=0b101110,v[0b111][0b11][v[0b111][0b10]],"B",0xe280/H,v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]],0xc5 end else v[0b100][0b11][v[0b100][0b10]],b=b,c H,w=H+-0b1000001,b end elseif H>=0b10010100 then if H>0x94 then H,b,j,q,c=f.T[-0x5814]or f:V(3083608063,3032258348,0x310094c,-0x5814),"B",v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]]else E,k=0xaa,0b10111111 H=_>=E and(f.T[0x6d17]or f:V(0x53d844cc,0x2ac8dff3,0x29101821,0x6d17))or 0x96-H end else y=0b100 H=C>y and 0x4455/H or 0x5e2c/H end elseif H>0x30 then if H<=0b1001110 then if H>=0x44 then if H<=0x47 then if H>=0x46 then if H<=0b1000110 then B,H,A,e,l="B",f.T[0xec4]or f:Y(0xe058345,0xe0582f7,0xec4),v[0b111][0b11][v[0b111][0b10]],v[0b100][0b11][v[0b100][0b10]],v[1][0b11][v[1][0b10]]else E,H,v[0b100][0b11][v[0b100][0b10]]=y,f.T[0x1088]or f:X(0x5b,0x1088),E _=E end elseif H<=0x44 then H,A=H+0x6e,""l=A else H,y=0x4f-H,0b10111001 _=y end elseif H<0x4c then H=0xb448/H elseif H<=0b1001100 then m,H,w,c,s="B",H+0b111110101,v[0b111][0b11][v[0b111][0b10]],v[0b100][0b11][v[0b100][0b10]],v[1][0b11][v[1][0b10]]else y=0xaa H,_=H+-0b1000100,y end elseif H<0x3a then if H>=0x35 then if H>0x35 then H,F=f.T[-0x3121]or f:Y(0x7a53e0ee,0x7a53e0bb,-0x3121),C else H,G,y,_,E=0x8978/H,v[0b100][0b11][v[0b100][0b10]],"B",v[1][0b11][v[1][0b10]],v[0b111][0b11][v[0b111][0b10]]end else c,b,G,m,s,H,w=E,0b1111111,v[0b11][0b11][v[0b11][0b10]],v[0b1011][0b11][v[0b1011][0b10]],F,f.T[-0x1d3e]or f:Y(2711031736,2711031515,-0x1d3e),v[0b110][0b11][v[0b110][0b10]]end elseif H>=0b1000000 then if H<=0b1000000 then k,H,C,_,a,F,y=0b10110001,0x27b-H,"B",v[0b111][0b11][v[0b111][0b10]],0x22,v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]]else H,F=0x2e1/H,0/0 end elseif H>0x3a then F=0 y,_,C=1,0b100,F H=_~=_ and 0xb33/H or(f.T[-0x402b]or f:Y(2849943015,2849943246,-0x402b))else A=A+D H=D>0 and(f.T[0x6c8e]or f:Y(4247464811,4247464541,0x6c8e))or(f.T[-0x1cee]or f:W(2166141933,0xf8556bf,0x75db01e,-0x1cee))end elseif H<=0b1100000 then if H>0b1010111 then if H<=0x5d then if H<=0x5b then H,C=f.T[0x27fd]or f:W(0x625a1def,0x1189b067,0xafa7235,0x27fd),_ else _,v[0b100][0b11][v[0b100][0b10]]=C,_ H,F=f.T[0x35e0]or f:Y(0x258f6950,0x258f69c6,0x35e0),_ end else H=f.T[-0x20d3]or f:Y(4241780104,4241780024,-0x20d3)end elseif H>=0b1010110 then if H>0x56 then m=w H=k>=a and H+0x26 or(f.T[0x7685]or f:Y(3914083823,3914083593,0x7685))else C=0b11 H=D==C and(f.T[-0x4667]or f:Y(0x691c84f,0x691c8ea,-0x4667))or(f.T[0x147a]or f:W(0x7b3693b5,0x373e6e7,0x8d79d8,0x147a))end elseif H<=0x4f then H,C=0x3024/H,_ else _,y,s,E,H,G,C=B,v[0b1011][0b11][v[0b1011][0b10]],0b1111111,v[0b110][0b11][v[0b110][0b10]],f.T[-0x2b0d]or f:Y(4097611752,4097610890,-0x2b0d),F,v[0b11][0b11][v[0b11][0b10]]end elseif H<0b1101010 then if H<=0b1100011 then v[0b100][0b11][v[0b100][0b10]],m=m,s G=m H=k>=a and 0x4f47/H or(f.T[0x4a79]or f:W(0x1c8063d6,0x4bfdc90a,0x147aceed,0x4a79))else H,v[0b100][0b11][v[0b100][0b10]],y=0x167d/H,y,_ C=y end elseif H<0x6d then y=0x53 H,_=0x424/H,y elseif H>0x6d then D=F H=k>=a and(f.T[0x61a7]or f:V(4029793538,2896084387,0x4392bcf4,0x61a7))or(f.T[0x125d]or f:V(0x7dedded2,0x6235a3ff,0x1bb7be68,0x125d))else H,E=f.T[-0x357c]or f:X(0b101100001,-0x357c),E+C E,v[0b100][0b11][v[0b100][0b10]]=y,E F=E end elseif H<0b10101 then if H>0b1011 then if H<=0b10001 then if H<0b10000 then if H>0b1100 then e=e+F H=F>0 and 0x366f/H or(f.T[-0x7a06]or f:V(3822973977,3332832518,0x1d364e2f,-0x7a06))else y=1 H=C<y and 0x7a4/H or 0x834/H end elseif H>0b10000 then C,F,y,E,H,G,_=l,v[0b11][0b11][v[0b11][0b10]],v[0b110][0b11][v[0b110][0b10]],D,0x1f36/H,0x7f,v[0b1011][0b11][v[0b1011][0b10]]else H,E=0b1000001-H,G end elseif H>0x12 then H,E=0x121c/H,y _=E else k,A,a=0xe5,0,0x1c H=B==A and H+0x32 or(f.T[0xd60]or f:Y(3671512550,3671512330,0xd60))end elseif H<0b111 then if H<0b10 then m,v[0b100][0b11][v[0b100][0b10]]=s,m H,G=0x18f/H,m elseif H<=0b10 then c,k,s,a,H,m,w=v[0b100][0b11][v[0b100][0b10]],0b1010001,v[1][0b11][v[1][0b10]],0b10011111,f.T[0x66cc]or f:Y(0x526749bb,0x52674be5,0x66cc),"B",v[0b111][0b11][v[0b111][0b10]]else _,E,s,H,G,y,m=v[0b11][0b11][v[0b11][0b10]],v[0b1011][0b11][v[0b1011][0b10]],C,f.T[-0x42b3]or f:X(0x3f1,-0x42b3),v[0b110][0b11][v[0b110][0b10]],A,0x7f end elseif H<0b1010 then if H<=0b111 then E,H,v[0b100][0b11][v[0b100][0b10]]=y,0x91-H,E _=E else y=0b100011 H,_=f.T[-0x279a]or f:X(0b1010,-0x279a),y end elseif H>0b1010 then H,l[B]=0x88-H,F else G,E=0,{}E[0b110]=G E[0x10]=G E[0b1011]=G E[0b10]=G H,E[0b1110]=f.T[-0x6d58]or f:W(2985478385,0xadba167,0x328734a,-0x6d58),G E[0x11]=G E[0b1001]=G end elseif H>=0b100011 then if H<0x2b then if H<0x24 then H,a,k,E=0x11f-H,0xa3,0b1010001,E+G v[0b100][0b11][v[0b100][0b10]],E=E,y _=E elseif H<=0b100100 then v[0b100][0b11][v[0b100][0b10]],y=y,_ C=y H=o<h and(f.T[-0x5fbb]or f:W(0x13d7b5b7,0x18f5cd05,0x73323558,-0x5fbb))or(f.T[0x681c]or f:W(4139601662,0x5856450,0x27c9c28,0x681c))else H=H+0x340 end elseif H<0x2f then if H>0b101011 then H,B=0x14d8/H,l d=B else n,H,I,p=d,f.T[-0x410c]or f:W(0x4e403fd,0x3a9c3e70,2809394821,-0x410c),0x88,0b111100 end elseif H>0b101111 then F,C=nil,1 H=D==C and(f.T[0x77b3]or f:Y(0x4615714f,0x461571c0,0x77b3))or H+0b100110 else C=F D=C H=k>=a and(f.T[0x3ced]or f:Y(3652228183,3652228318,0x3ced))or(f.T[0x501b]or f:V(4212964210,0xaa88550,4034101718,0x501b))end elseif H>0b11010 then if H<0b11111 then H,A=f.T[0x7976]or f:X(0xb6,0x7976),B l=A elseif H<=0b11111 then H,F=f.T[-0x5303]or f:X(0x8e,-0x5303),C else v[0b100][0b11][v[0b100][0b10]],_=_,C H,F=f.T[0x7831]or f:W(0x7f1b3bf7,0x4534851e,0x3baf7b55,0x7831),_ end elseif H<0x19 then if H<=0x15 then y=0b1010 H=C<=y and 0b10101000/H or(f.T[-0x35db]or f:X(0b1001110,-0x35db))else H,I=f.T[-0x56df]or f:X(0b100110010,-0x56df),0x8e end elseif H<=0b11001 then y=0b11 H=C>y and 0x14e6/H or H+0b10100101 else q,w,c,H,b=v[0b100][0b11][v[0b100][0b10]],v[1][0b11][v[1][0b10]],"B",H+0b100010001,v[0b111][0b11][v[0b111][0b10]]end elseif H<=0x2c2 then if H<0x241 then if H>0b111101100 then if H<=0x216 then if H>0x207 then if H<0x212 then if H<=0x20c then if H>0x20b then s=s(m,w,c)H,m=H+-0x25,c else H,w=0x5a256/H,c end else H=y<E and 0x4caa6/H or(f.T[-0x1216]or f:X(0x2d7,-0x1216))end elseif H>=0x214 then if H>0x214 then H=E<G and(f.T[-0x48d2]or f:V(0x34a5717d,0x314de85c,0x357e56e,-0x48d2))or 0x136ce/H else s=s(m,w,c)H,w,m=H+-0x76,1,c m=m+w end else C=C(_,y,E)_,y=E,1 H,_=0x26f-H,_+y end elseif H>0x200 then if H>=0x206 then if H<=0x206 then s=s(m,w,c)H,m=0x39ebc/H,c else H=e~=e and(f.T[0x37a9]or f:V(0x4a8ef621,0xd1e3feb,0x3d700874,0x37a9))or H+-0xd4 end else H,s=f.T[0x4842]or f:Y(3021337917,3021337664,0x4842),s(m,w,c)m=c end elseif H<0b111110111 then if H>0b111110010 then b=b(q,j)c=not b H=c and H+-0b1101101 or 0x4bf-H else H=B>A and(f.T[0x5ac3]or f:Y(2447606909,2447606867,0x5ac3))or 0x3f19e/H end elseif H<=0b111111011 then if H>0x1f7 then H,y[0b1100]=0x130fe/H,E w,m,s,c=v[0b111][0b11][v[0b111][0b10]],"B",v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]]else H=E<G and 0x2555/H or 0x4f7-H end else H,y[0b1011]=f.T[0x11d6]or f:X(0x1e2,0x11d6),E end elseif H>=0x228 then if H>0x239 then if H<=0x23b then H,F=f.T[0x4f1f]or f:X(0xbd,0x4f1f),F(C,_,y)_,C=1,y C=C+_ else E=E+s H=s>0 and 0x4bf63/H or 0x6a09e/H end elseif H<=0x232 then if H>=0x22c then if H<=0x22c then H=F<=0 and 0x493-H or(f.T[-0xdf6]or f:Y(3357746244,3357746415,-0xdf6))else H=G<=0 and(f.T[-0x5270]or f:Y(4207544177,4207543679,-0x5270))or 0x63bfe/H end else H=f.T[-0x3d44]or f:W(2304564060,0x411b7adc,0x307a780,-0x3d44)end else _=_(y,E,G)y,E=G,0b1000 H,y=f.T[-0x17ee]or f:Y(0x7a510013,0x7a510037,-0x17ee),y+E end elseif H>=0x223 then if H>0x225 then c,H,w,m,s=v[0b100][0b11][v[0b100][0b10]],f.T[0x40d2]or f:V(4228575695,3045662032,0x46812f9c,0x40d2),v[0b111][0b11][v[0b111][0b10]],"B",v[1][0b11][v[1][0b10]]elseif H>0x223 then H=F>0 and H+-0xf9 or(f.T[0x2035]or f:W(2788261887,0x6180757,0x3747a62,0x2035))else u,r,z,g,H,i,x=w,j,v[0b1011][0b11][v[0b1011][0b10]],v[0b11][0b11][v[0b11][0b10]],0x3d2-H,0b1111111,v[0b110][0b11][v[0b110][0b10]]end elseif H>=0x21f then if H>0x21f then w=0 c,q,b=w,1,0b100 H=b~=b and(f.T[-0x4047]or f:Y(3203797888,3203797710,-0x4047))or 0x47b-H else H=E>G and(f.T[-0x48d2]or f:W(0x7abfd8d3,0x2b049c4e,0x593b84ed,-0x48d2))or 0x647ca/H end else c=c(b,q)w=not c H=w and 0x22a-H or H+0b100110 end elseif H>0b111000110 then if H<0x1dd then if H<0x1cc then if H<=0x1c8 then if H<=0b111000111 then H=m<=0 and(f.T[-0x529f]or f:W(0x70784ffb,0x891511c,0x5f0b1e3,-0x529f))or 0x45e-H else H=y>E and 0x443-H or 0x5bd88/H end else w=1 m=m+w m,v[0b100][0b11][v[0b100][0b10]]=s,m G=m H=k>w and(f.T[0x3052]or f:Y(3793276567,3793276099,0x3052))or 0x579-H end elseif H<=0x1d1 then if H>0b111001100 then w=c H=o>h and 0x552-H or H+0x132 else H=e>D and(f.T[0x6ce9]or f:W(2936372454,0x2928af6f,0x2729d0e1,0x6ce9))or H+0x9a end else H,y=0x21e-H,y(E,G)E=0b111 E=B*E end elseif H<=0b111100010 then if H<=0x1e1 then if H<=0x1e0 then if H>0b111011101 then H=G<s and(f.T[-0x29e]or f:V(0x4ae50ceb,0x34b2e561,0x1632cc65,-0x29e))or(f.T[-0x7f3f]or f:W(0x171383fe,0x3ce51e1c,2342458206,-0x7f3f))else H,y[0b1100]=0x3bf-H,E end else H=F>0 and 0x3ad-H or 0x481a6/H end else H=f.T[0x777c]or f:W(0x6eae1eff,0x4912df,0x10f85020,0x777c)end elseif H>0b111100111 then H=q~=q and(f.T[0x430]or f:X(0x18d,0x430))or 0x298f8/H elseif H<=0x1e6 then H,w=0x435-H,""s=w else w=1 m=m+w H,m,v[0b100][0b11][v[0b100][0b10]]=0x5dcf3/H,s,m G=m end elseif H>0x1bb then if H>0b111000010 then if H>0b111000101 then H=G<=0 and 0x459b8/H or(f.T[0x17ed]or f:V(0x2e2090c5,0x1ee6bff0,0xf396c8b,0x17ed))else q,o,h,v[0b100][0b11][v[0b100][0b10]]=b,0b1110100,0x5f,q c=q H=k>a and(f.T[-0x714a]or f:V(0x3858bcb8,0x318753b6,0x6d0acd2,-0x714a))or(f.T[-0x5695]or f:X(0x1d1,-0x5695))end elseif H>=0x1be then if H>0b110111110 then E=E(G)G,s=1,y m=G H=s~=s and(f.T[0x11b4]or f:Y(0x7d3b42a2,0x7d3b416e,0x11b4))or 0x579-H else H=c>b and(f.T[-0x4047]or f:Y(0x793e1542,0x793e140c,-0x4047))or(f.T[-0x3886]or f:X(0x3d8,-0x3886))end elseif H<=0b110111100 then H=C<_ and 0x1eb-H or H+-0x110 else y[0b1100]=E H=k>=a and(f.T[-0x4bb6]or f:Y(0x7e312ff6,0x7e312f56,-0x4bb6))or 0x345da/H end elseif H<0b110110010 then if H>0b110101100 then H,x=H+-0b1000100,x(r,i)r=0b111 r=c*r elseif H>0b110101010 then b=b(q,j,g)j,q=1,g H,q=0x371-H,q+j elseif H>0x1a7 then w=1 m=m+w H,m,v[0b100][0b11][v[0b100][0b10]]=0x52f-H,s,m G=m else H,z=H+0x24f,f.h(z(x,r))end elseif H<0x1b9 then if H>0x1b2 then H=q~=q and H+-0x6a or 0x12958/H else H,l=f.T[-0x6b7f]or f:V(2713738028,2620462569,0x58fd13d,-0x6b7f),l(B,A,e)A,B=1,e B=B+A end elseif H>0x1b9 then s=A[y]c,w=0,s[0b1110]m=w~=c H=m and(f.T[-0x115d]or f:W(4009616379,0xa3,0x214,-0x115d))or(f.T[0x6c63]or f:Y(0x3a064e8,0x3a067f1,0x6c63))else H=F~=F and(f.T[-0x313e]or f:Y(3300679569,3300679158,-0x313e))or H+0x73 end elseif H>=0x281 then if H>=0x2a2 then if H>=0x2b3 then if H<=0x2ba then if H<=0x2b6 then if H>=0x2b4 then if H>0x2b4 then m=m(w,f.i(c))_,H,w,c,b=m,f.T[-0x4bfd]or f:V(3149872829,2220713572,0x37621a04,-0x4bfd),v[0b1100][0b11][v[0b1100][0b10]],s,0b10000000 else _=_(y)E,y=C,1 G=y H=E~=E and(f.T[-0x6dc8]or f:W(0x780097ff,0x93cd39f,0x7a1c76dc,-0x6dc8))or(f.T[0x5f86]or f:V(3438373338,0x2257b28f,2862228789,0x5f86))end else w=s[0b1110]m=l[w]H=o>=h and(f.T[0x6c63]or f:V(2396451672,0x23d36551,0x6b02e794,0x6c63))or(f.T[0x63a4]or f:W(3672955371,0x2576b,0xce63,0x63a4))end else H=G>0 and(f.T[0x728c]or f:V(3596277107,0xfceada2,3331046262,0x728c))or 0x40d-H end elseif H<=0x2c1 then if H<=0x2be then H=y<E and 0x3fd-H or(f.T[-0x38c]or f:W(0x6fc3b7f7,0x7a11c78b,0x60e8449,-0x38c))else G=s return G end else H,s=0x511-H,w end elseif H>0x2ad then if H<0x2b1 then H=y<=0 and 0x46a-H or H+-0x202 elseif H<=0x2b1 then y=y(E,G)_=not y H=_ and H+-0x1fd or(f.T[-0x6814]or f:X(0b1111,-0x6814))else y=y(E,G,s)E,G=s,1 H,E=0x12de/H,E+G end elseif H>=0x2a9 then if H<=0x2a9 then H,b=f.T[-0x3e92]or f:V(0x755ef9a4,0x5b02064d,0x1a5c4047,-0x3e92),f.h(b(q,j))else H=e<=0 and(f.T[0x469c]or f:X(0x34c,0x469c))or(f.T[0x3a97]or f:X(0b10111111,0x3a97))end elseif H>0x2a2 then y[0b1100]=E w,s,m,H,c=v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]],"B",0x449-H,v[0b100][0b11][v[0b100][0b10]]else H=e<=0 and(f.T[0x90a]or f:V(0x2f37bd89,0xb0cf0a5,0x242a0fd0,0x90a))or 0x341-H end elseif H>0x290 then if H>=0x298 then if H>0x29f then b=b(q,j)q=0b111 H,q=f.T[0x4a22]or f:Y(3558520263,3558520650,0x4a22),y*q elseif H>0x298 then H=e<=0 and 0x68e-H or 0x621-H else H,_=H+-0x233,_(y,E,G)y,E=G,1 y=y+E end elseif H<=0x295 then if H>0x292 then y[0b1110]=E w,H,m,s,c=v[0b111][0b11][v[0b111][0b10]],0x5397e/H,"B",v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]]else y=y+G H=G>0 and H+-0b11001010 or(f.T[0x692a]or f:W(2983715641,0x48ce45d,0x993239c,0x692a))end else H=m~=m and 0x420-H or(f.T[-0x7f3f]or f:Y(4062448430,4062448212,-0x7f3f))end elseif H>0x28d then if H<=0x28f then if H<=0x28e then H,E=0x36498/H,G else H=F<=0 and(f.T[0x5f10]or f:W(0x49310ffd,0x7300257e,0xf826bed,0x5f10))or(f.T[-0x234b]or f:X(0b11001011,-0x234b))end else H,v[0b100][0b11][v[0b100][0b10]],z=f.T[-0x6264]or f:X(0x2ca,-0x6264),z,u g=z end elseif H>0x283 then H=f.T[0x4f73]or f:Y(4179581424,4179581749,0x4f73)elseif H<=0x282 then if H>0x281 then H,m=f.T[-0x5a4f]or f:V(3229652966,0x1dc889b4,2729943014,-0x5a4f),0 else H,_=0x67f-H,f.h(_(y,E))end else w=1 H,m=f.T[0x650c]or f:W(2440140733,0x814db9,0x2bfefdc4,0x650c),m+w v[0b100][0b11][v[0b100][0b10]],m=m,s G=m end elseif H>0x25e then if H>0x271 then if H>0x276 then if H>0x278 then k,E,a,y=0b100101,B,0b11110000,1 G=y H=E~=E and(f.T[-0x3cd4]or f:W(3843389951,0xdafce4c,0x2d838f3,-0x3cd4))or(f.T[-0x5d5e]or f:X(0x1a6,-0x5d5e))else w=1 m=m+w v[0b100][0b11][v[0b100][0b10]],H,m=m,0x40e-H,s G=m end elseif H<=0x274 then if H>0x272 then H=y<E and(f.T[0x7b17]or f:W(0x43990f5f,0x5e0aee49,0x5e19c4ac,0x7b17))or H+-0x25a else H,s=f.T[0x61b7]or f:V(3001337501,0x599474e0,0x595006b3,0x61b7),s(m,w,c)m=c end else H=s~=s and 0x48c-H or(f.T[0x1986]or f:X(0x36b,0x1986))end elseif H>=0x26b then if H>0x26d then w=w(c,b)m=not w H=m and(f.T[0x7b17]or f:V(0x3ee7b12c,0x28c75956,0x161fb687,0x7b17))or 0x829d8/H elseif H>0x26c then H,s=H+-0b11101100,m elseif H>0x26b then H=s>0 and(f.T[-0x7102]or f:W(3913073631,0x3cbb32c,0xc347883,-0x7102))or(f.T[-0x62a3]or f:W(4022485878,0x1e62b3,0x1da7cc,-0x62a3))else D=D(F,C,_)F=_ H=o<=h and(f.T[0x4dbe]or f:V(3224469745,2539493560,0x28d3a442,0x4dbe))or H+-0x18f end elseif H>0x267 then q=q(j,g,u)H,j=0x2b500/H,u elseif H>0x266 then H=e<D and 0x31b-H or(f.T[-0xdf6]or f:V(3308694026,0x6593289c,0x5fa2ed69,-0xdf6))else H=F~=F and(f.T[0x64a5]or f:Y(0x7184264b,0x71842484,0x64a5))or(f.T[-0x28e6]or f:W(0x496ff3bb,0x89b275c,2615466979,-0x28e6))end elseif H>=0x254 then if H<0x258 then if H>=0x255 then if H>0x255 then y=y+G H=G>0 and H+0xcb or 0x8ba8d/H else y=_ C=y H=h>=p and H+-0b110101000 or 0x643-H end else H,E=f.T[-0x27a6]or f:W(2523102779,0x1f2df351,0x9ee8fb3,-0x27a6),G end elseif H>0x25c then s=s(m,w,c)H,m,w=0x24654/H,c,1 m=m+w elseif H<0x259 then H=D~=D and(f.T[0x7a02]or f:V(0xff1f41c,0x4941f6f,0xb5d2935,0x7a02))or 0x28d-H elseif H<=0x259 then H=q>0 and 0x71916/H or 0x4830c/H else H,q=f.T[-0x63c2]or f:W(0x286b2177,0xb13bf75,0x6805ba1,-0x63c2),f.h(q(j,g))end elseif H>0x248 then if H>=0x24c then if H<=0x24c then m,w,c,H,s="B",v[0b111][0b11][v[0b111][0b10]],v[0b100][0b11][v[0b100][0b10]],f.T[-0x69ee]or f:V(0x188ea27c,0x8954db7,0xff8cf15,-0x69ee),v[1][0b11][v[1][0b10]]else H,w=0x5ef0e/H,v[0b1001][0b11][v[0b1001][0b10]]m=w[s]_[y]=m end else y=y(E,G)_=not y H=_ and 0x2c4-H or 0x13342/H end elseif H<0x243 then if H<=0x241 then s=s(m,w,c)H,w,m=f.T[0x1157]or f:V(4092496790,3924509876,0xa02f29d,0x1157),1,c m=m+w else w=w()H,E[G]=0x6d810/H,w end elseif H<=0x243 then H,E=0x3ad-H,G else H=e>0 and(f.T[0x32fd]or f:X(0b111110010,0x32fd))or 0x44f-H end elseif H<0x365 then if H<0x308 then if H>=0x2ea then if H>0x2fb then if H<=0x303 then if H>=0x300 then if H<=0x300 then H=s~=s and(f.T[-0x48d2]or f:X(0x13,-0x48d2))or(f.T[0x4dee]or f:W(0x262933ff,0xfe0c25,3616684144,0x4dee))else H,m=f.T[0x6b51]or f:X(0xd5,0x6b51),0 end elseif H>0x2fe then e=e+F H=F>0 and(f.T[0x1c68]or f:X(0x3a9,0x1c68))or(f.T[-0x6155]or f:V(0x7838f9ed,0x1cf3626c,0x5b44e441,-0x6155))else H=C>_ and 0x32d-H or 0x41d40/H end elseif H<=0x305 then H=y<E and H+-0x8a or(f.T[0x41f3]or f:X(0x222,0x41f3))else H=c>b and H+-0b110111000 or(f.T[-0x4780]or f:V(2732676248,0x62e45d77,0x3ffd8c59,-0x4780))end elseif H<0x2f6 then if H<0x2f3 then H=y>E and(f.T[-0x3cd4]or f:V(3408812314,0x57261c2,3317465791,-0x3cd4))or(f.T[0x3d14]or f:X(0x2cb,0x3d14))elseif H>0x2f3 then w=s[0b1001]H,m=f.T[0x2705]or f:W(0x1bf7432f,0x55836,0x2bf3f,0x2705),l[w]else H=F<=0 and(f.T[0x619b]or f:X(0x1a0,0x619b))or(f.T[-0x1982]or f:V(0x6d3a1a49,0x3e432550,0x2ef780e0,-0x1982))end elseif H<=0x2f9 then if H<0x2f7 then H=s<=0 and 0x5d15a/H or(f.T[0x7d2e]or f:X(0x300,0x7d2e))elseif H>0x2f7 then H=e<D and H+-0x245 or(f.T[-0x35ac]or f:V(0x68ca2993,0x36ea8ebf,0x31e0070d,-0x35ac))else H,s=f.T[-0x55ba]or f:W(2524282623,0x4650faf,0x651af240,-0x55ba),s(m,w,c)w,m=1,c m=m+w end else H=G<s and(f.T[-0x29e]or f:X(0b110001001,-0x29e))or 0x592-H end elseif H>=0x2d7 then if H>0x2df then if H<0x2e6 then H=m~=m and(f.T[0x11b4]or f:X(0x3cc,0x11b4))or 0x1a0d0/H elseif H>0x2e6 then H,m=0x3ab-H,f.h(m(w,c))else H=G>s and H+-0b101011101 or H+-0x11f end elseif H<0x2da then if H>0x2d7 then s[0b1001]=m H=p<=I and 0x6a768/H or H+-0x21a else H=G~=G and(f.T[0x7b17]or f:Y(0x49c76779,0x49c7652c,0x7b17))or 0x2f1-H end elseif H>0x2da then H=G<=0 and H+-0b110000000 or(f.T[-0x7634]or f:V(0x410770b8,0x407d5695,0x8a7712,-0x7634))else H=B<A and 0x832c/H or(f.T[0x326c]or f:Y(3938602125,3938602039,0x326c))end elseif H>=0x2cb then if H<=0x2cd then if H<=0x2cb then H=G~=G and(f.T[-0x2e15]or f:X(0x15f,-0x2e15))or H+0x14 else H=D<=0 and(f.T[0x7e09]or f:Y(0x7f860ed2,0x7f860f5c,0x7e09))or(f.T[0x562]or f:Y(0x5806abc2,0x5806a99a,0x562))end else H=e<D and 0xb3c0/H or 0x351-H end elseif H<=0x2c9 then if H>0x2c5 then G=G+m H=m>0 and(f.T[-0x4052]or f:Y(2676075672,2676076158,-0x4052))or(f.T[0x4bb8]or f:Y(2479568312,2479567999,0x4bb8))else H,c=f.T[-0x1580]or f:W(3785815030,0xd484e74,0x10ffbc4a,-0x1580),f.h(c(b,q))end else j=g H=k>a and(f.T[0b10111000]or f:V(0x2a4492d8,0x199afef4,0x10a92ffb,0xb8))or 0x5f59e/H end elseif H>=0x339 then if H<0x352 then if H>=0x347 then if H<=0x34c then if H<=0x347 then H=m<=0 and 0x9fc54/H or(f.T[-0x2963]or f:Y(0x15b681f9,0x15b6831c,-0x2963))else H=B<A and 0x427-H or(f.T[0x3a97]or f:Y(0x4d774e87,0x4d774e38,0x3a97))end else y[0b1110]=E s,c,w,H,m=v[1][0b11][v[1][0b10]],v[0b100][0b11][v[0b100][0b10]],v[0b111][0b11][v[0b111][0b10]],f.T[-0x745d]or f:Y(3548212041,3548211379,-0x745d),"B"end elseif H<0x33b then H=G<=0 and 0x4d3-H or(f.T[-0x3118]or f:Y(3166666991,3166666757,-0x3118))elseif H>0x33b then H,E=H+-0xa8,G else H=F<=0 and 0x60a-H or H+-0x2b9 end elseif H>=0x35a then if H<=0x35f then if H>0x35e then u=u(z,x)g=not u H=g and 0x4ad-H or H+0b1011001 elseif H<=0x35a then w=0 H=m==w and(f.T[-0x4f17]or f:V(2251328034,0x52bd93b4,0x3372a3ac,-0x4f17))or(f.T[0x20c8]or f:X(0x9d,0x20c8))else H=A<e and(f.T[0x7a02]or f:W(3399215389,0x4fea41b,0x2c0572c3,0x7a02))or(f.T[-0x5395]or f:W(0x11ccaab7,0x1777d3c7,0x4cb82d6e,-0x5395))end else H,E=H+-0x26f,E(G,s)G=0b111 G=A*G end elseif H>0x358 then u=u(z,x,r)x,z=1,r H,z=f.T[-0x4168]or f:V(0x1b7d8415,0x18b2b2fd,0x2ca8724,-0x4168),z+x elseif H>0x352 then y=y+G H=G>0 and(f.T[-0x5729]or f:Y(2207896458,2207896238,-0x5729))or(f.T[-0x5296]or f:Y(0x34c48c69,0x34c48e5b,-0x5296))else s=s(m,w)G=not s H=G and(f.T[0x34ec]or f:Y(0x7f7abfad,0x7f7abf82,0x34ec))or(f.T[0x5ad5]or f:V(2540655600,0x6d4022cd,0x2a2fcd31,0x5ad5))end elseif H>=0x31c then if H<=0x325 then if H>0x323 then H=m and(f.T[-0x5a4f]or f:Y(0x3ce1f0e5,0x3ce1f23d,-0x5a4f))or 0x5a7-H elseif H>0x322 then c=c(b,q,j)q,b=1,j H,b=0x3bb-H,b+q elseif H<=0x31c then H=e>D and 0x1783c/H or 0x7f4a4/H else H=y>E and(f.T[-0x3cd4]or f:X(0b100111111,-0x3cd4))or(f.T[-0x4326]or f:V(2692197911,0x21223cfa,0x7f54d40e,-0x4326))end elseif H>=0x32b then if H<=0x32b then H=y>E and 0x76347/H or(f.T[0x7b18]or f:X(0x396,0x7b18))else w=1 H,m=f.T[0x245c]or f:V(0x2cdf20fa,0x624c165,0x26badba2,0x245c),m+w m,v[0b100][0b11][v[0b100][0b10]]=s,m G=m end else H=y>0 and 0x4b0dc/H or(f.T[-0xa31]or f:V(3156240055,2967354064,0xb429f2b,-0xa31))end elseif H<0x315 then if H>=0x30b then if H>0x30b then H=G<s and H+0b11000000 or(f.T[-0x2963]or f:W(0x658066fd,0x34a9bdb1,0x4bbad536,-0x2963))else _=_(y,f.i(E))E,G,H,y,A=C,0x80,f.T[-0x7a00]or f:W(3990605775,0x367a1,0xaada,-0x7a00),v[0b1100][0b11][v[0b1100][0b10]],_ end else G=G+m H=m>0 and 0xbc510/H or(f.T[-0x4b01]or f:V(2563582116,0x27f58040,0x70d81707,-0x4b01))end elseif H<0x317 then H,E=H+-0x11a,G elseif H<=0x317 then H=D>0 and 0x2dc4b/H or(f.T[0b11110011]or f:X(0x3ed,0xf3))else p,I=0x92,0b10100010 H=m and H+-0x244 or H+-0b10110 end elseif H<0x3bb then if H>0x392 then if H>0x3a4 then if H<0x3b4 then if H<=0x3a9 then H=e>D and H+-0x369 or 0x78d-H else w=1 m=m+w m,H,v[0b100][0b11][v[0b100][0b10]]=s,f.T[0x4497]or f:Y(2428802950,2428802942,0x4497),m G=m end elseif H<=0x3b7 then if H>0x3b4 then H=m>0 and(f.T[-0x872]or f:W(3709171571,0xa1d414b,0x1622c2a6,-0x872))or(f.T[-0x1318]or f:V(0x4a622c90,0x23c268af,0x26a02b22,-0x1318))else H=e>0 and(f.T[0x2466]or f:V(0x3538640f,0x16a435f0,0x1e94a3c8,0x2466))or(f.T[-0x263c]or f:W(0x1bc62b9b,0x3bd6840a,0x6449c3a9,-0x263c))end else c=c+q H=q>0 and 0x576-H or H+0x20 end elseif H>0x398 then if H<=0x3a1 then if H>0x399 then H=e>D and H+-0x2ed or 0xcd088/H else H,E=0x6e7-H,G end else H,E=f.T[0x208f]or f:X(0x2a5,0x208f),G end elseif H<=0x396 then if H<0x394 then H=e~=e and 0x4cd88/H or(f.T[0x144c]or f:W(4241242851,0xd0becc,0x3144f2,0x144c))elseif H<=0x394 then H,w=f.T[-0x1db6]or f:X(0x217,-0x1db6),w(c,f.i(b))c,y,b,q=v[0b1100][0b11][v[0b1100][0b10]],w,m,0x80 else H=G~=G and 0x8cbf8/H or H+-0x1d0 end else H,E=f.T[-0x39b5]or f:V(0x4e956ac0,0x38471a5f,0x164ebb90,-0x39b5),G end elseif H<=0x384 then if H<=0x379 then if H>=0x36b then if H>0x371 then H=c<b and 0x4c7-H or(f.T[-0x18b9]or f:W(0x7e3d65be,0x68229735,0x195decc4,-0x18b9))elseif H<=0x36b then H=s<=0 and(f.T[-0x6c0]or f:Y(2275861554,2275862052,-0x6c0))or(f.T[0x4dee]or f:W(0x59c432b5,0x114b1dd,0x51ed7c2,0x4dee))else H=G>s and 0x73d-H or 0x756-H end elseif H<=0x365 then H,E=0xa5457/H,f.h(E(G,s))else F=F(C,_,y)C=y H=k<=a and(f.T[0x428d]or f:X(0xac,0x428d))or(f.T[0x3f87]or f:V(0x2a681cef,0xc227d16,0x1e462378,0x3f87))end elseif H>0x382 then H=G>s and(f.T[-0x29e]or f:V(2599721697,0x6d4f1167,0x2da51665,-0x29e))or(f.T[-0x6c0d]or f:X(0xc7,-0x6c0d))elseif H<=0x381 then j,b,q,g,H,u,c=v[0b110][0b11][v[0b110][0b10]],E,v[0b1011][0b11][v[0b1011][0b10]],w,f.T[-0x7eb8]or f:V(3454666697,0x226123dd,2877920867,-0x7eb8),0x7f,v[0b11][0b11][v[0b11][0b10]]else H=e~=e and 0xa15c/H or(f.T[0x326c]or f:X(0b10111010,0x326c))end elseif H<=0x38f then if H>=0x38b then if H<=0x38b then y[0b1011]=E c,H,w,s,m=v[0b100][0b11][v[0b100][0b10]],0x8a9e6/H,v[0b111][0b11][v[0b111][0b10]],v[1][0b11][v[1][0b10]],"B"else H=E>G and 0x439d/H or(f.T[-0x62a3]or f:W(0x27640afe,0x2a4c090e,0x26472d68,-0x62a3))end elseif H>0x385 then H=F<=0 and H+-0b10001111 or H+-0x28d else H,E=0x4fa-H,G end elseif H<=0x391 then H=y~=y and 0xa79f/H or(f.T[0x428d]or f:V(3945057785,0x48ce42c8,2723557161,0x428d))else H,s=f.T[-0x662c]or f:X(0x278,-0x662c),s(m,w,c)m=c end elseif H>=0x3e2 then if H<0x3ee then if H>=0x3e5 then if H>0x3ea then H=D~=D and 0xd3806/H or(f.T[-0x3a73]or f:X(0b100001011,-0x3a73))elseif H>=0x3e8 then if H>0x3e8 then w=1 m=m+w m,v[0b100][0b11][v[0b100][0b10]]=s,m G=m H=I>=w and 0x8da3e/H or(f.T[-0x6aa5]or f:W(0x3db61f7a,0x73773f66,0x4cca6188,-0x6aa5))else H=y~=y and 0x5a4-H or(f.T[0x3dc1]or f:W(0xaea82ee,0x579db50a,2372117925,0x3dc1))end else H=m~=m and 0x7bc-H or H+-0x2cc end elseif H>=0x3e3 then if H>0x3e3 then H=F<=0 and H+-0b110 or(f.T[-0x2deb]or f:W(0x7dd067ff,0x5d498b87,0x22dd75e7,-0x2deb))else H,s=0xf367e/H,s(m,w,c)m=c end else H=G>s and 0x7ae-H or(f.T[-0x4b01]or f:Y(3222955492,3222955683,-0x4b01))end elseif H<=0x3f6 then if H<=0x3f1 then if H>0x3ef then G=G(s,m)s=0b111 s=e*s H=k<m and 0x416-H or(f.T[-0x69e9]or f:V(2590531056,2513408068,0x49952f5,-0x69e9))elseif H>0x3ee then H=B<A and 0x41d-H or 0xdcc5e/H else _,k,a,H,y,h,o=v[0b101][0b11][v[0b101][0b10]],0x90,0b11101101,0xa9f58/H,C,0b101111,0b1000100 end else g=g(u,f.i(z))u,x,z,H,w=v[0b1100][0b11][v[0b1100][0b10]],0x80,j,0x755-H,g end elseif H<=0x3fd then if H<=0x3fa then H,s=H+-0b1001011,s(m,w,c)m=c else H=e>D and 0x476-H or 0xf4087/H end else H,F=f.T[0x236d]or f:V(0x6bfcba0b,0x642d29fb,0x7ceddc7,0x236d),F(C,f.i(_))l,C,_,y=F,v[0b1100][0b11][v[0b1100][0b10]],D,0b10000000 end elseif H>0x3cf then if H>0x3d7 then if H<=0x3d8 then H=q<=0 and(f.T[0x6ba0]or f:W(0x147fbff9,3343635478,0x20b42f63,0x6ba0))or(f.T[-0x18b9]or f:X(0b110111000,-0x18b9))else H=e<D and 0xf780/H or(f.T[-0x2deb]or f:Y(0x407bcf0,0x407bd9e,-0x2deb))end elseif H<=0x3d6 then if H<=0x3d4 then if H<=0x3d3 then H=F~=F and(f.T[0x619b]or f:W(3375558647,0x10535877,0x79a929,0x619b))or(f.T[0x3608]or f:Y(2362104023,2362104356,0x3608))else H=G~=G and(f.T[-0x3cd4]or f:V(2436731209,0x1a4b277c,0x76f20556,-0x3cd4))or(f.T[-0x7634]or f:X(0b110111011,-0x7634))end else H,E=0x525-H,G end else H=G<s and(f.T[0x11b4]or f:Y(4115479862,4115480314,0x11b4))or 0x467-H end elseif H>=0x3c8 then if H<0x3cd then if H<=0x3c8 then H,y=f.T[-0x6ff9]or f:X(0x47,-0x6ff9),y(E,G,s)G,E=1,s E=E+G else H,s=f.T[-0x7ad7]or f:V(0x53493db8,0x45649b81,0xde4e85c,-0x7ad7),{}s[0b11010]=E s[0b1000]=F m=0 s[0b111]=m s[0x19]=m s[0b1010]=_ s[0b11100]=D s[0x12]=A s[0x18]=e end elseif H>0x3cd then H,_=0x680-H,_(y,f.i(E))A,y,E,G=_,v[0b1100][0b11][v[0b1100][0b10]],C,0b10000000 else H=B>A and(f.T[0x5ac3]or f:Y(3307646964,3307646938,0x5ac3))or(f.T[0x3f55]or f:V(4249441372,2398532975,0x6e5334f8,0x3f55))end elseif H>=0x3c3 then if H>0x3c3 then v[0b100][0b11][v[0b100][0b10]],m=m,s H,G=0x75f-H,m else y=y(E,G,s)E=s H=k<=a and(f.T[0x67d]or f:X(0b1101101,0x67d))or 0x748-H end else H=G<=0 and(f.T[-0x6a7f]or f:V(0x7a1775da,0x6c2ed0bd,0xde8fb03,-0x6a7f))or(f.T[-0x38c]or f:W(0x72d1e7f6,0x204ce75,0x9fb3568,-0x38c))end until false end end,function(f,j)return function(n)local b,_,h,o,m,a,k,i,d,l,g,e,p b=0xb6 repeat if b<0b10110110 then if b>0b100110 then h=0b1010101 p,m,a,o,_,h=l,n,d*h,l,n.sub,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~"b,_=0xba,_(m,o,p)o,m,k,h=true,1,h,h.find h=h(k,_,m,o)a,e=1,a+h d=e-a else l,i,e,g=j[1][0b11][j[1][0b10]],j[0b10][0b11][j[0b10][0b10]],0b11000,d i=i(g,e)a,e,h,g=d,j[0b10][0b11][j[0b10][0b10]],0x10,j[0b11][0b11][j[0b11][0b10]]e=e(a,h)a=0b11111111 g=g(e,a)k,e,h,a=0b1000,j[0b11][0b11][j[0b11][0b10]],d,j[0b10][0b11][j[0b10][0b10]]a=a(h,k)h=0xff e=e(a,h)a,h,k=j[0b11][0b11][j[0b11][0b10]],d,0b11111111 a=f.h(a(h,k))l=f.h(l(i,g,e,f.i(a)))return f.i(l)end elseif b<=0xb6 then l,d,i=1,0,0b101 g=l b=(i~=i or(g>0 and l>i or(g<=0 or g~=g)and l<i))and 0x26 or 0x3d else l=l+g b=(g>0 and l>i or g<=0 and l<i or g~=g)and 0x26 or 0x3d end until false end end,function(f)local t,n,e,p,M,H,W,z,s,o,x,L,J,q,j,E,c,P,b,B,O,u,N,S,Q,d,i,U,m,G,C,A,y,w,R,I,V,T,h,l,_,D,g,F,K,k H=f.T[0x1c9d]or f:V(0x31dae2fd,0x1b6b4210,0x166f1c3f,0x1c9d)repeat if H<=0b10101100 then if H<=0b1101101 then if H<0x2c then if H<=0x1f then if H>0x16 then H=U>m and 0xd0-H or 0x7df/H else t,h,n=0b1111001,0b11001111,f n={[0b10]=1,[1]=n}n[0b11]=n Q,T,e,S,F,d,B=f._[f.T[-0x68b0]or f:U(f.q"2<`?R=pF",f.q"YKwa",-0x68b0)],f._[f.T[-0x1b27]or f:U(f.q"B@i?pIR",f.q"b5#",-0x1b27)],f._[f.T[0x1f48]or f:U(f.q"JaZ*rKL",f.q"5=;",0x1f48)],f._[f.T[0x3dd4]or f:U(f.q"8E1!Z0BVeP",f.q"1?dQF",0x3dd4)],f._[f.T[0x69e5]or f:U(f.q"H0$-F$Eqg!;H=KO",f.q"-lEQdjz<",0x69e5)],f._[f.T[0x255d]or f:U(f.q"hkJu(",f.q"0`m",0x255d)],f._[f.T[0x509a]or f:U(f.q"I2|tlF8",f.q"Z(R",0x509a)]H,F=f.T[0x195f]or f:V(3758065224,0x3d3a000,3693845005,0x195f),{[0b10]=1,[1]=F}F[0b11]=F C=f._[f.T[0x6697]or f:U(f.q"3u8NfQ4$SuE^t@_",f.q"W;7B{25b",0x6697)]end else U=U+u H=u>0 and(f.T[0x60e2]or f:W(4135978984,0xada50b,0xb29355,0x60e2))or(f.T[0x1878]or f:W(0x3ed224ef,0x7986ddcc,0x77a3531,0x1878))end elseif H<=0x60 then if H>=0b1000001 then if H<=0b1000001 then H=u~=u and(f.T[0x77ce]or f:W(0x2088239c,0x41f00afe,0x1d3505de,0x77ce))or(f.T[0x4b05]or f:X(0x76,0x4b05))else H=U>m and(f.T[-0x6d58]or f:W(0x1e65c2b5,0x3d4a9c33,0x634f9cbe,-0x6d58))or 0x58e0/H end else E={[0b10]=1,[1]=E}E[0b11]=E L=M M=L[f.T[-0x559d]or f:U(f.q"&)m(%",f.q"w5$",-0x559d)]M={[0b10]=1,[1]=M}M[0b11]=M J=L L,w=J[f.T[-0x67e8]or f:U(f.q"q!gmJ8mj",f.q"!+FC",-0x67e8)],f._[f.T[0x7194]or f:U(f.q"FGx8>J^",f.q"DO&",0x7194)]J=w[f.T[-0x927]or f:U(f.q"tmn7w",f.q"h`|",-0x927)]J={[0b10]=1,[1]=J}J[0b11]=J c=w H=A>=l and H+0b1011111 or(f.T[0x195f]or f:V(0x434fa2ad,0xbcc7f7,0x429256f1,0x195f))end else p,s,G,N,u=0b111,0b10,0b100,0,0b11 O[0b101],O[0b111],O[0b10],O[0b11],O[0b1000],O[0b100],O[0b110],O[1]=s,G,U,m,p,u,N,I V,U,m,I=O,f:P{M,g,E},f:N(),{}H=A<=p and 0x152-H or 0x119-H end elseif H<0b10001011 then if H>0x76 then H=u~=u and(f.T[-0x6d58]or f:V(4159672880,4078099612,0x4dc5189,-0x6d58))or(f.T[0x1750]or f:W(3420452796,0x1e0fc8b,0x21f0c29,0x1750))else H=u<=0 and(f.T[0x77ce]or f:V(2258722694,0x42cff65,2188698713,0x77ce))or 0x12a-H end elseif H>0b10011100 then _,u,p,s,N,G=f:K(),f:H(),f:J(),f:I{M,g,E},f:M(),f:L()I[0b10],I[1],I[0b101],I[0b11],I[0b100],I[0b111],I[0b110],I[0b1000]=m,U,N,u,s,p,G,_ U,O,m={},I,0b111 H=l<=m and(f.T[0x3681]or f:V(2479845537,2343785543,0x81c7861,0x3681))or H+0b11000 elseif H>0x8b then H=U<m and(f.T[-0x6d58]or f:W(0x7bbc9eb5,0x71688cf9,0x1297d3ba,-0x6d58))or(f.T[0x1750]or f:Y(0x5ab03c71,0x5ab03cc5,0x1750))else A,w,l=0x39,c[f.T[-0x621f]or f:U(f.q"D8M_)",f.q"p;!",-0x621f)],0x33 w={[0b10]=1,[1]=w}w[0b11]=w b=c c=b[f.T[0x59a3]or f:U(f.q"!Flx6bng",f.q"gcq~",0x59a3)]c={[0b10]=1,[1]=c}c[0b11]=c q=b b=q[f.T[-0x5ba9]or f:U(f.q"@nj40Vha",f.q"ZWfX",-0x5ba9)]b={[0b10]=1,[1]=b}b[0b11]=b j=q q=j[f.T[-0x6699]or f:U(f.q"zmglXjvN",f.q"X#Ca",-0x6699)]H=t<=h and(f.T[-0x234b]or f:V(0x7e4f629f,0x2a929b68,0x53bd4388,-0x234b))or(f.T[0x1c9d]or f:V(0x156fbf3c,0xb1e8dac,0xa5075e2,0x1c9d))end elseif H>=0b11001011 then if H>0xe5 then if H>0xed then l,A=0b11001110,0xc5 i={[0b10]=1,[1]=i}i[0b11]=i k=f._ k={[0b10]=1,[1]=k}k[0b11]=k R=f:O{w,F,b,g,P,c,k,J,n,i}R={[0b10]=1,[1]=R}R[0b11]=R U,m,o,I,H,O=0b1010,1,f:F{W,R},0b1100,f.T[0x67d]or f:W(3492906493,0x1fab7e13,0xee2fc5a,0x67d),{}else H=u<=0 and(f.T[0x40f3]or f:Y(0x64f7202b,0x64f720e7,0x40f3))or(f.T[0x44e6]or f:W(0xaa82277,0xd70bbbe,0x2e29e39,0x44e6))end elseif H<=0b11100001 then if H<=0xcc then if H<=0xcb then t,h=0xc3,0b11010101 q={[0b10]=1,[1]=q}q[0b11]=q g=f._[f.T[-0x740d]or f:U(f.q"Q8h<z0R",f.q"Tr&",-0x740d)]j=g[f.T[0x1898]or f:U(f.q"E+ak",f.q"Oa",0x1898)]j={[0b10]=1,[1]=j}j[0b11]=j K=g g=K[f.T[-0x21b8]or f:U(f.q"wQRU%",f.q"6xR",-0x21b8)]g={[0b10]=1,[1]=g}g[0b11]=g z=K K=z[f.T[0x1879]or f:U(f.q"U-wh;",f.q"mOT",0x1879)]K={[0b10]=1,[1]=K}K[0b11]=K H=A<=l and(f.T[0x1750]or f:V(3377042628,0x63f2ed57,0x65563b7d,0x1750))or(f.T[0x3681]or f:V(3178804935,2224594024,0x38df6e66,0x3681))else H=U<m and 0x8d0c/H or 0x143-H end else A,l,y,E=0b1011011,0b110101,{},f.T[0x4ca8]or f:U(f.q"n4J",f.q"?f",0x4ca8)y[f.T[-0x6485]or f:U(f.q"3<eZDJsb",f.q"d0A5",-0x6485)]=E P=y P={[0b10]=1,[1]=P}P[0b11]=P H,E=f.T[0x4f8d]or f:V(0x755b404e,0x2f48f0bc,0x46130c0a,0x4f8d),f._[f.T[0x56f8]or f:U(f.q"Q?j2)sEP",f.q"?ZzM",0x56f8)]y=E[f.T[0x59a3]or f:U(f.q"N-}L;KXw",f.q"9b7*",0x59a3)]y={[0b10]=1,[1]=y}y[0b11]=y M=E E=M[f.T[0x69a4]or f:U(f.q"YOZ{;",f.q"*9Z",0x69a4)]end else m,u=#O,U H=m~=m and(f.T[-0x6d58]or f:X(0xb1,-0x6d58))or 0xaadb/H end elseif H>0b10110100 then if H<=0b10111111 then H=u>0 and(f.T[-0x4547]or f:V(0x5e8e3f2,0x27467f1,0x373f758,-0x4547))or(f.T[0x3714]or f:W(4245425915,0x5214e6,0xf6b5b,0x3714))else u,N,D,s,_,p,G=1,0b1000,0b100,0b101,0b10,0b110,0b11 U[0b100],U[1],U[0b111],U[0b110],U[0b11],U[0b10],U[0b101],U[0b1000]=N,m,_,p,s,u,G,D H,U,I=f.T[-0x3895]or f:V(0x3b28a5d7,0x2087e2c2,0x1aa036d4,-0x3895),u,U end elseif H>=0xb1 then if H<=0xb1 then return o else H,N=0xdf-H,I[U]N,s=O[U],V[N]i[0b11][i[0b10]][s]=N end else x=z z=x[f.T[0x7885]or f:U(f.q"?vUx1_y",f.q"<ct",0x7885)]z={[0b10]=1,[1]=z}z[0b11]=z W=x x=W[f.T[0x54f0]or f:U(f.q"Pva9x_74",f.q"dypd",0x54f0)]x={[0b10]=1,[1]=x}x[0b11]=x W={[0b10]=1,[1]=W}W[0b11]=W k,W[0b11][W[0b10]]={},f:G{y,z,K,x,q,b,j,n}i=k H=t>=h and H+0 or 0b110100110-H end until false end,function(a,b,c,d,e)a.T[e]=-b+(d+(a.a(a.a(d,0xffff),a.a(0xffff,c))*a.b(a.a(0xffff,d),a.a(c,0xffff))+a.a(a.d(a.a(c,0xffff)),a.a(d,0xffff))*a.a(a.d(a.a(d,0xffff)),a.a(0xffff,c))-a.a(c,0xffff)*a.a(d,0xffff)+a.d(a.d(c))+-a.a(a.b(d,c),c))+-a.c(b,a.b(b,4294967295))+a.d(d)+a.d(a.b(a.d(b),a.d(a.a(4294967295,d+c)))))return a.T[e]end,function(f,j)return function(n,d)local h,e,r,o,a,p,k,c,i,l,q,_,b b=0x84 repeat if b>=0x91 then if b>=0xb0 then if b<=0b11101001 then if b<0xdc then if b<=0b10110000 then b=e~=e and 0xdc or 0b1011000 else b=0xec end elseif b<=0xdc then b=i<r and 0x87c8/b or 0xc83c/b else a,_,k,h,b,q=j[1][0b11][j[1][0b10]],n,j[0b11][0b11][j[0b11][0b10]],j[0b10][0b11][j[0b10][0b10]],0x48,1 end elseif b<=0b11101100 then a=a(f.i(h))b,l=0x91,l..a else b,_=b+-0xdf,f.h(_(q,o))end elseif b<0x9d then if b<=0b10010001 then i=i+e b=e>0 and b+-0b1111000 or 0b1110010 else b=e~=e and 0b100110001-b or 0b11101001 end elseif b<=0b10011110 then if b<=0b10011101 then c=#d p=i%c b,o=0x18f-b,o-p else return l end else b=e>0 and 0x82 or 0x7590/b end elseif b<0b1011000 then if b<0x19 then if b<=0b1101 then e=h b=r~=r and b+0b10010001 or 0b10101011 else b,h=0xe0-b,f.h(h(k,f.i(_)))end elseif b<0x22 then b=i>r and 0xb7-b or b+0b1011001 elseif b<=0x22 then k=k(_,q)q,_,b,o=d,j[0b11][0b11][j[0b11][0b10]],0x9d,#d else b,q=0x22,i+q end elseif b>=0b10000010 then if b<0x84 then b=i>r and 0x120-b or 0xb0 elseif b<=0x84 then b,i,l,a,h=0b1101,0,"",#n,1 r=a-h else b=i<r and 0x129-b or b+0b1000 end elseif b>0x58 then b=e<=0 and 0b10001011 or b+0b100001 else b=e<=0 and 0b11011100 or 0b11101001 end until false end end,function(f,j)return function(c)local b,a,e,h,l,i,d,g b=0xef while true do if b>=0x74 then if b>=0b11101111 then if b>0b11101111 then b=e and 0x7318/b or 0b111 else l,i=#c,0b101 d,l=l%i,0 b=d>l and 0x61 or 0xa3 end elseif b<=0x74 then l,i=l.sub,l l=f.h(l(i,g,e))return f.i(l)else i,e,l,g=c,f:s{j[0b10],j[0b100],j[0b11]},j[1][0b11][j[1][0b10]],"....."l=l(i,g,e)g,e=1,0 e=d>e b=e and 0xd5-b or 0xa1ba/b end elseif b>0x32 then g,l=0b101,"~"g,l,i=g-d,l.rep,l b,l=0b10100011,l(i,g)c=c..l elseif b<=0b111 then b,e=0b1111011-b,-1 else h=0b101 a=h-d a,e=1,-a b,e=0xfe,e-a end end end end}):l({"p","W","E","s","Q","M","F","S","u","_","a","t","I","q","b","c","Y","k","X","U","T","O","H","V","o","G","L","P","K","J","N","d","R","_a","r"},"_a",...)
Executor compatibility changes over time. Check current reports before testing.

Script #15 ESP & More

Script #15 · ESP & MoreFree
ESPAimbotNoclip
loadstring(game:HttpGet("https://riftscripts.up.railway.app/api/v1/hub"))()
Executor compatibility changes over time. Check current reports before testing.

Script #16 Script Beta & More (WEEK 2 x BUTCHER Update)

Script #16 · Script Beta & MoreFree
Script Beta
loadstring(game:HttpGet("https://flowauth.net/v1/loaders/Nexaraloader.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #17 Auto Bot & More

Script #17 · Auto Bot & MoreFree
Auto BotGen + EscapeMulti GeneratorDistance from KillerCancel GenAuto Escape
loadstring(game:HttpGet("https://pastefy.app/9jxnhnM3/raw"))()

if not game:IsLoaded() then
	game.Loaded:Wait()
end

local tbl

tbl = {
	Players = game:GetService("Players"),
	UserInputService = game:GetService("UserInputService"),
	Lighting = game:GetService("Lighting"),
	RunService = game:GetService("RunService"),
	CoreGui = game:GetService("CoreGui"),
	ReplicatedStorage = game:GetService("ReplicatedStorage"),
	VirtualInputManager = game:GetService("VirtualInputManager"),
	VirtualUser = game:GetService("VirtualUser"),
	HttpService = game:GetService("HttpService"),
	Stats = game:GetService("Stats"),
	Workspace = game:GetService("Workspace"),
	TeleportService = game:GetService("TeleportService"),
	GuiService = game:GetService("GuiService"),
	RbxAnalytics = game:GetService("RbxAnalyticsService"),
	LocalPlayer = game:GetService("Players").LocalPlayer,
	Terrain = game:GetService("Workspace").Terrain,
	Camera = workspace.CurrentCamera,
}

local Debris
Debris = game:GetService("Debris")
local remotes
remotes = tbl.ReplicatedStorage:WaitForChild("Remotes", 10)
local repairEvent, skillCheckResultEvent
local generator = remotes and remotes:FindFirstChild("Generator")
repairEvent = generator and generator:FindFirstChild("RepairEvent")
skillCheckResultEvent = generator and generator:FindFirstChild("SkillCheckResultEvent")
local parry, flag, expired, userThumbnailAsync, tbl2, tbl3, tbl4, tbl5, tbl6, tbl7
local tbl8, tbl9, str, v, humanoidRootPart, humanoid, tbl10, lib, str2, verifyKeyAccess
local _playerCache
local sendNotif, tbl11, refreshPlayerList, initCharacter, getTeamRole, isPlayerKiller, isPlayerSurvivor, getLocalRootPart, getDistanceTo, getNearestKillerDist
local isKnockedOrHooked, isIncapacitated, canSafeParry, teleportToExit, setSkipCutscene, setAutoPallet

do
	local palletDropEvent = remotes and remotes:FindFirstChild("Pallet") and remotes.Pallet:FindFirstChild("PalletDropEvent")
	parry = remotes and remotes:FindFirstChild("Items") and remotes.Items:FindFirstChild("Parrying Dagger") and remotes.Items["Parrying Dagger"]:FindFirstChild("parry")
	flag = false
	expired = "Unknown"
	userThumbnailAsync = tbl.Players:GetUserThumbnailAsync(tbl.LocalPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)

	tbl2 = {
		icon = "",
		name = "PerplexWare",
		version = "V2.5 (เห้ยๆอย่ามา skid ของกู)",
		dc = "https://dsc.gg/PerplexWarehub/",
		tt = "ไม่มี (None)",
	}

	tbl3 = {
		AUTO_AutoSurvivor = false,
		AUTO_Generator = false,
		AUTO_LeaveDist = 45,
		TP_Offset = 5,
		Pistol_CustomSound = false,
		Pistol_SelectedSound = "Sound 1",
		ESP_Master = false,
		ESP_Player = false,
		ESP_Killer = false,
		ESP_SCP = false,
		ESP_Name = false,
		ESP_NameG = false,
		ESP_Outline = false,
		ESP_ItemIcon = false,
		ESP_MaxDistance = 200,
		ESP_Generator = false,
		ESP_Pallet = false,
		ESP_Hook = false,
		ESP_Gate = false,
		ESP_Window = false,
		ESP_KillerWarn = false,
		Killer_SpamHit = false,
		Killer_SpamHitRadius = 15,
		Killer_SpamHitDelay = 100,
		Killer_HitEspCircle = true,
		Killer_BreakSpeed = 1,
		Killer_BypassCarry = false,
		Killer_WalkSpeedToggle = false,
		Killer_WalkSpeed = 16,
		Killer_AttackMode = "BasicAttack",
		Killer_3rdPerson = false,
		Killer_CameraMode = "Classic",
		Killer_InfAbyssal = false,
		Killer_InfLunge = false,
		Killer_InfLungeV2 = false,
		Anti_Blind = false,
		Show_Stun = false,
		Surv_Parry = false,
		Surv_ParryV2 = false,
		Surv_ParryCircle = true,
		Surv_ParryAggressive = false,
		Surv_ParrySafety = false,
		Surv_ParryRadius = 15,
		Surv_AutoParry = false,
		Surv_ParryMethod = "Legit",
		ESP_Chroma = false,
		ESP_HighestGen = false,
		ESP_InjuredColor = true,
		Surv_PingParry = false,
		Surv_ParryFace = 0.7,
		Ignored_Skills_List = {},
		Surv_GodMode = false,
		Surv_SelfHeal = false,
		Surv_AuraHeal = false,
		Surv_AutoCancelGene = false,
		Surv_DoubleGen = false,
		Surv_AutoSprint = false,
		Surv_Bandage = false,
		Surv_SoundDbd = false,
		Surv_AutoSkillCheck = false,
		Surv_SkillCheckMode = "Legit",
		Surv_SkillFrequency = 10,
		Surv_SkillSpeed = 1,
		Surv_PerfectSkill = true,
		Surv_NoSkill = false,
		Surv_Perks = false,
		Surv_SpeedBoost = 1.1,
		Surv_VaultSpeed = 1.3,
		Surv_SpeedAfterVault = false,
		Surv_FastVault = false,
		Surv_PerfectVault = false,
		Surv_AutoCrouch = false,
		Surv_NoFall = false,
		Surv_AutoFlee = false,
		Surv_FleeDistance = 30,
		Surv_AutoPallet = false,
		Surv_AutoPalletRadius = 10,
		Surv_AutoPalletSM = true,
		Surv_AutoPalletSF = false,
		Surv_CrouchV = false,
		Surv_Spdb = false,
		Surv_QuickRecoveryCD = 15,
		Surv_FlowstateCD = 20,
		Surv_Fov = false,
		Surv_FOV_Value = 70,
		Aimbot_Enabled = false,
		Aimbot_ShowFOV = true,
		Aimbot_Radius = 150,
		Aimbot_MaxDist = 300,
		Aimbot_Smoothness = 0.5,
		Aimbot_Predict = 0.01,
		Aim_Silent = false,
		Aim_Lock = false,
		Predict = false,
		SmartPredict = false,
		AIM_TargetPart = "Torso",
		Pistol_Target = "Killer",
		Pistol_PredictLead = 3.5,
		Pistol_AimOffset = -1,
		Pistol_BlockKnocked = true,
		Pistol_FOVMode = false,
		Pistol_ShowFOV = false,
		Pistol_FOV = 150,
		Pistol_ShowLaser = true,
		Flash_Silent = false,
		Flash_YOffset = 8,
		Aim_SilentVeil = false,
		Veil_ShowFOV = true,
		Veil_LeadMultiplier = 1.7,
		Veil_FOV = 150,
		Veil_ShowLaser = true,
		SPEAR_Auto = false,
		SPEAR_Speed = 165,
		SPEAR_Gravity = workspace.Gravity * 0.5,
		SPEAR_MaxDist = 200,
		Crosshair_Enabled = false,
		Crosshair_Type = "Cross",
		Crosshair_Color = Color3.new(0, 1, 0),
		Crosshair_Size = 4,
		Crosshair_OffsetX = 0,
		Crosshair_OffsetY = 0,
		Misc_Invisible = false,
		Misc_FakeName = false,
		Misc_FakeAttributes = false,
		Misc_CopyAvatar = false,
		Misc_Noclip = false,
		Misc_FlyToggle = false,
		Misc_FlySpeed = 10,
		Misc_HighJump = false,
		Misc_JumpPower = 50,
		Misc_InfJump = false,
		Misc_InfiniteZoom = false,
		Misc_Fullbright = false,
		Misc_Potato = false,
		Misc_SkipCutscene = false,
		Misc_SmoothCam = false,
		Misc_CamHeight = -1,
		Misc_CamStiffness = 9.5,
		Misc_SmoothHDR = false,
		Next_Map = true,
	}

	tbl4 = {}
	tbl4.Level = tbl.LocalPlayer:GetAttribute("Level") or 0
	tbl4.Gears = tbl.LocalPlayer:GetAttribute("Gears") or 0
	tbl4.Screws = tbl.LocalPlayer:GetAttribute("Screws") or 0

	tbl5 = {
		["122812055447896"] = "Veil lunge",
		["133963973694098"] = "Mayers Basic",
		["117042998468241"] = "Mayers lunge",
		["135002183282873"] = "cure lunge",
		["121216847022485"] = "cure Basic",
		["132817836308238"] = "Jeff Basic",
		["129784271201071"] = "Jeff lunge",
		["82666958311998"] = "Jeff Frenzy",
		["78432063483146"] = "Abyssal Basic",
		["118907603246885"] = "Abyssal lunge",
		["139369275981139"] = "Jason Basic",
		["110355011987939"] = "Jason lunge",
		["111920872708571"] = "Masked Basic",
		["105374834496520"] = "Masked lunge",
		["138720291317243"] = "Masked Tony",
		["106871536134254"] = "Masked Alex",
		["130593238885843"] = "Masked Cobra",
		["115244153053858"] = "Masked Cobra lunge",
		["74968262036854"] = "Hidden Basic",
		["113255068724446"] = "Hidden lunge",
		["98163597193511"] = "Hidden S1",
		["80411309607666"] = "Abyssal S1",
	}

	tbl6 = {
		Unloaded = false,
		OriginalSpeed = 16,
		isPredicting = false,
		CutsceneConn = nil,
		CharCutscene = nil,
		FleeThread = nil,
		RandomMode_IsNormal = false,
		AutoSprintThread = nil,
		OriginalLighting = nil,
		CurrentPing = 0,
		QuickRecoveryOnCD = false,
		FlowstateOnCD = false,
		HookF = false,
		Bandage = false,
		isAimLocking = false,
		currentTarget = nil,
		lockTimerThread = nil,
		lastNoclipChar = nil,
		lastUpdate = 0,
		ChromaHue = 0,
		KillerPosHistory = {},
		KillerVelocity = {},
		lastSpam = 0,
		spearSwitchCooldown = false,
		SpearModeConn = nil,
		StunConn = nil,
		CurrentTeleportGen = nil,
		CurrentTeleportPlayer = nil,
		CurrentTeleportHook = nil,
		CurrentTeleportGate = nil,
		KillerTarget = nil,
		SpamHit = nil,
		autoParry = nil,
		CrosshairUI = nil,
		WatermarkUI = nil,
		ItemESPs = {},
		FlyConnection = nil,
		FollowConnection = nil,
		InfiniteZoomConn = nil,
		ThirdPersonCamConn = nil,
		blockThread = nil,
		AutoPalletThread = nil,
		VaultBoostThread = nil,
		Pv2Con = nil,
		lungeV2Connection = nil,
		ParryCooldown = false,
		ParryCooldownTime = 50,
		RepairEngineRunning = false,
		VaultBoostActive = false,
		AutoFollow = false,
		isHoldingLunge = false,
		isAttackCd = false,
		isHolding = false,
		cachedNoclipParts = {},
		ActiveAnimations = {},
		SpooferConns = {},
		TeamConnections = {},
		DroppedPallets = {},
		TrackV2 = {},
		touchLunge = nil,
		currentTouch = nil,
		locked = nil,
	}

	tbl7 = {
		Colors = {
			SCP = Color3.fromRGB(150, 0, 255),
			Player = Color3.fromRGB(0, 255, 100),
			Killer = Color3.fromRGB(255, 0, 0),
			Generator = Color3.fromRGB(255, 255, 0),
			GeneratorDone = Color3.fromRGB(0, 255, 0),
			Pallet = Color3.fromRGB(255, 128, 0),
			Hook = Color3.fromRGB(255, 105, 180),
			Gate = Color3.fromRGB(255, 255, 255),
			Window = Color3.fromRGB(0, 150, 255),
			GeneratorDone = Color3.fromRGB(100, 255, 100),
			Injured = Color3.fromRGB(255, 180, 30),
		},
		Bones_R6 = {
			{ "Head", "Torso" },
			{ "Torso", "Left Arm" },
			{ "Torso", "Right Arm" },
			{ "Torso", "Left Leg" },
			{ "Torso", "Right Leg" },
		},
	}

	tbl8 = {
		isChargingSpear = false,
		isChargingPistol = false,
		isAimingFlash = false,
		currentTouchInput = nil,
		isAimbotHolding = false,
		lockedAimbotTarget = nil,
	}

	tbl9 = {
		Visibility = {},
		Generators = {},
		Pallets = {},
		Hooks = {},
		Gates = {},
		Windows = {},
		SCPs = {},
	}

	str = "Spectator"
	v = nil
	humanoidRootPart = nil
	humanoid = nil

	tbl10 = {
		WEB = "Built by https://perplexware.vercel.app",
		SCRIPT = "https://perplexware.vercel.app",
		keyFile = "VD_KeySave.txt",
		cache = "PerplexWareHub/Log/KeyCache.json",
		srvID = "0",
		plaS = "Huh?",
	}
	local function refreshMapData()
		local str3 = "Unknown"

		pcall(function()
			if gethwid then
				str3 = gethwid()
			else
				str3 = tbl.RbxAnalytics:GetClientId()
			end
		end)

		return str3
	end

	local v2 = refreshMapData()
	str2 = ""

	pcall(function()
		if isfile(tbl10.keyFile) then
			local v3 = readfile(tbl10.keyFile)

			if v3 then
				str2 = v3:match("^%s*(.-)%s*$") or v3
			end
		end
	end)

	local function toHex(arg)
		return (arg:gsub(".", function(arg2)
			return string.format("%02X", string.byte(arg2))
		end))
	end

	local function fromHex(arg)
		return (arg:gsub("..", function(arg2)
			return string.char(tonumber(arg2, 16))
		end))
	end

	local function setSmoothHDR(arg, arg2, arg3, arg4)
		local tbl12 = { key = arg, username = arg2, keyExpired = arg3, isVip = arg4, timestamp = os.time(), hwid = v2 }

		pcall(function()
			local json = tbl.HttpService:JSONEncode(tbl12)
			local v3 = toHex(json)
			writefile(tbl10.cache, v3)
		end)
	end

	local function blockWindowsPallets()
		if isfile(tbl10.cache) then
			local ok, result = pcall(function()
				local v3 = readfile(tbl10.cache)
				local v4 = fromHex(v3)
				return tbl.HttpService:JSONDecode(v4)
			end)

			if ok and result and type(result) == "table" then
				if result.hwid == v2 then
					return result
				end

				pcall(function()
					delfile(tbl10.cache)
				end)

				return nil
			end

			pcall(function()
				delfile(tbl10.cache)
			end)
		end

		return nil
	end

	verifyKeyAccess = function(arg)
		flag = true
		expired = "Trial"
		return true, "Trial for Free", expired
	end


	sendNotif = function(arg, arg2, arg3)
		pcall(function()
			if getgenv().VindUI then
				getgenv().VindUI:Notify({ Title = "nice auth", Text = tostring(arg), Type = "info", Duration = arg2 or 3 })
			end
		end)
	end

	tbl11 = {}
	_playerCache = {}

	refreshPlayerList = function()
		table.clear(tbl11)
		for _, player in ipairs(tbl.Players:GetPlayers()) do
			if player ~= tbl.LocalPlayer then table.insert(tbl11, player) end
		end
	end

	local function cacheCharacter(player, character)
		local cache = _playerCache[player]
		if not cache then return end
		if character then
			local h = character:FindFirstChildOfClass("Humanoid")
			cache.character = character
			cache.hrp = character:FindFirstChild("HumanoidRootPart")
			cache.humanoid = h
			cache.animator = h and h:FindFirstChildOfClass("Animator")
			if h then
				h.ChildAdded:Connect(function(child)
					if child:IsA("Animator") then
						local c2 = _playerCache[player]
						if c2 then c2.animator = child end
					end
				end)
			end
		else
			cache.character = nil
			cache.hrp = nil
			cache.humanoid = nil
			cache.animator = nil
		end
	end

	local function playerIsKiller(player)
		return player.Team ~= nil and player.Team.Name == "Killer"
	end

	local function onPlayerAdded(player)
		if player == tbl.LocalPlayer then return end
		_playerCache[player] = { isKiller = playerIsKiller(player) }
		table.insert(tbl11, player)
		player:GetPropertyChangedSignal("Team"):Connect(function()
			local c = _playerCache[player]
			if c then c.isKiller = playerIsKiller(player) end
		end)
		player.CharacterAdded:Connect(function(ch) cacheCharacter(player, ch) end)
		player.CharacterRemoving:Connect(function() cacheCharacter(player, nil) end)
		if player.Character then cacheCharacter(player, player.Character) end
	end

	local function onPlayerRemoving(player)
		_playerCache[player] = nil
		refreshPlayerList()
	end

	for _, player in ipairs(tbl.Players:GetPlayers()) do onPlayerAdded(player) end
	tbl.Players.PlayerAdded:Connect(onPlayerAdded)
	tbl.Players.PlayerRemoving:Connect(onPlayerRemoving)

	initCharacter = function(arg)
		v = arg
		humanoidRootPart = arg:WaitForChild("HumanoidRootPart", 3)
		humanoid = arg:WaitForChild("Humanoid", 3)

		if humanoid then
			tbl6.OriginalSpeed = humanoid.WalkSpeed
		end

		if tbl6.TeamLabel then
			pcall(function()
				tbl6.TeamLabel:Set("Team: " .. (tbl6.cachedRole or str or "Unknown"))
			end)
		end
	end

	getTeamRole = function()
		return str
	end

	isPlayerKiller = function(arg)
		return arg and arg.Team and arg.Team.Name == "Killer"
	end

	isPlayerSurvivor = function(arg)
		return arg and arg.Team and arg.Team.Name == "Survivors"
	end

	getLocalRootPart = function()
		return humanoidRootPart
	end

	getDistanceTo = function(arg)
		local selfHrp = humanoidRootPart
		if not selfHrp then return math.huge end
		return (arg - selfHrp.Position).Magnitude
	end

	getNearestKillerDist = function()
		local selfHrp = humanoidRootPart
		if not selfHrp then return math.huge end
		local selfPos = selfHrp.Position
		local minDist = math.huge
		for _, cache in pairs(_playerCache) do
			if cache.isKiller and cache.hrp and cache.hrp.Parent then
				local d = (cache.hrp.Position - selfPos).Magnitude
				if d < minDist then minDist = d end
			end
		end
		return minDist
	end

	isKnockedOrHooked = function(arg)
		if not arg then
			return false
		end
		return arg:GetAttribute("Knocked") == true or arg:GetAttribute("IsHooked") == true
	end

	isIncapacitated = function(arg)
		if not arg then
			return true
		end
		local playerFromCharacter = tbl.Players:GetPlayerFromCharacter(arg)
		if playerFromCharacter and playerFromCharacter:GetAttribute("IsDead") then
			return true
		end

		if arg:GetAttribute("IsCarried") or arg:GetAttribute("IsHooked") or arg:GetAttribute("Knocked") then
			return true
		end
		local checkInterractable = arg:FindFirstChild("CheckInterractable")

		if checkInterractable then
			for _, v3 in ipairs({
				"isVaulting",
				"isSliding",
				"isDroppingPallet",
				"isRepairing",
				"isHealing",
				"isUnhooking",
				"isExiting",
			}) do
				if checkInterractable:GetAttribute(v3) == true then
					return true
				end
			end
		end

		return false
	end

	canSafeParry = function(arg)
		if not tbl3.Surv_ParrySafety then
			return true
		end

		if not arg then
			return false
		end
		local checkInterractable = arg:FindFirstChild("CheckInterractable")

		if checkInterractable then
			if checkInterractable:GetAttribute("isVaulting") == true then
				return false
			end

			if checkInterractable:GetAttribute("isRepairing") == true then
				return false
			end

			if checkInterractable:GetAttribute("isUnhooking") == true then
				return false
			end

			if checkInterractable:GetAttribute("isHealing") == true then
				return false
			end

			if checkInterractable:GetAttribute("isSliding") == true then
				return false
			end
		end

		return true
	end

	teleportToExit = function()
		local v3 = getLocalRootPart()
		local map = tbl.Workspace:FindFirstChild("Map")
		if not v3 or not map then
			return false
		end
		local position = nil

		pcall(function()
			for _, descendant in ipairs(map:GetDescendants()) do
				local v4 = string.lower(descendant.Name)

				if v4 == "fininshline" or v4 == "finishline" or string.find(v4, "finish") then
					if descendant:IsA("BasePart") then
						position = descendant.Position
						break
					elseif descendant:IsA("Model") then
						local basePart = descendant:FindFirstChildWhichIsA("BasePart")
						if basePart then
							position = basePart.Position
							break
						end
					end
				end
			end

			if not position then
				if map:FindFirstChild("RooftopHitbox") or map:FindFirstChild("Rooftop") then
					position = Vector3.new(3098.16, 454.04, -4918.74)
				elseif map:FindFirstChild("HooksMeat") then
					position = Vector3.new(1546.12, 152.21, -796.72)
				elseif map:FindFirstChild("churchbell") then
					position = Vector3.new(760.98, -20.14, -78.48)
				else
					for _, descendant in ipairs(map:GetDescendants()) do
						if descendant:IsA("MeshPart") and descendant.Material == Enum.Material.Limestone then
							position = Vector3.new(-947.9, 152.12, -7579.52)
							break
						elseif descendant:IsA("MeshPart") and descendant.Material == Enum.Material.Leather then
							position = Vector3.new(1546.12, 152.21, -796.72)
							break
						end
					end
				end
			end
		end)

		if position then
			v3.CFrame = CFrame.new(position + Vector3.new(0, 3, 0))
			return true
		end
		return false
	end

	local function setupSkillCheckSync(character)
		if not character then
			return
		end

		task.spawn(function()
			local cutscene = character:WaitForChild("cutscene", 5)

			if cutscene and cutscene:IsA("LocalScript") then
				if tbl3.Misc_SkipCutscene then
					cutscene.Disabled = true
				end

				if tbl6.CutsceneConn then
					tbl6.CutsceneConn:Disconnect()
				end

				tbl6.CutsceneConn = cutscene:GetPropertyChangedSignal("Disabled"):Connect(function()
					if tbl3.Misc_SkipCutscene and not cutscene.Disabled then
						cutscene.Disabled = true
					end
				end)
			end
		end)
	end

	setSkipCutscene = function(miscSkipCutscene)
		tbl3.Misc_SkipCutscene = miscSkipCutscene
		local character = tbl.LocalPlayer.Character

		if miscSkipCutscene then
			if character then
				setupSkillCheckSync(character)
			end

			if tbl6.CharCutscene then
				tbl6.CharCutscene:Disconnect()
			end

			tbl6.CharCutscene = tbl.LocalPlayer.CharacterAdded:Connect(setupSkillCheckSync)
		else
			if tbl6.CutsceneConn then
				tbl6.CutsceneConn:Disconnect()
				tbl6.CutsceneConn = nil
			end

			if tbl6.CharCutscene then
				tbl6.CharCutscene:Disconnect()
				tbl6.CharCutscene = nil
			end

			if character then
				local cutscene = character:FindFirstChild("cutscene")

				if cutscene and cutscene:IsA("LocalScript") then
					cutscene.Disabled = false
				end
			end
		end
	end

	setAutoPallet = function(survAutoPallet)
		tbl3.Surv_AutoPallet = survAutoPallet

		if survAutoPallet then
			if tbl6.AutoPalletThread then
				task.cancel(tbl6.AutoPalletThread)
			end

			tbl6.AutoPalletThread = task.spawn(function()
				while tbl3.Surv_AutoPallet and not tbl6.Unloaded do
					task.wait(0.1)

					if palletDropEvent then
						local character = tbl.LocalPlayer.Character
						local v3 = getLocalRootPart()

						if v3 and character then
							local flag2 = character:GetAttribute("IsHooked") == true or character:GetAttribute("isHooked") == true
							local flag3 = character:GetAttribute("isCarried") == true or character:GetAttribute("IsCarried") == true or character:GetAttribute("Carried") == true
							local flag4 = (character:GetAttribute("Knocked") == true or character:GetAttribute("isKnocked") == true) and not flag3
							local flag5

							if flag2 or flag4 then
								flag5 = false
							else
								local survAutoPalletSM = flag3 and tbl3.Surv_AutoPalletSM
								flag5 = true

								if survAutoPalletSM then
									flag5 = false
								end
							end

							if flag5 then
								local tbl12 = {}

								for _, v4 in ipairs(tbl11) do
									if isPlayerKiller(v4) and v4.Character then
										local humanoidRootPart2 = v4.Character:FindFirstChild("HumanoidRootPart")

										if humanoidRootPart2 then
											table.insert(tbl12, { root = humanoidRootPart2, char = v4.Character })
										end
									end
								end

								if #tbl12 > 0 then
									for _, pallet in ipairs(tbl9.Pallets) do
										local model = pallet.model
										local trigger = pallet.trigger
										local palletPointSlide

										if trigger then
											palletPointSlide = trigger
										elseif model then
											palletPointSlide = model:FindFirstChild("PalletPointSlide", true) or model:FindFirstChild("PalletPoint", true)
										else
											palletPointSlide = model
										end

										if model and model.Parent and palletPointSlide and not tbl6.DroppedPallets[model] then
											local magnitude = (v3.Position - palletPointSlide.Position).Magnitude
											local flag6 = false

											for _, v4 in ipairs(tbl12) do
												local magnitude2 = (v4.root.Position - palletPointSlide.Position).Magnitude
												local flag7 = v4.char:GetAttribute("IsCarrying") == true or v4.char:GetAttribute("isCarrying") == true

												if flag3 then
													if magnitude <= tbl3.Surv_AutoPalletRadius or magnitude2 <= tbl3.Surv_AutoPalletRadius then
														flag6 = true
														break
													else
														flag6 = false
													end
												elseif flag7 and tbl3.Surv_AutoPalletSF then
													if not (magnitude2 <= 6.5) then
														flag6 = false
													else
														flag6 = true
														break
													end
												elseif magnitude <= tbl3.Surv_AutoPalletRadius and magnitude2 <= tbl3.Surv_AutoPalletRadius then
													flag6 = true
													break
												else
													flag6 = false
												end
											end

											if flag6 then
												pcall(function()
													palletDropEvent:FireServer(palletPointSlide)
												end)

												tbl6.DroppedPallets[model] = true
											end
										end
									end
								end
							end
						end
					end
				end
			end)
		else
			if tbl6.AutoPalletThread then
				task.cancel(tbl6.AutoPalletThread)
				tbl6.AutoPalletThread = nil
			end

			table.clear(tbl6.DroppedPallets)
		end
	end
end

local refreshMapData

do
	local flag2 = false
	local n = 0

	refreshMapData = function(arg)
		if flag2 then
			return
		end

		if not arg and os.clock() - n < 3 then
			return
		end
		flag2 = true
		n = os.clock()
		table.clear(tbl9.Generators)
		table.clear(tbl9.Windows)
		table.clear(tbl9.Pallets)
		table.clear(tbl9.Hooks)
		table.clear(tbl9.Gates)
		table.clear(tbl9.SCPs)
		table.clear(tbl6.DroppedPallets)
		local descendants = tbl.Workspace:GetDescendants()

		for i, descendant in ipairs(descendants) do
			if i % 300 == 0 then
				task.wait()
			end

			if descendant:IsA("Model") then
				local v2 = string.lower(descendant.Name)

				if v2 == "generator" then
					local basePart = descendant:FindFirstChildWhichIsA("BasePart")

					if basePart then
						table.insert(tbl9.Generators, { model = descendant, part = basePart })
					end
				elseif v2 == "hook" and descendant:FindFirstChild("HookPoint") then
					table.insert(tbl9.Hooks, descendant)
				elseif v2 == "gate" and descendant:FindFirstChild("ExitLever") then
					table.insert(tbl9.Gates, descendant)
				elseif v2 == "window" then
					table.insert(tbl9.Windows, descendant)
				elseif string.match(v2, "^scp") then
					table.insert(tbl9.SCPs, descendant)
				end
			elseif descendant:IsA("BasePart") and descendant.Name == "PrimaryPartPallet" then
				local parent = descendant.Parent

				if parent then
					local flag3 = false

					for _, pallet in ipairs(tbl9.Pallets) do
						if pallet.model == parent then
							flag3 = true
							break
						end
					end

					if not flag3 then
						table.insert(tbl9.Pallets, {
							model = parent,
							trigger = parent:FindFirstChild("PalletPointSlide", true) or parent:FindFirstChild("PalletPoint", true),
						})
					end
				end
			end
		end

		flag2 = false
	end
end

if tbl.CoreGui:FindFirstChild("WM") then
	tbl.CoreGui:FindFirstChild("WM"):Destroy()
end

tbl6.WatermarkUI = Instance.new("ScreenGui")
tbl6.WatermarkUI.Name = "WM"
tbl6.WatermarkUI.Parent = tbl.CoreGui
tbl6.WatermarkUI.IgnoreGuiInset = true
tbl6.WatermarkUI.Enabled = true
tbl6.WatermarkUI.ResetOnSpawn = false
local frame
frame = Instance.new("Frame")
frame.Name = "Bubble"
frame.Size = UDim2.new(0, 140, 0, 22)
frame.Position = UDim2.new(0.5, 0, 0.95, 0)
frame.AnchorPoint = Vector2.new(0.5, 0.5)
frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
frame.BackgroundTransparency = 0.28
frame.Active = true
frame.Parent = tbl6.WatermarkUI
local uiCorner = Instance.new("UICorner")
uiCorner.CornerRadius = UDim.new(0, 11)
uiCorner.Parent = frame
local textLabel

do
	local uiStroke = Instance.new("UIStroke")
	uiStroke.Color = Color3.fromRGB(255, 255, 255)
	uiStroke.Thickness = 1
	uiStroke.Parent = frame
	uiStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
	uiStroke.Transparency = 0.55
	local uiPadding = Instance.new("UIPadding")
	uiPadding.PaddingLeft = UDim.new(0, 8)
	uiPadding.PaddingRight = UDim.new(0, 8)
	uiPadding.Parent = frame
	textLabel = Instance.new("TextLabel")
	textLabel.Size = UDim2.new(1, 0, 1, 0)
	textLabel.BackgroundTransparency = 1
	textLabel.Font = Enum.Font.GothamSemibold
	textLabel.TextSize = 11
	textLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
	textLabel.TextTransparency = 0.05
	textLabel.Text = "kult | FPS: ... | Ping: ..."
	textLabel.Parent = frame
end

if getgenv().Tixo_SpectatorUI then
	getgenv().Tixo_SpectatorUI:Destroy()
end

local textLabel2, frame2

do
	local coreGui = pcall(function()
		return tbl.CoreGui.Name
	end) and tbl.CoreGui or tbl.Players.LocalPlayer:WaitForChild("PlayerGui")

	local screenGui = Instance.new("ScreenGui")
	screenGui.Name = "SpcGui"
	screenGui.ResetOnSpawn = false
	screenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
	screenGui.Enabled = true
	getgenv().Tixo_SpectatorUI = screenGui
	local frame3 = Instance.new("Frame")
	frame3.Name = "MainBox"
	frame3.AnchorPoint = Vector2.new(0.5, 1)
	frame3.Position = UDim2.new(0.5, 0, 0, -10)
	frame3.Size = UDim2.new(0, 50, 0, 18)
	frame3.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
	frame3.BackgroundTransparency = 0.3
	frame3.BorderSizePixel = 0
	frame3.Parent = screenGui
	local uiGradient = Instance.new("UIGradient")
	local numberSequence = NumberSequence.new
	local tbl12 = {}
	local v2 = NumberSequenceKeypoint.new(0, 1)
	local v3 = NumberSequenceKeypoint.new(0.2, 0.3)
	local v4 = NumberSequenceKeypoint.new(0.8, 0.3)
	local new = NumberSequenceKeypoint.new
	tbl12[1] = v2
	tbl12[2] = v3
	tbl12[3] = v4

	do
		local values = table.pack(new(1, 1))
		table.move(values, 1, values.n, 4, tbl12)
	end

	uiGradient.Transparency = numberSequence(tbl12)
	uiGradient.Parent = frame3
	local uiCorner2 = Instance.new("UICorner")
	uiCorner2.CornerRadius = UDim.new(0, 11)
	uiCorner2.Parent = frame3
	local uiStrokeSpc = Instance.new("UIStroke")
	uiStrokeSpc.Color = Color3.fromRGB(255, 255, 255)
	uiStrokeSpc.Thickness = 1
	uiStrokeSpc.Transparency = 0.55
	uiStrokeSpc.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
	uiStrokeSpc.Parent = frame3
	local uiListLayout = Instance.new("UIListLayout")
	uiListLayout.FillDirection = Enum.FillDirection.Horizontal
	uiListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
	uiListLayout.VerticalAlignment = Enum.VerticalAlignment.Center
	uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
	uiListLayout.Padding = UDim.new(0, 6)
	uiListLayout.Parent = frame3
	local imageLabel = Instance.new("ImageLabel")
	imageLabel.Name = "Icon"
	imageLabel.LayoutOrder = 1
	imageLabel.Size = UDim2.new(0, 14, 0, 14)
	imageLabel.BackgroundTransparency = 1
	imageLabel.Image = "rbxassetid://13321848320"
	imageLabel.ImageColor3 = Color3.fromRGB(255, 255, 255)
	imageLabel.Parent = frame3
	textLabel2 = Instance.new("TextLabel")
	textLabel2.Name = "Count"
	textLabel2.LayoutOrder = 2
	textLabel2.Size = UDim2.new(0, 0, 1, 0)
	textLabel2.AutomaticSize = Enum.AutomaticSize.X
	textLabel2.BackgroundTransparency = 1
	textLabel2.Font = Enum.Font.GothamMedium
	textLabel2.Text = "0"
	textLabel2.TextColor3 = Color3.fromRGB(255, 255, 255)
	textLabel2.TextSize = 12
	textLabel2.Parent = frame3
	screenGui.Parent = coreGui
	frame2 = Instance.new("Frame")
	frame2.Name = "NextKillerBox"
	frame2.AnchorPoint = Vector2.new(0.5, 0)
	frame2.Position = UDim2.new(0.5, 0, frame3.Position.Y.Scale, frame3.Position.Y.Offset + 20)
	frame2.Size = UDim2.new(0, 150, 0, 18)
	frame2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
	frame2.BackgroundTransparency = 0.3
	frame2.BorderSizePixel = 0
	frame2.Parent = screenGui
end

do
	local uiGradient = Instance.new("UIGradient")
	local numberSequence = NumberSequence.new
	local tbl12 = {}
	local v2 = NumberSequenceKeypoint.new(0, 1)
	local v3 = NumberSequenceKeypoint.new(0.2, 0.3)
	local v4 = NumberSequenceKeypoint.new(0.8, 0.3)
	local new = NumberSequenceKeypoint.new
	tbl12[1] = v2
	tbl12[2] = v3
	tbl12[3] = v4

	do
		local values = table.pack(new(1, 1))
		table.move(values, 1, values.n, 4, tbl12)
	end

	uiGradient.Transparency = numberSequence(tbl12)
	uiGradient.Parent = frame2
end

local uiCorner2 = Instance.new("UICorner")
uiCorner2.CornerRadius = UDim.new(0, 11)
uiCorner2.Parent = frame2
do
	local uiStrokeNK = Instance.new("UIStroke")
	uiStrokeNK.Color = Color3.fromRGB(255, 255, 255)
	uiStrokeNK.Thickness = 1
	uiStrokeNK.Transparency = 0.55
	uiStrokeNK.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
	uiStrokeNK.Parent = frame2
end
local textLabel3
textLabel3 = Instance.new("TextLabel")
textLabel3.Name = "KillerText"
textLabel3.Size = UDim2.new(1, 0, 1, 0)
textLabel3.BackgroundTransparency = 1
textLabel3.Font = Enum.Font.GothamMedium
textLabel3.Text = "Next Killer: ..."
textLabel3.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel3.TextSize = 12
textLabel3.Parent = frame2

if tbl.CoreGui:FindFirstChild("FovC") then
	tbl.CoreGui:FindFirstChild("FovC"):Destroy()
end

local frame3
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FovC"
screenGui.Parent = tbl.CoreGui
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
frame3 = Instance.new("Frame")
frame3.BackgroundTransparency = 1
frame3.AnchorPoint = Vector2.new(0.5, 0.5)
frame3.Position = UDim2.new(0.5, 0, 0.5, 0)
frame3.Visible = false
frame3.Parent = screenGui
local uiCorner3 = Instance.new("UICorner")
uiCorner3.CornerRadius = UDim.new(1, 0)
uiCorner3.Parent = frame3
local uiStroke
uiStroke = Instance.new("UIStroke")
uiStroke.Color = Color3.fromRGB(255, 255, 255)
uiStroke.Thickness = 0.75
uiStroke.Parent = frame3
local screenGui2
screenGui2 = Instance.new("ScreenGui")
screenGui2.Name = "TargetUI"
screenGui2.Parent = tbl.CoreGui
screenGui2.IgnoreGuiInset = true
screenGui2.Enabled = false
local frame4
frame4 = Instance.new("Frame")
frame4.Name = "TargetMainBox"
frame4.Size = UDim2.new(0, 100, 0, 25)
frame4.Position = UDim2.new(0.5, 0, 0.8, 0)
frame4.AnchorPoint = Vector2.new(0.5, 0.5)
frame4.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
frame4.BackgroundTransparency = 0.28
frame4.ZIndex = 100
frame4.Parent = screenGui2
local uiCorner4 = Instance.new("UICorner")
uiCorner4.CornerRadius = UDim.new(0, 11)
uiCorner4.Parent = frame4
local uiStroke2 = Instance.new("UIStroke")
uiStroke2.Color = Color3.fromRGB(255, 255, 255)
uiStroke2.Transparency = 0.45
uiStroke2.Thickness = 1
uiStroke2.Parent = frame4
local textLabel4
textLabel4 = Instance.new("TextLabel")
textLabel4.Size = UDim2.new(1, -40, 1, -15)
textLabel4.Position = UDim2.new(0, 10, 0, 5)
textLabel4.BackgroundTransparency = 1
textLabel4.Font = Enum.Font.GothamSemibold
textLabel4.TextSize = 12
textLabel4.TextColor3 = Color3.fromRGB(255, 255, 255)
textLabel4.Text = "Target: Killer"
textLabel4.TextXAlignment = Enum.TextXAlignment.Left
textLabel4.ZIndex = 101
textLabel4.Parent = frame4
local textButton
textButton = Instance.new("TextButton")
textButton.Size = UDim2.new(0, 20, 0, 20)
textButton.AnchorPoint = Vector2.new(0.5, 0.5)
textButton.Position = UDim2.new(0.85, 0, 0.5, 0)
textButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
textButton.Text = ">"
textButton.Font = Enum.Font.GothamBold
textButton.TextSize = 16
textButton.TextColor3 = Color3.fromRGB(0, 0, 0)
textButton.ZIndex = 102
textButton.Parent = frame4
local uiCorner5 = Instance.new("UICorner")
uiCorner5.CornerRadius = UDim.new(0, 6)
uiCorner5.Parent = textButton
local frame5
frame5 = Instance.new("Frame")
frame5.Size = UDim2.new(1, 0, 0, 15)
frame5.Position = UDim2.new(0, 0, 1, 5)
frame5.AnchorPoint = Vector2.new(0, 0.5)
frame5.BackgroundTransparency = 1
frame5.Active = true
frame5.ZIndex = 103
frame5.Parent = frame4

do
	local frame6 = Instance.new("Frame")
	frame6.Size = UDim2.new(0, 60, 0, 4)
	frame6.Position = UDim2.new(0.5, 0, 0.5, 0)
	frame6.AnchorPoint = Vector2.new(0.5, 0.5)
	frame6.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
	frame6.ZIndex = 104
	frame6.Parent = frame5
	local uiCorner6 = Instance.new("UICorner")
	uiCorner6.CornerRadius = UDim.new(1, 0)
	uiCorner6.Parent = frame6
end

local flag2
flag2 = false
local v2
v2 = nil
local position
position = nil
local position2
position2 = nil
local updateWatermarkDrag

updateWatermarkDrag = function(arg)
	local n = arg.Position - position
	frame.Position = UDim2.new(position2.X.Scale, position2.X.Offset + n.X, position2.Y.Scale, position2.Y.Offset + n.Y)
end

local updateSpectatorCount

updateSpectatorCount = function()
	local n = 0

	for _, player in ipairs(tbl.Players:GetPlayers()) do
		if player.Team and player.Team.Name == "Spectator" then
			n = n + 1
		end
	end

	textLabel2.Text = tostring(n)
end

local setSmoothHDR, blockWindowsPallets, connection, connection2, setupSkillCheckSync, applySmoothCamera, activateNoCooldown, activateSlasherInvis, setupPistolSound, activateDashLock
local applyFakeName, removeFakeName, runAutoRepair, cancelAutoRepair, findBestGenerator, doAutoFlee, teleportToGenerator, setDoubleGen, hopToNewServer, clearESPByType
local clearAllESP, setupSpearStunTracking, applySkillSoundSwap, updateTeamRole

do
	local function renderSCPESP()
		if tbl.LocalPlayer.Team and tbl.LocalPlayer.Team.Name == "Spectator" then
			if not tbl6.isPredicting then
				tbl6.isPredicting = true
				frame2.Visible = true

				task.spawn(function()
					while tbl6.isPredicting and not tbl6.Unloaded do
						local n = -1
						local v3 = nil

						for _, player in ipairs(tbl.Players:GetPlayers()) do
							local attribute = player:GetAttribute("AllowKiller")
							local attribute2 = player:GetAttribute("KillerChance")

							if attribute == true and type(attribute2) == "number" then
								if attribute2 > n then
									n = attribute2
									v3 = player
								end
							end
						end

						if not v3 then
							local n2 = -1

							for _, player in ipairs(tbl.Players:GetPlayers()) do
								local attribute = player:GetAttribute("KillerChance")

								if type(attribute) == "number" then
									if n2 < attribute then
										n2 = attribute
										v3 = player
									end
								end
							end
						end

						if v3 then
							local selectedKiller = v3:FindFirstChild("SelectedKiller")
							textLabel3.Text = string.format("Killer: %s (%s)", v3.Name, selectedKiller and selectedKiller.Value or v3:GetAttribute("SelectedKiller") or "Unknown")
						else
							textLabel3.Text = "Killer: Tidak ada data"
						end

						task.wait(1)
					end
				end)
			end
		else
			tbl6.isPredicting = false
			frame2.Visible = false
		end
	end

	setSmoothHDR = function(arg)
		local Lighting = game:GetService("Lighting")
		local Workspace = game:GetService("Workspace")

		if arg then
			Lighting.GlobalShadows = true
			Lighting.ClockTime = 12
			Lighting.Brightness = 3.2
			Lighting.ExposureCompensation = 0.1
			Lighting.OutdoorAmbient = Color3.fromRGB(230, 230, 230)
			Lighting.Ambient = Color3.fromRGB(210, 210, 210)
			Lighting.ColorShift_Top = Color3.fromRGB(255, 255, 255)
			Lighting.ColorShift_Bottom = Color3.fromRGB(255, 255, 255)
			Lighting.EnvironmentDiffuseScale = 1
			Lighting.EnvironmentSpecularScale = 1
			Lighting.FogStart = 50
			Lighting.FogEnd = 500
			Lighting.FogColor = Color3.fromRGB(210, 210, 210)

			for _, child in ipairs(Lighting:GetChildren()) do
				if child:IsA("Atmosphere") or child:IsA("BloomEffect") or child:IsA("SunRaysEffect") then
					child:Destroy()
				end
			end

			local bloomEffect = Instance.new("BloomEffect")
			bloomEffect.Name = "Estetik_Bloom"
			bloomEffect.Intensity = 0.05
			bloomEffect.Size = 24
			bloomEffect.Threshold = 2
			bloomEffect.Parent = Lighting
			local sunRaysEffect = Instance.new("SunRaysEffect")
			sunRaysEffect.Name = "Estetik_SunRays"
			sunRaysEffect.Intensity = 0.04
			sunRaysEffect.Spread = 0.1
			sunRaysEffect.Parent = Lighting
			local atmosphere = Instance.new("Atmosphere")
			atmosphere.Name = "Estetik_Atmosphere"
			atmosphere.Density = 0.45
			atmosphere.Offset = 0.25
			atmosphere.Color = Color3.fromRGB(210, 210, 210)
			atmosphere.Decay = Color3.fromRGB(150, 150, 150)
			atmosphere.Glare = 0.2
			atmosphere.Haze = 2.5
			atmosphere.Parent = Lighting

			for _, descendant in ipairs(Workspace:GetDescendants()) do
				if descendant:IsA("BasePart") then
					descendant.Material = Enum.Material.SmoothPlastic
					descendant.Reflectance = 0
				end
			end

			local hdrColor = Lighting:FindFirstChild("HDR_Color") or Instance.new("ColorCorrectionEffect")
			hdrColor.Name = "HDR_Color"
			hdrColor.Saturation = 0.45
			hdrColor.Contrast = 0.15
			hdrColor.Brightness = 0.03
			hdrColor.TintColor = Color3.fromRGB(255, 255, 255)
			hdrColor.Parent = Lighting
		else
			if Lighting:FindFirstChild("HDR_Color") then
				Lighting.HDR_Color:Destroy()
			end

			if Lighting:FindFirstChild("Estetik_Bloom") then
				Lighting.Estetik_Bloom:Destroy()
			end

			if Lighting:FindFirstChild("Estetik_SunRays") then
				Lighting.Estetik_SunRays:Destroy()
			end

			if Lighting:FindFirstChild("Estetik_Atmosphere") then
				Lighting.Estetik_Atmosphere:Destroy()
			end

			Lighting.FogEnd = 100000
		end
	end

	blockWindowsPallets = function(arg)
		if not remotes then
			return
		end
		local window = remotes:FindFirstChild("Window")
		local pallet = remotes:FindFirstChild("Pallet")

		if window then
			for _, window2 in ipairs(tbl9.Windows) do
				if window2 and window2.Parent then
					if arg then
						local vaultTrigger = window2:FindFirstChild("VaultTrigger", true)

						if vaultTrigger then
							pcall(function()
								window:FindFirstChild("VaultEvent"):FireServer(vaultTrigger, true)
							end)
						end
					else
						local vaultPointInUse = window2:FindFirstChild("VaultPointInUse", true)

						if vaultPointInUse then
							pcall(function()
								window:FindFirstChild("VaultCompleteEvent"):FireServer(vaultPointInUse, false)
							end)
						end
					end
				end
			end
		end

		if pallet then
			for _, pallet2 in ipairs(tbl9.Pallets) do
				if pallet2 and pallet2.Parent then
					if arg then
						local palletPointSlide = pallet2:FindFirstChild("PalletPointSlide", true)

						if palletPointSlide then
							pcall(function()
								pallet:FindFirstChild("PalletSlideEvent"):FireServer(palletPointSlide, true)
							end)
						end
					else
						local palletPointSlideInUse = pallet2:FindFirstChild("PalletPointSlideInUse", true)

						if palletPointSlideInUse then
							pcall(function()
								pallet:FindFirstChild("PalletSlideCompleteEvent"):FireServer(palletPointSlideInUse)
							end)
						end
					end
				end
			end
		end
	end

	connection = nil
	connection2 = nil

	local function createBillboardESP()
		pcall(function()
			local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")

			for match in string.gmatch("Survivor-mob.Controls.action.check", "[^%.]+") do
				playerGui = playerGui and playerGui:FindFirstChild(match)
			end

			if playerGui and playerGui:IsA("GuiObject") and playerGui.Visible and playerGui.Parent and playerGui.Parent:IsA("GuiButton") then
				local parent = playerGui.Parent

				if type(firesignal) == "function" then
					pcall(function()
						firesignal(parent.MouseButton1Down)
						task.wait(0.01)
						firesignal(parent.MouseButton1Up)
					end)
				else
					local n = parent.AbsolutePosition + parent.AbsoluteSize / 2
					local guiInset = tbl.GuiService:GetGuiInset()
					local n2 = n.X + guiInset.X
					local n3 = n.Y + guiInset.Y
					tbl.VirtualInputManager:SendMouseButtonEvent(n2, n3, 0, true, game, 1)
					task.wait(0.02)
					tbl.VirtualInputManager:SendMouseButtonEvent(n2, n3, 0, false, game, 1)
				end
			else
				tbl.VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.Space, false, game)
				task.wait(0.012)
				tbl.VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.Space, false, game)
			end
		end)
	end

	setupSkillCheckSync = function()
		task.spawn(function()
			local skillCheckPromptGui = tbl.LocalPlayer:FindFirstChild("PlayerGui"):WaitForChild("SkillCheckPromptGui", 10)
			if not skillCheckPromptGui then
				return
			end
			local check = skillCheckPromptGui:WaitForChild("Check", 8)
			if not check then
				return
			end
			local line = check:WaitForChild("Line", 5)
			local goal = check:WaitForChild("Goal", 5)
			if not (line and goal) then
				return
			end

			if connection2 then
				connection2:Disconnect()
			end

			connection2 = check:GetPropertyChangedSignal("Visible"):Connect(function()
				local flag3 = not tbl3.Surv_AutoSkillCheck

				if not flag3 then
					flag3 = not (tbl.LocalPlayer.Team and tbl.LocalPlayer.Team.Name == "Survivors")
				end

				if flag3 then
					return
				end

				if not tbl3.Surv_PerfectSkill then
					if connection then
						connection:Disconnect()
						connection = nil
					end

					return
				end

				if check.Visible then
					if tbl3.Surv_InstanSkill or tbl3.Surv_SkillCheckMode == "Random" and not tbl6.RandomMode_IsNormal then
						line.Rotation = goal.Rotation % 360 + 85
					end

					local n = 0

					if connection then
						connection:Disconnect()
					end

					connection = line:GetPropertyChangedSignal("Rotation"):Connect(function()
						if not tbl3.Surv_PerfectSkill then
							connection:Disconnect()
							connection = nil
							return
						end

						local randomModeIsNormal = tbl3.Surv_SkillCheckMode == "Normal" or tbl3.Surv_SkillCheckMode == "Random" and tbl6.RandomMode_IsNormal
						local n2 = line.Rotation % 360
						local n3 = goal.Rotation % 360
						local n4 = (n3 + 105) % 360
						local n5 = (n3 + 115) % 360

						if randomModeIsNormal then
							n4 = (n3 + 116) % 360
							n5 = (n3 + 140) % 360
						end

						if n4 > n5 and (n2 >= n4 or n2 <= n5) or n2 >= n4 and n2 <= n5 then
							if tick() - n > 0.2 then
								createBillboardESP()
								n = tick()
							end
						end
					end)
				else
					tbl6.RandomMode_IsNormal = false

					if connection then
						connection:Disconnect()
						connection = nil
					end
				end
			end)
		end)
	end

	local thread = nil

	getgenv().CleanupNoCD = function()
		getgenv().NoCD_Active = false

		if thread then
			task.cancel(thread)
			thread = nil
		end
	end

	applySmoothCamera = function()
		if tbl6.cachedRole ~= "Survivor" then
			return
		end
		local character = tbl.LocalPlayer.Character
		if not character then
			return
		end
		local smoothCamera = character:WaitForChild("SmoothCamera", 3) or character:FindFirstChild("SmoothCamera")

		if smoothCamera and smoothCamera:IsA("LocalScript") then
			if tbl3.Misc_SmoothCam then
				smoothCamera:SetAttribute("CameraHeight", tbl3.Misc_CamHeight)
				smoothCamera:SetAttribute("CameraStiffness", tbl3.Misc_CamStiffness)
			else
				smoothCamera:SetAttribute("CameraHeight", -1)
				smoothCamera:SetAttribute("CameraStiffness", 9.5)
			end
		end
	end

	activateNoCooldown = function(arg)
		if not arg then
			if getgenv().CleanupNoCD then
				getgenv().CleanupNoCD()
			end

			return
		end

		if tbl6.cachedRole ~= "Killer" then
			if getgenv().Window then
				sendNotif("Akses Ditolak: Kamu bukan Killer!", 3)
			end

			task.defer(function()
				if Toggles.Killer_NoCDToggle then
					Toggles.Killer_NoCDToggle:SetValue(false)
				end
			end)

			return
		end

		local selectedKiller = tbl.LocalPlayer:FindFirstChild("SelectedKiller")
		local attribute = selectedKiller and selectedKiller.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller")

		if attribute ~= "Hidden" and attribute ~= "Stalker" then
			if getgenv().Window then
				sendNotif("Fitur ini hanya untuk Stalker atau Hidden!", 3)
			end

			task.defer(function()
				if Toggles.Killer_NoCDToggle then
					Toggles.Killer_NoCDToggle:SetValue(false)
				end
			end)

			return
		end

		getgenv().NoCD_Active = true

		if thread then
			task.cancel(thread)
		end

		local tbl12 = {}

		pcall(function()
			for _, v3 in pairs(getgc(true)) do
				if type(v3) == "function" and islclosure(v3) and not isexecutorclosure(v3) then
					local v4 = getinfo(v3)

					if v4 and v4.source and string.find(v4.source, "Powers") then
						table.insert(tbl12, v3)
					end
				end
			end
		end)

		thread = task.spawn(function()
			while getgenv().NoCD_Active and not tbl6.Unloaded do
				task.wait(1)

				pcall(function()
					for _, v3 in ipairs(tbl12) do
						local v4 = getinfo(v3)
						local v5 = getupvalues(v3)

						if attribute == "Hidden" and (v4.name == "tryActivate" or v4.name == "playM2Animation") then
							for k, v6 in pairs(v5) do
								if type(v6) == "boolean" and v6 == true then
									setupvalue(v3, k, false)
								end
							end
						elseif attribute == "Stalker" then
							if v4.name == "updateUI" then
								for k, v6 in pairs(v5) do
									if type(v6) == "boolean" then
										setupvalue(v3, k, true)
									end
								end
							elseif v4.name == "" then
								local n = 0
								local n2 = 0
								local v6 = nil

								for k, v7 in pairs(v5) do
									n = n + 1

									if type(v7) == "boolean" then
										n2 = n2 + 1
										v6 = k
									end
								end

								if n == 1 and n2 == 1 then
									setupvalue(v3, v6, false)
								end
							end
						end
					end
				end)
			end
		end)
	end

	activateSlasherInvis = function(arg)
		if not arg then
			if getgenv().SlasherInvisLoop then
				task.cancel(getgenv().SlasherInvisLoop)
				getgenv().SlasherInvisLoop = nil
			end

			return
		end

		if getgenv().SlasherInvisLoop then
			task.cancel(getgenv().SlasherInvisLoop)
		end

		local tbl12 = {}

		pcall(function()
			for _, v3 in pairs(getgc(true)) do
				if type(v3) == "function" and islclosure(v3) and not isexecutorclosure(v3) then
					local v4 = getinfo(v3)

					if v4 and v4.source and string.find(v4.source, "Powers") then
						table.insert(tbl12, v3)
					end
				end
			end
		end)

		getgenv().SlasherInvisLoop = task.spawn(function()
			while task.wait(0.5) do
				pcall(function()
					local selectedKiller = tbl.LocalPlayer:FindFirstChild("SelectedKiller")
					selectedKiller = selectedKiller and selectedKiller.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller")

					if tbl6.cachedRole == "Killer" and selectedKiller == "Slasher" then
						for _, v3 in ipairs(tbl12) do
							local v4 = getupvalues(v3)

							for k, v5 in pairs(v4) do
								if type(v5) == "boolean" and v5 == true then
									setupvalue(v3, k, false)
								end
							end
						end

						local character = tbl.LocalPlayer.Character

						if character then
							if character:GetAttribute("LakeMist") then
								character:SetAttribute("LakeMist", false)
							end

							if character:GetAttribute("Invisibility") then
								character:SetAttribute("Invisibility", false)
							end

							local checkInterractable = character:FindFirstChild("CheckInterractable")

							if checkInterractable and checkInterractable:GetAttribute("action") then
								checkInterractable:SetAttribute("action", false)
							end
						end
					end
				end)
			end
		end)
	end

	local tbl12 = {
		["Sound 1"] = "rbxassetid://125027580248269",
		["Sound 2"] = "rbxassetid://79440711397443",
		["Sound 3"] = "rbxassetid://102793319115878",
		["Sound 4"] = "rbxassetid://134840941464861",
	}

	local tbl13 = {}

	local function scanItemESPs(arg)
		if not arg or not arg:IsA("Sound") then
			return
		end

		if not arg:GetAttribute("OriginalSoundId") then
			arg:SetAttribute("OriginalSoundId", arg.SoundId)
		end

		local function renderAllESP()
			if tbl3.Pistol_CustomSound then
				local v3 = tbl12[tbl3.Pistol_SelectedSound]

				if v3 and arg.SoundId ~= v3 then
					arg.SoundId = v3
				end
			else
				local attribute = arg:GetAttribute("OriginalSoundId")

				if attribute and arg.SoundId ~= attribute then
					arg.SoundId = attribute
				end
			end
		end

		renderAllESP()

		if not tbl13[arg] then
			tbl13[arg] = arg:GetPropertyChangedSignal("SoundId"):Connect(renderAllESP)

			arg.Played:Connect(function()
				task.delay(1, function()
					if arg and arg.IsPlaying then
						arg:Stop()
					end
				end)
			end)
		end
	end

	setupPistolSound = function(arg)
		if not arg then
			return
		end

		local function renderAllESP()
			local twistOfFate = arg:FindFirstChild("Twist of Fate") or tbl.Workspace:FindFirstChild("Twist of Fate", true)

			if twistOfFate then
				for _, descendant in ipairs(twistOfFate:GetDescendants()) do
					if descendant:IsA("LocalScript") and descendant.Name:lower() == "gun" then
						local disabled = isKnockedOrHooked(arg)
						disabled = not tbl3.Pistol_BlockKnocked and disabled

						if descendant.Disabled ~= disabled then
							descendant.Disabled = disabled
						end
					end

					if descendant:IsA("Sound") and descendant.Name:lower() == "shoot" then
						scanItemESPs(descendant)
					end
				end
			end
		end

		task.spawn(function()
			if arg:WaitForChild("Twist of Fate", 5) then
				renderAllESP()
			end
		end)

		renderAllESP()

		for _, v3 in ipairs({ "Knocked", "isKnocked", "IsHooked", "isHooked", "IsCarried", "isCarried" }) do
			arg:GetAttributeChangedSignal(v3):Connect(renderAllESP)
		end
	end

	local n = 0

	local function renderAllESP()
		local character = tbl.LocalPlayer.Character
		character = character and character:FindFirstChild("HumanoidRootPart")
		if not character then
			return nil
		end
		local huge = math.huge
		local character2 = nil

		for _, player in ipairs(tbl.Players:GetPlayers()) do
			if player ~= tbl.LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
				local humanoid2 = player.Character:FindFirstChild("Humanoid")

				if humanoid2 and humanoid2.Health > 0 and not isKnockedOrHooked(player.Character) then
					local magnitude = (character.Position - player.Character.HumanoidRootPart.Position).Magnitude

					if magnitude < huge then
						character2 = player.Character
						huge = magnitude
					end
				end
			end
		end

		return character2
	end

	local function hideSpearTrajectory()
		if tbl6.isAimLocking then
			return
		end

		if tick() - n < 0.2 then
			return
		end
		n = tick()

		if tbl6.cachedRole == "Killer" then
			tbl6.currentTarget = renderAllESP()

			if tbl6.currentTarget and tbl6.currentTarget:FindFirstChild("HumanoidRootPart") then
				tbl6.isAimLocking = true

				if tbl6.lockTimerThread then
					task.cancel(tbl6.lockTimerThread)
				end

				tbl6.lockTimerThread = task.delay(2, function()
					tbl6.isAimLocking = false
					tbl6.currentTarget = nil
					tbl6.lockTimerThread = nil
				end)
			end
		end
	end

	activateDashLock = function(arg)
		if not arg then
			if getgenv().DashRenderConn then
				getgenv().DashRenderConn:Disconnect()
				getgenv().DashRenderConn = nil
			end

			if getgenv().DashInputConn then
				getgenv().DashInputConn:Disconnect()
				getgenv().DashInputConn = nil
			end

			if getgenv().DashMobileLoop then
				task.cancel(getgenv().DashMobileLoop)
				getgenv().DashMobileLoop = nil
			end

			if getgenv().DashMobileBtnConn then
				getgenv().DashMobileBtnConn:Disconnect()
				getgenv().DashMobileBtnConn = nil
			end

			tbl6.isAimLocking = false
			tbl6.currentTarget = nil
			return
		end

		local renderStepped = tbl.RunService.RenderStepped

		getgenv().DashRenderConn = renderStepped:Connect(function()
			if tbl6.isAimLocking and tbl6.currentTarget and tbl6.currentTarget:FindFirstChild("HumanoidRootPart") then
				tbl.Camera.CFrame = tbl.Camera.CFrame:Lerp(CFrame.lookAt(tbl.Camera.CFrame.Position, tbl6.currentTarget.HumanoidRootPart.Position), 0.6)
			else
				tbl6.isAimLocking = false
			end
		end)

		local inputBegan = tbl.UserInputService.InputBegan

		getgenv().DashInputConn = inputBegan:Connect(function(arg2, arg3)
			if arg3 then
				return
			end

			if arg2.UserInputType == Enum.UserInputType.MouseButton2 then
				hideSpearTrajectory()
			end
		end)

		getgenv().DashMobileLoop = task.spawn(function()
			local v3 = nil
			local playerGui = tbl.LocalPlayer:WaitForChild("PlayerGui", 10)

			while task.wait(2) do
				pcall(function()
					if playerGui then
						local hiddenMob = playerGui:FindFirstChild("Hidden-mob")
						local move2 = hiddenMob and hiddenMob:FindFirstChild("Controls") and hiddenMob.Controls:FindFirstChild("move2")

						if move2 and move2 ~= v3 then
							if getgenv().DashMobileBtnConn then
								getgenv().DashMobileBtnConn:Disconnect()
							end

							v3 = move2
							local inputBegan2 = move2.InputBegan

							getgenv().DashMobileBtnConn = inputBegan2:Connect(function(arg2)
								if arg2.UserInputType == Enum.UserInputType.Touch or arg2.UserInputType == Enum.UserInputType.MouseButton1 then
									hideSpearTrajectory()
								end
							end)
						end
					end
				end)
			end
		end)
	end

	local function renderSpearTrajectory()
		if tbl6.Bandage then
			return
		end
		tbl6.Bandage = true

		task.spawn(function()
			pcall(function()
				local remotes2 = tbl.ReplicatedStorage:FindFirstChild("Remotes")
				remotes2 = remotes2 and remotes2:FindFirstChild("Items")
				remotes2 = remotes2 and remotes2:FindFirstChild("Bandage")
				remotes2 = remotes2 and remotes2:FindFirstChild("Fire")
				local character = tbl.LocalPlayer.Character

				if remotes2 and character then
					local bandage = character:FindFirstChild("Bandage") or tbl.LocalPlayer.Backpack:FindFirstChild("Bandage")

					if bandage then
						local rightArm = bandage:FindFirstChild("Right Arm")
						rightArm = rightArm and rightArm:FindFirstChild("Bandage") or bandage

						for i = 1, 400 do
							remotes2:FireServer(true, rightArm)
							remotes2:FireServer(false, rightArm)
						end
					end
				end
			end)

			task.wait(0.1)
			tbl6.Bandage = false
		end)
	end

	local function applyFullbright()
		if tbl6.HookF then
			return
		end

		if not getrawmetatable or not setreadonly then
			warn("[Anti-Fail]: Executor tidak support getrawmetatable atau setreadonly.")
			return
		end
		local v3 = getrawmetatable(game)
		setreadonly(v3, false)
		local namecall = v3.__namecall

		v3.__namecall = newcclosure(function(arg, ...)
			local v4 = table.pack(...)
			local v5 = getnamecallmethod()
			local tbl14 = { ... }

			if tbl3.Killer_BypassCarry and v5 == "GetAttribute" and not checkcaller() then
				if tbl14[1] == "IsCarrying" then
					return false
				end
			end

			if v5 == "FireServer" and not checkcaller() then
				if typeof(arg) == "Instance" then
					local name = arg.Name

					if tbl3.Surv_AutoCancelGene and name == "SkillCheckResultEvent" then
						if args[1] == "fail" then
							return nil
						end
					end

					if tbl3.Aim_SilentVeil and name == "Spearthrow" then
						return
					end

					if tbl3.Aim_Silent and name == "Fire" and arg.Parent and arg.Parent.Name == "Twist of Fate" then
						return nil
					end

					if tbl3.Surv_NoFall and name == "Fall" then
						return nil
					end

					if tbl3.Surv_Bandage and name == "Fire" and arg.Parent and arg.Parent.Name == "Bandage" then
						if tbl14[1] == true then
							renderSpearTrajectory()
							return nil
						end
					end

					if name == "VaultEvent" then
						local character = tbl.LocalPlayer.Character

						if tbl3.Surv_SpeedAfterVault and not tbl6.QuickRecoveryOnCD then
							tbl6.VaultBoostActive = true
							tbl6.QuickRecoveryOnCD = true

							if character then
								character:SetAttribute("speedboost", 1.4)
							end

							if tbl6.VaultBoostThread then
								task.cancel(tbl6.VaultBoostThread)
							end

							tbl6.VaultBoostThread = task.delay(3, function()
								tbl6.VaultBoostActive = false
								local character2 = tbl.LocalPlayer.Character

								if character2 then
									character2:SetAttribute("speedboost", tbl3.Surv_Perks and tbl3.Surv_Spdb and tbl3.Surv_SpeedBoost or 1)
								end

								task.wait(tbl3.Surv_QuickRecoveryCD)
								tbl6.QuickRecoveryOnCD = false
							end)
						end

						if tbl3.Surv_FastVault and not tbl6.FlowstateOnCD then
							task.delay(1, function()
								tbl6.FlowstateOnCD = true
							end)

							if tbl6.FlowstateCDThread then
								task.cancel(tbl6.FlowstateCDThread)
							end

							tbl6.FlowstateCDThread = task.spawn(function()
								task.wait(tbl3.Surv_FlowstateCD)
								tbl6.FlowstateOnCD = false
							end)
						end
					end

					if tbl3.Anti_Blind and tbl6.cachedRole == "Killer" and name == "GotBlinded" then
						return nil
					end
				end
			end

			return namecall(arg, table.unpack(v4, 1, v4.n))
		end)

		setreadonly(v3, true)
		tbl6.HookF = true
	end

	applyFullbright()

	applyFakeName = function()
		if not tbl3.Misc_FakeName then
			return
		end
		local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
		if not playerGui then
			return
		end

		local function startFullbrightLoop(arg)
			pcall(function()
				if arg:IsA("TextLabel") or arg:IsA("TextButton") or arg:IsA("TextBox") then
					local function stopFullbrightLoop()
						if not tbl3.Misc_FakeName then
							return
						end
						local text = arg.Text

						if not arg:GetAttribute("OriginalText") then
							arg:SetAttribute("OriginalText", text)
						end

						local flag3 = false

						for _, player in ipairs(tbl.Players:GetPlayers()) do
							local name = player.Name
							local displayName = player.DisplayName
							local v3

							if name and name ~= "" and string.find(text, name) then
								v3 = string.gsub(text, name, tbl2.name)
								flag3 = true
							else
								v3 = text
							end

							if displayName and displayName ~= "" and string.find(v3, displayName) then
								text = string.gsub(v3, displayName, tbl2.name)
								flag3 = true
							else
								text = v3
							end
						end

						if flag3 and arg.Text ~= text then
							arg.Text = text
						end
					end

					stopFullbrightLoop()
					local connection3 = arg:GetPropertyChangedSignal("Text"):Connect(stopFullbrightLoop)
					table.insert(tbl6.SpooferConns, connection3)
				elseif arg:IsA("ImageLabel") or arg:IsA("ImageButton") then
					local function stopFullbrightLoop()
						if not tbl3.Misc_FakeName then
							return
						end
						local image = arg.Image
						local flag3 = false

						for _, player in ipairs(tbl.Players:GetPlayers()) do
							if string.find(image, tostring(player.UserId)) then
								if not arg:GetAttribute("OriginalImage") then
									arg:SetAttribute("OriginalImage", image)
								end

								flag3 = true
								break
							end
						end

						local image2 = "rbxassetid://" .. tbl2.icon

						if flag3 and arg.Image ~= image2 then
							arg.Image = image2
						end
					end

					stopFullbrightLoop()
					local connection3 = arg:GetPropertyChangedSignal("Image"):Connect(stopFullbrightLoop)
					table.insert(tbl6.SpooferConns, connection3)
				end
			end)
		end

		for _, descendant in ipairs(playerGui:GetDescendants()) do
			startFullbrightLoop(descendant)
		end

		local connection3 = playerGui.DescendantAdded:Connect(function(descendant)
			task.defer(function()
				startFullbrightLoop(descendant)
			end)
		end)

		table.insert(tbl6.SpooferConns, connection3)
	end

	removeFakeName = function()
		for _, spooferConn in ipairs(tbl6.SpooferConns) do
			if spooferConn.Connected then
				spooferConn:Disconnect()
			end
		end

		table.clear(tbl6.SpooferConns)
		local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")

		if playerGui then
			for _, descendant in ipairs(playerGui:GetDescendants()) do
				pcall(function()
					if descendant:IsA("TextLabel") or descendant:IsA("TextButton") or descendant:IsA("TextBox") then
						local attribute = descendant:GetAttribute("OriginalText")

						if attribute then
							descendant.Text = attribute
							descendant:SetAttribute("OriginalText", nil)
						end
					elseif descendant:IsA("ImageLabel") or descendant:IsA("ImageButton") then
						local attribute = descendant:GetAttribute("OriginalImage")

						if attribute then
							descendant.Image = attribute
							descendant:SetAttribute("OriginalImage", nil)
						end
					end
				end)
			end
		end
	end

	runAutoRepair = function()
		if tbl6.RepairEngineRunning then
			return
		end
		tbl6.RepairEngineRunning = true

		task.spawn(function()
			local tbl14 = {}
			local tbl15 = {}
			local n2 = 0

			while tbl3.AUTO_Generator and not tbl6.Unloaded do
				if tick() - n2 > 2 then
					tbl14 = {}

					for _, generator2 in ipairs(tbl9.Generators) do
						local attribute = generator2.model:GetAttribute("RepairProgress")
						local value

						if attribute then
							value = attribute
						else
							value = generator2.model:FindFirstChild("RepairProgress") and generator2.model.RepairProgress.Value
						end

						value = value or 0

						if value < 100 then
							for _, child in ipairs(generator2.model:GetChildren()) do
								if child.Name:match("GeneratorPoint") then
									table.insert(tbl14, { gen = generator2.model, pt = child })
								end
							end
						else
							for _, child in ipairs(generator2.model:GetChildren()) do
								if child.Name:match("GeneratorPoint") then
									tbl15[child] = nil
								end
							end
						end
					end

					n2 = tick()
				end

				if repairEvent and skillCheckResultEvent then
					local v3 = getLocalRootPart()

					for _, v4 in ipairs(tbl14) do
						if v3 and (v3.Position - v4.pt.Position).Magnitude <= 20 then
							if not tbl15[v4.pt] then
								pcall(repairEvent.FireServer, repairEvent, v4.pt, true)
								tbl15[v4.pt] = true
							end

							pcall(skillCheckResultEvent.FireServer, skillCheckResultEvent, tbl3.Surv_PerfectSkill and "success" or "neutral", 100, v4.gen, v4.pt)
						elseif tbl15[v4.pt] then
							pcall(repairEvent.FireServer, repairEvent, v4.pt, false)
							tbl15[v4.pt] = nil
						end
					end
				end

				task.wait(0.15)
			end

			if repairEvent then
				for k in pairs(tbl15) do
					pcall(repairEvent.FireServer, repairEvent, k, false)
				end
			end

			tbl6.RepairEngineRunning = false
		end)
	end

	cancelAutoRepair = function()
		tbl3.AUTO_Generator = false

		pcall(function()
			local remotes2 = tbl.ReplicatedStorage:FindFirstChild("Remotes")
			local generator2 = remotes2 and remotes2:FindFirstChild("Generator")
			local repairEvent2 = generator2 and generator2:FindFirstChild("RepairEvent")

			if repairEvent2 then
				for _, generator3 in ipairs(tbl9.Generators) do
					for _, child in ipairs(generator3.model:GetChildren()) do
						if child.Name:match("GeneratorPoint") then
							pcall(function()
								repairEvent2:FireServer(child, false)
							end)
						end
					end
				end
			end

			local character = tbl.LocalPlayer.Character
			if not character then
				return
			end

			for _, descendant in pairs(character:GetDescendants()) do
				if descendant:IsA("Weld") or descendant:IsA("WeldConstraint") or descendant:IsA("ManualWeld") then
					if descendant.Part0 and not descendant.Part0:IsDescendantOf(character) or descendant.Part1 and not descendant.Part1:IsDescendantOf(character) then
						descendant:Destroy()
					end
				end
			end

			local humanoid2 = character:FindFirstChildOfClass("Humanoid")
			local humanoidRootPart2 = character:FindFirstChild("HumanoidRootPart")

			if humanoid2 then
				humanoid2:ChangeState(Enum.HumanoidStateType.GettingUp)
				humanoid2.PlatformStand = false
				humanoid2.Sit = false
				humanoid2.WalkSpeed = tbl6.OriginalSpeed or 16
				local animator = humanoid2:FindFirstChildOfClass("Animator")

				if animator then
					for _, v3 in pairs(animator:GetPlayingAnimationTracks()) do
						v3:Stop()
					end
				end
			end

			if humanoidRootPart2 then
				humanoidRootPart2.Anchored = false
				humanoidRootPart2.CFrame = humanoidRootPart2.CFrame * CFrame.new(0, 0, 1.5)
			end
		end)
	end

	findBestGenerator = function()
		if not getLocalRootPart() then
			return nil
		end
		local huge = math.huge
		local v3 = nil

		for _, generator2 in ipairs(tbl9.Generators) do
			local attribute = generator2.model:GetAttribute("RepairProgress") or generator2.model:FindFirstChild("RepairProgress") and generator2.model.RepairProgress.Value or 0
			local attribute2 = generator2.model:GetAttribute("PlayersRepairingCount") or generator2.model:FindFirstChild("PlayersRepairingCount") and generator2.model.PlayersRepairingCount.Value or 0

			if attribute < 100 and attribute2 < 4 then
				local huge2 = math.huge

				for _, player in pairs(tbl.Players:GetPlayers()) do
					if player ~= tbl.LocalPlayer and isPlayerKiller(player) and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
						local magnitude = (player.Character.HumanoidRootPart.Position - generator2.part.Position).Magnitude

						if magnitude < huge2 then
							huge2 = magnitude
						end
					end
				end

				if tbl3.AUTO_LeaveDist + 15 < huge2 then
					local v4 = getDistanceTo(generator2.part.Position)

					if v4 < huge then
						huge = v4
						v3 = generator2
					end
				end
			end
		end

		return v3
	end

	doAutoFlee = function()
		local v3 = getLocalRootPart()
		if not v3 then
			return false
		end
		task.spawn(cancelAutoRepair)
		local huge = math.huge
		local humanoidRootPart2 = nil

		for _, player in pairs(tbl.Players:GetPlayers()) do
			if player ~= tbl.LocalPlayer and isPlayerKiller(player) and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
				local magnitude = (player.Character.HumanoidRootPart.Position - v3.Position).Magnitude

				if magnitude < huge then
					humanoidRootPart2 = player.Character.HumanoidRootPart
					huge = magnitude
				end
			end
		end

		if humanoidRootPart2 and huge <= tbl3.AUTO_LeaveDist then
			local unit = (v3.Position - humanoidRootPart2.Position).Unit

			if unit.Magnitude ~= unit.Magnitude then
				unit = Vector3.new(1, 0, 0)
			end

			v3.CFrame = CFrame.new(v3.Position + unit * (tbl3.AUTO_LeaveDist + 20) + Vector3.new(0, 3, 0))
			return true
		end

		return false
	end

	teleportToGenerator = function(arg)
		local v3 = getLocalRootPart()
		if not v3 or not arg then
			return false
		end
		local unit = (v3.Position - arg.part.Position).Unit

		if unit.Magnitude ~= unit.Magnitude then
			unit = Vector3.new(0, 0, 1)
		end

		v3.CFrame = CFrame.new(arg.part.Position + unit * tbl3.TP_Offset + Vector3.new(0, 3, 0), arg.part.Position)
		return true
	end

	local thread2 = nil

	setDoubleGen = function(survDoubleGen)
		tbl3.Surv_DoubleGen = survDoubleGen

		if survDoubleGen then
			if thread2 then
				task.cancel(thread2)
			end

			thread2 = task.spawn(function()
				local remotes2 = game:GetService("ReplicatedStorage"):FindFirstChild("Remotes")
				local repairEvent2 = remotes2 and remotes2:FindFirstChild("Generator") and remotes2.Generator:FindFirstChild("RepairEvent")
				local tbl14 = {}
				local flag3 = false

				while tbl3.Surv_DoubleGen and not tbl6.Unloaded do
					task.wait(0.2)
					local character = tbl.LocalPlayer.Character

					if tbl6.cachedRole == "Survivor" and character then
						local checkInterractable = character:FindFirstChild("CheckInterractable")
						local flag4 = checkInterractable and checkInterractable:GetAttribute("isRepairing") == true or character:GetAttribute("isRepairing") == true

						if flag4 and not flag3 then
							tbl14 = {}
							task.wait(0.2)
							local humanoidRootPart2 = character:FindFirstChild("HumanoidRootPart")
							local v3 = humanoidRootPart2 and repairEvent2
							flag3 = true

							if v3 then
								local exitTo = nil

								for _, generator2 in ipairs(tbl9.Generators) do
									if (humanoidRootPart2.Position - generator2.part.Position).Magnitude <= 15 then
										exitTo = 1
										break
									end
								end

								if exitTo == 1 then
									for _, child in ipairs(t8.model:GetChildren()) do
										if string.match(child.Name, "GeneratorPoint") then
											if not (child:GetAttribute("IsRepairing") == true or child:GetAttribute("isRepairing") == true) then
												table.insert(tbl14, child)

												pcall(function()
													repairEvent2:FireServer(child, true)
												end)
											end
										end
									end
								end
							end
						elseif not flag4 and flag3 then
							if repairEvent2 then
								for _, v3 in ipairs(tbl14) do
									pcall(function()
										repairEvent2:FireServer(v3, false)
									end)
								end
							end

							tbl14 = {}
							flag3 = false
						end
					end
				end
			end)
		elseif thread2 then
			task.cancel(thread2)
			thread2 = nil
		end
	end

	hopToNewServer = function()
		local ok, result = pcall(function()
			return game:HttpGet("https://games.roblox.com/v1/games/" .. tostring(game.PlaceId) .. "/servers/Public?sortOrder=Desc&limit=100&excludeFullGames=true")
		end)

		if ok and result then
			local data = tbl.HttpService:JSONDecode(result)
			local tbl14 = {}

			if data and data.data then
				for _, v3 in ipairs(data.data) do
					if type(v3) == "table" and v3.id and v3.id ~= game.JobId then
						table.insert(tbl14, v3.id)
					end
				end
			end

			if #tbl14 > 0 then
				local v3 = tbl14[math.random(#tbl14)]
				game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, v3, tbl.LocalPlayer)
			elseif getgenv().Window then
				sendNotif("Gagal: Tidak ada server yang tersedia.", 3)
			end
		end
	end

	clearESPByType = function(arg)
		if arg == "Player" then
			for _, v3 in ipairs(tbl11) do
				if v3.Character then
					local peh = v3.Character:FindFirstChild("PEH")
					local peText = v3.Character:FindFirstChild("PE_Text")

					if peh then
						Debris:AddItem(peh, 0)
					end

					if peText then
						Debris:AddItem(peText, 0)
					end
				end
			end
		elseif arg == "Killer" then
			for _, v3 in ipairs(tbl11) do
				if v3.Character then
					local keh = v3.Character:FindFirstChild("KEH")
					local keText = v3.Character:FindFirstChild("KE_Text")

					if keh then
						Debris:AddItem(keh, 0)
					end

					if keText then
						Debris:AddItem(keText, 0)
					end
				end
			end
		elseif arg == "Generator" then
			for _, generator2 in pairs(tbl9.Generators) do
				if generator2.model and generator2.model.Parent then
					local geh = generator2.model:FindFirstChild("GEH")
					local geText = generator2.model:FindFirstChild("GE_Text")

					if geh then
						Debris:AddItem(geh, 0)
					end

					if geText then
						Debris:AddItem(geText, 0)
					end
				end
			end
		elseif arg == "Pallet" then
			for _, pallet in pairs(tbl9.Pallets) do
				if pallet and pallet.Parent then
					local palletEH = pallet:FindFirstChild("PalletEH")

					if palletEH then
						Debris:AddItem(palletEH, 0)
					end
				end
			end
		elseif arg == "Hook" then
			for _, hook in pairs(tbl9.Hooks) do
				if hook and hook.Parent then
					local hookEH = hook:FindFirstChild("HookEH")
					local hookEText = hook:FindFirstChild("HookE_Text")

					if hookEH then
						Debris:AddItem(hookEH, 0)
					end

					if hookEText then
						Debris:AddItem(hookEText, 0)
					end
				end
			end
		elseif arg == "Window" then
			for _, window in pairs(tbl9.Windows) do
				if window and window.Parent then
					local windowEH = window:FindFirstChild("WindowEH")

					if windowEH then
						Debris:AddItem(windowEH, 0)
					end
				end
			end
		elseif arg == "Item" then
			for _, itemESP in pairs(tbl6.ItemESPs) do
				if itemESP then
					Debris:AddItem(itemESP, 0)
				end
			end

			table.clear(tbl6.ItemESPs)
		elseif arg == "Gate" then
			for _, gate in pairs(tbl9.Gates) do
				if gate and gate.Parent then
					local gateEH = gate:FindFirstChild("GateEH")
					local gateEText = gate:FindFirstChild("GateE_Text")

					if gateEH then
						Debris:AddItem(gateEH, 0)
					end

					if gateEText then
						Debris:AddItem(gateEText, 0)
					end
				end
			end
		elseif arg == "SCP" then
			for _, scP in pairs(tbl9.SCPs) do
				if scP and scP.Parent then
					local scpeh = scP:FindFirstChild("SCPEH")

					if scpeh then
						Debris:AddItem(scpeh, 0)
					end
				end
			end
		end
	end

	clearAllESP = function()
		clearESPByType("Player")
		clearESPByType("Killer")
		clearESPByType("Generator")
		clearESPByType("Pallet")
		clearESPByType("Hook")
		clearESPByType("Item")
		clearESPByType("Gate")
		clearESPByType("SCP")
		clearESPByType("Window")
	end

	setupSpearStunTracking = function(arg)
		if not arg then
			return
		end

		if tbl6.SpearModeConn then
			tbl6.SpearModeConn:Disconnect()
			tbl6.SpearModeConn = nil
		end

		if tbl6.StunConn then
			tbl6.StunConn:Disconnect()
			tbl6.StunConn = nil
		end

		tbl6.SpearModeConn = arg:GetAttributeChangedSignal("spearmode"):Connect(function()
			local attribute = tbl.LocalPlayer:FindFirstChild("SelectedKiller") and tbl.LocalPlayer.SelectedKiller.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller")

			if tbl6.cachedRole == "Killer" and attribute == "Veil" and arg:GetAttribute("spearmode") == true then
				tbl8.isChargingSpear = false
				tbl8.currentTouchInput = nil
				tbl6.spearSwitchCooldown = true

				task.delay(2, function()
					tbl6.spearSwitchCooldown = false
				end)
			else
				tbl6.spearSwitchCooldown = false
			end
		end)

		tbl6.StunConn = arg:GetAttributeChangedSignal("IsStunned"):Connect(function()
			if arg:GetAttribute("IsStunned") == true then
				tbl8.isChargingSpear = false
				tbl8.currentTouchInput = nil
			end
		end)
	end

	applySkillSoundSwap = function(arg)
		if not arg then
			return
		end
		local tbl14 = { Great = "rbxassetid://111033165135961", Sound = "rbxassetid://138997442392324" }
		local tbl15 = { "Skillcheck-gen", "Skillcheck-player" }

		task.spawn(function()
			for _, v3 in ipairs(tbl15) do
				local v4 = arg:WaitForChild(v3, 5)

				if v4 then
					for k, v5 in pairs(tbl14) do
						local v6 = v4:WaitForChild(k, 5)

						if v6 and v6:IsA("Sound") then
							if not v6:GetAttribute("OriginalSoundId") then
								v6:SetAttribute("OriginalSoundId", v6.SoundId)
							end

							if tbl3.Surv_SoundDbd then
								v6.SoundId = v5
							else
								local attribute = v6:GetAttribute("OriginalSoundId")

								if attribute then
									v6.SoundId = attribute
								end
							end
						end
					end
				end
			end
		end)
	end

	updateTeamRole = function()
		if not tbl.LocalPlayer.Team then
			str = "Unknown"
			return
		end
		local name = tbl.LocalPlayer.Team.Name

		if name == "Killer" then
			str = "Killer"
		elseif name == "Survivors" then
			str = "Survivor"
		else
			str = "Spectator"

			if getgenv().NoCD_Active then
				getgenv().NoCD_Active = false

				if getgenv().CleanupNoCD then
					pcall(getgenv().CleanupNoCD)
				end
			end
		end

		tbl6.VaultBoostActive = false
		tbl6.QuickRecoveryOnCD = false

		if tbl6.VaultBoostThread then
			task.cancel(tbl6.VaultBoostThread)
			tbl6.VaultBoostThread = nil
		end

		if tbl6.TeamLabel then
			pcall(function()
				tbl6.TeamLabel:Set("Team: " .. str)
			end)
		end

		if str == "Survivor" and tbl3.Misc_SmoothCam then
			pcall(applySmoothCamera)
		end

		if str == "Killer" then
			local survivorFlags = {
				"AUTO_AutoSurvivor", "Surv_AutoSprint", "Surv_SelfHeal", "Surv_AuraHeal",
				"Surv_AutoParry", "Surv_Parry", "Surv_ParryV2", "Surv_AutoCrouch", "Surv_Bandage",
				"Surv_CrouchV", "Surv_Perks", "Surv_Spdb", "Surv_PerfectVault",
				"Surv_FastVault", "Surv_SpeedAfterVault", "Surv_AutoFleeToggle",
				"Surv_AutoSkillCheck", "Surv_GodMode", "Surv_NoFall", "Surv_SoundDbd",
				"AntiBlockWindowToggle", "Surv_AutoPalletToggle", "Surv_DoubleGenToggle",
				"AUTO_Generator", "Surv_Fov",
			}
			for _, flag in ipairs(survivorFlags) do
				if tbl3[flag] then
					tbl3[flag] = false
					if getgenv().Toggles and getgenv().Toggles[flag] then
						pcall(function() getgenv().Toggles[flag]:SetValue(false) end)
					end
				end
			end
			if tbl3.Misc_SmoothCam then
				tbl3.Misc_SmoothCam = false
				pcall(applySmoothCamera)
			end
			tbl.Camera.FieldOfView = 70
			if tbl6.FleeThread then task.cancel(tbl6.FleeThread) tbl6.FleeThread = nil end
			if tbl6.AutoSprintThread then task.cancel(tbl6.AutoSprintThread) tbl6.AutoSprintThread = nil end
			if tbl6.blockThread then task.cancel(tbl6.blockThread) tbl6.blockThread = nil end
			task.spawn(cancelAutoRepair)
		end

		renderSCPESP()
		clearAllESP()

		if name == "Killer" or name == "Survivors" then
			if refreshPlayerList then
				refreshPlayerList()
			end

			task.delay(15, function()
				if tbl6.Unloaded then
					return
				end
				refreshMapData()
				applySmoothCamera()
				applySkillSoundSwap(tbl.LocalPlayer.Character)
				setupSpearStunTracking(tbl.LocalPlayer.Character)

				if tbl3.Misc_SmoothHDR then
					setSmoothHDR(true)
				end
			end)
		end
	end
end

local renderSCPESP

renderSCPESP = function()
	if not tbl3.ESP_Master then
		return
	end

	if tbl3.ESP_SCP then
		for _, scP in ipairs(tbl9.SCPs) do
			if scP and scP.Parent then
				local humanoid2 = scP:FindFirstChildOfClass("Humanoid")
				local humanoidRootPart2 = scP:FindFirstChild("HumanoidRootPart") or scP:FindFirstChild("Torso") or scP:FindFirstChild("Head") or scP.PrimaryPart

				if humanoid2 and humanoidRootPart2 and math.floor(humanoid2.WalkSpeed) > 0 and math.floor(humanoid2.WalkSpeed) ~= 16 then
					local scp = tbl7.Colors.SCP
					local scpeh = scP:FindFirstChild("SCPEH")

					if not scpeh then
						scpeh = Instance.new("Highlight")
						scpeh.Name = "SCPEH"
						scpeh.Parent = scP
					end

					scpeh.FillColor = scp
					scpeh.OutlineColor = scp
					scpeh.FillTransparency = tbl3.ESP_Outline and 1 or tbl3.Trans or 0.7
					scpeh.Enabled = true
					scpeh.OutlineTransparency = 0.5
				else
					local scpeh = scP:FindFirstChild("SCPEH")

					if scpeh then
						scpeh.Enabled = false
					end
				end
			end
		end
	else
		clearESPByType("SCP")
	end
end

local createBillboardESP, scanItemESPs

do
	local items = tbl.ReplicatedStorage:WaitForChild("Items", 5)

	local function renderAllESP(arg)
		return tostring(arg):match("%d+")
	end

	local function hideSpearTrajectory(arg)
		if not items then
			return nil
		end
		local v3 = items:FindFirstChild(arg)
		if not v3 then
			return nil
		end
		local texture = nil

		pcall(function()
			texture = v3.Texture or v3.Image
		end)

		if texture and texture ~= "" then
			local v4 = renderAllESP(texture)
			if v4 then
				return ("rbxthumb://type=Asset&id=%s&w=420&h=420"):format(v4)
			end
		end

		return nil
	end

	createBillboardESP = function(parent, name, arg)
		local billboardGui = parent:FindFirstChild(name)
		local lineScale = arg.lineScale or 1

		if not billboardGui then
			billboardGui = Instance.new("BillboardGui")
			billboardGui.Name = name
			billboardGui.Parent = parent

			if parent:IsA("Model") then
				billboardGui.Adornee = parent:FindFirstChild("Head") or parent:FindFirstChild("HumanoidRootPart") or parent.PrimaryPart
			else
				billboardGui.Adornee = parent
			end

			billboardGui.AlwaysOnTop = true
			billboardGui.Size = UDim2.new(0, 250, 0, 100)
			billboardGui.StudsOffset = Vector3.new(0, arg.offsetY or 0, 0)
			local frame6 = Instance.new("Frame")
			frame6.Name = "Wrapper"
			frame6.AutomaticSize = Enum.AutomaticSize.XY
			frame6.Size = UDim2.new(0, 0, 0, 0)
			frame6.Position = UDim2.new(0.5, 25 * lineScale, 0.5, -25 * lineScale)
			frame6.AnchorPoint = Vector2.new(0, 1)
			frame6.BackgroundTransparency = 1
			frame6.ZIndex = 2
			frame6.Parent = billboardGui
			local uiListLayout = Instance.new("UIListLayout")
			uiListLayout.FillDirection = Enum.FillDirection.Vertical
			uiListLayout.VerticalAlignment = Enum.VerticalAlignment.Bottom
			uiListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
			uiListLayout.Padding = UDim.new(0, 0)
			uiListLayout.SortOrder = Enum.SortOrder.LayoutOrder
			uiListLayout.Parent = frame6
			local textLabel5 = Instance.new("TextLabel")
			textLabel5.Name = "StatusText"
			textLabel5.AutomaticSize = Enum.AutomaticSize.X
			textLabel5.Size = UDim2.new(0, 0, 0, 10)
			textLabel5.BackgroundTransparency = 1
			textLabel5.Font = Enum.Font.GothamBold
			textLabel5.TextSize = 10
			textLabel5.TextColor3 = Color3.fromRGB(255, 255, 255)
			textLabel5.TextXAlignment = Enum.TextXAlignment.Center
			textLabel5.TextYAlignment = Enum.TextYAlignment.Bottom
			textLabel5.ZIndex = 3
			textLabel5.LayoutOrder = 1
			textLabel5.Parent = frame6
			local frame7 = Instance.new("Frame")
			frame7.Name = "Box"
			frame7.AutomaticSize = Enum.AutomaticSize.X
			frame7.Size = UDim2.new(0, 0, 0, 16)
			frame7.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
			frame7.BackgroundTransparency = 0
			frame7.BorderSizePixel = 0
			frame7.ZIndex = 2
			frame7.LayoutOrder = 2
			frame7.Parent = frame6
			Instance.new("UICorner", frame7).CornerRadius = UDim.new(0, 3)
			local uiGradient = Instance.new("UIGradient")
			local numberSequence = NumberSequence.new
			local tbl12 = {}
			local v3 = NumberSequenceKeypoint.new(0, 1)
			local v4 = NumberSequenceKeypoint.new(0.15, 0.3)
			local v5 = NumberSequenceKeypoint.new(0.5, 0.3)
			local v6 = NumberSequenceKeypoint.new(0.85, 0.3)
			local new = NumberSequenceKeypoint.new
			tbl12[1] = v3
			tbl12[2] = v4
			tbl12[3] = v5
			tbl12[4] = v6

			do
				local values = table.pack(new(1, 1))
				table.move(values, 1, values.n, 5, tbl12)
			end

			uiGradient.Transparency = numberSequence(tbl12)
			uiGradient.Parent = frame7
			local uiPadding = Instance.new("UIPadding", frame7)
			uiPadding.PaddingLeft = UDim.new(0, 8)
			uiPadding.PaddingRight = UDim.new(0, 8)
			local uiListLayout2 = Instance.new("UIListLayout", frame7)
			uiListLayout2.FillDirection = Enum.FillDirection.Horizontal
			uiListLayout2.VerticalAlignment = Enum.VerticalAlignment.Center
			uiListLayout2.HorizontalAlignment = Enum.HorizontalAlignment.Center
			uiListLayout2.Padding = UDim.new(0, 4)
			uiListLayout2.SortOrder = Enum.SortOrder.LayoutOrder
			local imageLabel = Instance.new("ImageLabel", frame7)
			imageLabel.Name = "Icon"
			imageLabel.Size = UDim2.new(0, 12, 0, 12)
			imageLabel.BackgroundTransparency = 1
			imageLabel.ZIndex = 3
			imageLabel.LayoutOrder = 1
			imageLabel.Visible = false
			local textLabel6 = Instance.new("TextLabel", frame7)
			textLabel6.Name = "Text"
			textLabel6.AutomaticSize = Enum.AutomaticSize.X
			textLabel6.Size = UDim2.new(0, 0, 1, 0)
			textLabel6.BackgroundTransparency = 1
			textLabel6.Font = Enum.Font.GothamMedium
			textLabel6.TextSize = 11
			textLabel6.ZIndex = 3
			textLabel6.LayoutOrder = 2
			textLabel6.RichText = true
			textLabel6.TextXAlignment = Enum.TextXAlignment.Center
			textLabel6.TextYAlignment = Enum.TextYAlignment.Center
			local frame8 = Instance.new("Frame")
			frame8.Name = "Line"
			frame8.Size = UDim2.new(0, 1, 0, 36 * lineScale)
			frame8.Position = UDim2.new(0.5, 12 * lineScale, 0.5, -12 * lineScale)
			frame8.AnchorPoint = Vector2.new(0.5, 0.5)
			frame8.Rotation = 45
			frame8.BorderSizePixel = 0
			frame8.ZIndex = 1
			frame8.Parent = billboardGui
			local uiGradient2 = Instance.new("UIGradient")
			uiGradient2.Rotation = 90
			local new2 = NumberSequenceKeypoint.new
			uiGradient2.Transparency = NumberSequence.new({ NumberSequenceKeypoint.new(0, 0), new2(1, 1) })
			uiGradient2.Parent = frame8
		end

		if billboardGui:FindFirstChild("Wrapper") then
			billboardGui.Wrapper.Position = UDim2.new(0.5, 25 * lineScale, 0.5, -25 * lineScale)
		end

		if billboardGui:FindFirstChild("Line") then
			billboardGui.Line.Size = UDim2.new(0, 1, 0, 36 * lineScale)
			billboardGui.Line.Position = UDim2.new(0.5, 12 * lineScale, 0.5, -12 * lineScale)
			billboardGui.Line.BackgroundColor3 = arg.color
		end

		local str3 = string.format("#%02X%02X%02X", arg.color.R * 255, arg.color.G * 255, arg.color.B * 255)
		local flag3 = arg.hookCount and arg.hookCount ~= ""
		local str4 = ""

		if flag3 then
			str4 = string.format(" <font color='#FF4444'>[%s]</font>", arg.hookCount)
		end

		local box = billboardGui:FindFirstChild("Wrapper") and billboardGui.Wrapper:FindFirstChild("Box")

		if box then
			if arg.distance then
				box.Text.Text = string.format("<font color='#FFFFFF'>%s</font>%s <font color='%s'>[%dm]</font>", arg.name, str4, str3, arg.distance)
			elseif arg.subtext then
				box.Text.Text = string.format("<font color='#FFFFFF'>%s</font>%s <font color='%s'>%s</font>", arg.name, str4, str3, arg.subtext)
			else
				box.Text.Text = string.format("<font color='#FFFFFF'>%s</font>%s", arg.name, str4)
			end

			if arg.icon and arg.icon ~= "" then
				box.Icon.Image = arg.icon
				box.Icon.Visible = true
			else
				box.Icon.Visible = false
			end
		end

		local statusText = billboardGui:FindFirstChild("Wrapper") and billboardGui.Wrapper:FindFirstChild("StatusText")

		if statusText then
			if arg.status and arg.status ~= "" then
				statusText.Text = arg.status
				statusText.Visible = true

				if arg.status == "Hook" then
					statusText.TextColor3 = Color3.fromRGB(255, 50, 50)
				elseif arg.status == "Knock" then
					statusText.TextColor3 = Color3.fromRGB(255, 150, 50)
				elseif arg.status == "Injured" then
					statusText.TextColor3 = Color3.fromRGB(255, 255, 50)
				end
			else
				statusText.Visible = false
			end
		end
	end

	scanItemESPs = function()
		if not tbl3.ESP_Master then
			return
		end
		local v3 = getLocalRootPart()

		if tbl3.ESP_KillerWarn and v3 and tbl6.cachedRole == "Survivor" then
			local killerWarn = v3:FindFirstChild("KillerWarn")
			local huge = math.huge

			for _, player in ipairs(tbl.Players:GetPlayers()) do
				if player ~= tbl.LocalPlayer and isPlayerKiller(player) and player.Character then
					local humanoidRootPart2 = player.Character:FindFirstChild("HumanoidRootPart")

					if humanoidRootPart2 then
						local magnitude = (humanoidRootPart2.Position - v3.Position).Magnitude

						if magnitude < huge then
							huge = magnitude
						end
					end
				end
			end

			if huge <= 80 then
				if not killerWarn then
					killerWarn = Instance.new("BillboardGui")
					killerWarn.Name = "KillerWarn"
					killerWarn.Size = UDim2.new(0, 28, 0, 28)
					killerWarn.AlwaysOnTop = true
					killerWarn.StudsOffset = Vector3.new(0, 4, 0)
					killerWarn.Parent = v3
					local frame6 = Instance.new("Frame")
					frame6.Name = "WarnBox"
					frame6.Size = UDim2.new(0.65, 0, 0.65, 0)
					frame6.Position = UDim2.new(0.5, 0, 0.5, 0)
					frame6.AnchorPoint = Vector2.new(0.5, 0.5)
					frame6.BackgroundTransparency = 1
					frame6.Rotation = 45
					frame6.Parent = killerWarn
					local uiStroke3 = Instance.new("UIStroke")
					uiStroke3.Name = "WarnStroke"
					uiStroke3.Thickness = 1
					uiStroke3.Parent = frame6
					local textLabel5 = Instance.new("TextLabel")
					textLabel5.Name = "WarnText"
					textLabel5.Size = UDim2.new(0.8, 0, 0.8, 0)
					textLabel5.Position = UDim2.new(0.5, 0, 0.5, 0)
					textLabel5.AnchorPoint = Vector2.new(0.5, 0.5)
					textLabel5.BackgroundTransparency = 1
					textLabel5.TextScaled = true
					textLabel5.TextStrokeTransparency = 0.4
					textLabel5.Font = Enum.Font.GothamBlack
					textLabel5.Text = "!"
					textLabel5.ZIndex = 2
					textLabel5.Parent = killerWarn
				end

				local warnText = killerWarn:FindFirstChild("WarnText")
				local warnBox = killerWarn:FindFirstChild("WarnBox")
				warnBox = warnBox and warnBox:FindFirstChild("WarnStroke")

				if warnText and warnBox then
					if huge <= 40 then
						warnBox.Color = Color3.fromRGB(255, 20, 20)
						warnText.TextColor3 = Color3.fromRGB(255, 20, 20)
					else
						warnBox.Color = Color3.fromRGB(255, 220, 0)
						warnText.TextColor3 = Color3.fromRGB(255, 220, 0)
					end
				end
			elseif killerWarn then
				killerWarn:Destroy()
			end
		else
			local killerWarn = v3 and v3:FindFirstChild("KillerWarn")

			if killerWarn then
				killerWarn:Destroy()
			end
		end

		if tbl3.ESP_Player or tbl3.ESP_Killer then
			for _, player in pairs(tbl.Players:GetPlayers()) do
				if player ~= tbl.LocalPlayer and player.Character then
					local v4 = isPlayerKiller(player)
					local head = player.Character:FindFirstChild("Head") or player.Character:FindFirstChild("HumanoidRootPart")

					if head and (not v4 and tbl3.ESP_Player or v4 and tbl3.ESP_Killer) then
						local n = v3 and math.floor((head.Position - v3.Position).Magnitude) or 0
						local name = v4 and "KEH" or "PEH"
						local str3 = v4 and "KE_Text" or "PE_Text"
						local str4 = v4 and "PEH" or "KEH"
						local str5 = v4 and "PE_Text" or "KE_Text"

						if player.Character:FindFirstChild(str4) then
							player.Character[str4]:Destroy()
						end

						if player.Character:FindFirstChild(str5) then
							player.Character[str5]:Destroy()
						end

						if n <= tbl3.ESP_MaxDistance then
							local killer = v4 and tbl7.Colors.Killer or tbl7.Colors.Player
							local highlight = player.Character:FindFirstChild(name)

							if not highlight then
								highlight = Instance.new("Highlight")
								highlight.Name = name
								highlight.Parent = player.Character
							end

							highlight.FillColor = killer
							highlight.OutlineColor = killer
							highlight.FillTransparency = tbl3.ESP_Outline and 1 or tbl3.Trans or 0.7
							highlight.OutlineTransparency = 0.5

							if tbl3.ESP_Name then
								local v5 = nil
								local str6 = ""
								local str7 = ""

								if not v4 then
									v5 = nil

									if tbl3.ESP_ItemIcon then
										local attribute = player:GetAttribute("EquippedItem")
										local flag3 = attribute and attribute ~= ""
										v5 = nil

										if flag3 then
											v5 = hideSpearTrajectory(attribute)
										end
									end

									local character = player.Character
									local attribute = character:GetAttribute("IsHooked") or character:GetAttribute("isHooked") or character:GetAttribute("Hooked")
									local attribute2 = character:GetAttribute("Knocked") or character:GetAttribute("isKnocked")
									local humanoid2 = character:FindFirstChildOfClass("Humanoid")
									local flag3 = humanoid2 and humanoid2.Health <= 60 and humanoid2.Health > 0

									if attribute then
										str6 = "Hook"
									elseif attribute2 then
										str6 = "Knock"
									elseif flag3 then
										str6 = "Injured"
									end

									local attribute3 = character:GetAttribute("HookCount") or 0

									if attribute3 == 1 then
										str7 = "I"
									elseif attribute3 == 2 then
										str7 = "II"
									elseif attribute3 >= 3 then
										str7 = "III"
									end
								end

								local espColor
								if attribute then
									espColor = Color3.fromRGB(255, 50, 50)
								elseif attribute2 then
									espColor = Color3.fromRGB(255, 140, 0)
								elseif flag3 and tbl3.ESP_InjuredColor then
									local ratio = humanoid2 and (humanoid2.Health / (humanoid2.MaxHealth or 100)) or 1
									espColor = Color3.fromRGB(255, math.floor(180 * ratio), math.floor(20 * ratio))
								else
									espColor = killer
								end
								createBillboardESP(player.Character, str3, {
									name = player.Name,
									distance = n,
									color = espColor,
									icon = v5,
									status = str6,
									hookCount = str7,
									lineScale = v4 and 0.6 or 1,
								})
							else
								local v5 = player.Character:FindFirstChild(str3)

								if v5 then
									v5:Destroy()
								end
							end
						else
							local v5 = player.Character:FindFirstChild(name)
							local v6 = player.Character:FindFirstChild(str3)

							if v5 then
								v5:Destroy()
							end

							if v6 then
								v6:Destroy()
							end
						end
					end
				end
			end
		end
	end
end

local renderAllESP

renderAllESP = function()
	if not tbl3.ESP_Master then
		return
	end
	local v3 = getLocalRootPart()

	local function hideSpearTrajectory(arg)
		if not v3 then
			return 0
		end
		return math.floor((arg - v3.Position).Magnitude)
	end

	if tbl3.ESP_Generator then
		for k, generator2 in pairs(tbl9.Generators) do
			local model = generator2.model

			if model and model.Parent and generator2.part then
				local espMaxDistance = tbl3.ESP_MaxDistance

				if hideSpearTrajectory(generator2.part.Position) <= espMaxDistance then
					local n = math.floor(model:GetAttribute("RepairProgress") or 0)
					local attribute = model:GetAttribute("PlayersRepairingCount") or 0
					local generatorDone = n >= 100 and tbl7.Colors.GeneratorDone or tbl7.Colors.Generator
					local geh = model:FindFirstChild("GEH")

					if not geh then
						geh = Instance.new("Highlight")
						geh.Name = "GEH"
						geh.Parent = model
					end

					geh.FillColor = generatorDone
					geh.OutlineColor = generatorDone
					local n2 = tbl3.ESP_Outline and 1
					local trans

					if n2 then
						trans = n2
					else
						trans = tbl3.Trans or 0.7
					end

					geh.FillTransparency = trans
					geh.OutlineTransparency = 0.5

					if tbl3.ESP_NameG then
						createBillboardESP(model, "GE_Text", {
							name = "G " .. k,
							subtext = attribute > 0 and string.format("[%d%%] (%d plyr)", n, attribute) or string.format("[%d%%]", n),
							color = generatorDone,
							icon = nil,
							lineScale = 0.2,
						})
					else
						local geText = model:FindFirstChild("GE_Text")

						if geText then
							geText:Destroy()
						end
					end
				else
					if model:FindFirstChild("GEH") then
						model.GEH:Destroy()
					end

					if model:FindFirstChild("GE_Text") then
						model.GE_Text:Destroy()
					end
				end
			end
		end
	end

	if tbl3.ESP_Pallet then
		for _, pallet in pairs(tbl9.Pallets) do
			local model = pallet.model

			if model and model.Parent then
				local espMaxDistance = tbl3.ESP_MaxDistance

				if hideSpearTrajectory(model:GetPivot().Position) <= espMaxDistance then
					local palletEH = model:FindFirstChild("PalletEH")

					if not palletEH then
						palletEH = Instance.new("Highlight")
						palletEH.Name = "PalletEH"
						palletEH.Parent = model
					end

					local pallet2 = tbl7.Colors.Pallet
					palletEH.Adornee = model
					palletEH.FillColor = pallet2
					palletEH.OutlineColor = pallet2
					palletEH.FillTransparency = tbl3.ESP_Outline and 1 or tbl3.Trans or 0.7
					palletEH.OutlineTransparency = 0.5
				elseif model:FindFirstChild("PalletEH") then
					model.PalletEH:Destroy()
				end
			end
		end
	end

	if tbl3.ESP_Window then
		for _, window in ipairs(tbl9.Windows) do
			if window and window.Parent then
				local bottom = window:FindFirstChild("Bottom") or window:FindFirstChildWhichIsA("BasePart")

				if bottom then
					local espMaxDistance = tbl3.ESP_MaxDistance

					if hideSpearTrajectory(bottom.Position) <= espMaxDistance then
						local windowEH = window:FindFirstChild("WindowEH")

						if not windowEH then
							windowEH = Instance.new("BoxHandleAdornment")
							windowEH.Name = "WindowEH"
							windowEH.Parent = window
							windowEH.AlwaysOnTop = true
							windowEH.ZIndex = 5
						end

						windowEH.Adornee = bottom
						windowEH.Size = bottom.Size
						windowEH.Color3 = tbl7.Colors.Window
						windowEH.Transparency = tbl3.ESP_Outline and 0.8 or 0.4
					elseif window:FindFirstChild("WindowEH") then
						window.WindowEH:Destroy()
					end
				end
			end
		end
	end

	if tbl3.ESP_Hook then
		for _, hook in ipairs(tbl9.Hooks) do
			if hook and hook.Parent then
				local espMaxDistance = tbl3.ESP_MaxDistance

				if hideSpearTrajectory(hook:GetPivot().Position) <= espMaxDistance then
					local hookEH = hook:FindFirstChild("HookEH")

					if not hookEH then
						hookEH = Instance.new("Highlight")
						hookEH.Name = "HookEH"
						hookEH.Parent = hook
					end

					local hook2 = tbl7.Colors.Hook
					hookEH.FillColor = hook2
					hookEH.OutlineColor = hook2
					local n = tbl3.ESP_Outline and 1
					local trans

					if n then
						trans = n
					else
						trans = tbl3.Trans or 0.7
					end

					hookEH.FillTransparency = trans
					hookEH.OutlineTransparency = 0.5
				elseif hook:FindFirstChild("HookEH") then
					hook.HookEH:Destroy()
				end
			end
		end
	end

	if tbl3.ESP_Gate then
		for i, gate in ipairs(tbl9.Gates) do
			if gate and gate.Parent then
				local espMaxDistance = tbl3.ESP_MaxDistance

				if hideSpearTrajectory(gate:GetPivot().Position) <= espMaxDistance then
					if not gate:FindFirstChild("Main") then
						gate:FindFirstChildWhichIsA("BasePart")
					end

					local gateEH = gate:FindFirstChild("GateEH")

					if not gateEH then
						gateEH = Instance.new("Highlight")
						gateEH.Name = "GateEH"
						gateEH.Parent = gate
					end

					local gate2 = tbl7.Colors.Gate
					gateEH.Adornee = gate
					gateEH.FillColor = gate2
					gateEH.OutlineColor = gate2
					gateEH.FillTransparency = tbl3.ESP_Outline and 1 or 0.5
					gateEH.OutlineTransparency = 0
					local exitLever = gate:FindFirstChild("ExitLever")
					local n = 0

					if exitLever then
						local main = exitLever:FindFirstChild("Main")
						local n2 = 0

						if main then
							n = math.floor(main:GetAttribute("ActivationProgress") or 0)
						else
							n = n2
						end
					end

					createBillboardESP(gate, "GateE_Text", {
						name = "Gate " .. i,
						subtext = string.format("[%d%%]", n),
						color = gate2,
						icon = nil,
						lineScale = 0.2,
					})
				else
					if gate:FindFirstChild("GateEH") then
						gate.GateEH:Destroy()
					end

					if gate:FindFirstChild("GateE_Text") then
						gate.GateE_Text:Destroy()
					end
				end
			end
		end
	end
end

local part
part = Instance.new("Part")
part.Name = "PLaser"
part.Material = Enum.Material.Neon
part.Color = Color3.fromRGB(57, 255, 20)
part.CanCollide = false
part.Anchored = true
part.CastShadow = false
part.Size = Vector3.new(0.05, 0.05, 1.5)

pcall(function()
	local trajectory = tbl.Workspace.Terrain:FindFirstChild("Trajectory") or tbl.Workspace:FindFirstChild("Trajectory")

	if trajectory then
		trajectory:Destroy()
	end
end)

local highlight
highlight = Instance.new("Highlight")
highlight.Name = "VTarget"
highlight.FillColor = Color3.fromRGB(255, 0, 0)
highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
highlight.FillTransparency = 0.5
highlight.OutlineTransparency = 0
local hideSpearTrajectory, renderSpearTrajectory

do
	local circle = Drawing.new("Circle")
	circle.Filled = true
	circle.Radius = 6
	circle.Color = Color3.fromRGB(0, 220, 255)
	circle.Transparency = 0.9
	circle.Visible = false
	local n = 15
	local folder = Instance.new("Folder")
	folder.Name = "Trajectory"
	folder.Parent = tbl.Workspace.Terrain
	local tbl12 = {}
	local tbl13 = {}

	for i = 1, n + 1 do
		local attachment = Instance.new("Attachment")
		attachment.Name = "Att_" .. i
		attachment.Parent = folder
		table.insert(tbl12, attachment)
	end

	for i = 1, 15 do
		local beam = Instance.new("Beam")
		beam.Attachment0 = tbl12[i]
		beam.Attachment1 = tbl12[i + 1]
		beam.Width0 = 0.12
		beam.Width1 = 0.12
		beam.FaceCamera = true
		beam.Color = ColorSequence.new(Color3.fromRGB(0, 220, 255))
		beam.LightEmission = 1
		beam.LightInfluence = 0
		beam.Texture = "rbxassetid://4740112440"
		beam.TextureSpeed = 2
		beam.Enabled = false
		beam.Parent = folder
		table.insert(tbl13, beam)
	end

	hideSpearTrajectory = function()
		for _, v3 in ipairs(tbl13) do
			v3.Enabled = false
		end

		circle.Visible = false
	end

	renderSpearTrajectory = function(arg, arg2, arg3, arg4, arg5, arg6, arg7)
		local n2 = arg2 * arg3
		local n3 = math.max(tbl3.SPEAR_MaxDist or 500, 500)
		local position3 = arg6 and arg6.Position
		local magnitude = position3 and (position3 - arg).Magnitude or 100
		local n4 = magnitude / arg3 / n
		local vector = Vector3.new(0, -arg4, 0)
		local tbl14 = { arg }
		arg7 = arg7 or position3
		local huge = math.huge

		for i = 1, 15 do
			arg = arg + n2 * n4 + 0.5 * vector * n4 ^ 2
			table.insert(tbl14, arg)

			if arg7 then
				local magnitude2 = (arg - arg7).Magnitude

				if magnitude2 < huge then
					huge = magnitude2
				end
			end

			n2 = n2 + vector * n4
		end

		local flag3 = arg6 ~= nil and magnitude <= n3 and huge <= 6
		local colorSequence = ColorSequence.new(flag3 and Color3.fromRGB(0, 255, 120) or Color3.fromRGB(255, 60, 60))

		for i = 1, #tbl14 do
			if tbl12[i] then
				tbl12[i].WorldPosition = tbl14[i]
			end
		end

		for i = 1, 15 do
			if i < #tbl14 and tbl3.Veil_ShowLaser then
				tbl13[i].Color = colorSequence
				tbl13[i].Enabled = true
			else
				tbl13[i].Enabled = false
			end
		end

		if arg6 then
			local v3, v4 = tbl.Camera:WorldToViewportPoint(arg6.Position)

			if v4 and v3.Z > 0 then
				circle.Position = Vector2.new(v3.X, v3.Y)
				circle.Visible = true

				if flag3 then
					circle.Color = Color3.fromRGB(0, 255, 120)
				else
					circle.Color = Color3.fromRGB(255, 60, 60)
				end
			else
				circle.Visible = false
			end
		else
			circle.Visible = false
		end
	end

	local tbl14 = {}

	local function applyFullbright()
		if not tbl3.Misc_Fullbright then
			return
		end

		if tbl.Lighting.Brightness ~= 1 then
			tbl.Lighting.Brightness = 1
		end

		if tbl.Lighting.FogEnd ~= 100000 then
			tbl.Lighting.FogEnd = 100000
		end

		if tbl.Lighting.GlobalShadows ~= false then
			tbl.Lighting.GlobalShadows = false
		end

		if tbl.Lighting.OutdoorAmbient ~= Color3.fromRGB(255, 255, 255) then
			tbl.Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
		end

		if tbl.Lighting.Ambient ~= Color3.fromRGB(255, 255, 255) then
			tbl.Lighting.Ambient = Color3.fromRGB(255, 255, 255)
		end

		local atmosphere = tbl.Lighting:FindFirstChildOfClass("Atmosphere")

		if atmosphere and atmosphere.Density ~= 0 then
			atmosphere.Density = 0
		end
	end

	local function startFullbrightLoop()
		for _, v3 in ipairs(tbl14) do
			if v3.Connected then
				v3:Disconnect()
			end
		end

		table.clear(tbl14)

		for _, v3 in ipairs({ "Brightness", "FogEnd", "GlobalShadows", "OutdoorAmbient", "Ambient" }) do
			local connection3 = tbl.Lighting:GetPropertyChangedSignal(v3):Connect(function()
				if tbl3.Misc_Fullbright then
					applyFullbright()
				end
			end)

			table.insert(tbl14, connection3)
		end

		local connection3 = tbl.Lighting.ChildAdded:Connect(function(child)
			if tbl3.Misc_Fullbright and child:IsA("Atmosphere") then
				child.Density = 0
			end
		end)

		table.insert(tbl14, connection3)
	end

	local function stopFullbrightLoop()
		for _, v3 in ipairs(tbl14) do
			if v3.Connected then
				v3:Disconnect()
			end
		end

		table.clear(tbl14)
	end

	local function findAimTarget(arg)
		local selfHrp = humanoidRootPart
		if not selfHrp then return nil end
		if arg == "Pistol" and tbl3.Pistol_BlockKnocked and isKnockedOrHooked(selfHrp.Parent) then
			return nil
		end

		local selfPos = selfHrp.Position
		local currentRole = tbl6.cachedRole

		local targetPartName
		if arg == "Aimbot" or arg == "Pistol" or arg == "Flash" then
			local ap = tbl3.AIM_TargetPart
			if ap == "Head" or ap == 1 then targetPartName = "Head"
			elseif ap == "Torso" or ap == 2 then targetPartName = "Torso"
			else targetPartName = "HumanoidRootPart" end
		else
			targetPartName = "HumanoidRootPart"
		end

		local wantKiller, wantSurvivor
		local maxDist = math.huge
		local useFOV, fovRadius, center

		if arg == "Aimbot" then
			if currentRole == "Survivor" then
				wantKiller = true
				maxDist = tbl3.Aimbot_MaxDist
			else
				wantSurvivor = true
				maxDist = 10
			end
			if tbl3.Aimbot_ShowFOV and currentRole ~= "Killer" then
				useFOV = true
				fovRadius = tbl3.Aimbot_Radius
				center = Vector2.new(tbl.Camera.ViewportSize.X / 2, tbl.Camera.ViewportSize.Y / 2)
			end
		elseif arg == "Pistol" then
			local pt = tbl3.Pistol_Target
			if pt == "Killer" then wantKiller = true
			elseif pt == "Survivor" then wantSurvivor = true end
			if tbl3.Pistol_FOVMode then
				useFOV = true
				fovRadius = tbl3.Pistol_FOV
				center = Vector2.new(tbl.Camera.ViewportSize.X / 2, tbl.Camera.ViewportSize.Y / 2)
			end
		elseif arg == "Survivor" then
			wantSurvivor = true
			maxDist = tbl3.SPEAR_MaxDist
			if tbl3.Veil_ShowFOV then
				useFOV = true
				fovRadius = tbl3.Veil_FOV
				center = Vector2.new(tbl.Camera.ViewportSize.X / 2, tbl.Camera.ViewportSize.Y / 2)
			end
		elseif arg == "Killer" or arg == "Flash" then
			wantKiller = true
		end

		local bestScore = math.huge
		local bestTarget = nil

		for _, cache in pairs(_playerCache) do
			if wantKiller and not cache.isKiller then continue end
			if wantSurvivor and cache.isKiller then continue end
			local ch = cache.character
			if not ch then continue end
			local h = cache.humanoid
			if not h or h.Health <= 0 or isKnockedOrHooked(ch) then continue end

			local torso
			if targetPartName == "HumanoidRootPart" then
				torso = cache.hrp
			else
				torso = ch:FindFirstChild(targetPartName) or ch:FindFirstChild("Torso") or cache.hrp
			end
			if not torso then continue end

			local dist = (torso.Position - selfPos).Magnitude
			if dist > maxDist then continue end

			local score
			if useFOV then
				local vp, vis = tbl.Camera:WorldToViewportPoint(torso.Position)
				if not vis then continue end
				local sd = (Vector2.new(vp.X, vp.Y) - center).Magnitude
				if sd > fovRadius then continue end
				score = sd
			else
				score = dist
			end

			if score < bestScore then
				bestScore = score
				bestTarget = torso
			end
		end

		if arg == "Pistol" and tbl3.Pistol_Target == "SCP" then
			if not center then
				center = Vector2.new(tbl.Camera.ViewportSize.X / 2, tbl.Camera.ViewportSize.Y / 2)
			end
			for _, scP in ipairs(tbl9.SCPs) do
				if scP and scP.Parent then
					local h = scP:FindFirstChildOfClass("Humanoid")
					local hrp3 = scP:FindFirstChild("HumanoidRootPart") or scP.PrimaryPart
					if h and hrp3 and math.floor(h.WalkSpeed) > 0 and math.floor(h.WalkSpeed) ~= 16 then
						local ap = tbl3.AIM_TargetPart
						local tgt = hrp3
						if (ap == "Head" or ap == 1) and scP:FindFirstChild("Head") then tgt = scP.Head
						elseif (ap == "Torso" or ap == 2) and scP:FindFirstChild("Torso") then tgt = scP.Torso end
						local score
						if tbl3.Pistol_FOVMode then
							local vp, vis = tbl.Camera:WorldToViewportPoint(tgt.Position)
							if not vis then continue end
							local sd = (Vector2.new(vp.X, vp.Y) - center).Magnitude
							if sd > tbl3.Pistol_FOV then continue end
							score = sd
						else
							score = (tgt.Position - selfPos).Magnitude
						end
						if score < bestScore then bestScore = score bestTarget = tgt end
					end
				end
			end
		end

		return bestTarget
	end

	local function showFOVCircle()
		pcall(function()
			local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
			if not playerGui then
				return
			end
			local survivorMob = playerGui:FindFirstChild("Survivor-mob")
			local guiMob = survivorMob and survivorMob:FindFirstChild("Controls") and survivorMob.Controls:FindFirstChild("Gui-mob")

			if guiMob and guiMob:IsA("GuiObject") and guiMob.Visible then
				if type(firesignal) == "function" then
					pcall(function()
						firesignal(guiMob.MouseButton1Down)
						task.wait(0.01)
						firesignal(guiMob.MouseButton1Up)
					end)
				end
			else
				pcall(function()
					tbl.VirtualInputManager:SendMouseButtonEvent(0, 0, 1, true, game, 0)
					task.wait(0.01)
					tbl.VirtualInputManager:SendMouseButtonEvent(0, 0, 1, false, game, 0)
				end)
			end
		end)
	end

	local function fireParryInput()
		if tbl6.ParryCooldown then return end
		local delay = (tbl3.Surv_ParryDelay or 0) / 1000
		if delay > 0 then task.wait(delay) end
		if tbl6.ParryCooldown then return end
		pcall(function()
			if parry then parry:FireServer() end
			task.spawn(showFOVCircle)
		end)
	end

	local tbl15 = {}

	local function startAutoParryV1()
		table.clear(tbl15)
		for player, cache in pairs(_playerCache) do
			if cache.isKiller and cache.character then
				table.insert(tbl15, player)
			end
		end
	end

	tbl.Players.PlayerAdded:Connect(startAutoParryV1)
	tbl.Players.PlayerRemoving:Connect(startAutoParryV1)
	for _, player in ipairs(tbl.Players:GetPlayers()) do
		player:GetPropertyChangedSignal("Team"):Connect(startAutoParryV1)
	end

	local _pv2Frame = 0

	local function startAutoParryV2(arg)
		if arg then
			if tbl6.Pv2Con then return end
			tbl6.Pv2Con = tbl.RunService.Heartbeat:Connect(function()
				_pv2Frame = _pv2Frame + 1
				if _pv2Frame % 2 ~= 0 then return end
				if tbl6.ParryCooldown then return end
				local selfHrp = humanoidRootPart
				if not selfHrp or not selfHrp.Parent then return end
				local character = selfHrp.Parent
				if isKnockedOrHooked(character) or not canSafeParry(character) then return end
				local selfPos = selfHrp.Position
				local radius = (tbl3.Surv_ParryRadius or 15) + 5
				local parryRadius = tbl3.Surv_ParryRadius
				local parryFace = tbl3.Surv_ParryFace or 0.3
				for _, cache in pairs(_playerCache) do
					if not cache.isKiller then continue end
					local killerHrp = cache.hrp
					if not killerHrp or not killerHrp.Parent then continue end
					local anim = cache.animator
					if not anim then continue end
					local killerPos = killerHrp.Position
					local magnitude = (selfPos - killerPos).Magnitude
					if magnitude > radius then continue end
					local fd = Vector3.new(selfPos.X - killerPos.X, 0, selfPos.Z - killerPos.Z)
					if fd.Magnitude > 0 then
						local lv = killerHrp.CFrame.LookVector
						local ld = Vector3.new(lv.X, 0, lv.Z)
						if ld.Magnitude > 0.001 and ld.Unit:Dot(fd.Unit) < parryFace then continue end
					end
					local tracks = anim:GetPlayingAnimationTracks()
					for _, track in ipairs(tracks) do
						if not tbl6.TrackV2[track] then
							tbl6.TrackV2[track] = true
							local animId = (track.Animation and track.Animation.AnimationId or ""):match("%d+")
							local v4 = tbl5[animId]
							if v4 and not (tbl3.Ignored_Skills_List and tbl3.Ignored_Skills_List[v4]) and magnitude <= parryRadius then
								fireParryInput()
							end
						end
					end
				end
				if _pv2Frame % 12 == 0 then
					for k in pairs(tbl6.TrackV2) do
						if not k.IsPlaying then tbl6.TrackV2[k] = nil end
					end
				end
			end)
		else
			if tbl6.Pv2Con then
				tbl6.Pv2Con:Disconnect()
				tbl6.Pv2Con = nil
			end
			table.clear(tbl6.TrackV2)
		end
	end

	local function getKillerPredictedPos(killerHrp)
		if not tbl3.Surv_PingParry then
			return killerHrp.Position
		end
		local ping = 80
		pcall(function()
			local stats = game:GetService("Stats")
			ping = stats.Network.ServerStatsItem["Data Ping"]:GetValue()
		end)
		ping = math.clamp(ping, 10, 500) / 1000
		local vel = tbl6.KillerVelocity[killerHrp]
		if vel then
			return killerHrp.Position + vel * (ping * 0.5)
		end
		return killerHrp.Position
	end

	do
		task.spawn(function()
			while not tbl6.Unloaded do
				task.wait(0.1)
				if not tbl3.Surv_PingParry then continue end
				local now = tick()
				for _, cache in pairs(_playerCache) do
					if not cache.isKiller then continue end
					local khrp = cache.hrp
					if not khrp or not khrp.Parent then continue end
					local curPos = khrp.Position
					local prev = tbl6.KillerPosHistory[khrp]
					if prev then
						local dt = now - prev.t
						if dt > 0 then
							tbl6.KillerVelocity[khrp] = (curPos - prev.p) * (1 / dt)
						end
					end
					tbl6.KillerPosHistory[khrp] = { p = curPos, t = now }
				end
				for k in pairs(tbl6.KillerPosHistory) do
					if not k or not k.Parent then
						tbl6.KillerPosHistory[k] = nil
						tbl6.KillerVelocity[k] = nil
					end
				end
			end
		end)
	end

	local function findKillerMobGui()
		local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
		if not playerGui then
			return nil
		end

		for _, child in pairs(playerGui:GetChildren()) do
			if string.sub(child.Name, -4) == "-mob" and child.Name ~= "Survivor-mob" then
				return child
			end
		end

		return nil
	end

	local function lerpCameraTarget(arg, arg2)
		if not arg then
			return
		end
		arg2 = arg2 or 0.2
		tbl.Camera.CFrame = tbl.Camera.CFrame:Lerp(CFrame.lookAt(tbl.Camera.CFrame.Position, arg.Position), arg2)
	end

	local function predictTarget(arg, arg2, arg3)
		local position3 = arg2.Position
		if not tbl3.Predict then
			return position3
		end
		local parent = arg2.Parent
		parent = parent and parent:FindFirstChildOfClass("Humanoid")
		local n2 = 0
		local vector = Vector3.zero

		if parent then
			vector = parent.MoveDirection * parent.WalkSpeed
			n2 = vector.Magnitude
		end

		if n2 < 0.1 then
			return position3
		end
		return position3 + vector * ((position3 - arg).Magnitude / arg3 * tbl3.Pistol_PredictLead + math.clamp(tbl6.CurrentPing, 0, 0.25))
	end

	local function firePistolAim()
		local Pistol = findAimTarget("Pistol")
		local character = tbl.LocalPlayer.Character
		if tbl3.Pistol_BlockKnocked and isIncapacitated(character) then
			return
		end

		if Pistol and character then
			local humanoidRootPart2 = character:FindFirstChild("HumanoidRootPart")
			character:FindFirstChild("Right Arm")

			if humanoidRootPart2 then
				local twistOfFate = character:FindFirstChild("Twist of Fate")

				if twistOfFate then
					local rightArm = twistOfFate:FindFirstChild("Right Arm")

					if rightArm then
						if rightArm:FindFirstChild("EmperorGun") then
							twistOfFate = rightArm:FindFirstChild("EmperorGun")
						elseif rightArm:FindFirstChild("gun") then
							twistOfFate = rightArm:FindFirstChild("gun")
						else
							twistOfFate = rightArm
						end
					end

					local position3 = humanoidRootPart2.Position
					local v3 = predictTarget(position3, Pistol, 160)

					if (v3 - position3).Magnitude < 4 then
						v3 = v3 - Pistol.CFrame.RightVector * -2
					end

					local unit = (v3 + Vector3.new(0, tbl3.Pistol_AimOffset, 0) - position3).Unit
					local remotes2 = tbl.ReplicatedStorage:FindFirstChild("Remotes")

					if remotes2 and remotes2:FindFirstChild("Items") and remotes2.Items:FindFirstChild("Twist of Fate") and remotes2.Items["Twist of Fate"]:FindFirstChild("Fire") then
						remotes2.Items["Twist of Fate"].Fire:FireServer(twistOfFate, unit)
					end
				end
			end
		end
	end

	local function startInfLungeLoop()
		if tbl6.isHoldingLunge then
			return
		end
		tbl6.isHoldingLunge = true

		task.spawn(function()
			while tbl6.isHoldingLunge and tbl3.Killer_InfLunge and tbl6.cachedRole == "Killer" do
				pcall(function()
					game:GetService("ReplicatedStorage").Remotes.Attacks.Lunge:FireServer()
				end)

				task.wait(0.05)
			end
		end)
	end

	local function setLungeboost(arg)
		if not arg then
			return
		end
		arg:SetAttribute("lungeboost", 999)

		if tbl6.lungeV2Connection then
			tbl6.lungeV2Connection:Disconnect()
		end

		tbl6.lungeV2Connection = arg:GetAttributeChangedSignal("lungeboost"):Connect(function()
			if tbl3.Killer_InfLungeV2 and arg:GetAttribute("lungeboost") ~= 999 then
				arg:SetAttribute("lungeboost", 999)
			end
		end)
	end

	tbl.LocalPlayer.CharacterAdded:Connect(function(character)
		if tbl3.Killer_InfLungeV2 then
			task.wait(0.5)
			setLungeboost(character)
		end
	end)

	local tbl16 = { "Killer", "Survivor", "SCP" }
	local n2 = 1

	local function cycleTargetType()
		n2 = n2 + 1

		if n2 > #tbl16 then
			n2 = 1
		end

		local target = tbl16[n2]
		tbl3.Pistol_Target = target
		textLabel4.Text = "Target: " .. target

		pcall(function()
			if Options and Options.Pistol_Target_Drop then
				Options.Pistol_Target_Drop:SetValue(target)
			end
		end)

		if getgenv().Library then
			sendNotif("Pistol Target: " .. target, 0.5)
		end
	end

	textButton.MouseButton1Click:Connect(cycleTargetType)

	local function updateCrosshair()
		if tbl6.CrosshairUI then
			tbl6.CrosshairUI:Destroy()
		end

		if not tbl3.Crosshair_Enabled then
			return
		end
		tbl6.CrosshairUI = Instance.new("ScreenGui", tbl.CoreGui)
		tbl6.CrosshairUI.Name = "Croshair"
		tbl6.CrosshairUI.IgnoreGuiInset = true
		local frame6 = Instance.new("Frame", tbl6.CrosshairUI)
		frame6.AnchorPoint = Vector2.new(0.5, 0.5)
		frame6.Position = UDim2.new(0.5, tbl3.Crosshair_OffsetX, 0.5, tbl3.Crosshair_OffsetY)
		frame6.Size = UDim2.new(0, 0, 0, 0)
		frame6.BackgroundTransparency = 1
		local crosshairSize = tbl3.Crosshair_Size
		local crosshairColor = tbl3.Crosshair_Color
		local thickness = math.max(1, math.floor(crosshairSize / 4))
		local n3 = crosshairSize * 2
		local n4 = math.max(2, math.floor(crosshairSize / 1.5))

		if tbl3.Crosshair_Type == "Dot" then
			local frame7 = Instance.new("Frame", frame6)
			frame7.AnchorPoint = Vector2.new(0.5, 0.5)
			frame7.Size = UDim2.new(0, crosshairSize, 0, crosshairSize)
			frame7.Position = UDim2.new(0.5, 0, 0.5, 0)
			frame7.BackgroundColor3 = crosshairColor
			Instance.new("UICorner", frame7).CornerRadius = UDim.new(1, 0)
		elseif tbl3.Crosshair_Type == "Cross" then
			local frame7 = Instance.new("Frame", frame6)
			frame7.AnchorPoint = Vector2.new(0.5, 1)
			frame7.Size = UDim2.new(0, thickness, 0, n3)
			frame7.Position = UDim2.new(0.5, 0, 0.5, -n4)
			frame7.BackgroundColor3 = crosshairColor
			local frame8 = Instance.new("Frame", frame6)
			frame8.AnchorPoint = Vector2.new(0.5, 0)
			frame8.Size = UDim2.new(0, thickness, 0, n3)
			frame8.Position = UDim2.new(0.5, 0, 0.5, n4)
			frame8.BackgroundColor3 = crosshairColor
			local frame9 = Instance.new("Frame", frame6)
			frame9.AnchorPoint = Vector2.new(1, 0.5)
			frame9.Size = UDim2.new(0, n3, 0, thickness)
			frame9.Position = UDim2.new(0.5, -n4, 0.5, 0)
			frame9.BackgroundColor3 = crosshairColor
			local frame10 = Instance.new("Frame", frame6)
			frame10.AnchorPoint = Vector2.new(0, 0.5)
			frame10.Size = UDim2.new(0, n3, 0, thickness)
			frame10.Position = UDim2.new(0.5, n4, 0.5, 0)
			frame10.BackgroundColor3 = crosshairColor
		elseif tbl3.Crosshair_Type == "Circle" then
			local frame7 = Instance.new("Frame", frame6)
			frame7.AnchorPoint = Vector2.new(0.5, 0.5)
			frame7.Size = UDim2.new(0, crosshairSize * 2.5, 0, crosshairSize * 2.5)
			frame7.Position = UDim2.new(0.5, 0, 0.5, 0)
			frame7.BackgroundTransparency = 1
			local uiStroke3 = Instance.new("UIStroke", frame7)
			uiStroke3.Color = crosshairColor
			uiStroke3.Thickness = thickness
			Instance.new("UICorner", frame7).CornerRadius = UDim.new(1, 0)
		end
	end

	getgenv().VindUI = loadstring(game:HttpGet("https://raw.githubusercontent.com/Skinny-yz/VVind-UI/refs/heads/main/src.lua"))()
	getgenv().Library = getgenv().VindUI
	getgenv().Toggles = {}
	getgenv().Options = {}

	sendNotif = function(arg, arg2, arg3)
		pcall(function()
			if getgenv().VindUI then
				getgenv().VindUI:Notify({
					Title = "PerplexWare",
					Text = tostring(arg),
					Type = "info",
					Duration = arg2 or 3,
				})
			end
		end)
	end

	getgenv().Window = getgenv().VindUI:CreateWindow({
		Title = "PerplexWare",
		Subtitle = "By @rainlover.r",
		Icon = "Lucide:sparkles",
		Size = UDim2.fromOffset(660, 460),
		MinSize = Vector2.new(500, 360),
		Draggable = true,
		Resizable = true,
		UseBlur = true,
		DefaultTab = "Survivor",
		ToggleKeybind = Enum.KeyCode.RightControl,
	})

	local WindowRef = getgenv().Window
	local VindUI = getgenv().VindUI
	local toggles = getgenv().Toggles
	local options = getgenv().Options

	local function makeTogProxy(elem, defVal)
		local p = { Value = defVal or false }
		function p:SetValue(v)
			pcall(function() if elem then elem:Set(v) end end)
			p.Value = v
		end
		return p
	end

	local function makeOptProxy(elem, defVal)
		local p = { Value = defVal }
		function p:SetValue(v)
			pcall(function() if elem then elem:Set(v) end end)
			p.Value = v
		end
		function p:SetValues(vals)
			pcall(function()
				if elem then
					if elem.Refresh then elem:Refresh(vals)
					elseif elem.SetOptions then elem:SetOptions(vals) end
				end
			end)
		end
		return p
	end

	local function buildUITabs()
		local SurvTab = WindowRef:AddTab({ Name = "Survivor", Icon = "Lucide:shield-plus" })
		local KillTab = WindowRef:AddTab({ Name = "Killer", Icon = "Lucide:skull" })
		local TeleTab = WindowRef:AddTab({ Name = "Teleport", Icon = "Lucide:map-pin" })
		local EspTab  = WindowRef:AddTab({ Name = "ESP", Icon = "Lucide:eye" })
		local AimTab  = WindowRef:AddTab({ Name = "Aim", Icon = "Lucide:crosshair" })
		local MiscTab = WindowRef:AddTab({ Name = "Misc", Icon = "Lucide:sliders-horizontal" })
		local InfoTab = WindowRef:AddTab({ Name = "Info", Icon = "Lucide:badge-info" })

		local SurvAutoST  = SurvTab:AddSubTab({ Name = "Auto Bot", Icon = "Lucide:bot" })
		local SurvCombatST = SurvTab:AddSubTab({ Name = "Combat", Icon = "Lucide:sword" })
		local SurvSkillsST = SurvTab:AddSubTab({ Name = "Skills", Icon = "Lucide:zap" })

		SurvAutoST:AddSection("Generator", "Lucide:cpu")

		local _t2 = SurvAutoST:AddToggle({
			Text = "Gen + Escape",
			Description = "Auto-repairs generators then teleports to exit",
			Icon = "Lucide:bot",
			Default = false,
			Flag = "Auto_MasterSurvivor",
			Callback = function(v)
				toggles["Auto_MasterSurvivor"].Value = v
				if v and tbl6.cachedRole == "Killer" then
					sendNotif("Access Denied: Auto Gen is for Survivors only!", 4)
					tbl3.AUTO_AutoSurvivor = false
					task.defer(function() toggles["Auto_MasterSurvivor"]:SetValue(false) end)
					return
				end
				tbl3.AUTO_AutoSurvivor = v
				if not v then
					task.spawn(cancelAutoRepair)
				else
					task.spawn(function()
						while true do
							if tbl3.AUTO_AutoSurvivor and not tbl6.Unloaded then
								task.wait(2)
								if tbl3.AUTO_AutoSurvivor then
									if tbl6.cachedRole == "Survivor" then
										local n3 = #tbl9.Generators
										local n4 = 0
										for _, generator2 in ipairs(tbl9.Generators) do
											local prog = generator2.model:GetAttribute("RepairProgress") or generator2.model:FindFirstChild("RepairProgress") and generator2.model.RepairProgress.Value or 0
											if prog >= 100 then n4 = n4 + 1 end
										end
										if n3 >= 5 and n4 >= 5 then
											if tbl3.AUTO_Generator then task.spawn(cancelAutoRepair) end
											tbl3.AUTO_AutoSurvivor = false
											task.defer(function() toggles["Auto_MasterSurvivor"]:SetValue(false) end)
											if teleportToExit() then sendNotif("Teleported to exit!", 3) end
											continue
										else
											local v9 = getNearestKillerDist()
											local v10 = findBestGenerator()
											if v9 <= tbl3.AUTO_LeaveDist then
												if tbl3.AUTO_Generator then task.spawn(cancelAutoRepair) task.wait(0.5) end
												if tbl3.AUTO_AutoSurvivor then
													if v10 then teleportToGenerator(v10) tbl3.AUTO_Generator = true runAutoRepair()
													else doAutoFlee() end
													continue
												end
											elseif v10 then
												if getDistanceTo(v10.part.Position) > 20 then
													if tbl3.AUTO_Generator then task.spawn(cancelAutoRepair) task.wait(0.5) end
													if tbl3.AUTO_AutoSurvivor then teleportToGenerator(v10) tbl3.AUTO_Generator = true runAutoRepair() continue end
												else tbl3.AUTO_Generator = true runAutoRepair() continue end
											else continue end
										end
									else continue end
								end
							end
							break
						end
					end)
				end
			end,
		})
		toggles["Auto_MasterSurvivor"] = makeTogProxy(_t2, false)

		local _dg = SurvAutoST:AddToggle({
			Text = "Multi Generator",
			Description = "Repair generator at multiple points",
			Icon = "Lucide:cpu",
			Default = false,
			Flag = "Surv_DoubleGenToggle",
			Callback = function(v) toggles["Surv_DoubleGenToggle"].Value = v setDoubleGen(v) end,
		})
		toggles["Surv_DoubleGenToggle"] = makeTogProxy(_dg, false)

		SurvAutoST:AddSlider({
			Text = "Distance from Killer",
			Description = "Cancel gen if killer is within this range",
			Icon = "Lucide:ruler",
			Min = 20, Max = 100, Default = 45, Increment = 1,
			Flag = "Auto_LeaveDist",
			Callback = function(v) tbl3.AUTO_LeaveDist = v end,
		})

		SurvAutoST:AddButton({
			Text = "Cancel Gen",
			Description = "Stop auto generator task",
			Icon = "Lucide:circle-x",
			Callback = function()
				if toggles["Auto_MasterSurvivor"] then toggles["Auto_MasterSurvivor"]:SetValue(false) end
				task.spawn(cancelAutoRepair)
			end,
		})

		SurvAutoST:AddSection("Auto Feature", "Lucide:zap")

		SurvAutoST:AddButton({
			Text = "Auto Escape",
			Description = "Teleport to the nearest exit gate",
			Icon = "Lucide:door-open",
			Callback = function()
				if teleportToExit() then sendNotif("Teleported to exit!", 3)
				else sendNotif("No exit found!", 3) end
			end,
		})

		SurvAutoST:AddButton({
			Text = "Drop All Pallets",
			Description = "Instantly drop every pallet on the map",
			Icon = "Lucide:layers",
			Callback = function()
				task.spawn(function()
					local pde
					for i = 1, 5 do
						local r = tbl.ReplicatedStorage:FindFirstChild("Remotes")
						if r and r:FindFirstChild("Pallet") then
							pde = r.Pallet:FindFirstChild("PalletDropEvent")
							if pde then break end
						end
						task.wait(0.5)
					end
					if not pde then sendNotif("PalletDropEvent not found!", 3) return end
					local n3 = 0
					for _, p in ipairs(tbl9.Pallets) do
						local tr = p.trigger or (p.model and (p.model:FindFirstChild("PalletPointSlide", true) or p.model:FindFirstChild("PalletPoint", true))) or p.model
						if tr then pcall(function() pde:FireServer(tr) end) n3 = n3 + 1 end
					end
					sendNotif("Dropped " .. n3 .. " pallets.", 3)
				end)
			end,
		})

		local _ab = SurvAutoST:AddToggle({
			Text = "Anti Block Window",
			Description = "Auto-clears window thorns and blockers nearby",
			Icon = "Lucide:shield-off",
			Default = false,
			Flag = "AntiBlockWindowToggle",
			Callback = function(arg)
				toggles["AntiBlockWindowToggle"].Value = arg
				if not arg then if tbl6.blockThread then task.cancel(tbl6.blockThread) tbl6.blockThread = nil end return end
				tbl6.blockThread = task.spawn(function()
					local CS = game:GetService("CollectionService")
					while task.wait(1) do
						pcall(function()
							local ch = tbl.LocalPlayer.Character
							if not ch or not ch:FindFirstChild("HumanoidRootPart") then return end
							local hrp = ch.HumanoidRootPart
							for _, tag in ipairs({ "BlockedVault", "BlockedWindow", "Blocked", "EntityBlocker" }) do
								for _, v9 in ipairs(CS:GetTagged(tag)) do CS:RemoveTag(v9, tag) end
							end
							for _, p in ipairs(tbl.Workspace:GetPartBoundsInRadius(hrp.Position, 40)) do
								if p:GetAttribute("Blocked") ~= nil then p:SetAttribute("Blocked", false) end
								if p:GetAttribute("IsBlocked") ~= nil then p:SetAttribute("IsBlocked", false) end
								if p:GetAttribute("Spiked") ~= nil then p:SetAttribute("Spiked", false) end
								local n = p.Name:lower()
								if n:match("spike") or n:match("blocker") or n:match("entity") then
									if p.CanCollide then p.CanCollide = false end
									if p.Transparency ~= 1 then p.Transparency = 1 end
								end
							end
						end)
					end
				end)
			end,
		})
		toggles["AntiBlockWindowToggle"] = makeTogProxy(_ab, false)

		local _ap = SurvAutoST:AddToggle({
			Text = "Auto Drop Pallet",
			Description = "Automatically drops pallets on nearby killers",
			Icon = "Lucide:layers-2",
			Default = false,
			Flag = "Surv_AutoPalletToggle",
			Callback = function(v) toggles["Surv_AutoPalletToggle"].Value = v setAutoPallet(v) end,
		})
		toggles["Surv_AutoPalletToggle"] = makeTogProxy(_ap, false)

		SurvAutoST:AddSlider({
			Text = "Pallet Radius",
			Min = 5, Max = 20, Default = 10, Increment = 1,
			Flag = "Surv_AutoPalletRadius",
			Callback = function(v) tbl3.Surv_AutoPalletRadius = v end,
		})

		SurvAutoST:AddToggle({ Text = "Pallet Save Team", Default = false, Flag = "Surv_AutoPalletSF", Callback = function(v) tbl3.Surv_AutoPalletSF = v end })
		SurvAutoST:AddToggle({ Text = "Safe Mode (Pallet)", Default = true, Flag = "Surv_AutoPalletSM", Callback = function(v) tbl3.Surv_AutoPalletSM = v end })

		local _sh = SurvAutoST:AddToggle({
			Text = "Self Heal",
			Description = "Toggle self-healing progress",
			Icon = "Lucide:heart-pulse",
			Default = false,
			Flag = "Surv_SelfHeal",
			Callback = function(v) toggles["Surv_SelfHeal"].Value = v tbl3.Surv_SelfHeal = v end,
		})
		toggles["Surv_SelfHeal"] = makeTogProxy(_sh, false)

		SurvAutoST:AddToggle({ Text = "Auto Heal Team", Default = false, Flag = "Surv_AuraHeal", Callback = function(v) tbl3.Surv_AuraHeal = v end })

		SurvCombatST:AddSection("Auto Parry", "Lucide:shield")

		local function applyParryMethod(on)
			tbl3.Surv_AutoParry = on
			tbl3.Surv_Parry = on and tbl3.Surv_ParryMethod == "Legit"
			tbl3.Surv_ParryV2 = false
			startAutoParryV2(on and tbl3.Surv_ParryMethod == "Bold")
			if tbl6.ParryAnimBaseCon then
				tbl6.ParryAnimBaseCon:Disconnect()
				tbl6.ParryAnimBaseCon = nil
			end
			if on and tbl3.Surv_ParryMethod == "Anim Base" then
				tbl6.ParryAnimBaseCon = tbl.RunService.Heartbeat:Connect(function()
					if tbl6.ParryCooldown then return end
					local selfHrp = humanoidRootPart
					if not selfHrp or not selfHrp.Parent then return end
					local ch = selfHrp.Parent
					if isKnockedOrHooked(ch) or not canSafeParry(ch) then return end
					local selfPos = selfHrp.Position
					local radius = tbl3.Surv_ParryRadius or 15
					for _, cache in pairs(_playerCache) do
						if not cache.isKiller then continue end
						local khrp = cache.hrp
						if not khrp or not khrp.Parent then continue end
						if (selfPos - khrp.Position).Magnitude > radius then continue end
						local anim = cache.animator
						if not anim then continue end
						for _, track in ipairs(anim:GetPlayingAnimationTracks()) do
							local name = track.Animation and track.Name or ""
							if name:lower():match("basic") or name:lower():match("lunge") or name:lower():match("attack") or name:lower():match("swing") then
								if not tbl6.TrackV2[track] then
									tbl6.TrackV2[track] = true
									fireParryInput()
								end
							end
						end
					end
				end)
			end
		end

		local _ap = SurvCombatST:AddToggle({
			Text = "Auto Parry  [RISKY]",
			Description = "Auto-parries killer attacks",
			Icon = "Lucide:shield-check",
			Default = false,
			Flag = "Surv_AutoParry",
			Callback = function(v)
				toggles["Surv_AutoParry"].Value = v
				applyParryMethod(v)
			end,
		})
		toggles["Surv_AutoParry"] = makeTogProxy(_ap, false)
		toggles["Surv_Parry"] = toggles["Surv_AutoParry"]
		toggles["Surv_ParryV2"] = { Value = false, SetValue = function(self, v) self.Value = v end }

		SurvCombatST:AddDropdown({
			Text = "Parry Method",
			Description = "Legit = event-based  Bold = proximity  Anim Base = animation name",
			Options = { "Legit", "Bold", "Anim Base" },
			Default = "Legit",
			Flag = "Surv_ParryMethod",
			Callback = function(v)
				tbl3.Surv_ParryMethod = v
				if tbl3.Surv_AutoParry then applyParryMethod(true) end
			end,
		})

		SurvCombatST:AddToggle({
			Text = "Ping Compensation",
			Description = "Compensates killer position by your ping for earlier detection",
			Icon = "Lucide:signal",
			Default = false,
			Flag = "Surv_PingParry",
			Callback = function(v)
				tbl3.Surv_PingParry = v
			end,
		})

		SurvCombatST:AddSlider({
			Text = "Parry Delay",
			Description = "Delay before parry fires",
			Icon = "Lucide:timer",
			Min = 0,
			Max = 200,
			Default = 0,
			Increment = 1,
			Suffix = "ms",
			Flag = "Surv_ParryDelay",
			Callback = function(v) tbl3.Surv_ParryDelay = v end,
		})

		SurvCombatST:AddToggle({
			Text = "Fake Parry  (Keybind: R)",
			Description = "Loads fake parry script",
			Default = false,
			Callback = function(v)
				if v then pcall(function() loadstring(game:HttpGet("https://pastebin.com/raw/WNJGb9ct"))() end)
				elseif getgenv().VD_FakeParry_Cleanup then pcall(getgenv().VD_FakeParry_Cleanup) end
			end,
		})

		SurvCombatST:AddToggle({ Text = "Safety Parry", Default = false, Flag = "Surv_ParrySafety", Callback = function(v) tbl3.Surv_ParrySafety = v end })
		SurvCombatST:AddToggle({ Text = "Aggressive Parry", Default = false, Flag = "Surv_ParryAggressive", Callback = function(v) tbl3.Surv_ParryAggressive = v end })
		SurvCombatST:AddToggle({ Text = "ESP Range (Parry Circle)", Default = true, Flag = "Surv_ParryCircle", Callback = function(v) tbl3.Surv_ParryCircle = v end })

		SurvCombatST:AddSlider({ Text = "Parry Radius", Min = 5, Max = 25, Default = tbl3.Surv_ParryRadius, Increment = 1, Flag = "Surv_ParryRadius", Callback = function(v) tbl3.Surv_ParryRadius = v end })
		SurvCombatST:AddSlider({ Text = "Face Sensitivity", Min = -10, Max = 10, Default = 0, Increment = 1, Flag = "Surv_ParryFace", Callback = function(v) tbl3.Surv_ParryFace = v / 10 end })

		SurvCombatST:AddDropdown({
			Text = "Ignore Skills",
			Options = { "Hidden S1", "Abyssal S1", "Jeff Frenzy" },
			Flag = "Surv_IgnoreSkillsList",
			Callback = function(v) tbl3.Ignored_Skills_List = { v } end,
		})

		SurvCombatST:AddSection("Flee", "Lucide:footprints")

		SurvCombatST:AddToggle({
			Text = "Flee Killer",
			Description = "Auto-move away from killer when knocked",
			Icon = "Lucide:run",
			Default = false,
			Flag = "Surv_AutoFleeToggle",
			Callback = function(survAutoFlee)
				tbl3.Surv_AutoFlee = survAutoFlee
				if survAutoFlee then
					if tbl6.FleeThread then task.cancel(tbl6.FleeThread) end
					tbl6.FleeThread = task.spawn(function()
						while tbl3.Surv_AutoFlee and not tbl6.Unloaded do
							task.wait(0.1)
							if tbl6.cachedRole == "Survivor" then
								local ch = tbl.LocalPlayer.Character
								local hrp = ch and ch:FindFirstChild("HumanoidRootPart")
								local h2 = ch and ch:FindFirstChildOfClass("Humanoid")
								if hrp and h2 and h2.Health > 0 and ch:GetAttribute("Knocked") == true and not ch:GetAttribute("IsHooked") then
									local dist = tbl3.Surv_FleeDistance
									local v9
									for _, player in ipairs(tbl.Players:GetPlayers()) do
										if player ~= tbl.LocalPlayer and isPlayerKiller(player) and player.Character then
											local hrp2 = player.Character:FindFirstChild("HumanoidRootPart")
											if hrp2 then
												local mag = (hrp.Position - hrp2.Position).Magnitude
												if mag < dist then dist = mag v9 = hrp2 end
											end
										end
									end
									if v9 then
										local dir = hrp.Position - v9.Position
										local unit = Vector3.new(dir.X, 0, dir.Z).Unit
										if unit.Magnitude == unit.Magnitude then
											local pos = v9.Position + unit * (tbl3.Surv_FleeDistance + 5)
											hrp.CFrame = CFrame.new(pos.X, hrp.Position.Y + 2, pos.Z)
										end
									end
								end
							end
						end
					end)
				elseif tbl6.FleeThread then task.cancel(tbl6.FleeThread) tbl6.FleeThread = nil end
			end,
		})

		SurvCombatST:AddSlider({ Text = "Flee Distance", Min = 10, Max = 100, Default = 30, Increment = 1, Flag = "Surv_FleeDistance", Callback = function(v) tbl3.Surv_FleeDistance = v end })

		local function syncSkillCheckSettings()
			local mode = tbl3.Surv_SkillCheckMode
			local on = tbl3.Surv_AutoSkillCheck
			tbl3.Surv_PerfectSkill = on and (mode == "Legit" or mode == "Instan" or mode == "Normal" or mode == "Random")
			tbl3.Surv_InstanSkill = on and mode == "Instan"
			tbl3.Surv_NoSkill = on and mode == "Skip"
			task.spawn(function()
				local ch = tbl.LocalPlayer.Character
				if not ch then return end
				local sg = ch:FindFirstChild("Skillcheck-gen")
				local sp = ch:FindFirstChild("Skillcheck-player")
				if sg then sg.Disabled = tbl3.Surv_NoSkill end
				if sp then sp.Disabled = tbl3.Surv_NoSkill end
			end)
		end

		SurvSkillsST:AddSection("Core Skills", "Lucide:star")

		SurvSkillsST:AddToggle({ Text = "God Mode", Description = "Prevents health from dropping", Default = false, Flag = "Surv_GodMode", Callback = function(v) tbl3.Surv_GodMode = v end })
		SurvSkillsST:AddToggle({ Text = "Sound DBD", Description = "Replaces skill check sound with DBD audio", Default = false, Flag = "Surv_SoundDbd", Callback = function(v) tbl3.Surv_SoundDbd = v local ch = tbl.LocalPlayer.Character if ch then applySkillSoundSwap(ch) end end })
		SurvSkillsST:AddToggle({
			Text = "Auto Sprint",
			Description = "Auto-sprints when moving  (Mobile)",
			Default = false,
			Flag = "Surv_AutoSprint",
			Callback = function(v)
				tbl3.Surv_AutoSprint = v
				if v then
					if tbl6.AutoSprintThread then task.cancel(tbl6.AutoSprintThread) end
					tbl6.AutoSprintThread = task.spawn(function()
						while tbl3.Surv_AutoSprint and not tbl6.Unloaded do
							task.wait(0.1)
							local ch = tbl.LocalPlayer.Character
							local h2 = ch and ch:FindFirstChildOfClass("Humanoid")
							if ch and h2 and h2.Health > 0 and not isKnockedOrHooked(ch) and not isIncapacitated(ch) and not (ch:GetAttribute("Crouching") == true) and h2.MoveDirection.Magnitude > 0 then
								local attr = ch:GetAttribute("Sprinting")
								if type(attr) ~= "boolean" then local sp = ch:FindFirstChild("Sprinting") attr = sp and sp:IsA("BoolValue") and sp.Value or false end
								if not attr then
									local sb = tbl.LocalPlayer:FindFirstChild("PlayerGui") and tbl.LocalPlayer.PlayerGui:FindFirstChild("Survivor-mob") and tbl.LocalPlayer.PlayerGui["Survivor-mob"]:FindFirstChild("Controls") and tbl.LocalPlayer.PlayerGui["Survivor-mob"].Controls:FindFirstChild("sprint")
									if sb and sb.Visible then
										if type(firesignal) == "function" then pcall(function() firesignal(sb.MouseButton1Click) end)
										elseif type(firesignal) == "table" then pcall(function() sb.MouseButton1Click:Fire() end) end
									end
								end
							end
						end
					end)
				elseif tbl6.AutoSprintThread then task.cancel(tbl6.AutoSprintThread) tbl6.AutoSprintThread = nil end
			end,
		})
		SurvSkillsST:AddToggle({
			Text = "Auto Skill Check",
			Default = false,
			Flag = "Surv_AutoSkillCheck",
			Callback = function(v) tbl3.Surv_AutoSkillCheck = v syncSkillCheckSettings() end,
		})
		SurvSkillsST:AddDropdown({
			Text = "Skill Check Mode",
			Options = { "Legit", "Instan", "Skip", "Normal", "Random" },
			Default = "Legit",
			Flag = "Surv_SkillCheckMode",
			Callback = function(v) tbl3.Surv_SkillCheckMode = v syncSkillCheckSettings() end,
		})
		SurvSkillsST:AddSlider({ Text = "Skill Check Speed", Min = 1, Max = 30, Default = 10, Increment = 1, Flag = "Surv_SkillSpeed", Callback = function(v) tbl3.Surv_SkillSpeed = v / 10 end })
		SurvSkillsST:AddToggle({ Text = "Anti Fail Gene", Default = false, Flag = "Surv_AntiFailGen", Callback = function(v) tbl3.Surv_AutoCancelGene = v end })
		SurvSkillsST:AddToggle({
			Text = "Instant Teleport  (Gate 0s)",
			Default = false,
			Flag = "Surv_InstantGate",
			Callback = function(survInstantGate)
				tbl3.Surv_InstantGate = survInstantGate
				task.spawn(function()
					local ok, result = pcall(function() return require(tbl.ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Items"):WaitForChild("GateClient")) end)
					if not ok or not result then if survInstantGate then sendNotif("Failed!", 3) end return end
					local tbl18 = {}
					if survInstantGate then
						if not tbl18._isLowHealth then tbl18._isLowHealth = result._isLowHealth end
						if not tbl18.StartGate then tbl18.StartGate = result.StartGate end
						result._isLowHealth = function() return false end
						result.StartGate = function(arg) arg.gateDuration = 0 return tbl18.StartGate(arg) end
					else
						if tbl18._isLowHealth then result._isLowHealth = tbl18._isLowHealth end
						if tbl18.StartGate then result.StartGate = tbl18.StartGate end
					end
				end)
			end,
		})
		SurvSkillsST:AddToggle({ Text = "Auto Crouch Dodge", Default = false, Flag = "Surv_AutoCrouch", Callback = function(v) tbl3.Surv_AutoCrouch = v end })
		SurvSkillsST:AddToggle({ Text = "Instant Bandage", Default = false, Flag = "Surv_Bandage", Callback = function(v) tbl3.Surv_Bandage = v end })
		SurvSkillsST:AddToggle({ Text = "Auto Crouch Veil", Default = false, Flag = "Surv_CrouchV", Callback = function(v) tbl3.Surv_CrouchV = v end })
		SurvSkillsST:AddToggle({ Text = "Anti Slow", Default = false, Flag = "Surv_NoFall", Callback = function(v) tbl3.Surv_NoFall = v end })

		SurvSkillsST:AddSection("Advanced Skills", "Lucide:layers")

		local _pk = SurvSkillsST:AddToggle({
			Text = "Perks Mod",
			Default = false,
			Flag = "Surv_Perks",
			Callback = function(v) toggles["Surv_Perks"].Value = v tbl3.Surv_Perks = v end,
		})
		toggles["Surv_Perks"] = makeTogProxy(_pk, false)

		SurvSkillsST:AddToggle({ Text = "Speed Boost", Default = false, Flag = "Surv_Spdb", Callback = function(v) tbl3.Surv_Spdb = v end })
		SurvSkillsST:AddSlider({ Text = "Speed Boost Value", Min = 10, Max = 20, Default = 11, Increment = 1, Flag = "Surv_SpeedBoost", Callback = function(v) tbl3.Surv_SpeedBoost = v / 10 end })
		SurvSkillsST:AddSlider({ Text = "Vault Speed", Min = 10, Max = 20, Default = 13, Increment = 1, Flag = "Surv_VaultSpeed", Callback = function(v) tbl3.Surv_VaultSpeed = v / 10 end })
		SurvSkillsST:AddToggle({ Text = "Perfect Vault", Default = false, Flag = "Surv_PerfectVault", Callback = function(v) tbl3.Surv_PerfectVault = v end })
		SurvSkillsST:AddToggle({ Text = "Flowstate", Default = false, Flag = "Surv_FastVault",
			Callback = function(v)
				tbl3.Surv_FastVault = v
				if not v then
					if tbl6.FlowstateCDThread then task.cancel(tbl6.FlowstateCDThread) tbl6.FlowstateCDThread = nil end
					tbl6.FlowstateOnCD = false
					local ch = tbl.LocalPlayer.Character
					if ch then ch:SetAttribute("Flowstate", false) end
				end
			end,
		})
		SurvSkillsST:AddSlider({ Text = "Flowstate Cooldown", Min = 5, Max = 60, Default = 20, Increment = 1, Suffix = "s", Flag = "Surv_FlowstateCD", Callback = function(v) tbl3.Surv_FlowstateCD = v end })
		SurvSkillsST:AddToggle({ Text = "Quick Recovery", Default = false, Flag = "Surv_SpeedAfterVault", Callback = function(v) tbl3.Surv_SpeedAfterVault = v end })
		SurvSkillsST:AddSlider({ Text = "Quick Recovery Cooldown", Min = 5, Max = 60, Default = 15, Increment = 1, Suffix = "s", Flag = "Surv_QuickRecovCD", Callback = function(v) tbl3.Surv_QuickRecoveryCD = v end })
		SurvSkillsST:AddToggle({ Text = "Custom FOV", Default = false, Flag = "Surv_Fov", Callback = function(v) tbl3.Surv_Fov = v if not v then tbl.Camera.FieldOfView = 70 end end })
		SurvSkillsST:AddSlider({ Text = "Field of View", Min = 70, Max = 120, Default = 70, Increment = 1, Flag = "Surv_FOV_Value", Callback = function(v) tbl3.Surv_FOV_Value = v end })

		local KillSettST = KillTab:AddSubTab({ Name = "Settings", Icon = "Lucide:settings" })
		local KillCamST  = KillTab:AddSubTab({ Name = "Camera", Icon = "Lucide:camera" })

		KillSettST:AddSection("Speed / Combat", "Lucide:gauge")

		local _kws = KillSettST:AddToggle({
			Text = "Walk Speed",
			Default = false,
			Flag = "Killer_WalkSpeedToggle",
			Callback = function(v)
				toggles["Killer_WalkSpeedToggle"].Value = v
				tbl3.Killer_WalkSpeedToggle = v
				if not v and tbl.LocalPlayer.Character and tbl.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") then
					tbl.LocalPlayer.Character:FindFirstChildOfClass("Humanoid").WalkSpeed = tbl6.OriginalSpeed or 16
				end
			end,
		})
		toggles["Killer_WalkSpeedToggle"] = makeTogProxy(_kws, false)

		KillSettST:AddSlider({ Text = "Walk Speed Value", Min = 16, Max = 300, Default = 16, Increment = 1, Suffix = " ws", Flag = "Killer_WalkSpeed", Callback = function(v) tbl3.Killer_WalkSpeed = v end })
		KillSettST:AddDropdown({ Text = "Attack Mode", Options = { "BasicAttack", "Lunge" }, Default = "BasicAttack", Flag = "Killer_AttackMode", Callback = function(v) tbl3.Killer_AttackMode = v end })
		KillSettST:AddToggle({ Text = "One Hit  [RISKY]", Default = false, Flag = "Killer_SpamHit", Callback = function(v) tbl3.Killer_SpamHit = v end })
		KillSettST:AddSlider({ Text = "Hit Radius", Min = 5, Max = 15, Default = 8, Increment = 1, Flag = "Killer_HitRadius", Callback = function(v) tbl3.Killer_SpamHitRadius = v end })
		KillSettST:AddSlider({ Text = "Hit Delay", Min = 15, Max = 500, Default = 50, Increment = 1, Suffix = "ms", Flag = "Killer_HitDelay", Callback = function(v) tbl3.Killer_SpamHitDelay = v end })
		KillSettST:AddToggle({ Text = "Show Hit Range", Default = true, Flag = "Killer_HitEspCircle", Callback = function(v) tbl3.Killer_HitEspCircle = v end })
		KillSettST:AddToggle({ Text = "Auto Aim  (Hidden)", Default = false, Callback = function(v) activateDashLock(v) end })

		KillSettST:AddSection("Killer Skills", "Lucide:bolt")

		KillSettST:AddToggle({ Text = "Counter Parry  (V)", Default = false,
			Callback = function(v)
				if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/CParry"))() end)
				elseif getgenv().CParry then pcall(getgenv().CParry) end
			end,
		})

		local _il = KillSettST:AddToggle({
			Text = "Infinite Lunge",
			Default = false,
			Flag = "Killer_InfLunge",
			Callback = function(v) toggles["Killer_InfLunge"].Value = v tbl3.Killer_InfLunge = v if not v then tbl6.isHoldingLunge = false end end,
		})
		toggles["Killer_InfLunge"] = makeTogProxy(_il, false)

		local _il2 = KillSettST:AddToggle({
			Text = "Infinite Lunge V2",
			Default = false,
			Flag = "Killer_InfLungeV2",
			Callback = function(v)
				toggles["Killer_InfLungeV2"].Value = v tbl3.Killer_InfLungeV2 = v
				local ch = tbl.LocalPlayer.Character
				if v then if ch then setLungeboost(ch) end
				else
					if tbl6.lungeV2Connection then tbl6.lungeV2Connection:Disconnect() tbl6.lungeV2Connection = nil end
					if ch then ch:SetAttribute("lungeboost", 1) end
				end
			end,
		})
		toggles["Killer_InfLungeV2"] = makeTogProxy(_il2, false)

		KillSettST:AddToggle({ Text = "Anti Blind", Default = false, Flag = "Anti_Blind", Callback = function(v) tbl3.Anti_Blind = v end })
		KillSettST:AddToggle({ Text = "Infinite Corrupt Abyssal", Default = false, Flag = "Killer_InfAbyssal", Callback = function(v) tbl3.Killer_InfAbyssal = v end })
		KillSettST:AddToggle({ Text = "Block Windows / Pallets  [RISKY]", Default = false, Callback = function(v) blockWindowsPallets(v) end })
		KillSettST:AddToggle({ Text = "Bypass Carry Skill  [RISKY]", Default = false, Flag = "Killer_BypassCarry", Callback = function(v) tbl3.Killer_BypassCarry = v end })

		local _ncd = KillSettST:AddToggle({
			Text = "NO CD Stalker / Hidden  [RISKY]",
			Default = false,
			Flag = "Killer_NoCDToggle",
			Callback = function(v) toggles["Killer_NoCDToggle"].Value = v activateNoCooldown(v) end,
		})
		toggles["Killer_NoCDToggle"] = makeTogProxy(_ncd, false)

		local _si = KillSettST:AddToggle({
			Text = "Invisible Slasher",
			Default = false,
			Flag = "Slasher_InvisibleToggle",
			Callback = function(v) toggles["Slasher_InvisibleToggle"].Value = v activateSlasherInvis(v) end,
		})
		toggles["Slasher_InvisibleToggle"] = makeTogProxy(_si, false)

		KillSettST:AddSlider({ Text = "Break Speed", Min = 1, Max = 10, Default = 1, Increment = 1, Flag = "Killer_BreakSpeed", Callback = function(v) tbl3.Killer_BreakSpeed = v end })

		local tbl19 = {}

		local _3p = KillCamST:AddToggle({
			Text = "3rd Person Camera",
			Description = "Enables third-person view for Killer",
			Icon = "Lucide:camera",
			Default = false,
			Flag = "Killer_3rdPerson",
			Callback = function(killer3rdPerson)
				toggles["Killer_3rdPerson"].Value = killer3rdPerson
				tbl3.Killer_3rdPerson = killer3rdPerson
				if tbl6.ThirdPersonCamConn then tbl6.ThirdPersonCamConn:Disconnect() tbl6.ThirdPersonCamConn = nil end
				if killer3rdPerson then
					tbl19.CameraMode = tbl.LocalPlayer.CameraMode
					tbl19.MinZoom = tbl.LocalPlayer.CameraMinZoomDistance
					tbl19.MaxZoom = tbl.LocalPlayer.CameraMaxZoomDistance
					tbl19.DevComputer = tbl.LocalPlayer.DevComputerCameraMode
					tbl19.DevTouch = tbl.LocalPlayer.DevTouchCameraMode
					local function applyKillerCamera()
						if tbl6.cachedRole ~= "Killer" then return end
						local mode = tbl3.Killer_CameraMode or "Classic"
						if tbl.LocalPlayer.CameraMode ~= Enum.CameraMode.Classic then tbl.LocalPlayer.CameraMode = Enum.CameraMode.Classic end
						local maxZ = tbl3.Misc_InfiniteZoom and math.huge or 40
						if tbl.LocalPlayer.CameraMaxZoomDistance ~= maxZ then tbl.LocalPlayer.CameraMaxZoomDistance = maxZ end
						if tbl.LocalPlayer.CameraMinZoomDistance ~= 7 then tbl.LocalPlayer.CameraMinZoomDistance = 7 end
						tbl.LocalPlayer.DevComputerCameraMode = Enum.DevComputerCameraMovementMode[mode] or Enum.DevComputerCameraMovementMode.Classic
						tbl.LocalPlayer.DevTouchCameraMode = Enum.DevTouchCameraMovementMode[mode] or Enum.DevTouchCameraMovementMode.Classic
					end
					if tbl6.cachedRole == "Killer" then applyKillerCamera() else sendNotif("3rd Person only works as Killer!", 3) end
					tbl6.ThirdPersonCamConn = tbl.RunService.RenderStepped:Connect(function()
						if tbl6.cachedRole == "Killer" then applyKillerCamera() end
					end)
				elseif tbl19.CameraMode then
					tbl.LocalPlayer.CameraMode = tbl19.CameraMode
					tbl.LocalPlayer.CameraMinZoomDistance = tbl19.MinZoom
					tbl.LocalPlayer.CameraMaxZoomDistance = tbl3.Misc_InfiniteZoom and math.huge or tbl19.MaxZoom
					tbl.LocalPlayer.DevComputerCameraMode = tbl19.DevComputer
					tbl.LocalPlayer.DevTouchCameraMode = tbl19.DevTouch
				else
					tbl.LocalPlayer.CameraMode = Enum.CameraMode.Classic
					tbl.LocalPlayer.CameraMinZoomDistance = 7
					tbl.LocalPlayer.CameraMaxZoomDistance = tbl3.Misc_InfiniteZoom and math.huge or 128
					tbl.LocalPlayer.DevComputerCameraMode = Enum.DevComputerCameraMovementMode.UserChoice
					tbl.LocalPlayer.DevTouchCameraMode = Enum.DevTouchCameraMovementMode.UserChoice
				end
			end,
		})
		toggles["Killer_3rdPerson"] = makeTogProxy(_3p, false)

		KillCamST:AddDropdown({ Text = "3rd Person Mode", Options = { "Classic", "Follow" }, Default = "Classic", Flag = "Killer_CameraMode", Callback = function(v) tbl3.Killer_CameraMode = v end })

		KillCamST:AddSection("Skin", "Lucide:user")

		KillCamST:AddDropdown({
			Text = "Change Masked Skin",
			Description = "Only works as the Masked Killer",
			Options = { "Tony", "Rabbit", "Alex", "Brandon", "Cobra", "Richard", "Richter" },
			Flag = "Killer_MaskedSkin",
			Callback = function(arg)
				if tbl6.cachedRole ~= "Killer" then sendNotif("Access Denied: Not Killer!", 3) return end
				local sk = tbl.LocalPlayer:FindFirstChild("SelectedKiller")
				if (sk and sk.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller")) ~= "Masked" then
					sendNotif("Access Denied: Killer is not Masked!", 3) return
				end
				pcall(function()
					game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Killers"):WaitForChild("Masked"):WaitForChild("Activatepower"):FireServer(arg)
					sendNotif("Mask changed to " .. arg, 2)
					task.spawn(function() task.wait(60) pcall(function() game:GetService("ReplicatedStorage"):WaitForChild("Remotes"):WaitForChild("Killers"):WaitForChild("Masked"):WaitForChild("Deactivatepower"):FireServer() end) end)
				end)
			end,
		})

		TeleTab:AddSection("Refresh", "Lucide:refresh-cw")

		TeleTab:AddButton({
			Text = "Refresh Map Data",
			Description = "Rebuild generator, hook, gate and player lists",
			Icon = "Lucide:refresh-cw",
			Callback = function()
				refreshMapData()
				local tbl20 = {}
				for i, gen in ipairs(tbl9.Generators) do
					local prog = math.floor(gen.model:GetAttribute("RepairProgress") or gen.model:FindFirstChild("RepairProgress") and gen.model.RepairProgress.Value or 0)
					local pl = gen.model:GetAttribute("PlayersRepairingCount") or gen.model:FindFirstChild("PlayersRepairingCount") and gen.model.PlayersRepairingCount.Value or 0
					table.insert(tbl20, { index = i, progress = prog, players = pl })
				end
				table.sort(tbl20, function(a, b) return a.progress > b.progress end)
				local tbl21 = {}
				for _, v in ipairs(tbl20) do table.insert(tbl21, string.format("Generator %d | %d%% | %dP", v.index, v.progress, v.players)) end
				if #tbl21 == 0 then tbl21 = { "No Gen Found" } end
				options["Tele_GenDropdown"]:SetValues(tbl21)
				local tbl22 = {}
				for _, player in pairs(tbl.Players:GetPlayers()) do
					if player ~= tbl.LocalPlayer then
						local tag = player.Team and player.Team.Name == "Survivors" and "[Surv]" or player.Team and player.Team.Name == "Killer" and "[Killer]" or "[Spct]"
						table.insert(tbl22, tag .. " " .. player.Name)
					end
				end
				if #tbl22 == 0 then tbl22 = { "No Players Found" } end
				options["Tele_PlayerDropdown"]:SetValues(tbl22)
				local tbl23 = {} for i in ipairs(tbl9.Hooks) do table.insert(tbl23, "Hook " .. i) end
				if #tbl23 == 0 then tbl23 = { "No Hook Found" } end
				options["Tele_HookDropdown"]:SetValues(tbl23)
				local tbl24 = {} for i in ipairs(tbl9.Gates) do table.insert(tbl24, "Gate " .. i) end
				if #tbl24 == 0 then tbl24 = { "No Gate Found" } end
				options["Tele_GateDropdown"]:SetValues(tbl24)
				sendNotif("Map data refreshed!", 2)
			end,
		})

		TeleTab:AddSection("Generators", "Lucide:cpu")
		TeleTab:AddSlider({ Text = "TP Offset Distance", Min = 1, Max = 15, Default = 5, Increment = 1, Flag = "Tele_GenOffset", Callback = function(v) tbl3.TP_Offset = v end })

		local _gd = TeleTab:AddDropdown({ Text = "Select Generator", Options = { "Refresh First" }, Default = "Refresh First", Flag = "Tele_GenDropdown", Callback = function(v) options["Tele_GenDropdown"].Value = v tbl6.CurrentTeleportGen = v end })
		options["Tele_GenDropdown"] = makeOptProxy(_gd, "Refresh First")

		TeleTab:AddButton({ Text = "Teleport to Generator", Icon = "Lucide:map-pin",
			Callback = function()
				if tbl6.CurrentTeleportGen and string.match(tbl6.CurrentTeleportGen, "Generator %d+") then
					local gen = tbl9.Generators[tonumber(string.match(tbl6.CurrentTeleportGen, "Generator (%d+)"))]
					if gen then teleportToGenerator(gen) end
				end
			end,
		})

		TeleTab:AddSection("Players", "Lucide:users")

		local _pd = TeleTab:AddDropdown({ Text = "Select Player", Options = { "Refresh First" }, Default = "Refresh First", Flag = "Tele_PlayerDropdown", Callback = function(v) options["Tele_PlayerDropdown"].Value = v tbl6.CurrentTeleportPlayer = v end })
		options["Tele_PlayerDropdown"] = makeOptProxy(_pd, "Refresh First")

		TeleTab:AddButton({ Text = "Teleport to Player", Icon = "Lucide:user",
			Callback = function()
				if tbl6.CurrentTeleportPlayer and tbl6.CurrentTeleportPlayer ~= "No Players Found" then
					local player = tbl.Players:FindFirstChild(string.match(tbl6.CurrentTeleportPlayer, "%[%w+%]%s+(.+)") or tbl6.CurrentTeleportPlayer)
					if player and player.Character and tbl.LocalPlayer.Character then tbl.LocalPlayer.Character:PivotTo(player.Character:GetPivot()) end
				end
			end,
		})

		TeleTab:AddToggle({ Text = "Auto Follow", Default = false,
			Callback = function(v)
				tbl6.AutoFollow = v
				if tbl6.FollowConnection then tbl6.FollowConnection:Disconnect() tbl6.FollowConnection = nil end
				if v then
					if not tbl6.CurrentTeleportPlayer or tbl6.CurrentTeleportPlayer == "No Players Found" then return end
					local player = tbl.Players:FindFirstChild(string.match(tbl6.CurrentTeleportPlayer, "%[%w+%]%s+(.+)") or tbl6.CurrentTeleportPlayer)
					if player then
						tbl6.FollowConnection = tbl.RunService.Heartbeat:Connect(function()
							pcall(function()
								if not player.Character or not player.Character:FindFirstChild("HumanoidRootPart") then return end
								if not tbl.LocalPlayer.Character or not tbl.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then return end
								tbl.LocalPlayer.Character:PivotTo(player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 1, 0))
							end)
						end)
					end
				end
			end,
		})

		TeleTab:AddSection("Hooks and Gates", "Lucide:anchor")

		local _hd = TeleTab:AddDropdown({ Text = "Select Hook", Options = { "Refresh First" }, Default = "Refresh First", Flag = "Tele_HookDropdown", Callback = function(v) options["Tele_HookDropdown"].Value = v tbl6.CurrentTeleportHook = v end })
		options["Tele_HookDropdown"] = makeOptProxy(_hd, "Refresh First")

		TeleTab:AddButton({ Text = "Teleport to Hook", Icon = "Lucide:anchor",
			Callback = function()
				if tbl6.CurrentTeleportHook and string.match(tbl6.CurrentTeleportHook, "Hook %d+") then
					local hook = tbl9.Hooks[tonumber(string.match(tbl6.CurrentTeleportHook, "%d+"))]
					if hook and tbl.LocalPlayer.Character then
						local pt = hook:FindFirstChild("HookPoint")
						tbl.LocalPlayer.Character:PivotTo(pt and pt:GetPivot() or hook:GetPivot())
					end
				end
			end,
		})

		local _gatd = TeleTab:AddDropdown({ Text = "Select Gate", Options = { "Refresh First" }, Default = "Refresh First", Flag = "Tele_GateDropdown", Callback = function(v) options["Tele_GateDropdown"].Value = v tbl6.CurrentTeleportGate = v end })
		options["Tele_GateDropdown"] = makeOptProxy(_gatd, "Refresh First")

		TeleTab:AddButton({ Text = "Teleport to Gate", Icon = "Lucide:log-out",
			Callback = function()
				if tbl6.CurrentTeleportGate and string.match(tbl6.CurrentTeleportGate, "Gate %d+") then
					local gate = tbl9.Gates[tonumber(string.match(tbl6.CurrentTeleportGate, "%d+"))]
					if gate and tbl.LocalPlayer.Character then tbl.LocalPlayer.Character:PivotTo(gate:GetPivot() * CFrame.new(0, 0, 8)) end
				end
			end,
		})

		local EspSettST  = EspTab:AddSubTab({ Name = "Settings", Icon = "Lucide:settings" })
		local EspTargST  = EspTab:AddSubTab({ Name = "Targets", Icon = "Lucide:target" })

		EspSettST:AddSection("ESP Options", "Lucide:eye")

		EspSettST:AddToggle({ Text = "Enable ESP", Description = "Highlights all entities on the map", Default = false, Flag = "ESP_Master", Callback = function(v) tbl3.ESP_Master = v if v then refreshMapData() else clearAllESP() end end })
		EspSettST:AddSlider({ Text = "ESP Distance", Min = 50, Max = 500, Default = 200, Increment = 10, Suffix = " studs", Flag = "ESP_MaxDist", Callback = function(v) tbl3.ESP_MaxDistance = v end })
		EspSettST:AddSlider({ Text = "ESP Transparency", Min = 0, Max = 10, Default = 7, Increment = 1, Flag = "ESP_Trans", Callback = function(v) tbl3.Trans = v / 10 if tbl3.ESP_Master then clearAllESP() refreshMapData() end end })
		EspSettST:AddToggle({ Text = "Name Player", Default = false, Flag = "ESP_Name", Callback = function(v) tbl3.ESP_Name = v if v then refreshMapData() else clearAllESP() end end })
		EspSettST:AddToggle({ Text = "Name Generator", Default = false, Flag = "ESP_NameG", Callback = function(v) tbl3.ESP_NameG = v if v then refreshMapData() else clearAllESP() end end })
		EspSettST:AddToggle({ Text = "Item ESP", Default = false, Flag = "ESP_ItemIcon", Callback = function(v) tbl3.ESP_ItemIcon = v if tbl3.ESP_Master and not v then clearESPByType("Item") end end })
		EspSettST:AddToggle({ Text = "Outline Mode", Default = false, Flag = "ESP_Outline", Callback = function(v) tbl3.ESP_Outline = v end })
		EspSettST:AddToggle({ Text = "Killer Warning", Default = false, Flag = "ESP_KillerWarn", Callback = function(v) tbl3.ESP_KillerWarn = v end })

		EspSettST:AddToggle({
			Text = "Rainbow ESP  (Chroma)",
			Description = "Cycles all ESP colors through the full color spectrum",
			Icon = "Lucide:sparkles",
			Default = false,
			Flag = "ESP_Chroma",
			Callback = function(v)
				tbl3.ESP_Chroma = v
				if not v then
					tbl6.ChromaHue = 0
					tbl7.Colors.Player = Color3.fromRGB(0, 255, 100)
					tbl7.Colors.Killer = Color3.fromRGB(255, 0, 100)
					tbl7.Colors.SCP = Color3.fromRGB(150, 0, 255)
					tbl7.Colors.Generator = Color3.fromRGB(255, 200, 0)
					tbl7.Colors.Pallet = Color3.fromRGB(0, 200, 255)
					tbl7.Colors.Window = Color3.fromRGB(0, 150, 255)
					tbl7.Colors.Hook = Color3.fromRGB(200, 100, 0)
					tbl7.Colors.Gate = Color3.fromRGB(255, 255, 255)
				end
			end,
		})

		EspSettST:AddToggle({
			Text = "Highest Generator Highlight",
			Description = "Highlights the generator with the most repair progress",
			Icon = "Lucide:cpu",
			Default = false,
			Flag = "ESP_HighestGen",
			Callback = function(v) tbl3.ESP_HighestGen = v end,
		})

		EspSettST:AddColorPicker({
			Text = "Highest Gen Color",
			Default = Color3.fromRGB(100, 255, 100),
			Flag = "ESP_HighestGenColor",
			Callback = function(c) tbl7.Colors.GeneratorDone = c end,
		})

		EspSettST:AddToggle({
			Text = "Injured Player Color",
			Description = "Highlights injured survivors in yellow-red based on HP",
			Icon = "Lucide:heart-pulse",
			Default = true,
			Flag = "ESP_InjuredColor",
			Callback = function(v) tbl3.ESP_InjuredColor = v end,
		})

		EspSettST:AddSection("Indicators", "Lucide:bell")

		EspSettST:AddToggle({ Text = "Show Next Map", Default = true, Flag = "Next_Map", Callback = function(v) tbl3.Next_Map = v end })
		EspSettST:AddToggle({ Text = "Killer Stun Indicator", Default = false, Flag = "Show_Stun", Callback = function(v) tbl3.Show_Stun = v end })
		EspSettST:AddToggle({ Text = "Show FPS and Spectators", Default = true, Flag = "Misc_OverlayInfo",
			Callback = function(v)
				if tbl6.WatermarkUI then tbl6.WatermarkUI.Enabled = v end
				if getgenv().Tixo_SpectatorUI then getgenv().Tixo_SpectatorUI.Enabled = v end
			end,
		})
		EspSettST:AddToggle({ Text = "Info Perk", Default = false,
			Callback = function(v)
				if v then
					if not getgenv().InfoPerkLoaded then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/perk-info"))() end)
					elseif getgenv().ToggleInfoPerk then getgenv().ToggleInfoPerk(true) end
				else
					if getgenv().InfoPerkCleanup then getgenv().InfoPerkCleanup() end
					getgenv().InfoPerkLoaded = false
				end
			end,
		})

		EspTargST:AddSection("Entities", "Lucide:users")

		EspTargST:AddToggle({ Text = "SCP / Zombie", Default = false, Flag = "ESP_SCP", Callback = function(v) tbl3.ESP_SCP = v if tbl3.ESP_Master then if not v then clearESPByType("SCP") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "SCP Color", Default = tbl7.Colors.SCP, Callback = function(c) tbl7.Colors.SCP = c end })
		EspTargST:AddToggle({ Text = "Player", Default = false, Flag = "ESP_Player", Callback = function(v) tbl3.ESP_Player = v if tbl3.ESP_Master then if not v then clearESPByType("Player") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Player Color", Default = tbl7.Colors.Player, Callback = function(c) tbl7.Colors.Player = c end })
		EspTargST:AddToggle({ Text = "Killer", Default = false, Flag = "ESP_Killer", Callback = function(v) tbl3.ESP_Killer = v if tbl3.ESP_Master then if not v then clearESPByType("Killer") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Killer Color", Default = tbl7.Colors.Killer, Callback = function(c) tbl7.Colors.Killer = c end })
		EspTargST:AddToggle({ Text = "Generator", Default = false, Flag = "ESP_Generator", Callback = function(v) tbl3.ESP_Generator = v if tbl3.ESP_Master then if not v then clearESPByType("Generator") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Generator Color", Default = tbl7.Colors.Generator, Callback = function(c) tbl7.Colors.Generator = c end })

		EspTargST:AddSection("Objects", "Lucide:box")

		EspTargST:AddToggle({ Text = "Pallet", Default = false, Flag = "ESP_Pallet", Callback = function(v) tbl3.ESP_Pallet = v if tbl3.ESP_Master then if not v then clearESPByType("Pallet") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Pallet Color", Default = tbl7.Colors.Pallet, Callback = function(c) tbl7.Colors.Pallet = c end })
		EspTargST:AddToggle({ Text = "Window / Vault", Default = false, Flag = "ESP_Window", Callback = function(v) tbl3.ESP_Window = v if tbl3.ESP_Master then if not v then clearESPByType("Window") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Window Color", Default = tbl7.Colors.Window, Callback = function(c) tbl7.Colors.Window = c end })
		EspTargST:AddToggle({ Text = "Hook", Default = false, Flag = "ESP_Hook", Callback = function(v) tbl3.ESP_Hook = v if tbl3.ESP_Master then if not v then clearESPByType("Hook") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Hook Color", Default = tbl7.Colors.Hook, Callback = function(c) tbl7.Colors.Hook = c end })
		EspTargST:AddToggle({ Text = "Exit Gate", Default = false, Flag = "ESP_Gate", Callback = function(v) tbl3.ESP_Gate = v if tbl3.ESP_Master then if not v then clearESPByType("Gate") else refreshMapData() end end end })
		EspTargST:AddColorPicker({ Text = "Gate Color", Default = tbl7.Colors.Gate, Callback = function(c) tbl7.Colors.Gate = c end })

		local AimMainST = AimTab:AddSubTab({ Name = "Aimbot", Icon = "Lucide:crosshair" })
		local AimPistolST = AimTab:AddSubTab({ Name = "Pistol (TOF)", Icon = "Lucide:target" })
		local AimVeilST = AimTab:AddSubTab({ Name = "Veil / Crosshair", Icon = "Lucide:wind" })

		AimMainST:AddSection("Aimbot", "Lucide:crosshair")

		AimMainST:AddToggle({ Text = "Aimbot", Default = false, Flag = "Aimbot_Enabled", Callback = function(v) tbl3.Aimbot_Enabled = v end })
		AimMainST:AddToggle({ Text = "Show FOV Circle", Default = true, Flag = "Aimbot_ShowFOV", Callback = function(v) tbl3.Aimbot_ShowFOV = v end })
		AimMainST:AddSlider({ Text = "FOV Circle Radius", Min = 50, Max = 500, Default = 150, Increment = 10, Flag = "Aimbot_Radius", Callback = function(v) tbl3.Aimbot_Radius = v end })
		AimMainST:AddSlider({ Text = "Max Distance", Min = 50, Max = 1000, Default = 300, Increment = 10, Suffix = " studs", Flag = "Aimbot_MaxDist", Callback = function(v) tbl3.Aimbot_MaxDist = v end })
		AimMainST:AddSlider({ Text = "Smoothness", Min = 1, Max = 10, Default = 5, Increment = 1, Flag = "Aimbot_Smooth", Callback = function(v) tbl3.Aimbot_Smoothness = v / 10 end })
		AimMainST:AddTextbox({ Text = "Predict Offset", Placeholder = "e.g. 0.05", Default = "0", Flag = "Aimbot_Predict",
			Callback = function(v) local n = tonumber(v) if n then tbl3.Aimbot_Predict = n end end,
		})

		AimMainST:AddSection("Flash Aim", "Lucide:zap")

		AimMainST:AddToggle({ Text = "Aim Flash", Default = false, Flag = "Flash_Silent", Callback = function(v) tbl3.Flash_Silent = v end })
		AimMainST:AddSlider({ Text = "Aim Offset Y", Description = "0=Body  1.5=Head  8=Above Head", Min = 1, Max = 15, Default = 15, Increment = 1, Flag = "Flash_YOffset", Callback = function(v) tbl3.Flash_YOffset = v end })

		AimPistolST:AddSection("Sound", "Lucide:volume-2")

		AimPistolST:AddToggle({ Text = "Custom Sound TOF", Default = false, Flag = "Pistol_CustomSound",
			Callback = function(v) tbl3.Pistol_CustomSound = v if tbl.LocalPlayer.Character then setupPistolSound(tbl.LocalPlayer.Character) end end,
		})
		AimPistolST:AddDropdown({ Text = "Select Sound", Options = { "Sound 1", "Sound 2", "Sound 3", "Sound 4" }, Default = "Sound 1", Flag = "Pistol_SoundDropdown",
			Callback = function(v) tbl3.Pistol_SelectedSound = v if tbl3.Pistol_CustomSound and tbl.LocalPlayer.Character then setupPistolSound(tbl.LocalPlayer.Character) end end,
		})

		AimPistolST:AddSection("Aim", "Lucide:target")

		local _as = AimPistolST:AddToggle({
			Text = "Pistol Silent Aim  [RISKY]",
			Default = false,
			Flag = "Aim_Silent",
			Callback = function(v) toggles["Aim_Silent"].Value = v tbl3.Aim_Silent = v end,
		})
		toggles["Aim_Silent"] = makeTogProxy(_as, false)
		toggles["Aim_Pre"] = { Value = false, SetValue = function(self, v) self.Value = v end }

		AimPistolST:AddToggle({ Text = "Auto Predict", Default = false, Flag = "Aim_Pre", Callback = function(v) toggles["Aim_Pre"].Value = v tbl3.Predict = v end })
		AimPistolST:AddToggle({ Text = "Aim Lock", Default = false, Flag = "Aim_Lock", Callback = function(v) tbl3.Aim_Lock = v end })
		AimPistolST:AddToggle({ Text = "Block Aim on Knocked", Default = true, Flag = "Pistol_BlockKnocked", Callback = function(v) tbl3.Pistol_BlockKnocked = v end })
		AimPistolST:AddToggle({ Text = "Show Laser", Default = true, Flag = "Pistol_ShowLaser", Callback = function(v) tbl3.Pistol_ShowLaser = v if not v and part and part.Parent then part.Parent = nil end end })
		AimPistolST:AddDropdown({ Text = "Target Aim Part", Options = { "Head", "Torso", "Root" }, Default = "Torso", Flag = "AIM_TargetPart", Callback = function(v) tbl3.AIM_TargetPart = v end })
		AimPistolST:AddSlider({ Text = "Prediction", Min = 5, Max = 50, Default = 35, Increment = 1, Flag = "Pistol_PredictLead", Callback = function(v) tbl3.Pistol_PredictLead = v / 10 end })
		AimPistolST:AddSlider({ Text = "Aim Offset", Min = -2, Max = 0, Default = tbl3.Pistol_AimOffset, Increment = 1, Flag = "Pistol_AimOffset", Callback = function(v) tbl3.Pistol_AimOffset = v end })

		local _ptd = AimPistolST:AddDropdown({
			Text = "Pistol Target",
			Options = { "Killer", "Survivor", "SCP" },
			Default = "Killer",
			Flag = "Pistol_Target_Drop",
			Callback = function(v) options["Pistol_Target_Drop"].Value = v tbl3.Pistol_Target = v end,
		})
		options["Pistol_Target_Drop"] = makeOptProxy(_ptd, "Killer")

		AimPistolST:AddButton({ Text = "Cycle Target Type  (T)", Icon = "Lucide:repeat", Callback = function() cycleTargetType() end })
		AimPistolST:AddToggle({ Text = "Show Target UI  (Mobile)", Default = false, Callback = function(v) if screenGui2 then screenGui2.Enabled = v end end })
		AimPistolST:AddToggle({ Text = "Pistol FOV Mode", Default = false, Flag = "Pistol_FOVMode", Callback = function(v) tbl3.Pistol_FOVMode = v end })
		AimPistolST:AddToggle({ Text = "Show Pistol FOV", Default = false, Flag = "Pistol_ShowFOV", Callback = function(v) tbl3.Pistol_ShowFOV = v end })
		AimPistolST:AddSlider({ Text = "Pistol FOV Radius", Min = 50, Max = 300, Default = 120, Increment = 10, Flag = "Pistol_FOV", Callback = function(v) tbl3.Pistol_FOV = v end })

		do
			tbl.UserInputService.InputBegan:Connect(function(input, gp)
				if gp then return end
				if input.KeyCode == Enum.KeyCode.T then cycleTargetType() end
			end)
		end

		AimVeilST:AddSection("Veil  (Spear)", "Lucide:wind")

		local _sv = AimVeilST:AddToggle({
			Text = "Veil Silent Aim  [RISKY]",
			Default = false,
			Flag = "Aim_SilentVeil",
			Callback = function(v)
				if v then
					if tbl6.cachedRole ~= "Killer" then sendNotif("Access Denied: Not Killer!", 3) task.defer(function() toggles["Aim_SilentVeil"]:SetValue(false) end) return end
					local sk = tbl.LocalPlayer:FindFirstChild("SelectedKiller")
					if (sk and sk.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller")) ~= "Veil" then
						sendNotif("Access Denied: Not Veil!", 3) task.defer(function() toggles["Aim_SilentVeil"]:SetValue(false) end) return
					end
				end
				toggles["Aim_SilentVeil"].Value = v
				tbl3.Aim_SilentVeil = v
			end,
		})
		toggles["Aim_SilentVeil"] = makeTogProxy(_sv, false)

		AimVeilST:AddToggle({ Text = "Smart Predict", Default = false, Flag = "SmartPredict_Toggle", Callback = function(v) tbl3.SmartPredict = v end })
		AimVeilST:AddSlider({ Text = "Smart Lead Multiplier", Min = 10, Max = 50, Default = 17, Increment = 1, Flag = "Veil_LeadMultiplier", Callback = function(v) tbl3.Veil_LeadMultiplier = v / 10 end })
		AimVeilST:AddToggle({ Text = "Show FOV", Default = true, Flag = "Veil_ShowFOV", Callback = function(v) tbl3.Veil_ShowFOV = v end })
		AimVeilST:AddToggle({ Text = "Snapline", Default = true, Flag = "Veil_ShowLaser", Callback = function(v) tbl3.Veil_ShowLaser = v end })
		AimVeilST:AddSlider({ Text = "FOV Radius", Min = 50, Max = 300, Default = 120, Increment = 10, Flag = "Veil_FOV", Callback = function(v) tbl3.Veil_FOV = v end })
		AimVeilST:AddSlider({ Text = "Distance", Min = 50, Max = 500, Default = 150, Increment = 10, Suffix = " studs", Flag = "Veil_Distance", Callback = function(v) tbl3.SPEAR_MaxDist = v end })
		AimVeilST:AddSlider({ Text = "Spear Speed", Min = 50, Max = 200, Default = 165, Increment = 5, Flag = "Veil_SpearSpeed", Callback = function(v) tbl3.SPEAR_Speed = v end })
		AimVeilST:AddSlider({ Text = "Spear Gravity", Min = 0, Max = 200, Default = 103, Increment = 1, Flag = "Veil_SpearGravity", Callback = function(v) tbl3.SPEAR_Gravity = v end })

		AimVeilST:AddSection("Crosshair", "Lucide:plus")

		AimVeilST:AddToggle({ Text = "Custom Crosshair", Default = false, Flag = "Crosshair_Enabled", Callback = function(v) tbl3.Crosshair_Enabled = v updateCrosshair() end })
		AimVeilST:AddDropdown({ Text = "Style", Options = { "Dot", "Cross", "Circle" }, Default = "Cross", Flag = "Crosshair_Type", Callback = function(v) tbl3.Crosshair_Type = v updateCrosshair() end })
		AimVeilST:AddSlider({ Text = "Size", Min = 2, Max = 30, Default = 4, Increment = 1, Flag = "Crosshair_Size", Callback = function(v) tbl3.Crosshair_Size = v updateCrosshair() end })
		AimVeilST:AddColorPicker({ Text = "Crosshair Color", Default = Color3.fromRGB(255, 255, 255), Flag = "Crosshair_Color", Callback = function(c) tbl3.Crosshair_Color = c updateCrosshair() end })

		local _cx = AimVeilST:AddTextbox({ Text = "Position X", Placeholder = "e.g. 0", Default = "0", Flag = "CrossX",
			Callback = function(v) local n = tonumber(v) if n then options["CrossX"].Value = v tbl3.Crosshair_OffsetX = n updateCrosshair() end end,
		})
		options["CrossX"] = makeOptProxy(_cx, "0")

		local _cy = AimVeilST:AddTextbox({ Text = "Position Y", Placeholder = "e.g. 0", Default = "0", Flag = "CrossY",
			Callback = function(v) local n = tonumber(v) if n then options["CrossY"].Value = v tbl3.Crosshair_OffsetY = n updateCrosshair() end end,
		})
		options["CrossY"] = makeOptProxy(_cy, "0")

		AimVeilST:AddButton({ Text = "Reset Position", Icon = "Lucide:rotate-ccw",
			Callback = function()
				tbl3.Crosshair_OffsetX = 0 tbl3.Crosshair_OffsetY = 0
				pcall(function() options["CrossX"]:SetValue("0") end)
				pcall(function() options["CrossY"]:SetValue("0") end)
				updateCrosshair()
			end,
		})

		local MiscVisualST = MiscTab:AddSubTab({ Name = "Visuals", Icon = "Lucide:monitor" })
		local MiscMoveST   = MiscTab:AddSubTab({ Name = "Movement", Icon = "Lucide:move" })
		local MiscToolsST  = MiscTab:AddSubTab({ Name = "Tools", Icon = "Lucide:wrench" })
		local MiscFlingUnloadST = MiscTab:AddSubTab({ Name = "Fling / Unload", Icon = "Lucide:zap" })

		MiscVisualST:AddSection("Camera", "Lucide:camera")

		MiscVisualST:AddToggle({ Text = "Camera DBD", Description = "Smoother DBD-style camera movement", Default = false, Flag = "Misc_SmoothCam",
			Callback = function(v) tbl3.Misc_SmoothCam = v applySmoothCamera() end,
		})
		MiscVisualST:AddSlider({ Text = "Camera Height", Min = -10, Max = 10, Default = -1, Increment = 1, Flag = "Misc_CamHeight", Callback = function(v) tbl3.Misc_CamHeight = v if tbl3.Misc_SmoothCam then applySmoothCamera() end end })
		MiscVisualST:AddSlider({ Text = "Camera Stiffness", Min = 1, Max = 30, Default = 9, Increment = 1, Flag = "Misc_CamStiffness", Callback = function(v) tbl3.Misc_CamStiffness = v if tbl3.Misc_SmoothCam then applySmoothCamera() end end })

		MiscVisualST:AddSection("Screen", "Lucide:monitor")

		MiscVisualST:AddToggle({ Text = "Custom Resolution", Default = false,
			Callback = function(v)
				if v then
					if not getgenv().resolusi then
						getgenv().resolusi = game:GetService("RunService").RenderStepped:Connect(function()
							tbl.Camera.CFrame = tbl.Camera.CFrame * CFrame.new(0, 0, 0, 1, 0, 0, 0, getgenv().Resolution.reso, 0, 0, 0, 1)
						end)
					end
				elseif getgenv().resolusi then getgenv().resolusi:Disconnect() getgenv().resolusi = nil end
			end,
		})
		getgenv().Resolution = { reso = 0.65 }
		MiscVisualST:AddSlider({ Text = "Resolution Scale", Min = 10, Max = 200, Default = 65, Increment = 1, Suffix = "%", Flag = "Res_Scale",
			Callback = function(v) getgenv().Resolution = getgenv().Resolution or {} getgenv().Resolution.reso = v / 100 end,
		})

		MiscVisualST:AddSection("Visual FX", "Lucide:sparkles")

		MiscVisualST:AddToggle({ Text = "Skip Cutscene", Default = false, Callback = function(v) setSkipCutscene(v) end })
		MiscVisualST:AddToggle({ Text = "Fullbright", Default = false, Flag = "Misc_Fullbright",
			Callback = function(v)
				tbl3.Misc_Fullbright = v
				if v then
					if not tbl6.OriginalLighting then
						local atm = tbl.Lighting:FindFirstChildOfClass("Atmosphere")
						tbl6.OriginalLighting = { Brightness = tbl.Lighting.Brightness, FogEnd = tbl.Lighting.FogEnd, GlobalShadows = tbl.Lighting.GlobalShadows, OutdoorAmbient = tbl.Lighting.OutdoorAmbient, Ambient = tbl.Lighting.Ambient, AtmosphereDensity = atm and atm.Density or 0.3 }
					end
					applyFullbright() startFullbrightLoop()
				else
					stopFullbrightLoop()
					if tbl6.OriginalLighting then
						tbl.Lighting.Brightness = tbl6.OriginalLighting.Brightness
						tbl.Lighting.FogEnd = tbl6.OriginalLighting.FogEnd
						tbl.Lighting.GlobalShadows = tbl6.OriginalLighting.GlobalShadows
						tbl.Lighting.OutdoorAmbient = tbl6.OriginalLighting.OutdoorAmbient
						tbl.Lighting.Ambient = tbl6.OriginalLighting.Ambient
						local atm = tbl.Lighting:FindFirstChildOfClass("Atmosphere")
						if atm and tbl6.OriginalLighting.AtmosphereDensity then atm.Density = tbl6.OriginalLighting.AtmosphereDensity end
					end
				end
			end,
		})
		MiscVisualST:AddSlider({ Text = "Fullbright Time", Min = 0, Max = 24, Default = 14, Increment = 1, Suffix = "h", Flag = "Fullbright_Time",
			Callback = function(v) if tbl3.Misc_Fullbright then tbl.Lighting.ClockTime = v end end,
		})
		MiscVisualST:AddToggle({ Text = "Smooth HDR", Default = false, Flag = "Misc_SmoothHDR", Callback = function(v) tbl3.Misc_SmoothHDR = v setSmoothHDR(v) end })

		MiscVisualST:AddSection("Graphics / FPS", "Lucide:gauge")

		local function applyFPSCap()
			if setfpscap then
				if toggles["Misc_FPSUnlockToggle"] and toggles["Misc_FPSUnlockToggle"].Value then
					local v = options["Misc_FPSDropdown"] and options["Misc_FPSDropdown"].Value
					setfpscap(v == "Max" and 9999 or tonumber(v) or 60)
				else setfpscap(60) end
			else sendNotif("setfpscap not supported!", 3) end
		end

		local _fpu = MiscVisualST:AddToggle({ Text = "Unlock FPS", Default = false, Flag = "Misc_FPSUnlock",
			Callback = function(v) toggles["Misc_FPSUnlockToggle"].Value = v applyFPSCap() end,
		})
		toggles["Misc_FPSUnlockToggle"] = makeTogProxy(_fpu, false)

		local _fpd = MiscVisualST:AddDropdown({ Text = "Target FPS", Options = { "60", "90", "120", "Max" }, Default = "120", Flag = "Misc_FPSDropdown",
			Callback = function(v) options["Misc_FPSDropdown"].Value = v if toggles["Misc_FPSUnlockToggle"] and toggles["Misc_FPSUnlockToggle"].Value then applyFPSCap() end end,
		})
		options["Misc_FPSDropdown"] = makeOptProxy(_fpd, "120")

		MiscMoveST:AddSection("Movement", "Lucide:footprints")

		MiscMoveST:AddToggle({ Text = "Noclip", Default = false, Flag = "Misc_Noclip", Callback = function(v) tbl3.Misc_Noclip = v end })
		MiscMoveST:AddToggle({ Text = "Fly Mode", Default = false, Flag = "Misc_FlyToggle",
			Callback = function(v)
				tbl3.Misc_FlyToggle = v
				local ch = tbl.LocalPlayer.Character
				local h2 = ch and ch:FindFirstChildOfClass("Humanoid")
				local hrp = ch and ch:FindFirstChild("HumanoidRootPart")
				if not ch or not h2 or not hrp then return end
				if v then
					if ch:FindFirstChild("Animate") then ch.Animate.Disabled = true end
					for _, tr in pairs(h2:GetPlayingAnimationTracks()) do tr:Stop() end
					h2:ChangeState(Enum.HumanoidStateType.Swimming) h2.AutoRotate = false
					local bv = Instance.new("BodyVelocity", hrp) bv.Name = "FlyStable" bv.MaxForce = Vector3.new(1e6, 1e6, 1e6) bv.Velocity = Vector3.zero
					local bg = Instance.new("BodyGyro", hrp) bg.Name = "FlyGyro" bg.MaxTorque = Vector3.new(9e9, 9e9, 9e9) bg.P = 90000 bg.CFrame = tbl.Camera.CFrame
					if tbl6.FlyConnection then tbl6.FlyConnection:Disconnect() end
					tbl6.FlyConnection = tbl.RunService.Heartbeat:Connect(function()
						if not ch or not hrp or not h2 then return end
						tbl.UserInputService.MouseBehavior = Enum.MouseBehavior.LockCenter
						bg.CFrame = tbl.Camera.CFrame
						if h2.MoveDirection.Magnitude > 0 then
							local md = h2.MoveDirection
							local lv = tbl.Camera.CFrame.LookVector
							local y = tbl.UserInputService:IsKeyDown(Enum.KeyCode.W) and lv.Y or (tbl.UserInputService:IsKeyDown(Enum.KeyCode.S) and -lv.Y or 0)
							ch:TranslateBy(Vector3.new(md.X, y, md.Z) * (tbl3.Misc_FlySpeed / 10))
						end
					end)
				else
					if tbl6.FlyConnection then tbl6.FlyConnection:Disconnect() end
					if hrp:FindFirstChild("FlyStable") then hrp.FlyStable:Destroy() end
					if hrp:FindFirstChild("FlyGyro") then hrp.FlyGyro:Destroy() end
					if ch:FindFirstChild("Animate") then ch.Animate.Disabled = false end
					h2.AutoRotate = true h2:ChangeState(Enum.HumanoidStateType.Running)
					tbl.UserInputService.MouseBehavior = Enum.MouseBehavior.Default
				end
			end,
		})
		MiscMoveST:AddSlider({ Text = "Fly Speed", Min = 10, Max = 500, Default = 10, Increment = 10, Flag = "Misc_FlySpeed", Callback = function(v) tbl3.Misc_FlySpeed = v end })

		MiscMoveST:AddSection("Jump", "Lucide:arrow-up")

		MiscMoveST:AddToggle({ Text = "High Jump", Default = false, Flag = "Misc_HighJump",
			Callback = function(v) tbl3.Misc_HighJump = v if not v and tbl.LocalPlayer.Character then local h2 = tbl.LocalPlayer.Character:FindFirstChildOfClass("Humanoid") if h2 then h2.UseJumpPower = false end end end,
		})
		MiscMoveST:AddSlider({ Text = "Jump Power", Min = 50, Max = 300, Default = 50, Increment = 10, Flag = "Misc_JumpPower", Callback = function(v) tbl3.Misc_JumpPower = v end })
		MiscMoveST:AddToggle({ Text = "Infinite Jump", Default = false, Flag = "Misc_InfJump", Callback = function(v) tbl3.Misc_InfJump = v end })
		MiscMoveST:AddToggle({ Text = "Infinite Zoom", Default = false, Flag = "Misc_InfiniteZoom",
			Callback = function(v)
				tbl3.Misc_InfiniteZoom = v
				if tbl6.InfiniteZoomConn then tbl6.InfiniteZoomConn:Disconnect() tbl6.InfiniteZoomConn = nil end
				if v then
					tbl.LocalPlayer.CameraMaxZoomDistance = math.huge
					tbl6.InfiniteZoomConn = tbl.LocalPlayer:GetPropertyChangedSignal("CameraMaxZoomDistance"):Connect(function()
						if tbl.LocalPlayer.CameraMaxZoomDistance ~= math.huge then tbl.LocalPlayer.CameraMaxZoomDistance = math.huge end
					end)
				else tbl.LocalPlayer.CameraMaxZoomDistance = tbl19.MaxZoom or 128 end
			end,
		})

		MiscToolsST:AddSection("Profile Spoofer", "Lucide:user-cog")

		MiscToolsST:AddToggle({ Text = "Fake Name", Default = false, Flag = "Misc_FakeName", Callback = function(v) tbl3.Misc_FakeName = v if v then applyFakeName() else removeFakeName() end end })
		MiscToolsST:AddToggle({ Text = "Fake Profile", Description = "Spoofs Level, Gears and Screws", Default = false, Flag = "Misc_FakeAttributes",
			Callback = function(v)
				tbl3.Misc_FakeAttributes = v
				if v then
					tbl.LocalPlayer:SetAttribute("Level", tonumber(options["Misc_LevelInput"].Value) or tbl4.Level)
					tbl.LocalPlayer:SetAttribute("Gears", tonumber(options["Misc_GearsInput"].Value) or tbl4.Gears)
					tbl.LocalPlayer:SetAttribute("Screws", tonumber(options["Misc_ScrewsInput"].Value) or tbl4.Screws)
				else
					tbl.LocalPlayer:SetAttribute("Level", tbl4.Level)
					tbl.LocalPlayer:SetAttribute("Gears", tbl4.Gears)
					tbl.LocalPlayer:SetAttribute("Screws", tbl4.Screws)
				end
			end,
		})

		local _li = MiscToolsST:AddTextbox({ Text = "Set Level", Placeholder = tostring(tbl4.Level), Default = tostring(tbl4.Level), Flag = "Misc_LevelInput",
			Callback = function(v) local n = tonumber(v) options["Misc_LevelInput"].Value = v if n and tbl3.Misc_FakeAttributes then tbl.LocalPlayer:SetAttribute("Level", n) end end,
		})
		options["Misc_LevelInput"] = makeOptProxy(_li, tostring(tbl4.Level))
		options["Misc_LevelInput"].Value = tostring(tbl4.Level)

		local _gi = MiscToolsST:AddTextbox({ Text = "Set Gears", Placeholder = tostring(tbl4.Gears), Default = tostring(tbl4.Gears), Flag = "Misc_GearsInput",
			Callback = function(v) local n = tonumber(v) options["Misc_GearsInput"].Value = v if n and tbl3.Misc_FakeAttributes then tbl.LocalPlayer:SetAttribute("Gears", n) end end,
		})
		options["Misc_GearsInput"] = makeOptProxy(_gi, tostring(tbl4.Gears))
		options["Misc_GearsInput"].Value = tostring(tbl4.Gears)

		local _sci = MiscToolsST:AddTextbox({ Text = "Set Screws", Placeholder = tostring(tbl4.Screws), Default = tostring(tbl4.Screws), Flag = "Misc_ScrewsInput",
			Callback = function(v) local n = tonumber(v) options["Misc_ScrewsInput"].Value = v if n and tbl3.Misc_FakeAttributes then tbl.LocalPlayer:SetAttribute("Screws", n) end end,
		})
		options["Misc_ScrewsInput"] = makeOptProxy(_sci, tostring(tbl4.Screws))
		options["Misc_ScrewsInput"].Value = tostring(tbl4.Screws)

		MiscToolsST:AddSection("GUI Tools", "Lucide:box")

		MiscToolsST:AddToggle({ Text = "Invisible GUI  (Q)", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/invis"))() end) elseif getgenv().RemoveInvisibleGui then pcall(getgenv().RemoveInvisibleGui) end end })
		MiscToolsST:AddToggle({ Text = "Sky Changer", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/SkyC"))() end) elseif getgenv().RemoveSkyChanger then pcall(getgenv().RemoveSkyChanger) end end })
		MiscToolsST:AddToggle({ Text = "Copy Avatar", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/copyava"))() end) elseif getgenv().RemoveCopyAvatar then pcall(getgenv().RemoveCopyAvatar) end end })
		MiscToolsST:AddToggle({ Text = "Moonwalk  (G)", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/MoonWalk"))() end) elseif getgenv().Moonwalk then pcall(getgenv().Moonwalk) end end })
		MiscToolsST:AddToggle({ Text = "Emote GUI", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/emote"))() end) elseif getgenv().StopEmoteGUI then pcall(getgenv().StopEmoteGUI) end end })
		MiscToolsST:AddToggle({ Text = "Super Fling  [RISKY]", Default = false, Callback = function(v) if v then pcall(function() loadstring(game:HttpGet(tbl10.SCRIPT .. "/Misc/fling"))() end) elseif getgenv().StopSuperRing then pcall(getgenv().StopSuperRing) end end })

		local connection3 = nil

		MiscFlingUnloadST:AddSection("Fling", "Lucide:send")

		local _af = MiscFlingUnloadST:AddToggle({ Text = "Fling", Default = false, Flag = "Misc_AuraFling",
			Callback = function(v)
				if v then
					if connection3 then connection3:Disconnect() end
					connection3 = tbl.RunService.PostSimulation:Connect(function()
						local ch = tbl.LocalPlayer.Character
						local hrp = ch and ch:FindFirstChild("HumanoidRootPart")
						if not hrp then return end
						for _, player in ipairs(tbl.Players:GetPlayers()) do
							if player ~= tbl.LocalPlayer and player.Character then
								for _, child in ipairs(player.Character:GetChildren()) do if child:IsA("BasePart") then child.CanCollide = false end end
							end
						end
						local fval = options["Misc_FlingPower"].Value
						local vel = hrp.Velocity
						hrp.Velocity = Vector3.new(fval, fval, fval)
						for _, d in ipairs(ch:GetDescendants()) do if d:IsA("BasePart") then d.CanCollide = false end end
						tbl.RunService.RenderStepped:Wait()
						if hrp then hrp.Velocity = vel end
					end)
				elseif connection3 then connection3:Disconnect() connection3 = nil end
			end,
		})
		toggles["Misc_AuraFling"] = makeTogProxy(_af, false)

		MiscFlingUnloadST:AddSlider({ Text = "Fling Power", Min = 5000, Max = 100000, Default = 50000, Increment = 1000, Flag = "Misc_FlingPower",
			Callback = function(v) options["Misc_FlingPower"].Value = v end,
		})
		options["Misc_FlingPower"] = makeOptProxy(nil, 50000)
		options["Misc_FlingPower"].Value = 50000

		MiscFlingUnloadST:AddButton({ Text = "Tools Jerk", Icon = "Lucide:wrench", Callback = function()
			pcall(function() loadstring(game:HttpGet("https://pastefy.app/wa3v2Vgm/raw"))() sendNotif("Tools loaded!", 3) end)
		end })

		MiscFlingUnloadST:AddSection("Unload", "Lucide:power")

		MiscFlingUnloadST:AddButton({
			Text = "Destroy UI",
			Description = "Completely unloads the script",
			Icon = "Lucide:trash-2",
			Callback = function()
				tbl6.Unloaded = true
				pcall(function() VindUI:Unload() end)
				if folder then folder:Destroy() end
				if circle then circle.Visible = false circle:Remove() end
				if tbl6.CutsceneConn then tbl6.CutsceneConn:Disconnect() end
				if tbl6.CharCutscene then tbl6.CharCutscene:Disconnect() end
				if tbl6.FlyConnection then tbl6.FlyConnection:Disconnect() end
				if tbl6.FollowConnection then tbl6.FollowConnection:Disconnect() end
				if tbl6.Pv2Con then tbl6.Pv2Con:Disconnect() end
				if connection3 then connection3:Disconnect() end
				if connection then connection:Disconnect() end
				if connection2 then connection2:Disconnect() end
				if tbl6.FleeThread then task.cancel(tbl6.FleeThread) end
				if tbl6.VaultBoostThread then task.cancel(tbl6.VaultBoostThread) end
				activateDashLock(false)
				if getgenv().SlasherInvisLoop then task.cancel(getgenv().SlasherInvisLoop) getgenv().SlasherInvisLoop = nil end
				if getgenv().resolusi then getgenv().resolusi:Disconnect() getgenv().resolusi = nil end
				if getgenv().VD_FakeParry_Cleanup then pcall(getgenv().VD_FakeParry_Cleanup) end
				if getgenv().InfoPerkCleanup then pcall(getgenv().InfoPerkCleanup) end
				clearAllESP()
				if part then part:Destroy() end
				if highlight then highlight:Destroy() end
				for _, n in ipairs({ "WM", "FovC", "SpcGui", "TargetUI", "Croshair" }) do
					local gui = tbl.CoreGui:FindFirstChild(n) or (tbl.LocalPlayer:FindFirstChild("PlayerGui") and tbl.LocalPlayer.PlayerGui:FindFirstChild(n))
					if gui then gui:Destroy() end
				end
				if getgenv().Tixo_SpectatorUI then getgenv().Tixo_SpectatorUI:Destroy() end
				local ch = tbl.LocalPlayer.Character
				if ch then
					local h2 = ch:FindFirstChildOfClass("Humanoid")
					local hrp = ch:FindFirstChild("HumanoidRootPart")
					if h2 then
						h2.WalkSpeed = tbl6.OriginalSpeed or 16 h2.UseJumpPower = false h2.JumpPower = 50
						if ch:FindFirstChild("Animate") then ch.Animate.Disabled = false end
						h2:ChangeState(Enum.HumanoidStateType.Running)
					end
					if hrp then
						for _, n2 in ipairs({ "FlyStable", "FlyGyro", "SpamHitCircleESP", "AutoParryCircleESP", "KillerWarn" }) do
							if hrp:FindFirstChild(n2) then hrp[n2]:Destroy() end
						end
					end
					ch:SetAttribute("vaultspeed", 1) ch:SetAttribute("speedboost", 1)
				end
				tbl.Camera.FieldOfView = 70
				tbl.LocalPlayer.CameraMode = Enum.CameraMode.Classic
				tbl.LocalPlayer.CameraMinZoomDistance = 0.5
				tbl.LocalPlayer.CameraMaxZoomDistance = 128
				stopFullbrightLoop()
				if tbl6.OriginalLighting then
					tbl.Lighting.Brightness = tbl6.OriginalLighting.Brightness
					tbl.Lighting.FogEnd = tbl6.OriginalLighting.FogEnd
					tbl.Lighting.GlobalShadows = tbl6.OriginalLighting.GlobalShadows
					tbl.Lighting.OutdoorAmbient = tbl6.OriginalLighting.OutdoorAmbient
					tbl.Lighting.Ambient = tbl6.OriginalLighting.Ambient
					local atm = tbl.Lighting:FindFirstChildOfClass("Atmosphere")
					if atm and tbl6.OriginalLighting.AtmosphereDensity then atm.Density = tbl6.OriginalLighting.AtmosphereDensity end
				end
				removeFakeName()
				for _, fn in ipairs({ "CleanupNoCD", "RemoveCopyAvatar", "RemoveSkyChanger", "RemoveGlobalChat", "Moonwalk", "RemoveInvisibleGui" }) do
					if getgenv()[fn] then pcall(getgenv()[fn]) end
				end
				local ic = tbl.Workspace:FindFirstChild("invischair")
				if ic then pcall(function() ic:Destroy() end) end
				tbl.LocalPlayer:SetAttribute("Level", tbl4.Level)
				tbl.LocalPlayer:SetAttribute("Gears", tbl4.Gears)
				tbl.LocalPlayer:SetAttribute("Screws", tbl4.Screws)
				for k, v in pairs(tbl3) do if type(v) == "boolean" then tbl3[k] = false end end
			end,
		})

		local jobId = game.JobId == "" and "Singleplayer/Studio" or game.JobId

		InfoTab:AddCard({
			Title = tbl.LocalPlayer.Name,
			Description = "Status: " .. (flag and "VIP" or "FREE") .. "  |  Expired: " .. expired,
			UserId = tbl.LocalPlayer.UserId,
		})

		tbl6.TeamLabel = InfoTab:AddLabel("Team: " .. (tbl6.cachedRole or str or "Unknown"))

		InfoTab:AddSection("Server", "Lucide:server")

		InfoTab:AddButton({ Text = "Copy Server ID", Icon = "Lucide:copy", Callback = function() if setclipboard then setclipboard(jobId) sendNotif("Copied!", 3) end end })
		InfoTab:AddButton({ Text = "Rejoin Server", Icon = "Lucide:refresh-cw",
			Callback = function()
				local lp = tbl.Players.LocalPlayer
				if game.JobId ~= "" then tbl.TeleportService:TeleportToPlaceInstance(game.PlaceId, game.JobId, lp)
				else tbl.TeleportService:Teleport(game.PlaceId, lp) end
			end,
		})
		InfoTab:AddButton({ Text = "Server Hop", Icon = "Lucide:shuffle", Callback = function() sendNotif("Finding server...", 2) hopToNewServer() end })
		InfoTab:AddButton({ Text = "Copy Key", Icon = "Lucide:key",
			Callback = function()
				if str2 and str2 ~= "" then
					if setclipboard then setclipboard(str2) sendNotif("Key copied!", 3) else sendNotif("Copy not supported!", 3) end
				else sendNotif("No key saved!", 3) end
			end,
		})

		InfoTab:AddSection("Script Info", "Lucide:code")

		InfoTab:AddInfoGrid({
			Title = "PerplexWare",
			Color = Color3.fromRGB(255, 255, 255),
			Columns = 2,
			Items = {
				{ Label = "Developer", Value = "by @rainlover.r" },
				{ Label = "Version", Value = tbl2.version },
				{ Label = "Status", Value = "Active" },
				{ Label = "Game", Value = game.Name ~= "" and game.Name:sub(1, 14) or tostring(game.PlaceId) },
			},
		})

		InfoTab:AddSection("Social", "Lucide:message-circle")

		InfoTab:AddButton({ Text = "Join Discord", Icon = "Lucide:message-circle",
			Callback = function()
				if setclipboard then setclipboard(tbl2.dc) sendNotif("Discord link copied!", 2) end
			end,
		})

		task.spawn(function()
			local ok, result = pcall(function()
				return tbl.HttpService:JSONDecode(game:HttpGet("https://discord.com/api/v9/invites/YCMd7Nq8xf?with_counts=true"))
			end)
			if ok and result and result.approximate_member_count then
				InfoTab:AddLabel("Members: " .. result.approximate_member_count)
			else
				InfoTab:AddLabel("dsc.gg/PerplexWarehub")
			end
		end)

		InfoTab:AddSection("Config", "Lucide:settings")

		local CFOLDER = "PerplexWare_VDCONFIG"
		local configNameValue = "default"

		local function listConfigs()
			local configs = {}
			pcall(function()
				if listfiles then
					for _, path in ipairs(listfiles(CFOLDER)) do
						local name = path:match("([^/\\]+)%.json$")
						if name then table.insert(configs, name) end
					end
				end
			end)
			if #configs == 0 then table.insert(configs, "(none)") end
			return configs
		end

		local function buildConfigTable()
			local out = {}
			for k, val in pairs(tbl3) do
				local t = type(val)
				if t == "boolean" or t == "number" or t == "string" then
					out[k] = val
				end
			end
			out._chromaEnabled = tbl3.ESP_Chroma
			out._parryMethod = tbl3.Surv_ParryMethod
			out._pingParry = tbl3.Surv_PingParry
			out._espHighestGen = tbl3.ESP_HighestGen
			out._injuredColor = tbl3.ESP_InjuredColor
			return out
		end

		local function applyConfig(config)
			for k, val in pairs(config) do
				if tbl3[k] ~= nil then tbl3[k] = val end
			end
		end

		local configDropdown

		local configNameTB = InfoTab:AddTextbox({
			Text = "Config Name",
			Placeholder = "default",
			Default = "default",
			Icon = "Lucide:file-cog",
			Callback = function(v)
				if v and v ~= "" then configNameValue = v end
			end,
		})

		InfoTab:AddButton({ Text = "Refresh List", Icon = "Lucide:refresh-cw",
			Callback = function()
				if configDropdown then
					pcall(function() configDropdown:Refresh(listConfigs()) end)
					sendNotif("Config list refreshed", 2)
				end
			end,
		})

		configDropdown = InfoTab:AddDropdown({
			Text = "Select Config",
			Options = listConfigs(),
			Flag = "Config_Selected",
			Callback = function(v)
				if v ~= "(none)" then
					configNameValue = v
					pcall(function() configNameTB:Set(v) end)
				end
			end,
		})

		InfoTab:AddButton({ Text = "Save Config", Icon = "Lucide:save",
			Callback = function()
				pcall(function()
					if not writefile then sendNotif("writefile not supported", 3) return end
					local name = configNameValue ~= "" and configNameValue or "default"
					local path = CFOLDER .. "/" .. name .. ".json"
					writefile(path, tbl.HttpService:JSONEncode(buildConfigTable()))
					sendNotif("Saved: " .. name, 3)
					if configDropdown then pcall(function() configDropdown:Refresh(listConfigs()) end) end
				end)
			end,
		})

		InfoTab:AddButton({ Text = "Load Config", Icon = "Lucide:folder-open",
			Callback = function()
				pcall(function()
					if not readfile then sendNotif("readfile not supported", 3) return end
					local name = configNameValue ~= "" and configNameValue or "default"
					local path = CFOLDER .. "/" .. name .. ".json"
					local ok, data = pcall(readfile, path)
					if not ok then sendNotif("Config not found: " .. name, 3) return end
					applyConfig(tbl.HttpService:JSONDecode(data))
					sendNotif("Loaded: " .. name, 3)
				end)
			end,
		})

		InfoTab:AddButton({ Text = "Remove Config", Icon = "Lucide:trash-2",
			Callback = function()
				pcall(function()
					if not delfile then sendNotif("delfile not supported", 3) return end
					local name = configNameValue ~= "" and configNameValue or "default"
					local path = CFOLDER .. "/" .. name .. ".json"
					delfile(path)
					sendNotif("Removed: " .. name, 3)
					if configDropdown then pcall(function() configDropdown:Refresh(listConfigs()) end) end
				end)
			end,
		})

		InfoTab:AddToggle({
			Text = "Auto Load Config on Start",
			Description = "Loads a saved config automatically when the script runs",
			Icon = "Lucide:zap",
			Default = false,
			Flag = "Config_AutoLoad",
			Callback = function(v)
				if writefile then
					pcall(function()
						if v then
							writefile(CFOLDER .. "/autoload.txt", configNameValue)
						else
							if delfile then delfile(CFOLDER .. "/autoload.txt") end
						end
					end)
				end
			end,
		})

		InfoTab:AddButton({ Text = "Copy Config  (.json)", Icon = "Lucide:clipboard-copy",
			Description = "Copies all flags as JSON to clipboard",
			Callback = function()
				pcall(function()
					local config = buildConfigTable()
					local parts = {}
					for k, val in pairs(config) do
						local v
						if type(val) == "string" then v = '"' .. val .. '"'
						elseif type(val) == "boolean" then v = tostring(val)
						else v = tostring(val) end
						table.insert(parts, k .. " = " .. v)
					end
					table.sort(parts)
					local json = "{ " .. table.concat(parts, ", ") .. " }"
					if setclipboard then
						setclipboard(json)
						sendNotif("Config copied!", 3)
					else
						sendNotif("setclipboard not supported", 3)
					end
				end)
			end,
		})

		VindUI:Notify({ Title = "PerplexWare", Text = "Loaded  |  @rainlover.r", Type = "success", Duration = 4, Icon = "Lucide:sparkles" })
	end

	flag = true
	expired = "Trial"
	do
		pcall(function()
			if readfile and isfile then
				local autoPath = "PerplexWare_VDCONFIG/autoload.txt"
				if isfile(autoPath) then
					local cfgName = readfile(autoPath):match("^%s*(.-)%s*$")
					if cfgName and cfgName ~= "" then
						local cfgPath = "PerplexWare_VDCONFIG/" .. cfgName .. ".json"
						if isfile(cfgPath) then
							local data = tbl.HttpService:JSONDecode(readfile(cfgPath))
							for k, val in pairs(data) do
								if tbl3[k] ~= nil then tbl3[k] = val end
							end
							sendNotif("Auto-loaded config: " .. cfgName, 3)
						end
					end
				end
			end
		end)
	end
	buildUITabs()

	local function setupParryResultHandler()
		task.spawn(function()
			local remotes2 = game:GetService("ReplicatedStorage"):WaitForChild("Remotes", 5)
			remotes2 = remotes2 and remotes2:WaitForChild("Items", 5):WaitForChild("Parrying Dagger", 5)
			remotes2 = remotes2 and remotes2:WaitForChild("parryResult", 5)

			if remotes2 then
				remotes2.OnClientEvent:Connect(function(arg, arg2)
					local n4 = tonumber(arg2) or arg == true and 90 or 60
					tbl6.ParryCooldown = true

					if tbl6.ParryCooldownThread then
						task.cancel(tbl6.ParryCooldownThread)
					end

					tbl6.ParryCooldownThread = task.delay(n4, function()
						tbl6.ParryCooldown = false
					end)
				end)
			end
		end)
	end

	setupParryResultHandler()

	local function setupKingScourgeDetect()
		task.spawn(function()
			local remotes2 = game:GetService("ReplicatedStorage"):WaitForChild("Remotes", 10)
			remotes2 = remotes2 and remotes2:WaitForChild("KillerPerks", 5)
			remotes2 = remotes2 and remotes2:WaitForChild("kingscourge", 5)
			remotes2 = remotes2 and remotes2:WaitForChild("KingScourgeStart", 5)

			if remotes2 then
				remotes2.OnClientEvent:Connect(function()
					if tbl3.Surv_SkillCheckMode == "Random" then
						tbl6.RandomMode_IsNormal = true
					end
				end)
			end
		end)
	end

	setupKingScourgeDetect()
	local connection3 = nil

	local function setupAnimationHandler(arg)
		if not arg then
			return
		end

		if connection3 then
			connection3:Disconnect()
			connection3 = nil
		end

		task.spawn(function()
			setupPistolSound(arg)
			local humanoid2 = arg:FindFirstChildOfClass("Humanoid") or arg:WaitForChild("Humanoid", 2)
			if not humanoid2 then return end
			local animator = humanoid2:FindFirstChildOfClass("Animator") or humanoid2:WaitForChild("Animator", 2)
			if not animator then return end

			connection3 = animator.AnimationPlayed:Connect(function(arg2)
				local animationId = arg2.Animation and arg2.Animation.AnimationId
				if not animationId then
					return
				end

				if tbl3.Surv_SelfHeal and string.find(animationId, "95836365038528") then
					arg2:Stop(0)
				end
			end)
		end)
	end

	local function corruptAbysswalker()
		if tbl6.cachedRole ~= "Killer" then
			return
		end
		local selectedKiller = tbl.LocalPlayer:FindFirstChild("SelectedKiller")

		if string.find(string.lower(tostring(selectedKiller and selectedKiller.Value or tbl.LocalPlayer:GetAttribute("SelectedKiller"))), "abyss") then
			pcall(function()
				game:GetService("ReplicatedStorage").Remotes.Killers.Abysswalker.corrupt:FireServer()
			end)
		end
	end

	local function doCrouchInput(arg)
		pcall(function()
			local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")

			for match in string.gmatch("Survivor-mob.Controls.crouch.icon", "[^%.]+") do
				playerGui = playerGui and playerGui:FindFirstChild(match)
			end

			if playerGui and playerGui:IsA("GuiObject") and playerGui.Visible and playerGui.Parent and playerGui.Parent:IsA("GuiButton") then
				local parent = playerGui.Parent

				if tbl.UserInputService.TouchEnabled and type(firesignal) == "function" then
					firesignal(parent.MouseButton1Click)
					task.wait(arg)
					firesignal(parent.MouseButton1Click)
				else
					tbl.VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.LeftControl, false, game)
					task.wait(arg)
					tbl.VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.LeftControl, false, game)
				end
			else
				tbl.VirtualInputManager:SendKeyEvent(true, Enum.KeyCode.LeftControl, false, game)
				task.wait(arg)
				tbl.VirtualInputManager:SendKeyEvent(false, Enum.KeyCode.LeftControl, false, game)
			end
		end)
	end

	local function startAbyssalLoop()
		if tbl6.isHolding then
			return
		end
		tbl6.isHolding = true

		task.spawn(function()
			while tbl6.isHolding and tbl3.Killer_InfAbyssal and tbl6.cachedRole == "Killer" do
				corruptAbysswalker()
				task.wait(0.5)
			end
		end)
	end

	tbl.UserInputService.InputBegan:Connect(function(input, gameProcessed)
		local flag4 = input.UserInputType == Enum.UserInputType.Touch
		if gameProcessed and not flag4 then
			return
		end
		local character = tbl.LocalPlayer.Character
		character = character and character:GetAttribute("spearmode") == true

		if tbl3.Killer_InfAbyssal and input.KeyCode == Enum.KeyCode.Q then
			startAbyssalLoop()
		end

		if input.UserInputType == Enum.UserInputType.MouseButton2 then
			if tbl3.Aim_Silent then
				tbl8.isChargingPistol = true
				tbl6.locked = findAimTarget("Pistol")
			end

			if tbl3.Flash_Silent then
				tbl8.isAimingFlash = true
			end
		elseif input.UserInputType == Enum.UserInputType.MouseButton1 then
			if tbl3.Aim_Silent and tbl8.isChargingPistol then
				firePistolAim()
			end

			character = tbl3.Aim_SilentVeil and character

			if character then
				tbl8.isChargingSpear = true
				tbl8.spearAimStartTime = tick()

				task.delay(7, function()
					local isChargingSpear = tbl8.isChargingSpear

					if isChargingSpear then
						local spearAimStartTime = tbl8.spearAimStartTime
						isChargingSpear = tick() - spearAimStartTime >= 6.9
					end

					if isChargingSpear then
						tbl8.isChargingSpear = false
						tbl8.currentTouchInput = nil
					end
				end)
			end

			if tbl6.cachedRole == "Killer" then
				if tbl3.Aimbot_Enabled then
					tbl8.lockedAimbotTarget = findAimTarget("Aimbot")

					if tbl8.lockedAimbotTarget then
						tbl8.isAimbotHolding = true
					end
				end

				if tbl3.Killer_InfLunge then
					startInfLungeLoop()
				end
			end
		elseif flag4 then
			if tbl3.Killer_InfAbyssal then
				local v4 = findKillerMobGui()
				local move2 = v4 and v4:FindFirstChild("Controls") and v4.Controls:FindFirstChild("move2")

				if move2 and move2.Visible then
					local position3 = input.Position
					local absolutePosition = move2.AbsolutePosition
					local absoluteSize = move2.AbsoluteSize

					if position3.X >= absolutePosition.X and position3.X <= absolutePosition.X + absoluteSize.X and position3.Y >= absolutePosition.Y and position3.Y <= absolutePosition.Y + absoluteSize.Y then
						startAbyssalLoop()
						tbl6.currentTouch = input
					end
				end
			end

			if tbl6.cachedRole == "Killer" then
				local v4 = findKillerMobGui()
				local attack = v4 and v4:FindFirstChild("Controls") and v4.Controls:FindFirstChild("attack")

				if attack and attack.Visible then
					local position3 = input.Position
					local absolutePosition = attack.AbsolutePosition
					local absoluteSize = attack.AbsoluteSize

					if position3.X >= absolutePosition.X and position3.X <= absolutePosition.X + absoluteSize.X and position3.Y >= absolutePosition.Y and position3.Y <= absolutePosition.Y + absoluteSize.Y then
						if tbl3.Aimbot_Enabled then
							tbl8.lockedAimbotTarget = findAimTarget("Aimbot")

							if tbl8.lockedAimbotTarget then
								tbl8.isAimbotHolding = true
							end
						end

						if tbl3.Killer_InfLunge then
							startInfLungeLoop()
							tbl6.touchLunge = input
						end
					end
				end
			end

			if tbl3.Aim_Silent or tbl3.Flash_Silent then
				local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
				local guiMob = playerGui and playerGui:FindFirstChild("Survivor-mob") and playerGui["Survivor-mob"]:FindFirstChild("Controls") and playerGui["Survivor-mob"].Controls:FindFirstChild("Gui-mob")

				if guiMob and guiMob.Visible then
					local position3 = input.Position
					local absolutePosition = guiMob.AbsolutePosition
					local absoluteSize = guiMob.AbsoluteSize

					if position3.X >= absolutePosition.X and position3.X <= absolutePosition.X + absoluteSize.X and position3.Y >= absolutePosition.Y and position3.Y <= absolutePosition.Y + absoluteSize.Y then
						if tbl3.Aim_Silent then
							tbl8.isChargingPistol = true
							tbl8.currentTouchInput = input
							tbl6.locked = findAimTarget("Pistol")
						end

						if tbl3.Flash_Silent then
							tbl8.isAimingFlash = true
							tbl8.currentTouchInput = input
						end
					end
				end
			end

			if tbl3.Aim_SilentVeil and character and not tbl6.spearSwitchCooldown then
				local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
				local attack = playerGui and playerGui:FindFirstChild("Slasher-mob") and playerGui["Slasher-mob"]:FindFirstChild("Controls") and playerGui["Slasher-mob"].Controls:FindFirstChild("attack")

				if attack and attack.Visible then
					local position3 = input.Position
					local absolutePosition = attack.AbsolutePosition
					local absoluteSize = attack.AbsoluteSize

					if position3.X >= absolutePosition.X and position3.X <= absolutePosition.X + absoluteSize.X and position3.Y >= absolutePosition.Y and position3.Y <= absolutePosition.Y + absoluteSize.Y then
						tbl8.isChargingSpear = true
						tbl8.currentTouchInput = input
						tbl8.spearAimStartTime = tick()

						task.delay(7, function()
							local isChargingSpear = tbl8.isChargingSpear

							if isChargingSpear then
								local spearAimStartTime = tbl8.spearAimStartTime
								isChargingSpear = tick() - spearAimStartTime >= 6.9
							end

							if isChargingSpear then
								tbl8.isChargingSpear = false
								tbl8.currentTouchInput = nil
							end
						end)
					end
				end
			end
		end
	end)

	tbl.UserInputService.InputEnded:Connect(function(input)
		local flag4 = input.UserInputType == Enum.UserInputType.Touch

		if input.KeyCode == Enum.KeyCode.Q then
			tbl6.isHolding = false
		end

		if input.UserInputType == Enum.UserInputType.MouseButton2 then
			if tbl8.isChargingPistol then
				tbl8.isChargingPistol = false
				tbl6.locked = nil
			end

			if tbl8.isAimingFlash then
				tbl8.isAimingFlash = false
			end
		end

		if input.UserInputType == Enum.UserInputType.MouseButton1 or flag4 then
			tbl8.isAimbotHolding = false
			tbl8.lockedAimbotTarget = nil

			if input.UserInputType == Enum.UserInputType.MouseButton1 then
				tbl6.isHoldingLunge = false
			end
		end

		if flag4 and input == tbl6.touchLunge then
			tbl6.isHoldingLunge = false
			tbl6.touchLunge = nil
		end

		if flag4 and input == tbl6.currentTouch then
			tbl6.isHolding = false
			tbl6.currentTouch = nil
		end

		if tbl8.isChargingSpear and (input == tbl8.currentTouchInput or input.UserInputType == Enum.UserInputType.MouseButton1) then
			tbl8.isChargingSpear = false

			if tbl8.currentTouchInput == input then
				tbl8.currentTouchInput = nil
			end

			if tbl6.spearSwitchCooldown then
				return
			end

			if tick() - (tbl8.spearAimStartTime or tick()) >= 7 then
				return
			end

			if tbl6.isAttackCd then
				return
			end
			tbl6.isAttackCd = true

			task.delay(3, function()
				tbl6.isAttackCd = false
			end)

			local character = tbl.LocalPlayer.Character
			local humanoidRootPart2 = character and character:FindFirstChild("HumanoidRootPart")

			if character and (character:FindFirstChild("Head") or humanoidRootPart2) and humanoidRootPart2 then
				local flag5 = character:GetAttribute("special") == true
				local position3 = humanoidRootPart2.Position
				local spearSpeed = tbl3.SmartPredict and (flag5 and 165 or 142.5) or tbl3.SPEAR_Speed
				local Survivor = findAimTarget("Survivor")
				local unit

				if Survivor then
					local humanoidRootPart3 = Survivor:IsA("Model") and Survivor:FindFirstChild("HumanoidRootPart") or Survivor
					local position4 = humanoidRootPart3.Position
					local humanoid2 = Survivor.Parent and Survivor.Parent:FindFirstChildOfClass("Humanoid")
					local n4

					if humanoid2 and humanoid2.MoveDirection.Magnitude > 0 then
						n4 = humanoid2.MoveDirection * humanoid2.WalkSpeed
					else
						n4 = Vector3.zero

						if humanoidRootPart3:IsA("BasePart") then
							n4 = humanoidRootPart3.AssemblyLinearVelocity
						end
					end

					local vector = Vector3.new(n4.X, 0, n4.Z)
					local magnitude = (position4 - position3).Magnitude
					local n5 = magnitude / spearSpeed

					if tbl3.SmartPredict then
						unit = (position4 + vector * n5 * tbl3.Veil_LeadMultiplier + Vector3.new(0, 0.5 * tbl.Workspace.Gravity * 0.5 * n5 ^ 2 - 1.5, 0) - position3).Unit
					else
						unit = (position4 + vector * n5 * math.clamp(magnitude / 50, 0.1, 4) + Vector3.new(0, 0.5 * tbl3.SPEAR_Gravity * n5 ^ 2 * math.clamp(magnitude / 100, 1, 2.5), 0) - position3).Unit
					end
				else
					unit = tbl.Camera.CFrame.LookVector
				end

				pcall(function()
					tbl.ReplicatedStorage.Remotes.Killers.Veil.Spearthrow:FireServer(unit, spearSpeed, position3)
				end)
			end
		end

		if flag4 and input == tbl8.currentTouchInput then
			if tbl8.isChargingPistol then
				tbl8.isChargingPistol = false
				tbl8.currentTouchInput = nil
				local flag5 = false

				pcall(function()
					local playerGui = tbl.LocalPlayer:FindFirstChild("PlayerGui")
					local cancelaim = playerGui and playerGui:FindFirstChild("Survivor-mob") and playerGui["Survivor-mob"]:FindFirstChild("Controls") and playerGui["Survivor-mob"].Controls:FindFirstChild("Gui-mob") and playerGui["Survivor-mob"].Controls["Gui-mob"]:FindFirstChild("cancelaim")

					if cancelaim and cancelaim.Visible then
						local position3 = input.Position
						local absolutePosition = cancelaim.AbsolutePosition
						local absoluteSize = cancelaim.AbsoluteSize

						if position3.X >= absolutePosition.X and position3.X <= absolutePosition.X + absoluteSize.X and position3.Y >= absolutePosition.Y and position3.Y <= absolutePosition.Y + absoluteSize.Y then
							flag5 = true
						end
					end
				end)

				if not flag5 then
					firePistolAim()
				end

				tbl6.locked = nil
			end

			if tbl8.isAimingFlash then
				tbl8.isAimingFlash = false
				tbl8.currentTouchInput = nil
			end
		end
	end)

	local flag4 = false
	local position3 = nil
	local position4 = nil

	frame5.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			flag4 = true
			position3 = input.Position
			position4 = frame4.Position

			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					flag4 = false
				end
			end)
		end
	end)

	tbl.UserInputService.InputChanged:Connect(function(input)
		local flag5 = flag4

		if flag4 then
			flag5 = input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch
		end

		if flag5 then
			local n4 = input.Position - position3
			frame4.Position = UDim2.new(position4.X.Scale, position4.X.Offset + n4.X, position4.Y.Scale, position4.Y.Offset + n4.Y)
		end
	end)

	frame.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			flag2 = true
			position = input.Position
			position2 = frame.Position

			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End then
					flag2 = false
				end
			end)
		end
	end)

	frame.InputChanged:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
			v2 = input
		end
	end)

	tbl.UserInputService.InputChanged:Connect(function(input)
		if flag2 and input == v2 then
			updateWatermarkDrag(input)
		end
	end)

	local tbl18 = {}
	local trackKillerAnimations = nil

	trackKillerAnimations = function(arg)
		if not arg or tbl18[arg] then return end
		tbl18[arg] = true

		local humanoid2 = arg:FindFirstChildOfClass("Humanoid")
		if not humanoid2 then
			humanoid2 = arg:WaitForChild("Humanoid", 2)
			if not humanoid2 then tbl18[arg] = nil return end
		end

		local animator = humanoid2:FindFirstChildOfClass("Animator")
		if not animator then
			animator = humanoid2:WaitForChild("Animator", 2)
			if not animator then tbl18[arg] = nil return end
		end

		local conn4, conn5

		conn4 = humanoid2.ChildAdded:Connect(function(child)
			if child:IsA("Animator") then
				tbl18[arg] = nil
				if conn4 then conn4:Disconnect() conn4 = nil end
				if conn5 then conn5:Disconnect() conn5 = nil end
				trackKillerAnimations(arg)
			end
		end)

		conn5 = arg.AncestryChanged:Connect(function(_, parent)
			if not parent then
				tbl18[arg] = nil
				if conn4 then conn4:Disconnect() conn4 = nil end
				if conn5 then conn5:Disconnect() conn5 = nil end
				_pv2KillerCache[arg] = nil
			end
		end)

		animator.AnimationPlayed:Connect(function(arg2)
			local match = (arg2.Animation and arg2.Animation.AnimationId or ""):match("%d+")

			if (match == "86266790353635" or match == "93136435416899") and tbl3.Surv_CrouchV then
				local character = tbl.LocalPlayer.Character
				local selfHrp = character and character:FindFirstChild("HumanoidRootPart")
				local killerHrp = arg:FindFirstChild("HumanoidRootPart")
				if selfHrp and killerHrp and selfHrp.Parent and killerHrp.Parent then
					if (selfHrp.Position - killerHrp.Position).Magnitude <= 35 then
						local faceDir = Vector3.new(selfHrp.Position.X, 0, selfHrp.Position.Z) - Vector3.new(killerHrp.Position.X, 0, killerHrp.Position.Z)
						if faceDir.Magnitude > 0 then
							local lookDir = Vector3.new(killerHrp.CFrame.LookVector.X, 0, killerHrp.CFrame.LookVector.Z)
							if lookDir.Magnitude > 0.001 and lookDir.Unit:Dot(faceDir.Unit) >= 0.7 then
								doCrouchInput(0.3)
							end
						end
					end
				end
			end

			if match == "80411309607666" and tbl3.Surv_AutoCrouch then
				local character = tbl.LocalPlayer.Character
				if isKnockedOrHooked(character) or not canSafeParry(character) then return end
				local selfHrp = character and character:FindFirstChild("HumanoidRootPart")
				local killerHrp = arg:FindFirstChild("HumanoidRootPart")
				if selfHrp and killerHrp and selfHrp.Parent and killerHrp.Parent then
					if (selfHrp.Position - killerHrp.Position).Magnitude <= 35 then
						doCrouchInput(1.5)
					end
				end
				return
			end

			if not tbl3.Surv_AutoParry and not tbl3.Surv_Parry then return end
			if tbl6.ParryCooldown then return end

			local character = tbl.LocalPlayer.Character
			if not character or isKnockedOrHooked(character) or not canSafeParry(character) then return end

			local selfHrp = character:FindFirstChild("HumanoidRootPart")
			local killerHrp = arg:FindFirstChild("HumanoidRootPart")
			if not selfHrp or not killerHrp then return end

			local radius = tbl3.Surv_ParryRadius + (tbl3.Surv_ParryAggressive and 5 or 0)
			local predictedKillerPos = getKillerPredictedPos(killerHrp)
			local magnitude = (selfHrp.Position - predictedKillerPos).Magnitude
			if magnitude > radius then return end

			local faceDir = Vector3.new(selfHrp.Position.X, 0, selfHrp.Position.Z) - Vector3.new(predictedKillerPos.X, 0, predictedKillerPos.Z)
			if faceDir.Magnitude > 0 then
				local lookDir = Vector3.new(killerHrp.CFrame.LookVector.X, 0, killerHrp.CFrame.LookVector.Z)
				if lookDir.Magnitude > 0.001 and lookDir.Unit:Dot(faceDir.Unit) < (tbl3.Surv_ParryFace or 0.3) then
					return
				end
			end

			fireParryInput()
		end)
	end

	local function onKillerCharAdded(arg)
		if arg ~= tbl.LocalPlayer and isPlayerKiller(arg) and arg.Character then
			trackKillerAnimations(arg.Character)
		end
	end

	local function trackPlayerEvents(arg)
		if arg == tbl.LocalPlayer then
			return
		end

		arg.CharacterAdded:Connect(function()
			onKillerCharAdded(arg)
		end)

		arg:GetPropertyChangedSignal("Team"):Connect(function()
			onKillerCharAdded(arg)
		end)

		if arg.Character then
			onKillerCharAdded(arg)
		end
	end

	for _, player in ipairs(tbl.Players:GetPlayers()) do
		trackPlayerEvents(player)
		player:GetPropertyChangedSignal("Team"):Connect(updateSpectatorCount)
	end

	tbl.Players.PlayerAdded:Connect(function(player)
		updateSpectatorCount()
		player:GetPropertyChangedSignal("Team"):Connect(updateSpectatorCount)
		trackPlayerEvents(player)
	end)

	tbl.Players.PlayerRemoving:Connect(function()
		updateSpectatorCount()
	end)

	local _rsFrameCount = 0
	local _aimbotTarget = nil
	local _cachedParryRadius = -1
	local _cachedParryAggressive = nil
	local _cachedParryCooldown = nil
	local _cachedSpamRadius = -1
	local _cachedFovCircleRadius = -1
	local _cachedFovCircleColor = nil
	local _cachedFovCircleVisible = nil

	tbl.RunService.RenderStepped:Connect(function()
		_rsFrameCount = _rsFrameCount + 1

		local character = v
		local humanoidRootPart2 = humanoidRootPart
		local currentRole = tbl6.cachedRole

		if tbl3.Surv_Fov and currentRole == "Survivor" and tbl.Camera.FieldOfView ~= tbl3.Surv_FOV_Value then
			tbl.Camera.FieldOfView = tbl3.Surv_FOV_Value
		end

		if tbl8.isAimingFlash and tbl3.Flash_Silent then
			local Flash = findAimTarget("Flash")
			if Flash then
				local n4 = Flash.Position + Vector3.new(0, tbl3.Flash_YOffset, 0)
				local currentCamera = tbl.Workspace.CurrentCamera
				currentCamera.CFrame = currentCamera.CFrame:Lerp(CFrame.lookAt(currentCamera.CFrame.Position, n4), 0.5)
				if humanoidRootPart2 then
					humanoidRootPart2.CFrame = humanoidRootPart2.CFrame:Lerp(CFrame.lookAt(humanoidRootPart2.Position, Vector3.new(n4.X, humanoidRootPart2.Position.Y, n4.Z)), 0.5)
				end
			end
		end

		if tbl8.isChargingPistol and tbl3.Aim_Lock then
			if tbl6.locked and tbl6.locked.Parent and tbl6.locked.Parent:FindFirstChild("Humanoid") and tbl6.locked.Parent.Humanoid.Health > 0 then
				lerpCameraTarget(tbl6.locked)
			else
				tbl6.locked = findAimTarget("Pistol")
			end
		end

		if tbl3.Aimbot_Enabled and character then
			local aimbotSmoothness = tbl3.Aimbot_Smoothness
			if currentRole == "Survivor" then
				_aimbotTarget = findAimTarget("Aimbot")
				if _aimbotTarget and humanoidRootPart2 then
					local position5 = _aimbotTarget.Position
					local dist = getDistanceTo(position5)
					if dist < 100 then
						position5 = position5 + tbl.Camera.CFrame.RightVector * (100 - dist) * tbl3.Aimbot_Predict
					end
					tbl.Camera.CFrame = tbl.Camera.CFrame:Lerp(CFrame.new(tbl.Camera.CFrame.Position, position5), aimbotSmoothness)
					humanoidRootPart2.CFrame = humanoidRootPart2.CFrame:Lerp(CFrame.new(humanoidRootPart2.Position, Vector3.new(position5.X, humanoidRootPart2.Position.Y, position5.Z)), aimbotSmoothness)
				end
			elseif currentRole == "Killer" then
				if tbl8.isAimbotHolding then
					if tbl8.lockedAimbotTarget then
						local parent = tbl8.lockedAimbotTarget.Parent
						local h2 = parent and parent:FindFirstChild("Humanoid")
						if not h2 or h2.Health <= 0 or isKnockedOrHooked(parent) or (tbl8.lockedAimbotTarget.Position - humanoidRootPart2.Position).Magnitude > tbl3.Aimbot_MaxDist then
							tbl8.lockedAimbotTarget = findAimTarget("Aimbot")
						end
					else
						tbl8.lockedAimbotTarget = findAimTarget("Aimbot")
					end
					if tbl8.lockedAimbotTarget and humanoidRootPart2 then
						local position5 = tbl8.lockedAimbotTarget.Position
						tbl.Camera.CFrame = tbl.Camera.CFrame:Lerp(CFrame.new(tbl.Camera.CFrame.Position, position5), aimbotSmoothness)
						humanoidRootPart2.CFrame = humanoidRootPart2.CFrame:Lerp(CFrame.new(humanoidRootPart2.Position, Vector3.new(position5.X, humanoidRootPart2.Position.Y, position5.Z)), aimbotSmoothness)
					end
				else
					tbl8.lockedAimbotTarget = nil
					_aimbotTarget = nil
				end
			end
		else
			_aimbotTarget = nil
		end

		if _rsFrameCount % 2 == 0 then
			if tbl3.Killer_HitEspCircle and tbl3.Killer_SpamHit and humanoidRootPart2 then
				if not tbl6.SpamHit or tbl6.SpamHit.Parent ~= humanoidRootPart2 then
					if tbl6.SpamHit then tbl6.SpamHit:Destroy() end
					tbl6.SpamHit = Instance.new("CylinderHandleAdornment")
					tbl6.SpamHit.Name = "SpamHitCircleESP"
					tbl6.SpamHit.Height = 0.05
					tbl6.SpamHit.Color3 = Color3.fromRGB(255, 0, 0)
					tbl6.SpamHit.Transparency = 0.3
					tbl6.SpamHit.Adornee = humanoidRootPart2
					tbl6.SpamHit.Parent = humanoidRootPart2
					tbl6.SpamHit.ZIndex = 0
					tbl6.SpamHit.AlwaysOnTop = false
					_cachedSpamRadius = -1
				end
				local r = tbl3.Killer_SpamHitRadius
				if r ~= _cachedSpamRadius then
					tbl6.SpamHit.Radius = r
					tbl6.SpamHit.InnerRadius = math.max(0.1, r - 0.15)
					tbl6.SpamHit.CFrame = CFrame.new(0, -3, 0) * CFrame.Angles(1.5707963267948966, 0, 0)
					_cachedSpamRadius = r
				end
			elseif tbl6.SpamHit then
				tbl6.SpamHit:Destroy()
				tbl6.SpamHit = nil
				_cachedSpamRadius = -1
			end

			local survParry = tbl3.Surv_ParryCircle and (tbl3.Surv_AutoParry or tbl3.Surv_Parry or tbl3.Surv_ParryV2)
			if survParry and humanoidRootPart2 then
				if not tbl6.autoParry or tbl6.autoParry.Parent ~= humanoidRootPart2 then
					if tbl6.autoParry then tbl6.autoParry:Destroy() end
					tbl6.autoParry = Instance.new("CylinderHandleAdornment")
					tbl6.autoParry.Name = "AutoParryCircleESP"
					tbl6.autoParry.Height = 0.05
					tbl6.autoParry.Transparency = 0.3
					tbl6.autoParry.Adornee = humanoidRootPart2
					tbl6.autoParry.Parent = humanoidRootPart2
					tbl6.autoParry.ZIndex = 0
					tbl6.autoParry.AlwaysOnTop = false
					_cachedParryRadius = -1
					_cachedParryAggressive = nil
					_cachedParryCooldown = nil
				end
				local survParryRadius = tbl3.Surv_ParryRadius + (tbl3.Surv_ParryAggressive and 5 or 0)
				local parryCd = tbl6.ParryCooldown
				if survParryRadius ~= _cachedParryRadius then
					tbl6.autoParry.Radius = survParryRadius
					tbl6.autoParry.InnerRadius = math.max(0.1, survParryRadius - 0.15)
					tbl6.autoParry.CFrame = CFrame.new(0, -3, 0) * CFrame.Angles(1.5707963267948966, 0, 0)
					_cachedParryRadius = survParryRadius
				end
				if parryCd ~= _cachedParryCooldown or tbl3.Surv_ParryAggressive ~= _cachedParryAggressive then
					if parryCd then
						tbl6.autoParry.Color3 = Color3.fromRGB(255, 128, 0)
					elseif tbl3.Surv_ParryAggressive then
						tbl6.autoParry.Color3 = Color3.fromRGB(255, 0, 0)
					else
						tbl6.autoParry.Color3 = Color3.fromRGB(0, 255, 255)
					end
					_cachedParryCooldown = parryCd
					_cachedParryAggressive = tbl3.Surv_ParryAggressive
				end
			elseif tbl6.autoParry then
				tbl6.autoParry:Destroy()
				tbl6.autoParry = nil
				_cachedParryRadius = -1
			end

			local flag5 = character and character:GetAttribute("spearmode") == true
			local flag6 = character and character:GetAttribute("special") == true
			local vector2 = Vector2.new(tbl.Camera.ViewportSize.X / 2, tbl.Camera.ViewportSize.Y / 2)
			local color, aimbotRadius, visible

			if tbl3.Aimbot_Enabled and tbl3.Aimbot_ShowFOV then
				aimbotRadius = tbl3.Aimbot_Radius
				color = _aimbotTarget ~= nil and Color3.fromRGB(255, 0, 0) or Color3.fromRGB(0, 255, 100)
				visible = true
			elseif tbl3.Aim_SilentVeil and tbl3.Veil_ShowFOV and flag5 then
				aimbotRadius = tbl3.Veil_FOV
				color = flag6 and Color3.fromRGB(0, 255, 100) or Color3.fromRGB(150, 150, 150)
				visible = true
			elseif tbl3.Aim_Silent and tbl3.Pistol_ShowFOV and tbl3.Pistol_FOVMode then
				aimbotRadius = tbl3.Pistol_FOV
				color = Color3.fromRGB(255, 255, 255)
				visible = true
			else
				visible = false
				aimbotRadius = 0
			end

			if visible ~= _cachedFovCircleVisible or aimbotRadius ~= _cachedFovCircleRadius or color ~= _cachedFovCircleColor then
				frame3.Visible = visible
				if visible then
					frame3.Size = UDim2.new(0, aimbotRadius * 2, 0, aimbotRadius * 2)
					frame3.Position = UDim2.new(0, vector2.X, 0, vector2.Y)
					uiStroke.Color = color
				end
				_cachedFovCircleVisible = visible
				_cachedFovCircleRadius = aimbotRadius
				_cachedFovCircleColor = color
			end
		end

		if tbl8.isChargingPistol and tbl3.Aim_Silent then
			local Pistol = findAimTarget("Pistol")

			if Pistol then
				local leftArm = character:FindFirstChild("Left Arm") or character:FindFirstChild("LeftHand")
				leftArm = leftArm and leftArm.Position or character:GetPivot().Position
				local position5 = Pistol.Position
				local assemblyLinearVelocity = Pistol.AssemblyLinearVelocity
				local n4 = position5 + Vector3.new(assemblyLinearVelocity.X, 0, assemblyLinearVelocity.Z) * (position5 - leftArm).Magnitude / 400 + Vector3.new(0, tbl3.Pistol_AimOffset, 0)

				if tbl3.Pistol_ShowLaser then
					part.Parent = workspace
					local magnitude = (n4 - leftArm).Magnitude
					part.Size = Vector3.new(0.05, 0.05, magnitude)
					part.CFrame = CFrame.new(leftArm, n4) * CFrame.new(0, 0, -magnitude / 2)
				elseif part.Parent ~= nil then
					part.Parent = nil
				end
			elseif part.Parent ~= nil then
				part.Parent = nil
			end
		elseif part.Parent ~= nil then
			part.Parent = nil
		end

		if tbl8.isChargingSpear and tbl3.Aim_SilentVeil and flag5 and not tbl6.spearSwitchCooldown and not flag7 then
			local character2 = tbl.LocalPlayer.Character
			local rightArm = character2 and (character2:FindFirstChild("Right Arm") or character2:FindFirstChild("RightHand"))
			local humanoidRootPart3 = character2 and character2:FindFirstChild("HumanoidRootPart")
			rightArm = rightArm and rightArm.Position or humanoidRootPart3 and humanoidRootPart3.Position + Vector3.new(1.5, 0.5, 0)

			if rightArm and character2 then
				local flag8 = character2:GetAttribute("special") == true
				local smartPredict = tbl3.SmartPredict
				local n4

				if smartPredict then
					n4 = flag8 and 165 or 142.5
				else
					n4 = smartPredict
				end

				n4 = n4 or tbl3.SPEAR_Speed
				local spearGravity = tbl3.SmartPredict and tbl.Workspace.Gravity * 0.5 or tbl3.SPEAR_Gravity
				local Survivor = findAimTarget("Survivor")
				local n5, unit

				if Survivor then
					highlight.Parent = Survivor.Parent
					local humanoidRootPart4 = Survivor:IsA("Model") and Survivor:FindFirstChild("HumanoidRootPart") or Survivor
					local position5 = humanoidRootPart4.Position
					local humanoid2 = Survivor.Parent and Survivor.Parent:FindFirstChildOfClass("Humanoid")
					local n6

					if humanoid2 and humanoid2.MoveDirection.Magnitude > 0 then
						n6 = humanoid2.MoveDirection * humanoid2.WalkSpeed
					else
						n6 = Vector3.zero

						if humanoidRootPart4:IsA("BasePart") then
							n6 = humanoidRootPart4.AssemblyLinearVelocity
						end
					end

					local vector = Vector3.new(n6.X, 0, n6.Z)
					local magnitude = (position5 - rightArm).Magnitude
					local n7 = magnitude / n4

					if tbl3.SmartPredict then
						n5 = position5 + vector * n7 * tbl3.Veil_LeadMultiplier
						unit = (n5 + Vector3.new(0, 0.5 * spearGravity * n7 ^ 2 - 1.5, 0) - rightArm).Unit
					else
						n5 = position5 + vector * n7 * math.clamp(magnitude / 50, 0.1, 4)
						unit = (n5 + Vector3.new(0, 0.5 * spearGravity * n7 ^ 2 * math.clamp(magnitude / 100, 1, 2.5), 0) - rightArm).Unit
					end
				else
					highlight.Parent = nil
					unit = tbl.Camera.CFrame.LookVector
					n5 = nil
				end

				renderSpearTrajectory(rightArm, unit, n4, spearGravity, character2, Survivor, n5)
			else
				hideSpearTrajectory()
				highlight.Parent = nil
			end
		else
			hideSpearTrajectory()
			highlight.Parent = nil
		end
	end)

	tbl6.cachedRole = str or "Spectator"
	local _steppedFrame = 0

	tbl.RunService.Stepped:Connect(function()
		_steppedFrame = _steppedFrame + 1
		if _steppedFrame % 10 == 0 then
			tbl6.cachedRole = str
		end

		if not tbl3.Misc_Noclip then
			return
		end
		local character = tbl.LocalPlayer.Character
		if not character then
			return
		end

		if character ~= tbl6.lastNoclipChar then
			table.clear(tbl6.cachedNoclipParts)

			for _, descendant in ipairs(character:GetDescendants()) do
				if descendant:IsA("BasePart") then
					table.insert(tbl6.cachedNoclipParts, descendant)
				end
			end

			tbl6.lastNoclipChar = character
		end

		for _, cachedNoclipPart in ipairs(tbl6.cachedNoclipParts) do
			cachedNoclipPart.CanCollide = false
		end
	end)

	local atmosphere = tbl.Lighting:FindFirstChildOfClass("Atmosphere")
	local remotes2 = tbl.ReplicatedStorage:FindFirstChild("Remotes")
	local attacks = remotes2 and remotes2:FindFirstChild("Attacks")

	tbl.Lighting.ChildAdded:Connect(function(child)
		if child:IsA("Atmosphere") then
			atmosphere = child
		end
	end)

	local _hbFrameCount = 0
	local _spamAccum = 0
	local _tbl16 = {}

	local function rebuildSurvivorList()
		table.clear(_tbl16)
		for player, cache in pairs(_playerCache) do
			if not cache.isKiller then table.insert(_tbl16, player) end
		end
	end

	rebuildSurvivorList()

	task.spawn(function()
		while not tbl6.Unloaded do
			task.wait(0.04)
			if not tbl3.ESP_Chroma then continue end
			tbl6.ChromaHue = (tbl6.ChromaHue + 3) % 360
			local c = Color3.fromHSV(tbl6.ChromaHue / 360, 1, 1)
			tbl7.Colors.SCP = c
			tbl7.Colors.Player = c
			tbl7.Colors.Killer = c
			tbl7.Colors.Generator = c
			tbl7.Colors.Pallet = c
			tbl7.Colors.Window = c
			tbl7.Colors.Hook = c
			tbl7.Colors.Gate = c
		end
	end)

	tbl.RunService.Heartbeat:Connect(function(deltaTime)
		if tbl6.Unloaded then return end

		_hbFrameCount = _hbFrameCount + 1
		local character = v
		local humanoid2 = humanoid
		local selfHrp = humanoidRootPart
		local currentRole = tbl6.cachedRole

		if tbl3.Killer_SpamHit and selfHrp and currentRole == "Killer" then
			_spamAccum = _spamAccum + deltaTime
			local spamDelay = math.max(0.15, (tbl3.Killer_SpamHitDelay or 100) / 1000)
			if _spamAccum >= spamDelay then
				_spamAccum = 0
				local v5 = attacks and attacks:FindFirstChild(tbl3.Killer_AttackMode)
				if v5 then
					local selfPos = selfHrp.Position
					local hitRadius = tbl3.Killer_SpamHitRadius
					for _, player in ipairs(_tbl16) do
						local cache = _playerCache[player]
						if not cache then continue end
						local hrp2 = cache.hrp
						local h3 = cache.humanoid
						local ch2 = cache.character
						if hrp2 and hrp2.Parent and h3 and h3.Health > 0 and ch2
							and not (ch2:GetAttribute("isHooked") or ch2:GetAttribute("IsHooked") or ch2:GetAttribute("Hooked"))
							and (selfPos - hrp2.Position).Magnitude <= hitRadius then
							pcall(function() v5:FireServer() end)
							break
						end
					end
				end
			end
		else
			_spamAccum = 0
		end

		if humanoid2 and character then
			if tbl3.Killer_WalkSpeedToggle and currentRole == "Killer" and tbl3.Killer_WalkSpeed > humanoid2.WalkSpeed and humanoid2.MoveDirection.Magnitude > 0 then
				character:TranslateBy(humanoid2.MoveDirection * (tbl3.Killer_WalkSpeed - humanoid2.WalkSpeed) * deltaTime)
			end

			if tbl3.Misc_HighJump and currentRole ~= "Killer" then
				humanoid2.UseJumpPower = true
				humanoid2.JumpPower = tbl3.Misc_JumpPower
			end

			if tbl3.Surv_GodMode and currentRole == "Survivor" then
				local knocked = character:GetAttribute("Knocked") == true
				if knocked or isKnockedOrHooked(humanoid2) then
					humanoid2.Health = humanoid2.MaxHealth
					if knocked then character:SetAttribute("Knocked", false) end
				end
			end

			if _hbFrameCount % 3 == 0 then
				if tbl3.Killer_BreakSpeed and currentRole == "Killer" then
					if character:GetAttribute("breakspeed") ~= tbl3.Killer_BreakSpeed then
						character:SetAttribute("breakspeed", tbl3.Killer_BreakSpeed)
					end
				end

				if currentRole ~= "Killer" then
					if tbl3.Surv_Perks then
						local vs = tbl3.Surv_VaultSpeed
						if character:GetAttribute("vaultspeed") ~= vs then
							character:SetAttribute("vaultspeed", vs)
						end
						local ss = tbl3.Surv_SkillSpeed
						if character:GetAttribute("skillcheckspeed") ~= ss then
							character:SetAttribute("skillcheckspeed", ss)
						end
					end
					if tbl3.Surv_FastVault then
						local flowTarget = not tbl6.FlowstateOnCD
						if character:GetAttribute("Flowstate") ~= flowTarget then
							character:SetAttribute("Flowstate", flowTarget)
						end
					elseif character:GetAttribute("Flowstate") == true then
						character:SetAttribute("Flowstate", false)
					end
				end
			end
		end

		if tbl3.ESP_Master and _hbFrameCount % 60 == 0 then
			scanItemESPs()
			renderSCPESP()
			if tbl3.ESP_HighestGen and tbl9.Generators then
				local maxProg = -1
				local bestModel = nil
				for _, gen in ipairs(tbl9.Generators) do
					local prog = gen.model:GetAttribute("RepairProgress") or 0
					if prog > maxProg and prog < 100 then
						maxProg = prog
						bestModel = gen.model
					end
				end
				tbl6.HighestGenModel = bestModel
			end
		end
	end)

	local function setupSpeedConn(arg)
		if not arg then
			return
		end
		tbl6.VaultBoostActive = false
		tbl6.QuickRecoveryOnCD = false

		if tbl6.VaultBoostThread then
			task.cancel(tbl6.VaultBoostThread)
			tbl6.VaultBoostThread = nil
		end

		if tbl6.TeamLabel then
			pcall(function()
				tbl6.TeamLabel:Set("Team: " .. str)
			end)
		end

		if str == "Killer" then
			local survivorFlags = {
				"AUTO_AutoSurvivor", "Surv_AutoSprint", "Surv_SelfHeal", "Surv_AuraHeal",
				"Surv_AutoParry", "Surv_Parry", "Surv_ParryV2", "Surv_AutoCrouch", "Surv_Bandage",
				"Surv_CrouchV", "Surv_Perks", "Surv_Spdb", "Surv_PerfectVault",
				"Surv_FastVault", "Surv_SpeedAfterVault", "Surv_AutoFleeToggle",
				"Surv_AutoSkillCheck", "Surv_GodMode", "Surv_NoFall", "Surv_SoundDbd",
				"AntiBlockWindowToggle", "Surv_AutoPalletToggle", "Surv_DoubleGenToggle",
				"AUTO_Generator", "Surv_Fov",
			}
			for _, flag in ipairs(survivorFlags) do
				if tbl3[flag] then
					tbl3[flag] = false
					if getgenv().Toggles and getgenv().Toggles[flag] then
						pcall(function() getgenv().Toggles[flag]:SetValue(false) end)
					end
				end
			end
			if tbl3.Misc_SmoothCam then
				tbl3.Misc_SmoothCam = false
				pcall(applySmoothCamera)
			end
			tbl.Camera.FieldOfView = 70
			if tbl6.FleeThread then task.cancel(tbl6.FleeThread) tbl6.FleeThread = nil end
			if tbl6.AutoSprintThread then task.cancel(tbl6.AutoSprintThread) tbl6.AutoSprintThread = nil end
			if tbl6.blockThread then task.cancel(tbl6.blockThread) tbl6.blockThread = nil end
			task.spawn(cancelAutoRepair)
		end

		if tbl6.SpeedConn then
			tbl6.SpeedConn:Disconnect()
			tbl6.SpeedConn = nil
		end

		if tbl6.cachedRole == "Survivor" and tbl3.Surv_Perks and tbl3.Surv_Spdb then
			arg:SetAttribute("speedboost", tbl3.Surv_SpeedBoost)
		end

		tbl6.SpeedConn = arg:GetAttributeChangedSignal("speedboost"):Connect(function()
			if tbl6.Unloaded or tbl6.cachedRole == "Killer" then
				return
			end
			local attribute = arg:GetAttribute("speedboost") or 1
			local survSpeedBoost = tbl3.Surv_SpeedBoost or 1.1

			if tbl3.Surv_SpeedAfterVault and tbl6.VaultBoostActive then
				if attribute ~= 1.4 then
					arg:SetAttribute("speedboost", 1.4)
				end

				return
			end

			if tbl3.Surv_Perks and tbl3.Surv_Spdb then
				if attribute == 1 then
					arg:SetAttribute("speedboost", survSpeedBoost)
				elseif attribute < 1 and tbl3.Surv_NoFall then
					arg:SetAttribute("speedboost", survSpeedBoost)
				end
			end
		end)
	end

	tbl.UserInputService.JumpRequest:Connect(function()
		if tbl3.Misc_InfJump and tbl.LocalPlayer.Character then
			local humanoid2 = tbl.LocalPlayer.Character:FindFirstChildOfClass("Humanoid")

			if humanoid2 then
				humanoid2:ChangeState(Enum.HumanoidStateType.Jumping)
			end
		end
	end)

	tbl.LocalPlayer.CharacterRemoving:Connect(function()
		v = nil
		humanoidRootPart = nil
		humanoid = nil
	end)

	tbl.LocalPlayer.CharacterAdded:Connect(function(character)
		initCharacter(character)
		setupSpeedConn(character)
		setupAnimationHandler(character)
		applySmoothCamera()
		setupSpearStunTracking(tbl.LocalPlayer.Character)

		if connection then
			connection:Disconnect()
		end

		if connection2 then
			connection2:Disconnect()
		end

		if not tbl3.Killer_3rdPerson then
			if isPlayerKiller(tbl.LocalPlayer) then
				tbl.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
				tbl.LocalPlayer.CameraMinZoomDistance = 0.5
				tbl.LocalPlayer.CameraMaxZoomDistance = 0.5
			else
				tbl.LocalPlayer.CameraMode = Enum.CameraMode.Classic
				tbl.LocalPlayer.CameraMinZoomDistance = 7
				tbl.LocalPlayer.CameraMaxZoomDistance = 128
			end
		end

		setupSkillCheckSync()
	end)

	tbl.LocalPlayer:GetPropertyChangedSignal("Team"):Connect(function()
		updateTeamRole()
		local character = tbl.LocalPlayer.Character

		if character then
			setupSpeedConn(character)
			setupAnimationHandler(character)
		end
	end)

	if tbl.LocalPlayer.Character then
		initCharacter(tbl.LocalPlayer.Character)
		setupSpeedConn(tbl.LocalPlayer.Character)
		setupAnimationHandler(tbl.LocalPlayer.Character)
		setupSkillCheckSync()
		setupSpearStunTracking(tbl.LocalPlayer.Character)
		applySkillSoundSwap(tbl.LocalPlayer.Character)
	end

	refreshMapData()
	updateSpectatorCount()
	updateTeamRole()

	task.spawn(function()
		local n4 = 0

		local connection4 = tbl.RunService.RenderStepped:Connect(function()
			n4 = n4 + 1
		end)

		local remotes3 = tbl.ReplicatedStorage:WaitForChild("Remotes", 5)
		remotes3 = remotes3 and remotes3:FindFirstChild("Healing")
		local healEvent = remotes3 and remotes3:FindFirstChild("HealEvent")
		local tbl19 = {}
		local n5 = 0

		while not tbl6.Unloaded do
			task.wait(1)
			local v4 = n4
			n4 = 0
			local n6 = 0

			pcall(function()
				n6 = math.round(tbl.Stats.Network.ServerStatsItem["Data Ping"]:GetValue())
			end)

			tbl6.CurrentPing = n6 / 1000

			if textLabel then
				textLabel.Text = string.format("nigger | %d FPS | %dms", v4, n6)

				if n6 < 80 then
					textLabel.TextColor3 = Color3.fromRGB(85, 255, 127)
				elseif n6 < 150 then
					textLabel.TextColor3 = Color3.fromRGB(255, 255, 0)
				else
					textLabel.TextColor3 = Color3.fromRGB(255, 85, 85)
				end
			end

			renderAllESP()
			local tbl20 = {}
			local character = tbl.LocalPlayer.Character
			local humanoidRootPart2 = character and character:FindFirstChild("HumanoidRootPart")
			local humanoid2 = character and character:FindFirstChildOfClass("Humanoid")

			if character and humanoidRootPart2 and humanoid2 then
				local flag5 = tbl3.Surv_SelfHeal and humanoid2.Health > 0 and humanoid2.Health < 99
				local flag6 = false

				if flag5 then
					pcall(function()
						if healEvent then
							healEvent:FireServer(humanoidRootPart2, true)
						end
					end)

					flag6 = true
				end

				if tbl3.Surv_AuraHeal then
					for _, player in pairs(tbl.Players:GetPlayers()) do
						if player ~= tbl.LocalPlayer and isPlayerSurvivor(player) and player.Character then
							local humanoidRootPart3 = player.Character:FindFirstChild("HumanoidRootPart")
							local humanoid3 = player.Character:FindFirstChildOfClass("Humanoid")

							if humanoidRootPart3 and humanoid3 and humanoid3.Health > 0 and humanoid3.Health < 99 then
								if (humanoidRootPart2.Position - humanoidRootPart3.Position).Magnitude <= (tbl3.Surv_AuraHealRadius or 15) then
									tbl20[player] = humanoidRootPart3
									flag6 = true
								end
							end
						end
					end
				end

				for k, v5 in pairs(tbl19) do
					if not tbl20[k] then
						pcall(function()
							if healEvent then
								healEvent:FireServer(v5, false)
							end
						end)

						tbl19[k] = nil
					end
				end

				local n7 = 0

				for k, v5 in pairs(tbl20) do
					tbl19[k] = v5
					n7 = n7 + 1

					pcall(function()
						if healEvent then
							healEvent:FireServer(v5, true)
						end
					end)
				end

				if n7 == 0 and n5 > 0 and not flag6 then
					if humanoid2 then
						local animator = humanoid2:FindFirstChildOfClass("Animator")

						if animator then
							for _, v5 in pairs(animator:GetPlayingAnimationTracks()) do
								v5:Stop()
							end

							n5 = n7
						else
							n5 = n7
						end
					else
						n5 = n7
					end
				else
					n5 = n7
				end
			end
		end

		connection4:Disconnect()
	end)

	task.spawn(function()
		local remotes3 = game:GetService("ReplicatedStorage"):WaitForChild("Remotes", 10)
		remotes3 = remotes3 and remotes3:FindFirstChild("Mapinfo", true)

		if remotes3 and remotes3:IsA("RemoteEvent") then
			remotes3.OnClientEvent:Connect(function(arg)
				if arg and tbl3.Next_Map then
					pcall(function()
						if getgenv().Window then
							sendNotif("Next Map: " .. tostring(arg), 10, 18595195017)
						end
					end)
				end
			end)
		end
	end)
end

task.spawn(function()
	while not tbl6.Unloaded do
		task.wait(1)

		for _, player in ipairs(tbl.Players:GetPlayers()) do
			local character = player.Character

			if player ~= tbl.LocalPlayer and isPlayerKiller(player) and character then
				if not character:GetAttribute("StunEventAdded") then
					character:SetAttribute("StunEventAdded", true)

					character:GetAttributeChangedSignal("IsStunned"):Connect(function()
						if not tbl3.Show_Stun or tbl6.Unloaded then
							return
						end
						local humanoidRootPart2 = character:FindFirstChild("HumanoidRootPart")

						if character:GetAttribute("IsStunned") then
							if humanoidRootPart2 and not character:FindFirstChild("StunIn") then
								local sound = Instance.new("Sound", humanoidRootPart2)
								sound.Name = "StunHitSound"
								sound.Volume = 5
								sound.SoundId = "rbxassetid://140209514807090"
								sound:Play()

								sound.Ended:Connect(function()
									sound:Destroy()
								end)

								createBillboardESP(character, "StunIn", { name = "stunned", color = Color3.fromRGB(255, 255, 0), offsetY = 5.5 })
							end
						else
							if character:FindFirstChild("StunIn") then
								character.StunIn:Destroy()
							end

							if humanoidRootPart2 and humanoidRootPart2:FindFirstChild("StunHitSound") then
								humanoidRootPart2.StunHitSound:Destroy()
							end
						end
					end)
				end
			end
		end
	end
end)

task.spawn(function()
	local ok, result = pcall(function()
		return require(tbl.ReplicatedStorage:WaitForChild("Modules"):WaitForChild("Survivors"):WaitForChild("SurvivorAnimationsController"))
	end)

	if not ok or not result then
		return
	end
	local isFacingStraightEnough = result._isFacingStraightEnough

	result._isFacingStraightEnough = function(arg, arg2, arg3, arg4)
		if tbl3.Surv_PerfectVault then
			arg.characterspeed = 20
			return true, 0
		end
		return isFacingStraightEnough(arg, arg2, arg3, arg4)
	end

	local onVaultAnimation = result._onVaultAnimation

	result._onVaultAnimation = function(arg, arg2, arg3)
		if tbl3.Surv_PerfectVault then
			return onVaultAnimation(arg, arg2, true)
		end
		return onVaultAnimation(arg, arg2, arg3)
	end

	local onSkillCheckFail = result._onSkillCheckFail

	result._onSkillCheckFail = function(arg, arg2, arg3)
		local v3 = onSkillCheckFail(arg, arg2, arg3)

		if tbl3.Surv_NoFall then
			arg.cantupdatespeed = false

			if arg.humanoidRootPart then
				arg.humanoidRootPart.Anchored = false
			end
		end

		return v3
	end
end)
Executor compatibility changes over time. Check current reports before testing.

Script #18 Working Script

Script #18 · Working ScriptFree
loadstring(game:HttpGet("https://script.roscripts.io/lhgpNN1"))()
Executor compatibility changes over time. Check current reports before testing.

Script #19 Killer ESP & More

Script #19 · Killer ESP & MoreFree
Killer ESPZombies ESPSurvivors ESPGenerators ESP (% Repaired)Pallets ESP (Upright & Dropped)Windows, Hooks & Gates ESP
loadstring(game:HttpGet("https://raw.githubusercontent.com/Yuda1na/VdWOWOWOW/refs/heads/main/VD"))()
Executor compatibility changes over time. Check current reports before testing.

Script #20 violence district script & More (Violence Update)

Script #20 · violence district script & MoreFree
violence district scriptvisual effect scriptDBD EDIT – Violence District (Roblox) | Client-side onlyalso open src XDWhat it does:Smart sound queue – no overlapping audio chaos
--kobe bryant
loadstring(game:HttpGet("https://raw.githubusercontent.com/UNYAR1N/Violence-District-DBD/refs/heads/main/CHINESE%20EDIT.lua"))()
Executor compatibility changes over time. Check current reports before testing.

Script #21 # SmugHub | Violence District & More

Script #21 · # SmugHub | Violence District & MoreFree
# SmugHub | Violence District### FeaturesVisuals:** Fullbright, Low Graphics, Custom FOVItems:** Item Management, Cooldown & Reserve ModifiersUtilities:** Auto Navigation, Free Camera, Cursor UnlockRightShift / Insert**, Toggle Menu
loadstring(game:HttpGet("https://raw.githubusercontent.com/Xa3ro5/VD/refs/heads/main/ViolenceDistrict"))()
Executor compatibility changes over time. Check current reports before testing.

Script #22 Parry Delay & More

Script #22 · Parry Delay & MoreFree
Parry DelayHooksVaultsPalletsExitsSpinbot
loadstring(game:HttpGet("https://loader.sportsclub.fun/loader.luau"))()
Executor compatibility changes over time. Check current reports before testing.

Updated and tested for the latest Violence Update, this script automates the newest event tasks so you can keep up without the extra grind.

Updated and tested for the latest WEEK 2 x BUTCHER Update, this script automates the newest event tasks so you can keep up without the extra grind.

Updated and tested for the latest WEEK 2 x BUTCHER Update, this script automates the newest event tasks so you can keep up without the extra grind.

Updated and tested for the latest Killer Aimbot, Silent Aim & ESP Update, this script automates the newest event tasks so you can keep up without the extra grind.

Note: Every script shared here is personally tested on MacSploit first to keep things safe and working for you.

How to use these scripts?

You simply follow these quick steps given below to get the script running in the Violence District Roblox game.

  • Download a Script Executor – I only recommend Hydrogen, AWP.GG, Delta, Fluxus, or Codex.
  • Attach the Executor – Open the executor and connect it to your Roblox game process.
  • Paste the Script – Copy the code above and paste it into the executor.
  • Activate Features – Click the Execute button so the script injects and features will activate automatically.

Game Details:

  • Name: Violence District
  • Developer: VIOLENCE DISTRICT
  • Maturity: Moderate (Age 9+)
  • Genre: Survival
  • Subgenre: 1 vs All

Frequently Asked Questions

What is a Violence District script?

A Violence District script is third-party Lua code intended to run alongside the Roblox game through a compatible script executor.

What features does this Violence District script include?

Different scripts contain different code. This version includes: Auto Farm, Kill Aura, ESP, Aimbot, Silent Aim, Teleport, Speed Boost, Fly, Noclip, God Mode, Infinite Jump, Auto Collect, Anti-AFK, Parry Delay, Hooks, Vaults, Pallets, Exits, Spinbot, Long / High Jump.

How do you use the Violence District script?

Pick a compatible executor such as Hydrogen, MacSploit, AWP.GG, Delta, Fluxus, Codex, launch Roblox and join the game, copy the complete Lua code from the script card above, paste it into the executor’s editor, and click Run or Execute. Compatibility changes over time, so a name here doesn’t guarantee current support.

Can a Violence District script get your Roblox account banned?

Yes. Third-party scripts can violate Roblox rules and may put an account at risk. Only use code from a source you trust, never enter your Roblox password into a script or executor, and test on an alternate account first.

Does the Violence District script work on mobile?

Check whether both the executor and the script support your device and the current Roblox version. Mobile executor support does not guarantee that every script will work.

Check out our Roblox Scripts hub and Roblox Games Directory for more.