Sends data to a webhook
It contains a Discord (or similar) webhook link. Loggers use these to send out your details.
Run it
Copy the script and paste it into your executor.
folder =
destination = folder ..
((writefile) == (readfile) == (isfile) == (isfolder) == (makefolder) == , )
(folder)
(folder)
hubSource = 5,gold=80,eye=70})[IIIl1I11I11] or 50
if not _wposxdwgeisnm or _0x7872>_wposxdwgeisnm then
_qqmadtp,_wposxdwgeisnm=IIIl1I11I11,_0x7872
end
end
end
if _qqmadtp then
hubState.Call("PickRelic",_qqmadtp)
elseif _0x7db35e=="" and (tonumber(_0xfa41b5:GetAttribute("RelicsReady")) or 0)>0 then
hubState.Call("OpenRelic")
end
end
function hubState.ResetJoin() hubState.JoinTarget,hubState.JoinAt,hubState.EndlessEntered=nil,nil,nil hubState.Next.Join,hubState.Next.StartPad=0,0
end
function hubState.NearPad(_ggqlbnwley,IlIl11II1111,__mlmo_jybfq)
local _llIll1l1=_ggqlbnwley.CFrame:PointToObjectSpace(IlIl11II1111.Position)
return math.abs(_llIll1l1.X)<=_ggqlbnwley.Size.X/2+__mlmo_jybfq and math.abs(_llIll1l1.Z)<=_ggqlbnwley.Size.Z/2+__mlmo_jybfq and math.abs(_llIll1l1.Y)<=_ggqlbnwley.Size.Y/2+8
end
function hubState.PadEmpty(_0x8b09218,_ll11I1llI1)
local _0x3222c5=hubState.Text(hubState.Path(_0x8b09218,"Status/TextLabel"))
local _0x5af25ab=tonumber(_0x3222c5:match("(%d+)%s*/%s*%d+"))
local I1lll1I1IIIl1I=_0x8b09218:GetAttribute("Group")
local Il1IIl111Ill1l=_0x8b09218:GetAttribute("Map")
if I1lll1I1IIIl1I~=nil then
if tostring(I1lll1I1IIIl1I)~="" or Il1IIl111Ill1l~=hubState.MapIds[hubSettings.Map] then
return false
end
elseif _0x5af25ab~=0 or not _0x3222c5:find(hubSettings.Map,1,true) then
return false
end
for _qtmswd__a,_jaikdoh_p in ipairs(game:GetService("Players"):GetPlayers()) do
local _0xd7580fd=_jaikdoh_p~=localPlayer and _jaikdoh_p.Character and _jaikdoh_p.Character:FindFirstChild("HumanoidRootPart")
if _0xd7580fd and hubState.NearPad(_ll11I1llI1,_0xd7580fd,2) then
return false
end
end
return true
end
function hubState.LobbyStep()
if game.PlaceId~=hubState.LobbyId or not hubSettings.AutoJoin or not hubState.Due("Join",.4) then
return
end
if hubSettings.Mode=="Endless" then
hubState.EndlessJoin()
return
end
local _fnbxvtthmu=localPlayer.Character and localPlayer.Character:FindFirstChild("HumanoidRootPart")
local _kdmbburxacg=hubState.Path(_xrdj_vtwj,"Lobby/Interact")
if not _fnbxvtthmu or not _kdmbburxacg then
return
end
for _0x49610de,_IIl1lll1 in ipairs(_kdmbburxacg:GetChildren()) do
local _0xe140c2b5=tostring(_IIl1lll1:GetAttribute("Group") or "")
if _0xe140c2b5:match("^%d+")==tostring(localPlayer.UserId) then
if _IIl1lll1:GetAttribute("Map")~=hubState.MapIds[hubSettings.Map] then
hubState.LobbyStatus="Leave the other map pad"
return
end
hubState.JoinTarget=_IIl1lll1 hubState.JoinAt=hubState.JoinAt or os.clock()
if _IIl1lll1:GetAttribute("Difficulty")~=hubState.PadDifficulty[hubSettings.Map] then
if hubState.Due("ChooseDifficulty",1) then
hubState.Call("ChooseDifficulty",_IIl1lll1.Name,hubState.PadDifficulty[hubSettings.Map])
end
return
end
local _0x8d6b1121=0
for _elewegqniq in _0xe140c2b5:gmatch("%d+") do
_0x8d6b1121=_0x8d6b1121+1
end
if _0x8d6b1121>=(tonumber(hubSettings.Players) or 1) and not _IIl1lll1:GetAttribute("Launching") and os.clock() - hubState.JoinAt>=hubSettings.JoinDelay and hubState.Due("StartPad",2) then
hubState.SaveConfig() hubState.QueueTeleport() hubState.Call("StartPad",_IIl1lll1.Name)
end
return
end
end
local lI1lIlIlII1l=hubState.PG("LobbyHUD/PadPanel")
if hubState.Visible(lI1lIlIlII1l) then
local _gxlkappt=hubState.Text(hubState.Path(lI1lIlIlII1l,"Title")):gsub("<[^>]+>","")
local _cytqvyc_svz=hubState.PadDifficulty[hubSettings.Map]
if not _cytqvyc_svz or not _gxlkappt:find(hubSettings.Map,1,true) or not _gxlkappt:find(_cytqvyc_svz,1,true) then
hubState.LobbyStatus="Move off the other map pad"
return
end
local _xockfatx=tonumber(hubState.Text(hubState.Path(lI1lIlIlII1l,"Players/Value")):match("(%d+)%s*/"))
local _0x141a20a=hubState.Path(lI1lIlIlII1l,"Start")
if hubState.Text(hubState.Path(_0x141a20a,"Label")):lower():find("teleport",1,true) then
hubState.LobbyStatus="Teleporting"
return
end
local _0xb8ffc=hubState.JoinTarget
local _0xa707f8f=_0xb8ffc and _0xb8ffc.Parent==_kdmbburxacg and hubState.PadPart(_0xb8ffc)
if not _0xa707f8f or not hubState.NearPad(_0xa707f8f,_fnbxvtthmu,1) then
_0xb8ffc=nil
for _koicdjppvdthw,II1l11ll1ll in ipairs(_kdmbburxacg:GetChildren()) do
if II1l11ll1ll.Name:match("^PlayPad%d+$") then
local _1l1I11l1l1I11=hubState.PadPart(II1l11ll1ll)
if _1l1I11l1l1I11 and hubState.NearPad(_1l1I11l1l1I11,_fnbxvtthmu,1) and hubState.Text(hubState.Path(II1l11ll1ll,"Status/TextLabel")):find(hubSettings.Map,1,true) then
if _0xb8ffc then
return
end
_0xb8ffc=II1l11ll1ll
end
end
end
end
if not _0xb8ffc then
return
end
if not _xockfatx or _xockfatx<(tonumber(hubSettings.Players) or 1) then
hubState.LobbyStatus="Waiting for players"
return
end
if hubState.JoinTarget~=_0xb8ffc then
hubState.JoinTarget,hubState.JoinAt=_0xb8ffc,os.clock()
end
if hubState.Visible(_0x141a20a) and os.clock() - (hubState.JoinAt or 0)>=hubSettings.JoinDelay and hubState.Due("StartPad",2) then
hubState.SaveConfig() hubState.QueueTeleport()
local _0xc86c=hubState.Call("StartPad",_0xb8ffc.Name) hubState.LobbyStatus=_0xc86c and "Starting " .. hubSettings.Map or "Start request failed"
end
return
end
if hubState.JoinTarget and os.clock() - (hubState.JoinAt or 0)<5 then
return
end
hubState.JoinTarget,hubState.JoinAt=nil,nil
local _mioqzmtskt,_nufdmxtp,_txdkehd
for _w_buzzn,_khtwmvye in ipairs(_kdmbburxacg:GetChildren()) do
if _khtwmvye.Name:match("^PlayPad%d+$") then
local _hvvszum=hubState.PadPart(_khtwmvye)
if _hvvszum and hubState.PadEmpty(_khtwmvye,_hvvszum) then
local _yzqztghxrl=(_fnbxvtthmu.Position - _hvvszum.Position).Magnitude
if not _mioqzmtskt or _yzqztghxrl<_mioqzmtskt then
_mioqzmtskt,_nufdmxtp,_txdkehd=_yzqztghxrl,_hvvszum,_khtwmvye
end
end
end
end
if not _nufdmxtp then
hubState.LobbyStatus="Waiting for an empty " .. hubSettings.Map .. " pad"
return
end
hubState.JoinTarget,hubState.JoinAt=_txdkehd,os.clock() hubState.LobbyStatus="Entering " .. hubSettings.Map _fnbxvtthmu.CFrame=CFrame.new(_nufdmxtp.Position+Vector3.new(0,_nufdmxtp.Size.Y/2+3,0)) _fnbxvtthmu.AssemblyLinearVelocity=Vector3.new()
end
function hubState.SummonStep()
if game.PlaceId~=hubState.LobbyId or not hubSettings.AutoSummon or not hubState.Due("Summon",hubSettings.SummonDelay) then
return
end
local _adaoutzwur_oa=hubSettings.Amount=="10" and 10 or 1
local _0x6626=hubState.ExactNumber(hubState.Text(hubState.PG("LobbyHUD/SummonWindow/Body/Buttons/Summon" .. _adaoutzwur_oa .. "/Price/TextLabel")))
local _0x500ded6=hubState.Shared("GameConfig")
local _0x4796=_0x500ded6 and _0x500ded6.SUMMON
if _0x4796 then
_0x6626=hubState.ExactNumber(_adaoutzwur_oa==10 and _0x4796.price10 or _0x4796.price)
end
local _1l1I1l1IllI=hubState.Currency("Coins")
if not _0x6626 or _0x6626<=0 or not _1l1I1l1IllI or _1l1I1l1IllI<_0x6626 then
hubState.LobbyStatus="Waiting for summon coins / price"
return
end
local _vvnvtxp,_0x1f51f8e0,l1I11lIl=hubState.Call("Summon",_adaoutzwur_oa) hubState.LobbyStatus=_vvnvtxp and _0x1f51f8e0==true and "Summoned x" .. _adaoutzwur_oa or "Summon rejected: " .. tostring(l1I11lIl or _0x1f51f8e0)
end
function hubState.ResetSpeed() hubState.SpeedAttempts=0 hubState.Next.Speed=0
end
function hubState.WaveStep()
if game.PlaceId~=hubState.MatchId or hubState.Ended then
return
end
if hubState.StartVisible() then
if hubSettings.AutoReady and hubState.Due("Ready",2) then
hubState.Call("StartMatch")
end
return
end
if not hubState.Active then
return
end
hubState.RelicStep()
if hubState.Paused then
return
end
local _bzpsduokv=false
for __qoudhutiit_ in hubSettings.StopSkipAt:gmatch("%d+") do
if tonumber(__qoudhutiit_)==hubState.Wave then
_bzpsduokv=true
break
end
end
local _I1Ill1IlI111=hubSettings.AutoSkip and not _bzpsduokv
if hubState.SkipManaged and hubState.AppliedSkip~=_I1Ill1IlI111 and hubState.Due("SkipSetting",hubSettings.SkipDelay) then
if hubState.Call("SetAutoSkip",_I1Ill1IlI111) then
hubState.AppliedSkip=_I1Ill1IlI111
end
end
local _ehmaett=tonumber(hubSettings.Speed)
if hubSettings.AutoSpeed and (_ehmaett==1 or _ehmaett==2 or _ehmaett==3 or _ehmaett==4) and hubState.LiveSpeed and hubState.LiveSpeed~=_ehmaett and (hubState.SpeedAttempts or 0)<3 and os.clock() - (hubState.StartedAt or os.clock())>=hubSettings.SpeedDelay and hubState.Due("Speed",2) then
hubState.SpeedAttempts=(hubState.SpeedAttempts or 0)+1 hubState.Call("SetSpeed",_ehmaett)
end
if hubSettings.AutoSell and hubState.Wave>=hubSettings.SellAtWave then
hubState.SellAt=hubState.SellAt or os.clock()+hubSettings.SellDelay
if os.clock()>=hubState.SellAt and hubState.SoldRound~=hubState.Round then
hubState.SoldRound=hubState.Round
if hubState.Playing then
hubState.StopPlayback()
end
for _lzggbsbqxd_yc,_lzaqkp_hybvt in ipairs(hubState.Troops()) do
task.spawn(function()
if hubState.Running and hubState.Own(_lzaqkp_hybvt) then
hubState.Call("SellDragon",_lzaqkp_hybvt)
end
end
)
end
end
else
hubState.SellAt=nil
end
end
function hubState.MatchMap()
local l1I1ll1I11ll=_xrdj_vtwj:GetAttribute("Map")
if type(l1I1ll1I11ll)=="string" and l1I1ll1I11ll~="" then
local _0x4435df=hubState.Shared("GameConfig")
return _0x4435df and _0x4435df.MAP_NAMES and _0x4435df.MAP_NAMES[l1I1ll1I11ll] or l1I1ll1I11ll
end
local Illll1lII1=hubState.TeleportData
local l1I1ll1I11ll=type(Illll1lII1)=="table" and (Illll1lII1.map or Illll1lII1.Map or Illll1lII1.mapName)
return type(l1I1ll1I11ll)=="string" and l1I1ll1I11ll~="" and l1I1ll1I11ll or nil
end
if game.PlaceId==hubState.MatchId then
local _0x687fa639,_rgvxxxh=pcall(lIIIIllll11I1.GetLocalPlayerTeleportData,lIIIIllll11I1)
if _0x687fa639 then
hubState.TeleportData=_rgvxxxh
end
end
function hubState.OnMatchEnded(_0x36a59a)
if type(_0x36a59a)~="table" or type(_0x36a59a.won)~="boolean" or hubState.Ended or _0x36a59a.match and _0x36a59a.match==hubState.LastMatchToken then
return
end
hubState.LastMatchToken=_0x36a59a.match hubState.Ended,hubState.EndAt=true,os.clock() hubState.EndAttempts=0 hubState.Matches=hubState.Matches+1 hubState.Result={Won=_0x36a59a.won,Wave=tonumber(_0x36a59a.wave) or hubState.Wave,Stage=hubState.MatchMap(),Duration=hubState.StartedAt and math.max(0,math.floor(hubState.EndAt - hubState.StartedAt)),Coins=tonumber(_0x36a59a.coins),Welcome=tonumber(_0x36a59a.welcomeCoins),Crystals=tonumber(_0x36a59a.crystals)}
if hubState.Playing then
hubState.StopPlayback()
end
if hubState.Recording then
task.spawn(hubState.StopRecord,true)
end
task.spawn(hubState.SendWebhook,false)
end
function hubState.EndStep()
if hubState.Recovery and hubState.Recovery.Busy() then
return
end
if not hubState.Ended or hubSettings.EndAction=="None" or os.clock() - (hubState.EndAt or os.clock())<hubSettings.EndDelay then
return
end
local _0x504e21=_fwxrf_y_sp:FindFirstChild("Match")
local _tytolt_c=_0x504e21 and _0x504e21:GetAttribute("State")
if not hubState.Visible(hubState.PG("MatchHUD/VictoryWindow")) and _tytolt_c~="Won" and _tytolt_c~="Lost" or hubState.EndAttempts>=3 or not hubState.Due("End",3) then
return
end
hubState.EndAttempts=hubState.EndAttempts+1 hubState.SaveConfig() hubState.QueueTeleport()
local _bnghnwmtgscup=hubSettings.EndAction=="Replay" and hubState.Recovery and hubState.Recovery.Watch()
local II1111III=hubState.Call(hubSettings.EndAction=="Replay" and "PlayAgain" or "ReturnToLobby")
if _bnghnwmtgscup and not II1111III then
hubState.Recovery.Rejected(_bnghnwmtgscup)
end
end
function hubState.StateStep() hubState.ReadState()
if game.PlaceId==hubState.MatchId then
local _dmyibmpvc=hubState.StartVisible()
if hubState.Ended and _dmyibmpvc and not hubState.Visible(hubState.PG("MatchHUD/VictoryWindow")) then
hubState.Ended,hubState.Active,hubState.StartedAt,hubState.Result=false,false,nil,nil hubState.Round,hubState.Clock,hubState.WaveAt=hubState.Round+1,0,0 hubState.SawStart,hubState.AppliedSkip,hubState.SellAt=false,nil,nil hubState.Next.Ready,hubState.Next.End=0,0 hubState.ResetSpeed()
end
if _dmyibmpvc and not hubState.Ended then
hubState.SawStart=true
end
if not hubState.Active and not hubState.Ended and not _dmyibmpvc and (hubState.SawStart or hubState.Wave>0) then
hubState.Active,hubState.StartedAt=true,os.clock() hubState.ClockAt=hubState.StartedAt
end
if hubState.Due("Bind",2) then
hubState.BindCash()
local lI1IIII1l=hubState.Remote("MatchEnded")
if lI1IIII1l and lI1IIII1l~=hubState.ResultRemote and lI1IIII1l:IsA("RemoteEvent") then
if hubState.ResultConnection then
hubState.ResultConnection:Disconnect()
end
hubState.ResultRemote=lI1IIII1l hubState.ResultConnection=hubState.Connect(lI1IIII1l.OnClientEvent,hubState.OnMatchEnded)
end
end
if hubSettings.AutoPlayback and hubState.Active and not hubState.Ended and not hubState.Playing and not hubState.Recording and not hubState.Closing and hubState.AutoPlayedRound~=hubState.Round and #hubState.Actions>0 then
local _irruataakiq=hubState.StartPlayback()
if _irruataakiq then
hubState.AutoPlayedRound=hubState.Round
end
end
end
if hubState.Due("UI",.4) then
hubState.UIUpdate()
end
end
function hubState.BuildMatchEmbed(_zcyxiya)
local _0x5af04ad9=hubState.Result or {}
local IIIIIIllI=hubSettings.HideName and "Player" or localPlayer.Name
local _0x993e3=_0x5af04ad9.Duration
local _ehlargssxlzgq=_zcyxiya and "Webhook connected." or "Reward data unavailable"
if _0x5af04ad9.Coins and not _zcyxiya then
_ehlargssxlzgq="Coins: +" .. _0x5af04ad9.Coins
if _0x5af04ad9.Welcome and _0x5af04ad9.Welcome>0 then
_ehlargssxlzgq=_ehlargssxlzgq .. "\nWelcome Bonus: +" .. _0x5af04ad9.Welcome
end
if _0x5af04ad9.Crystals and _0x5af04ad9.Crystals>0 then
_ehlargssxlzgq=_ehlargssxlzgq .. "\nCrystals: +" .. _0x5af04ad9.Crystals
end
end
local __nrxrcov=_zcyxiya and "Webhook Test" or _0x5af04ad9.Won and "Victory" or "Defeat"
return {title="Dragon Tower Defense | " .. __nrxrcov,color=_zcyxiya and 5793266 or _0x5af04ad9.Won and 65280 or 16711680,description="**Stage:** " .. (_0x5af04ad9.Stage or "Unavailable"),fields={{name="Player Info",value="Name: ||" .. IIIIIIllI .. "||"},{name="Clear Time",value=_0x993e3 and string.format("%02d:%02d",math.floor(_0x993e3/60),_0x993e3%60) or "Unavailable",inline=true},{name="Waves",value=tostring(_0x5af04ad9.Wave or hubState.Wave or 0),inline=true},{name="Matches",value=tostring(hubState.Matches),inline=true},{name="Match Rewards",value=_ehlargssxlzgq}},footer={text="Cactus Hub"},timestamp=os.date("!%Y-%m-%dT%H:%M:%SZ")}
end
function hubState.Restore(IIl1II1IIl11l1)
for _ljskalx,IIII1IIIl1l1 in pairs(IIl1II1IIl11l1) do
for _nobdgmxg,_ll1II11 in pairs(IIII1IIIl1l1) do
pcall(function() _ljskalx[_nobdgmxg]=_ll1II11
end
)
end
IIl1II1IIl11l1[_ljskalx]=nil
end
end
function hubState.SetFPS(l1IIllIll111) hubState.NativeGraphics=l1IIllIll111 hubState.Next.Graphics=0 hubState.FPSGeneration=(hubState.FPSGeneration or 0)+1
local _0x292d7c22=hubState.FPSGeneration
if hubState.FPSConnection then
hubState.FPSConnection:Disconnect() hubState.FPSConnection=nil
end
if not l1IIllIll111 then
hubState.Restore(hubState.FPS)
return
end
local function IIlII1ll1lI(__aetvxogvjrm)
if __aetvxogvjrm:IsA("Decal") and __aetvxogvjrm.Name:lower()=="face" and localPlayer.Character and __aetvxogvjrm:IsDescendantOf(localPlayer.Character) then
return
end
if __aetvxogvjrm:IsA("BasePart") then
return {CastShadow=false,Material=Enum.Material.SmoothPlastic,Reflectance=0}
elseif __aetvxogvjrm:IsA("Decal") or __aetvxogvjrm:IsA("Texture") then
return {Transparency=1}
elseif __aetvxogvjrm:IsA("ParticleEmitter") or __aetvxogvjrm:IsA("Trail") or __aetvxogvjrm:IsA("Beam") or __aetvxogvjrm:IsA("Smoke") or __aetvxogvjrm:IsA("Fire") or __aetvxogvjrm:IsA("Sparkles") or __aetvxogvjrm:IsA("PostEffect") then
return {Enabled=false}
end
end
local function lll11llI(_0x2397c3fc,lIllII1l11ll)
if hubState.FPS[_0x2397c3fc] then
return
end
local _0xb16ba={}
for _0xe90d7d,_uusxkeamjgpx in pairs(lIllII1l11ll) do
pcall(function() _0xb16ba[_0xe90d7d]=_0x2397c3fc[_0xe90d7d] _0x2397c3fc[_0xe90d7d]=_uusxkeamjgpx
end
)
end
hubState.FPS[_0x2397c3fc]=_0xb16ba
end
local _0x235d4,_xlwcimmsiwuwk,lIlIl1I1I,lIlI111I1l1Il,_0x4b02={},setmetatable({},{__mode="k"}),1,0,false
local function _0x053d71(IlIlIl11II)
if hubState.FPS[IlIlIl11II] or _xlwcimmsiwuwk[IlIlIl11II] then
return
end
local _0xc2fad7=IIlII1ll1lI(IlIlIl11II)
if not _0xc2fad7 then
return
end
lIlI111I1l1Il=lIlI111I1l1Il+1 _0x235d4[lIlI111I1l1Il]={IlIlIl11II,_0xc2fad7} _xlwcimmsiwuwk[IlIlIl11II]=true
if _0x4b02 then
return
end
_0x4b02=true task.defer(function()
local _ulvwrfmuubnv=os.clock()
local II1Ill1Il=0
while hubState.Running and hubSettings.FPSBoost and hubState.FPSGeneration==_0x292d7c22 and lIlIl1I1I<=lIlI111I1l1Il do
local __vqgevorsrodn=_0x235d4[lIlIl1I1I] _0x235d4[lIlIl1I1I]=nil lIlIl1I1I=lIlIl1I1I+1 _xlwcimmsiwuwk[__vqgevorsrodn[1]]=nil
if __vqgevorsrodn[1].Parent then
lll11llI(__vqgevorsrodn[1],__vqgevorsrodn[2])
end
II1Ill1Il=II1Ill1Il+1
if II1Ill1Il%16==0 and os.clock() - _ulvwrfmuubnv>=.001 then
task.wait() _ulvwrfmuubnv=os.clock()
end
end
_0x235d4={} lIlIl1I1I=1 lIlI111I1l1Il=0 _0x4b02=false
end
)
end
hubState.FPSConnection=_xrdj_vtwj.DescendantAdded:Connect(_0x053d71)
local _vpcpgwfie_y=game:GetService("Lighting") lll11llI(_vpcpgwfie_y,{GlobalShadows=false,EnvironmentDiffuseScale=0,EnvironmentSpecularScale=0}) task.spawn(function()
local _rkmsxlz__gbaj=os.clock()
for II1IIIIIlI1,_ddc_chpa in ipairs({_xrdj_vtwj,_vpcpgwfie_y}) do
for _0xee55a,_qiwdxslmim in ipairs(_ddc_chpa:GetDescendants()) do
if not hubState.Running or not hubSettings.FPSBoost or hubState.FPSGeneration~=_0x292d7c22 then
return
end
_0x053d71(_qiwdxslmim)
if os.clock() - _rkmsxlz__gbaj>=.001 then
task.wait() _rkmsxlz__gbaj=os.clock()
end
end
end
end
)
end
function hubState.SetHide(_0xa58b6b) hubState.HideGeneration=(hubState.HideGeneration or 0)+1
local _mrsdtbzjj=hubState.HideGeneration
for _zzlamui,_hfjmzcunfv in ipairs(hubState.HideConnections or {}) do
_hfjmzcunfv:Disconnect()
end
hubState.HideConnections={}
for _l1IlI1I,_0xc987 in pairs(hubState.HideWatches or {}) do
_0xc987.Text:Disconnect()
if _0xc987.Destroy then
_0xc987.Destroy:Disconnect()
end
end
hubState.HideWatches=setmetatable({},{__mode="k"})
if not _0xa58b6b then
hubState.Restore(hubState.Hidden)
return
end
local function _0x3586(_0xfe5fd)
for _vfbuvelxd,Illl1Il1IlI11l in ipairs({localPlayer.Name,localPlayer.DisplayName}) do
if Illl1Il1IlI11l~="" then
_0xfe5fd=_0xfe5fd:gsub("%f[%w_]" .. Illl1Il1IlI11l:gsub("(%W)","%%%1") .. "%f[^%w_]","Player")
end
end
return _0xfe5fd
end
local function _stpddbotf_kp(II1Ill1Ill1)
if II1Ill1Ill1:IsA("Humanoid") and localPlayer.Character and II1Ill1Ill1:IsDescendantOf(localPlayer.Character) then
if not hubState.Hidden[II1Ill1Ill1] then
hubState.Hidden[II1Ill1Ill1]={DisplayDistanceType=II1Ill1Ill1.DisplayDistanceType}
end
II1Ill1Ill1.DisplayDistanceType=Enum.HumanoidDisplayDistanceType.None
elseif II1Ill1Ill1:IsA("TextLabel") or II1Ill1Ill1:IsA("TextButton") then
local I1IlI1lI1=II1Ill1Ill1.Text
local _0x551c7b=II1Ill1Ill1.Name:lower()
local _0x0757e17=_0x551c7b=="username" or _0x551c7b=="displayname" or _0x551c7b=="playername" or _0x551c7b=="namelabel" or _0x551c7b=="playerlabel" or _0x551c7b=="ownername"
if hubState.HideWatches[II1Ill1Ill1] or _0x3586(I1IlI1lI1)==I1IlI1lI1 and not _0x0757e17 and not (hubState.IsHideNameLabel and hubState.IsHideNameLabel(II1Ill1Ill1)) then
return
end
local _zexccqt
local function I11I11IIllIl()
if not hubState.Running or not hubSettings.HideName then
return
end
local l1I1I1IIlI11Il=II1Ill1Ill1.Text
if l1I1I1IIlI11Il==_zexccqt then
return
end
local _daadagaobvuss=_0x3586(l1I1I1IIlI11Il)
if _daadagaobvuss~=l1I1I1IIlI11Il then
hubState.Hidden[II1Ill1Ill1]={Text=l1I1I1IIlI11Il} _zexccqt=_daadagaobvuss II1Ill1Ill1.Text=_daadagaobvuss
elseif hubState.Hidden[II1Ill1Ill1] and hubState.Hidden[II1Ill1Ill1].Text then
hubState.Hidden[II1Ill1Ill1]=nil _zexccqt=nil
end
end
local Il1l1Ill=II1Ill1Ill1:GetPropertyChangedSignal("Text"):Connect(I11I11IIllIl)
local __lnqzalxkczn={Text=Il1l1Ill} hubState.HideWatches[II1Ill1Ill1]=__lnqzalxkczn
if II1Ill1Ill1.Destroying then
__lnqzalxkczn.Destroy=II1Ill1Ill1.Destroying:Connect(function() Il1l1Ill:Disconnect() hubState.HideWatches[II1Ill1Ill1]=nil
end
)
end
I11I11IIllIl()
end
end
local _ycgtao_az={}
local _jdivejplal=localPlayer:FindFirstChildOfClass("PlayerGui")
if _jdivejplal then
_ycgtao_az[#_ycgtao_az+1]=_jdivejplal
end
local l11Il11lll1l,_dkrxamc_p=pcall(game.GetService,game,"CoreGui")
if l11Il11lll1l and _dkrxamc_p then
_ycgtao_az[#_ycgtao_az+1]=_dkrxamc_p
end
if localPlayer.Character then
_ycgtao_az[#_ycgtao_az+1]=localPlayer.Character
end
for _xhcjpgaca,_0x068e92 in ipairs(_ycgtao_az) do
if _0x068e92 then
hubState.HideConnections[#hubState.HideConnections+1]=_0x068e92.DescendantAdded:Connect(function(_0xdda034) task.defer(function()
if hubState.Running and hubSettings.HideName and _mrsdtbzjj==hubState.HideGeneration then
pcall(_stpddbotf_kp,_0xdda034)
end
end
)
end
) task.spawn(function()
local _0x0861f2=os.clock()
local l11Il11lIIlll,_0xc080a2e1=pcall(_0x068e92.GetDescendants,_0x068e92)
if not l11Il11lIIlll then
return
end
for _fecc_tra,ll1Il1lI in ipairs(_0xc080a2e1) do
if not hubState.Running or not hubSettings.HideName or _mrsdtbzjj~=hubState.HideGeneration then
return
end
pcall(_stpddbotf_kp,ll1Il1lI)
if os.clock() - _0x0861f2>=.001 then
task.wait() _0x0861f2=os.clock()
end
end
end
)
end
end
end
function hubState.UIUpdate()
if not hubState.Window then
return
end
local function _piapaotqwg_df(_pabpvpyje,_pboqzurzsctrr)
local _0xd3e9a=hubState.Widgets[_pabpvpyje]
if _0xd3e9a and hubState["UI" .. _pabpvpyje]~=_pboqzurzsctrr then
hubState["UI" .. _pabpvpyje]=_pboqzurzsctrr _0xd3e9a:SetDesc(_pboqzurzsctrr)
end
end
local _0x16512bd4="State: " .. (hubState.Recording and "Recording" or hubState.Playing and "Playback" or "Idle")
if hubState.Widgets.State and hubState.StateTitle~=_0x16512bd4 then
hubState.StateTitle=_0x16512bd4 hubState.Widgets.State:SetTitle(_0x16512bd4)
end
_piapaotqwg_df("State",(game.PlaceId==hubState.LobbyId and (hubState.LobbyStatus or hubState.Status) or hubState.Status) .. (hubState.RecordFault and " | " .. hubState.RecordFault or hubState.LastError and " | " .. hubState.LastError or "")) _piapaotqwg_df("Live","Wave " .. tostring(hubState.Wave or 0) .. " | " .. hubSettings.PlaybackMode .. " | Cash: " .. tostring(hubState.Cash or "?") .. (hubState.LiveSpeed and " | " .. hubState.LiveSpeed .. "x" or ""))
local _0x78af8774="Recorded actions: " .. #hubState.Actions
if hubState.Widgets.Actions and hubState.ActionTitle~=_0x78af8774 then
hubState.ActionTitle=_0x78af8774 hubState.Widgets.Actions:SetTitle(_0x78af8774)
end
_piapaotqwg_df("Actions",hubState.Playing and "Playback: " .. tostring(hubState.PlaybackIndex or 0) .. "/" .. #hubState.Actions or hubSettings.Profile~="" and "Selected macro: " .. hubSettings.Profile or "No macro selected.")
if hubState.Widgets.Record and not hubState.Recording and not hubState.Closing then
hubState.Syncing=true hubState.Widgets.Record:Set(false) hubState.Syncing=false
end
if hubState.Widgets.Playback then
hubState.Syncing=true hubState.Widgets.Playback:Set(hubSettings.AutoPlayback) hubState.Syncing=false
end
end
function hubState.BuildUI()
local uiLibrary=executorEnvironment.__DragonTDWindUI
if not uiLibrary then
uiLibrary=loadstring(game:HttpGet("https://raw.githubusercontent.com/Footagesus/WindUI/main/dist/main.lua"))() executorEnvironment.__DragonTDWindUI=uiLibrary
end
if not hubState.Running or executorEnvironment.DragonTDHub~=hubState then
return
end
hubState.UI=uiLibrary
local hubWindow=hubBranding.Bind(uiLibrary:CreateWindow(hubBranding.Check({Title="Cactus Hub | Dragon Tower Defense",Folder="CactusHubDragonTD",Icon="flame",Size=UDim2.fromOffset(620,500),Theme="Dark",Transparent=true,ToggleKey=Enum.KeyCode.RightShift,OpenButton={Title=hubBranding.OpenButton,Enabled=true,Draggable=true,OnlyMobile=false}})),function()
return hubState.Running
end
,function()
if hubState.Destroy then
hubState.Destroy()
end
end
,uiLibrary) hubState.Window=hubWindow
local _0x9f366e=hubWindow:Tab({Title="Lobby",Icon="door-open"})
local _pamrqlm=hubWindow:Tab({Title="Match",Icon="swords"})
local _aisavjvk=hubWindow:Tab({Title="Macros",Icon="clapperboard"})
local _cw_rnetcu=hubWindow:Tab({Title="Webhook",Icon="webhook"})
local _0x24ed=hubWindow:Tab({Title="Misc",Icon="settings"})
local function _0x633c(_0x17128,_grzmnpenyqkv) _0x17128:Section({Title=_grzmnpenyqkv})
end
local function __jna_giqojd_(_fueccnfehof,Il1Il1ll11l1II,_111II1I1,Il1l1llII1,llI1l11I)
return _fueccnfehof:Toggle({Title=Il1Il1ll11l1II,Desc=Il1l1llII1,Value=hubSettings[_111II1I1],Callback=function(_gthaapjs)
if hubState.Syncing then
return
end
hubSettings[_111II1I1]=_gthaapjs==true
if llI1l11I then
llI1l11I(hubSettings[_111II1I1])
end
hubState.QueueSave()
end
})
end
local function _nwomichi(_0xbda9,_hvl_ixsleyn_,IllI11lIIl,_nc_b_gd)
return _0xbda9:Input({Title=_hvl_ixsleyn_,Placeholder=_nc_b_gd,Value=tostring(hubSettings[IllI11lIIl]),Callback=function(_0x3a68e)
if not hubState.Syncing then
hubSettings[IllI11lIIl]=tostring(_0x3a68e) hubState.QueueSave()
end
end
})
end
local function _I1l1ll1l(_111lI11l11lI,lI1lI111I11I11,_rkr_npf_o,_0x15ac70ca,_numcnzt)
return _111lI11l11lI:Dropdown({Title=lI1lI111I11I11,Values=_0x15ac70ca,Value=hubSettings[_rkr_npf_o],Callback=function(_0xf29a25)
if hubState.Syncing or type(_0xf29a25)~="string" then
return
end
hubSettings[_rkr_npf_o]=_0xf29a25
if _numcnzt then
_numcnzt(_0xf29a25)
end
hubState.QueueSave()
end
})
end
local function I1I1llIlI(_binq_ydk,_0x09907811,lIII1I1l11l)
return _binq_ydk:Slider({Title=_0x09907811,Step=.1,Value={Min=.1,Max=10,Default=hubSettings[lIII1I1l11l]},Callback=function(llIl1l1I11Il1)
if not hubState.Syncing then
hubSettings[lIII1I1l11l]=math.clamp(tonumber(llIl1l1I11Il1) or 1,.1,10) hubState.QueueSave()
end
end
})
end
hubState.Syncing=true _0x633c(_0x9f366e,"Play") _0x9f366e:Dropdown({Title="Players",Values={"1 Player","2 Players","3 Players","4 Players"},Value=hubSettings.Players .. (hubSettings.Players=="1" and " Player" or " Players"),Callback=function(l1llI1l1)
if hubState.Syncing then
return
end
hubSettings.Players=tostring(l1llI1l1):match("%d+") or "1" hubState.ResetJoin() hubState.QueueSave()
end
}) _I1l1ll1l(_0x9f366e,"Mode","Mode",{"Standard","Endless"},hubState.ResetJoin) _I1l1ll1l(_0x9f366e,"Map","Map",hubState.Maps,hubState.ResetJoin) I1I1llIlI(_0x9f366e,"Join Delay","JoinDelay") __jna_giqojd_(_0x9f366e,"Auto Join & Start","AutoJoin",nil,hubState.ResetJoin) _0x633c(_0x9f366e,"Auto Summon") _I1l1ll1l(_0x9f366e,"Amount","Amount",{"1","10"}) I1I1llIlI(_0x9f366e,"Summon Delay","SummonDelay") __jna_giqojd_(_0x9f366e,"Auto Summon","AutoSummon") _0x633c(_pamrqlm,"Start") __jna_giqojd_(_pamrqlm,"Auto Start Match","AutoReady") _0x633c(_pamrqlm,"Relics") __jna_giqojd_(_pamrqlm,"Auto Pick Relic","AutoRelic") _0x633c(_pamrqlm,"Wave") __jna_giqojd_(_pamrqlm,"Auto Skip Waves","AutoSkip",nil,function() hubState.SkipManaged=true hubState.Next.SkipSetting=0
end
) _nwomichi(_pamrqlm,"Stop Auto Skip At","StopSkipAt","1, 5, 10") I1I1llIlI(_pamrqlm,"Skip Delay","SkipDelay") _0x633c(_pamrqlm,"Speed") _I1l1ll1l(_pamrqlm,"Speed Scale","Speed",{"1","2","3","4"},hubState.ResetSpeed) __jna_giqojd_(_pamrqlm,"Auto Speed Scale","AutoSpeed",nil,hubState.ResetSpeed) I1I1llIlI(_pamrqlm,"Speed Delay","SpeedDelay") _0x633c(_pamrqlm,"Auto Sell") __jna_giqojd_(_pamrqlm,"Auto Sell All Towers","AutoSell") _pamrqlm:Input({Title="Sell At Wave",Value=tostring(hubSettings.SellAtWave),Placeholder="15",Callback=function(_fjniuvmqmy)
if not hubState.Syncing then
hubSettings.SellAtWave=math.clamp(tonumber(_fjniuvmqmy) or 15,1,10000) hubState.QueueSave()
end
end
}) I1I1llIlI(_pamrqlm,"Sell Delay","SellDelay") _0x633c(_pamrqlm,"Match End") _I1l1ll1l(_pamrqlm,"After Match","EndAction",{"None","Replay","Return"}) I1I1llIlI(_pamrqlm,"End Delay","EndDelay") _0x633c(_aisavjvk,"Macro State") hubState.Widgets.State=_aisavjvk:Paragraph({Title="State: Idle",Desc="Ready to record or play."}) hubState.Widgets.Live=_aisavjvk:Paragraph({Title="Live match",Desc="Waiting for match data."}) hubState.Widgets.Actions=_aisavjvk:Paragraph({Title="Recorded actions: 0",Desc="No macro selected."}) _nwomichi(_aisavjvk,"Create Macro","NewProfile","Macro name")
local function _lIlllII1ll() hubState.Syncing=true hubState.Widgets.Profiles:Refresh(hubState.ListMacros()) hubState.Widgets.Profiles:Select(hubSettings.Profile~="" and hubSettings.Profile or {}) hubState.Syncing=false
end
_aisavjvk:Button({Title="Create New Macro",Callback=function()
if hubState.Recording or hubState.Playing or hubState.Closing then
hubState.Notify("Stop macro first")
return
end
local _0x46c2=hubState.Clean(hubSettings.NewProfile)
local _tehdvvumdra=hubState.ProfilePath(_0x46c2)
if not _tehdvvumdra or _0x46c2:lower()=="settings" then
hubState.Notify("Enter a macro name")
return
end
if hubState.FS and isfile(_tehdvvumdra) then
hubState.Notify("Name already exists")
return
end
hubSettings.Profile=_0x46c2 hubState.Actions={} hubState.Existing={} hubState.RecordMap=nil
local _0x495c3a,_tafxuomrb=hubState.SaveMacro() hubState.Notify(_0x495c3a and "Macro created" or _tafxuomrb) _lIlllII1ll()
end
}) hubState.Widgets.Profiles=_aisavjvk:Dropdown({Title="Select Macro",Values=hubState.ListMacros(),Value=hubSettings.Profile,SearchBarEnabled=true,AllowNone=true,Callback=function(Il1l11lIl)
if hubState.Syncing or type(Il1l11lIl)~="string" or Il1l11lIl=="" then
return
end
local lll11l1111I1l,_0xaab95de1=hubState.LoadMacro(Il1l11lIl)
if not lll11l1111I1l then
hubState.Notify(_0xaab95de1)
end
end
}) _aisavjvk:Button({Title="Delete Selected Macro",Callback=function()
if hubState.Recording or hubState.Playing or hubState.Closing or hubSettings.AutoPlayback then
hubState.Notify("Stop macro first")
return
end
local _0x1531f571=hubState.ProfilePath(hubSettings.Profile)
if hubState.FS and _0x1531f571 and isfile(_0x1531f571) and type(delfile)=="function" then
if hubState.DeleteProfile~=hubSettings.Profile or os.clock()>(hubState.DeleteUntil or 0) then
hubState.DeleteProfile=hubSettings.Profile hubState.DeleteUntil=os.clock()+5 hubState.Notify("Click again to delete")
return
end
hubState.DeleteProfile=nil writefile(_0x1531f571 .. ".bak",readfile(_0x1531f571)) delfile(_0x1531f571) hubState.Actions={} hubState.Existing={} hubSettings.Profile="" hubState.QueueSave() _lIlllII1ll()
end
end
}) _I1l1ll1l(_aisavjvk,"Playback Mode","PlaybackMode",{"Hybrid","Time","Money"}) hubState.Widgets.Record=_aisavjvk:Toggle({Title="Record",Value=false,Callback=function(III1I1III)
if hubState.Syncing then
return
end
if III1I1III then
if hubState.Playing then
hubState.StopPlayback()
end
hubSettings.AutoPlayback=false hubState.QueueSave()
local _0x90211e7,lIIIll1II=hubState.StartRecord()
if not _0x90211e7 then
hubState.Notify(lIIIll1II)
end
else
task.spawn(function() hubState.StopRecord(true)
end
)
end
end
}) hubState.Widgets.Playback=_aisavjvk:Toggle({Title="Auto Playback Every Match",Value=hubSettings.AutoPlayback,Callback=function(_dlzal_b_ooh_l)
if hubState.Syncing then
return
end
hubSettings.AutoPlayback=_dlzal_b_ooh_l==true hubState.AutoPlayedRound=nil hubState.QueueSave()
if _dlzal_b_ooh_l then
task.spawn(function()
if hubState.Recording then
hubState.StopRecord(true)
end
if not hubSettings.AutoPlayback or not hubState.Running then
return
end
if game.PlaceId==hubState.MatchId and hubState.Active and not hubState.Ended and #hubState.Actions>0 then
local _qryviw_nijhla,_0x04bf62a6=hubState.StartPlayback()
if _qryviw_nijhla then
hubState.AutoPlayedRound=hubState.Round
else
hubState.Notify(_0x04bf62a6)
end
else
hubState.Status="Playback armed: waiting for match"
end
end
)
else
hubState.StopPlayback()
end
end
}) do
local _0x8255159={Tab=_aisavjvk,Owner=hubState,HTTP=_lI1lI1III1I1l,StateTables={hubState,hubSettings},Games={"Dragon Tower Defense"},KindKey="Kind",Kinds={"Place","Upgrade","Sell","Target","Skip"},FS=function()
return hubState.FS
end
,Busy=function()
return hubState.Recording or hubState.Playing or hubState.Closing or hubSettings.AutoPlayback
end
,Clean=hubState.Clean,Path=hubState.ProfilePath,Load=hubState.LoadMacro,Validate=hubState.ValidMacro,Notify=hubState.Notify,Refresh=function() _lIlllII1ll() hubState.QueueSave()
end
} assert(type(_0x8255159.Load)=="function" and type(_0x8255159.Path)=="function" and type(_0x8255159.Clean)=="function","Macro import adapter unavailable")
local _tpvsn_rpo={}
local function _II1IIll(_0x738bb)
if type(_0x738bb)~="string" then
return nil,"Please paste a Discord macro link tagged [Cactus Hub]."
end
local _fj_fnuygxoc=_0x738bb:find("`",1,true)~=nil _0x738bb=_0x738bb:gsub("`",""):match("^%s*(.-)%s*$")
if _fj_fnuygxoc then
_0x738bb=_0x738bb:gsub("^[jJ][sS][oO][nN]%s+",""):match("^%s*(.-)%s*$")
end
if _0x738bb=="" then
return nil,"Please paste a Discord macro link tagged [Cactus Hub]."
end
if _0x738bb:sub(1,12)~="[Cactus Hub]" then
return nil,"Please paste a Discord macro link tagged [Cactus Hub]."
end
_0x738bb=_0x738bb:sub(13)
local _lIll1l1=true do
if #_0x738bb>4096 or _0x738bb:find("[%s%c<>\\]") then
return nil,"Paste one complete Discord file link"
end
local _przklxan__pb_,_lIIIl1ll1Il1=_0x738bb:match("^https://([^/%?#]+)(/[^#]*)$")
if not _przklxan__pb_ or not (_przklxan__pb_:lower()=="cdn.discordapp.com" or _przklxan__pb_:lower()=="media.discordapp.net") or not _lIIIl1ll1Il1:match("^/attachments/%d+/%d+/[^%?#]+") then
return nil,"Use the Discord file link, not a message or Copy Link page URL"
end
local l1l1lIIII11ll1=type(request)=="function" and request or type(http_request)=="function" and http_request or type(syn)=="table" and type(syn.request)=="function" and syn.request or type(http)=="table" and type(http.request)=="function" and http.request
local _0xb51d,_lll1lIIlIl111,_0x10a2e7=pcall(function()
if l1l1lIIII11ll1 then
local _0x8095a865=l1l1lIIII11ll1({Url=_0x738bb,Method="GET",Headers={Accept="application/json"},Redirect=false}) assert(type(_0x8095a865)=="table","Invalid HTTP response")
local _0x526f=tonumber(_0x8095a865.StatusCode or _0x8095a865.Status)
if _0x526f==403 or _0x526f==404 then
return nil,"Link expired or unavailable; copy a fresh file link from Discord"
end
if _0x526f and (_0x526f<200 or _0x526f>=300) then
return nil,"Download failed (HTTP " .. _0x526f .. ")"
end
return _0x8095a865.Body or _0x8095a865.body
end
return game:HttpGet(_0x738bb)
end
)
if not _0xb51d then
return nil,"Cannot download macro; check the link, network and executor HTTP support"
end
if type(_lll1lIIlIl111)~="string" or _lll1lIIlIl111=="" then
return nil,_0x10a2e7 or "Link expired or unavailable; copy a fresh file link from Discord"
end
_0x738bb=_lll1lIIlIl111
end
if #_0x738bb>200*1024 then
return nil,"Macro exceeds 200 KB"
end
_0x738bb=_0x738bb:gsub("^\239\187\191","")
return _0x738bb,_lIll1l1
end
local function _0x19f3fef()
local _kwismkzjhbkgm={}
for _lllIll1,_lllI1Il11III1 in ipairs(_0x8255159.StateTables) do
local _l1I1I1Il1={}
for llIIlI11II,_0x76a1 in pairs(_lllI1Il11III1) do
_l1I1I1Il1[llIIlI11II]=_0x76a1
end
_kwismkzjhbkgm[#_kwismkzjhbkgm+1]={State=_lllI1Il11III1,Copy=_l1I1I1Il1}
end
return function()
for _0xd76240,_0xaacc2 in ipairs(_kwismkzjhbkgm) do
for _0xd3d7 in pairs(_0xaacc2.State) do
_0xaacc2.State[_0xd3d7]=nil
end
for _0x4bf64d3,_0x455f in pairs(_0xaacc2.Copy) do
_0xaacc2.State[_0x4bf64d3]=_0x455f
end
end
end
end
local function _evzmdtzmtk(_ytvs_vlhwtld,lllI11I1) assert(lllI11I1<40,"Macro nesting is too deep")
if type(_ytvs_vlhwtld)=="number" then
assert(_ytvs_vlhwtld==_ytvs_vlhwtld and math.abs(_ytvs_vlhwtld)<math.huge,"Invalid macro number")
end
if type(_ytvs_vlhwtld)~="table" then
return _ytvs_vlhwtld
end
local ll11II1Ill={}
for IlI1II1I1111l,_jkxwfupdqbkm in pairs(_ytvs_vlhwtld) do
local _vfgrcxit=type(IlI1II1I1111l)=="string" and (IlI1II1I1111l:lower()=="owneruserid" or IlI1II1I1111l:lower()=="ownerid")
if not _vfgrcxit then
ll11II1Ill[IlI1II1I1111l]=_evzmdtzmtk(_jkxwfupdqbkm,lllI11I1+1)
end
end
return ll11II1Ill
end
function _tpvsn_rpo.Import(_rvktloeo,_0x195a1)
if _tpvsn_rpo.Busy or _tpvsn_rpo.Fetching or _0x8255159.Busy() then
return false,"Stop recording and Auto Playback before importing"
end
if not _0x8255159.FS() or type(delfile)~="function" then
return false,"File read/write/delete APIs required"
end
_tpvsn_rpo.Fetching=true
local l1I11l1ll1II11,_jk_xfgewd=_II1IIll(_rvktloeo) _tpvsn_rpo.Fetching=false
if not l1I11l1ll1II11 then
return false,_jk_xfgewd
end
if _tpvsn_rpo.Busy or _0x8255159.Busy() then
return false,"Stop recording and Auto Playback before importing"
end
_rvktloeo=l1I11l1ll1II11
local _0x2ae9a75e,_fezvmyhh=pcall(_0x8255159.HTTP.JSONDecode,_0x8255159.HTTP,_rvktloeo)
if not _0x2ae9a75e or type(_fezvmyhh)~="table" then
return false,_jk_xfgewd and "Link did not return macro JSON; copy a fresh Discord file link" or "Invalid JSON; paste the complete macro file"
end
if not table.find(_0x8255159.Games,_fezvmyhh.Game) and not (_0x8255159.Legacy and _0x8255159.Legacy(_fezvmyhh)) then
return false,"This macro belongs to another game"
end
if type(_fezvmyhh.Actions)~="table" or #_fezvmyhh.Actions==0 or #_fezvmyhh.Actions>50000 then
return false,"Invalid macro actions"
end
local _0xa48db9c=0
for _bawo_zikkx,_IIIl11l1llI in pairs(_fezvmyhh.Actions) do
_0xa48db9c=_0xa48db9c+1
if type(_bawo_zikkx)~="number" or _bawo_zikkx%1~=0 or _bawo_zikkx<1 or _bawo_zikkx>#_fezvmyhh.Actions or type(_IIIl11l1llI)~="table" or not table.find(_0x8255159.Kinds,_IIIl11l1llI[_0x8255159.KindKey]) then
return false,"Invalid macro action"
end
for lIl11l1llII,IIIlIIl11 in ipairs({"Time","At","Wave","WaveAt","WaveTime"}) do
local II11111lIl1II=_IIIl11l1llI[IIIlIIl11]
if II11111lIl1II~=nil and (type(II11111lIl1II)~="number" or II11111lIl1II~=II11111lIl1II or II11111lIl1II<0 or II11111lIl1II==math.huge) then
return false,"Invalid action " .. IIIlIIl11
end
end
end
if _0xa48db9c~=#_fezvmyhh.Actions then
return false,"Macro actions must be a list"
end
_0x2ae9a75e,_fezvmyhh=pcall(_evzmdtzmtk,_fezvmyhh,0)
if not _0x2ae9a75e then
return false,tostring(_fezvmyhh)
end
if _0x8255159.Validate then
local _0x1b1443b,_0xb1b79a4,l1I1II1Il1lI=pcall(_0x8255159.Validate,_fezvmyhh)
if not _0x1b1443b or not _0xb1b79a4 then
return false,_0x1b1443b and (l1I1II1Il1lI or "Invalid macro data") or "Invalid macro data"
end
end
_0x195a1=tostring(_0x195a1 or ""):match("^%s*(.-)%s*$")
if _0x195a1=="" then
_0x195a1=type(_fezvmyhh.Name)=="string" and _fezvmyhh.Name or type(_fezvmyhh.Profile)=="string" and _fezvmyhh.Profile or "Imported Macro"
end
_0x195a1=_0x8255159.Clean(_0x195a1)
local Il1Il111l=_0x195a1:lower()
if _0x195a1=="" or Il1Il111l=="settings" or Il1Il111l=="hubconfig" or Il1Il111l=="playback_debug" or Il1Il111l:match("_config$") then
return false,"Enter another macro name"
end
local _0xfca2=_0x8255159.Path(_0x195a1)
if not _0xfca2 then
return false,"Invalid macro name"
end
local _Il11IIll,_0x2aa1=pcall(isfile,_0xfca2)
if not _Il11IIll then
return false,"Cannot check existing macro files"
end
if _0x2aa1 then
return false,"Macro name already exists; choose another name"
end
local _xeewweqf=_0x19f3fef() _tpvsn_rpo.Busy=true
local _potyxzooeao,_ryopxjemmrvvl=pcall(function()
local IIlIl1IlI1=_0x8255159.HTTP:JSONEncode(_fezvmyhh) writefile(_0xfca2 .. ".pending",IIlIl1IlI1) assert(readfile(_0xfca2 .. ".pending")==IIlIl1IlI1,"Pending verification failed") assert(not isfile(_0xfca2),"Macro name already exists") _tpvsn_rpo.Created=_0xfca2 writefile(_0xfca2,IIlIl1IlI1) assert(readfile(_0xfca2)==IIlIl1IlI1,"Save verification failed")
local _wwzzerka,_kuiehoapbyhyq=_0x8255159.Load(_0x195a1) assert(_wwzzerka,_kuiehoapbyhyq or "Macro failed its game-specific validation")
end
)
if not _potyxzooeao then
_xeewweqf()
if _tpvsn_rpo.Created then
pcall(delfile,_tpvsn_rpo.Created)
end
_tpvsn_rpo.Created=nil _tpvsn_rpo.Busy=false pcall(delfile,_0xfca2 .. ".pending")
return false,"Import failed: " .. tostring(_ryopxjemmrvvl)
end
_tpvsn_rpo.Created=nil _tpvsn_rpo.Busy=false pcall(delfile,_0xfca2 .. ".pending")
return true,_0x195a1,#_fezvmyhh.Actions
end
_0x8255159.Owner.MacroImport=_tpvsn_rpo _0x8255159.Tab:Section({Title="Import Macro"})
local _vymojekb,_0xb37027ab="",""
local lII1IllllIlI1I=_0x8255159.Tab:Input({Title="Macro Name",Desc="Enter Any Names You Want",Placeholder="Imported Macro",Value="",Callback=function(_0xb12428) _vymojekb=tostring(_0xb12428 or "")
end
})
local IlII1lII=_0x8255159.Tab:Input({Title="Discord Link",Desc="Paste a Discord file link tagged [Cactus Hub]",Type="Textarea",ClearTextOnFocus=false,Placeholder="[Cactus Hub]https://cdn.discordapp.com/attachments/...",Value="",Callback=function(II11I1lII1lIlI) _0xb37027ab=tostring(II11I1lII1lIlI or "")
end
}) _0x8255159.Tab:Button({Title="Import Macro",Icon="download",Callback=function()
local _0xd4843d77,_ll1I1IIII,_yafokhk=_tpvsn_rpo.Import(_0xb37027ab,_vymojekb)
if not _0xd4843d77 then
_0x8255159.Notify(_ll1I1IIII)
return
end
_vymojekb=_ll1I1IIII _0xb37027ab="" lII1IllllIlI1I:Set(_ll1I1IIII) IlII1lII:Set("")
local IIll1I1I1ll1I,_lIIllllI=pcall(_0x8255159.Refresh,_ll1I1IIII) _0x8255159.Notify("Imported " .. _ll1I1IIII .. " (" .. tostring(_yafokhk) .. " actions)" .. (not IIll1I1I1ll1I and "; reopen Select Macro to refresh" or ""))
end
})
end
_0x633c(_cw_rnetcu,"Discord Webhook") _nwomichi(_cw_rnetcu,"Webhook URL","WebhookURL","https://discord.com/api/webhooks/...") __jna_giqojd_(_cw_rnetcu,"Enable Webhook","WebhookEnabled") __jna_giqojd_(_cw_rnetcu,"Notify On Match End","WebhookMatchEnd") _cw_rnetcu:Button({Title="Send Test Webhook",Callback=function() task.spawn(function()
local _1I1111IIl11Il,_awkflcplq=hubState.SendWebhook(true) hubState.Notify(_1I1111IIl11Il and "Test sent" or _awkflcplq)
end
)
end
}) hubState.BlackScreenPersistence={Get=function()
return hubSettings.BlackScreen==true
end
,Set=function(_1I1IllIlIIIl) hubSettings.BlackScreen=_1I1IllIlIIIl==true hubState.SaveConfig()
end
} do
local _lsscijm=type(getgenv)=="function" and getgenv() or _G
local _11II11lII1l11
local III11lIIl11ll=hubState.BlackScreenPersistence
local III1ll1Il1ll=III11lIIl11ll and III11lIIl11ll.Get()==true or false
local function __gqeujc_gtxzo(_0x02df)
if III11lIIl11ll and not _11II11lII1l11.Cleaning and III11lIIl11ll.Get()~=_0x02df then
III11lIIl11ll.Set(_0x02df)
end
end
local _1lll1lI=_lsscijm.__CactusHubBlackScreen
if _1lll1lI and type(_1lll1lI.Destroy)=="function" and _1lll1lI.Destroy()==false then
return
end
_11II11lII1l11={Alive=true,Enabled=false,Connections={}} _lsscijm.__CactusHubBlackScreen=_11II11lII1l11 hubState.BlackScreenController=_11II11lII1l11
local _cqrupdw,IlIIllll1
local _0x9d944909
local function _0xe2fe9dd(_0x2ffc) pcall(function() uiLibrary:Notify({Title="Black Screen",Content=_0x2ffc,Duration=5})
end
)
end
local function I11111I1(_0x63e1)
if not _cqrupdw or IlIIllll1 then
return
end
IlIIllll1=true pcall(function() _cqrupdw:Set(_0x63e1)
end
) IlIIllll1=false
end
local function _0xc6fc67()
for IIIlIIIl,_nkyzxcobunrgu in ipairs(_11II11lII1l11.Connections) do
pcall(_nkyzxcobunrgu.Disconnect,_nkyzxcobunrgu)
end
_11II11lII1l11.Connections={}
local _ouzpgiwffbq=_11II11lII1l11.Gui _11II11lII1l11.Gui=nil
if _ouzpgiwffbq then
pcall(_ouzpgiwffbq.Destroy,_ouzpgiwffbq)
end
end
function _11II11lII1l11.Set(_cd_nqtyjptntt) _cd_nqtyjptntt=_cd_nqtyjptntt==true
if _cd_nqtyjptntt and not _11II11lII1l11.Alive then
return false
end
if not _cd_nqtyjptntt then
if _11II11lII1l11.RenderDisabled then
local _cpttmlpanq=pcall(_0x9d944909.Set3dRenderingEnabled,_0x9d944909,true)
if not _cpttmlpanq then
_0xe2fe9dd("Could not restore 3D rendering. Press Disable Black Screen to retry.")
return false
end
_11II11lII1l11.RenderDisabled=nil
end
_11II11lII1l11.Enabled=false __gqeujc_gtxzo(false) _0xc6fc67() I11111I1(false)
return true
end
if _11II11lII1l11.Enabled and _11II11lII1l11.Gui and _11II11lII1l11.Gui.Parent then
return true
end
local _w_fl_thhogjo
local Il11I1lI1IIllI,_11I11I1=pcall(function() _w_fl_thhogjo=Instance.new("ScreenGui") _w_fl_thhogjo.Name="CactusHubBlackScreen_DragonTD" _w_fl_thhogjo.Enabled=false _w_fl_thhogjo.IgnoreGuiInset=true _w_fl_thhogjo.ResetOnSpawn=false _w_fl_thhogjo.DisplayOrder=2147483647 _w_fl_thhogjo.ZIndexBehavior=Enum.ZIndexBehavior.Sibling
local IIIlI11IIII=Instance.new("Frame") IIIlI11IIII.Name="Background" IIIlI11IIII.Size=UDim2.fromScale(1,1) IIIlI11IIII.BackgroundColor3=Color3.new(0,0,0) IIIlI11IIII.BorderSizePixel=0 IIIlI11IIII.Active=true IIIlI11IIII.ZIndex=1 IIIlI11IIII.Parent=_w_fl_thhogjo
local _0xafb04=Instance.new("TextButton") _0xafb04.Name="DisableBlackScreen" _0xafb04.AnchorPoint=Vector2.new(.5,.5) _0xafb04.Position=UDim2.fromScale(.5,.5) _0xafb04.Size=UDim2.fromOffset(230,52) _0xafb04.BackgroundColor3=Color3.fromRGB(28,28,32) _0xafb04.BorderSizePixel=0 _0xafb04.Text="Disable Black Screen" _0xafb04.TextColor3=Color3.fromRGB(245,245,245) _0xafb04.TextSize=17 _0xafb04.Font=Enum.Font.GothamSemibold _0xafb04.ZIndex=2 _0xafb04.Parent=IIIlI11IIII
local _0x9870e6=Instance.new("UICorner") _0x9870e6.CornerRadius=UDim.new(0,10) _0x9870e6.Parent=_0xafb04
local _fpvzjbsotu={}
if type(gethui)=="function" then
local _wuifs_zuaflrz,_1I11I111lIII=pcall(gethui)
if _wuifs_zuaflrz and _1I11I111lIII then
_fpvzjbsotu[#_fpvzjbsotu+1]=_1I11I111lIII
end
end
local _ebdameykljeh,_hd_gfaz=pcall(game.GetService,game,"CoreGui")
if _ebdameykljeh and _hd_gfaz then
_fpvzjbsotu[#_fpvzjbsotu+1]=_hd_gfaz
end
local _I111II11llI=game:GetService("Players").LocalPlayer
local _kfdmftlgwbfo=_I111II11llI and _I111II11llI:FindFirstChildOfClass("PlayerGui")
if _kfdmftlgwbfo then
_fpvzjbsotu[#_fpvzjbsotu+1]=_kfdmftlgwbfo
end
local _ll1IIII1=false
for _gshixoepfu,_0x600c2a2 in ipairs(_fpvzjbsotu) do
if pcall(function() _w_fl_thhogjo.Parent=_0x600c2a2
end
) and _w_fl_thhogjo.Parent==_0x600c2a2 then
_ll1IIII1=true
break
end
end
assert(_ll1IIII1,"Overlay unavailable on this executor") _11II11lII1l11.Gui=_w_fl_thhogjo _11II11lII1l11.Connections[#_11II11lII1l11.Connections+1]=_0xafb04.Activated:Connect(function() _11II11lII1l11.Set(false)
end
)
if _w_fl_thhogjo.Destroying then
_11II11lII1l11.Connections[#_11II11lII1l11.Connections+1]=_w_fl_thhogjo.Destroying:Connect(function() _11II11lII1l11.Gui=nil _11II11lII1l11.Set(false)
end
)
end
_w_fl_thhogjo.Enabled=true
end
)
if not Il11I1lI1IIllI then
if _w_fl_thhogjo then
pcall(_w_fl_thhogjo.Destroy,_w_fl_thhogjo)
end
_0xc6fc67() _11II11lII1l11.Enabled=false I11111I1(false) _0xe2fe9dd(tostring(_11I11I1))
return false
end
local _0x19bcfc=pcall(function() _0x9d944909=game:GetService("RunService") _0x9d944909:Set3dRenderingEnabled(false)
end
) _11II11lII1l11.RenderDisabled=_0x19bcfc or nil _11II11lII1l11.Enabled=true __gqeujc_gtxzo(true)
if not _0x19bcfc then
_0xe2fe9dd("Black overlay enabled; this executor cannot disable 3D rendering.")
end
return true
end
function _11II11lII1l11.Destroy() _11II11lII1l11.Cleaning=true
if not _11II11lII1l11.Set(false) then
_11II11lII1l11.Cleaning=false
return false
end
_11II11lII1l11.Alive=false
if _lsscijm.__CactusHubBlackScreen==_11II11lII1l11 then
_lsscijm.__CactusHubBlackScreen=nil
end
return true
end
_0x24ed:Section({Title="Display"}) _cqrupdw=_0x24ed:Toggle({Title="Black Screen",Desc="Dark screen with a Disable button.",Value=III1ll1Il1ll,Callback=function(_0xa4aa1)
if not IlIIllll1 then
_11II11lII1l11.Set(_0xa4aa1)
end
end
})
if III1ll1Il1ll then
_11II11lII1l11.Set(true)
end
end
_0x633c(_0x24ed,"Automation") __jna_giqojd_(_0x24ed,"Auto Execute","AutoExecute","Reload after teleport.",hubState.QueueTeleport) __jna_giqojd_(_0x24ed,"Auto Rejoin","AutoRejoin","Return to the lobby after a disconnect.") do
local function _lbptwthwbc()
local _wtor_i_,_0xb8e57,_0x4f4e70e9,l11l1IIIIl,_podbxwlegrp,_rtnabqyrtisw
local function _0x34a2c540(_iwa_oucswtn)
return Vector3.new(_iwa_oucswtn.X,0,_iwa_oucswtn.Z)
end
local function lII11IlIl1() _wtor_i_,_0xb8e57,_0x4f4e70e9,l11l1IIIIl,_podbxwlegrp,_rtnabqyrtisw=nil,nil,nil,nil,nil,nil
end
local function _0x1d7679d(ll1I1111l1Il,_mmayny_pgthp,lIlIIlll1)
local _0x41a2a=ll1I1111l1Il.SeatPart
local _1111III1=_0x41a2a~=nil or ll1I1111l1Il.Sit
if _wtor_i_~=_mmayny_pgthp then
lII11IlIl1()
end
if _1111III1 then
local _0x906426=os.clock()
if not _wtor_i_ then
_wtor_i_,_0xb8e57,l11l1IIIIl,_rtnabqyrtisw=_mmayny_pgthp,_0x41a2a and _0x41a2a.Position or _mmayny_pgthp.Position,_0x906426+2,0
end
if _0x906426>=l11l1IIIIl then
lII11IlIl1()
return false
end
if not _podbxwlegrp or _0x906426>=_podbxwlegrp then
_podbxwlegrp=_0x906426+.35 ll1I1111l1Il.Sit=false ll1I1111l1Il.Jump=true ll1I1111l1Il:ChangeState(Enum.HumanoidStateType.Jumping)
end
_0x4f4e70e9=nil
return true
end
if not _wtor_i_ then
return false
end
local _bcwobtixhwi=os.clock()
if not _0x4f4e70e9 then
local _0x4a83=game:GetService("Workspace")
local _tmaoqglq_mcw_=RaycastParams.new() _tmaoqglq_mcw_.FilterType=Enum.RaycastFilterType.Exclude _tmaoqglq_mcw_.FilterDescendantsInstances={ll1I1111l1Il.Parent} _tmaoqglq_mcw_.RespectCanCollide=true
local _II1III1lI11I1=_0x34a2c540(_mmayny_pgthp.CFrame.LookVector)
if _II1III1lI11I1.Magnitude<.1 then
_II1III1lI11I1=Vector3.new(0,0,1)
end
_II1III1lI11I1=_II1III1lI11I1.Unit
local _hdqadhejvhqd=Vector3.new(-_II1III1lI11I1.Z,0,_II1III1lI11I1.X)
local _11Il1IllIIlIl={_II1III1lI11I1,_hdqadhejvhqd,_hdqadhejvhqd*-1,_II1III1lI11I1*-1,(_II1III1lI11I1+_hdqadhejvhqd).Unit,(_II1III1lI11I1 - _hdqadhejvhqd).Unit,(_hdqadhejvhqd - _II1III1lI11I1).Unit,(_II1III1lI11I1+_hdqadhejvhqd).Unit*-1}
for I1Il1l1IIl1=0,#_11Il1IllIIlIl - 1 do
local _0x2d7a5f3=_11Il1IllIIlIl[(_rtnabqyrtisw+I1Il1l1IIl1)%#_11Il1IllIIlIl+1]
local _lIII1lI1II1=_0x2d7a5f3*10
local Il11l1ll=_mmayny_pgthp.Position+_lIII1lI1II1
local _l1lIl1I1I1=_0x4a83:Raycast(Il11l1ll+Vector3.new(0,2,0),Vector3.new(0,-10,0),_tmaoqglq_mcw_)
if _l1lIl1I1I1 and _l1lIl1I1I1.Normal.Y>=.6 and not _l1lIl1I1I1.Instance:IsA("Seat") and not _l1lIl1I1I1.Instance:IsA("VehicleSeat") and _0x34a2c540(Il11l1ll - _0xb8e57).Magnitude>=8 and not _0x4a83:Raycast(_mmayny_pgthp.Position,_lIII1lI1II1,_tmaoqglq_mcw_) then
_0x4f4e70e9,l11l1IIIIl,_rtnabqyrtisw=Il11l1ll,_bcwobtixhwi+1.1,_rtnabqyrtisw+I1Il1l1IIl1+1
break
end
end
if not _0x4f4e70e9 then
lII11IlIl1()
return false
end
end
local _cnlkoxjemgsw=_0x34a2c540(_0x4f4e70e9 - _mmayny_pgthp.Position)
if _cnlkoxjemgsw.Magnitude<=2 then
lII11IlIl1()
return false,true
end
if _bcwobtixhwi>=l11l1IIIIl then
if _rtnabqyrtisw<8 then
_0x4f4e70e9=nil
return true
end
lII11IlIl1()
return false,true
end
if lIlIIlll1 then
ll1I1111l1Il:Move(_cnlkoxjemgsw.Unit,false)
else
ll1I1111l1Il:MoveTo(_0x4f4e70e9)
end
return true
end
return _0x1d7679d,lII11IlIl1
end
local function _0x28553(_woa_rkaq_b)
local I11l1IlllI={Alive=true,Enabled=false,Phase=1,Turns=0}
local _lI11IlIl1I1I,_0x9763aa0=_lbptwthwbc() function I11l1IlllI.Stop() _0x9763aa0()
local _0xfa18=I11l1IlllI.Humanoid I11l1IlllI.Humanoid,I11l1IlllI.Root,I11l1IlllI.Center,I11l1IlllI.Direction=nil,nil,nil,nil
if _0xfa18 and _0xfa18.Parent then
_0xfa18:Move(Vector3.new(0,0,0),false)
end
end
local I1II11lIll function I11l1IlllI.Step(_jckhszk)
if not I11l1IlllI.Alive or not _woa_rkaq_b.Alive() then
I11l1IlllI.Destroy()
return
end
if not I11l1IlllI.Enabled or not _woa_rkaq_b.Allowed() then
I11l1IlllI.Stop()
return
end
local _vqasen_pdc=_woa_rkaq_b.Player.Character
local _ppdvmag=_vqasen_pdc and _vqasen_pdc:FindFirstChildOfClass("Humanoid")
local _0xcc01=_vqasen_pdc and _vqasen_pdc:FindFirstChild("HumanoidRootPart")
if not _ppdvmag or not _0xcc01 or _ppdvmag.Health<=0 then
I11l1IlllI.Stop()
return
end
if I11l1IlllI.Root~=_0xcc01 then
I11l1IlllI.Stop() I11l1IlllI.Root,I11l1IlllI.Humanoid,I11l1IlllI.Center=_0xcc01,_ppdvmag,_0xcc01.Position I11l1IlllI.Phase,I11l1IlllI.Turns,I11l1IlllI.Point=1,0,1
end
local IlIl1IIlllI,II1lI1l1l11I=_lI11IlIl1I1I(_ppdvmag,_0xcc01,true)
if IlIl1IIlllI then
return
end
if II1lI1l1l11I then
I11l1IlllI.Center,I11l1IlllI.Direction,I11l1IlllI.LastPosition=_0xcc01.Position,nil,nil I11l1IlllI.Phase,I11l1IlllI.Turns,I11l1IlllI.Point=1,0,1
end
I1II11lIll=I1II11lIll or {{{5,0},{3.54,3.54},{0,5},{-3.54,3.54},{-5,0},{-3.54,-3.54},{0,-5},{3.54,-3.54}},{{-4,-4},{4,-2},{-4,0},{4,2},{-4,4},{4,2},{-4,0},{4,-2}},{{0,0},{3.54,3},{5,0},{3.54,-3},{0,0},{-3.54,3},{-5,0},{-3.54,-3}},{{4,4},{-4,4},{-4,-4},{4,-4}}}
local __iojqf_lrljm=I1II11lIll[I11l1IlllI.Phase]
local function _xwkwkeoxj()
local _jmrenirgx=__iojqf_lrljm[I11l1IlllI.Point]
return I11l1IlllI.Center+Vector3.new(_jmrenirgx[1],0,_jmrenirgx[2])
end
local _1I1l1I1lI=_xwkwkeoxj()
local _0x4776fd8=_1I1l1I1lI - _0xcc01.Position _0x4776fd8=Vector3.new(_0x4776fd8.X,0,_0x4776fd8.Z)
if _0x4776fd8.Magnitude<1.6 then
I11l1IlllI.Point=I11l1IlllI.Point+1
if I11l1IlllI.Point>#__iojqf_lrljm then
I11l1IlllI.Point,I11l1IlllI.Turns=1,I11l1IlllI.Turns+1
if I11l1IlllI.Turns>=2 then
I11l1IlllI.Phase,I11l1IlllI.Turns=I11l1IlllI.Phase%4+1,0
end
__iojqf_lrljm=I1II11lIll[I11l1IlllI.Phase]
end
_1I1l1I1lI=_xwkwkeoxj() _0x4776fd8=_1I1l1I1lI - _0xcc01.Position _0x4776fd8=Vector3.new(_0x4776fd8.X,0,_0x4776fd8.Z)
end
local _ipkvclb=_0x4776fd8.Magnitude>.1 and _0x4776fd8.Unit or Vector3.new(0,0,0)
local _0x3ea693a0=math.min(1,_jckhszk*12)
local _bdceegy=I11l1IlllI.Direction and I11l1IlllI.Direction:Lerp(_ipkvclb,_0x3ea693a0) or _ipkvclb I11l1IlllI.Direction=_bdceegy
if _bdceegy.Magnitude>.1 then
_bdceegy=_bdceegy.Unit
end
_ppdvmag:Move(_bdceegy,false)
if not I11l1IlllI.LastPosition or (_0xcc01.Position - I11l1IlllI.LastPosition).Magnitude>.5 then
I11l1IlllI.LastPosition,I11l1IlllI.StuckAt=_0xcc01.Position,os.clock()
elseif os.clock() - I11l1IlllI.StuckAt>3 then
I11l1IlllI.Point=I11l1IlllI.Point%#__iojqf_lrljm+1 I11l1IlllI.StuckAt=os.clock()
end
end
function I11l1IlllI.Set(_nnloeezbuf) I11l1IlllI.Enabled=_nnloeezbuf==true _woa_rkaq_b.Save(I11l1IlllI.Enabled)
if not I11l1IlllI.Enabled then
I11l1IlllI.Stop()
if I11l1IlllI.Bound then
game:GetService("RunService"):UnbindFromRenderStep(_woa_rkaq_b.Key) I11l1IlllI.Bound=nil
end
elseif not I11l1IlllI.Bound then
I11l1IlllI.Bound=true game:GetService("RunService"):BindToRenderStep(_woa_rkaq_b.Key,201,I11l1IlllI.Step)
end
end
function I11l1IlllI.Destroy()
if not I11l1IlllI.Alive then
return
end
I11l1IlllI.Alive=false I11l1IlllI.Stop()
if I11l1IlllI.Bound then
game:GetService("RunService"):UnbindFromRenderStep(_woa_rkaq_b.Key) I11l1IlllI.Bound=nil
end
end
return I11l1IlllI
end
local _1Il1IlllI1={Key="CactusHubMoveAround_dragon",Owner=hubState,Player=localPlayer,Tab=_0x24ed,Window=hubWindow,Enabled=hubSettings.MoveAround,Alive=function()
return hubState.Running
end
,Allowed=function()
return game.PlaceId~=hubState.LobbyId and not hubState.Ended and not hubState.Recording and not hubState.Teleporting
end
,Save=function(lIlIIlII) hubSettings.MoveAround=lIlIIlII hubState.QueueSave()
end
}
local _bwlpndlcrwb=_1Il1IlllI1.Owner.MoveAroundController
if _bwlpndlcrwb then
_bwlpndlcrwb.Destroy()
end
local _1l1l11l=_0x28553(_1Il1IlllI1) _1Il1IlllI1.Owner.MoveAroundController=_1l1l11l
local _nxtq_dqeeh=_1Il1IlllI1.Owner.Destroy
if type(_nxtq_dqeeh)=="function" then
_1Il1IlllI1.Owner.Destroy=function(...) _1l1l11l.Destroy()
return _nxtq_dqeeh(...)
end
end
if _1Il1IlllI1.AddToggle then
_1Il1IlllI1.AddToggle(_1l1l11l.Set,_1Il1IlllI1.Enabled==true)
else
_1Il1IlllI1.Tab:Toggle({Title="Move Around",Value=_1Il1IlllI1.Enabled==true,Callback=function(_yrhymtebaps) _1l1l11l.Set(_yrhymtebaps)
end
})
end
if _1Il1IlllI1.Enabled==true then
_1l1l11l.Set(true)
end
end
_0x633c(_0x24ed,"Privacy") __jna_giqojd_(_0x24ed,"Hide Name","HideName",nil,hubState.SetHide) do
local _nskhdwamyrmet,_0xc074,_hthfivdqj_qnr=hubState,hubSettings,localPlayer
local _0x8aa53b31=type(getgenv)=="function" and getgenv() or _G
local _0xd7ab22f1="__CactusHubHideUser_DragonTD"
local I1l1I1II1ll=_0x8aa53b31[_0xd7ab22f1]
if I1l1I1II1ll and type(I1l1I1II1ll.Destroy)=="function" then
pcall(I1l1I1II1ll.Destroy)
end
local l1lllI1Il11ll={Alive=true,Enabled=false,Saved={},Generation=0} _nskhdwamyrmet.HideUserController=l1lllI1Il11ll _0x8aa53b31[_0xd7ab22f1]=l1lllI1Il11ll l1lllI1Il11ll.ImageSaved={} l1lllI1Il11ll.ImageWatches={} l1lllI1Il11ll.ImageConnections={}
local function _0xc665c4()
for _ypbuatbftwcut,lI1IIlllIll1Il in ipairs(l1lllI1Il11ll.ImageConnections) do
pcall(lI1IIlllIll1Il.Disconnect,lI1IIlllIll1Il)
end
for _0x3d06,_iodelvfh in pairs(l1lllI1Il11ll.ImageWatches) do
for _0xa3b1e1a,_pkoztesfr in ipairs(_iodelvfh) do
pcall(_pkoztesfr.Disconnect,_pkoztesfr)
end
end
l1lllI1Il11ll.ImageConnections={} l1lllI1Il11ll.ImageWatches={}
for l111Il1l,_guigjcrqqlfv in pairs(l1lllI1Il11ll.ImageSaved) do
pcall(function() l111Il1l.ImageTransparency=_guigjcrqqlfv
end
)
end
l1lllI1Il11ll.ImageSaved={}
end
local function _0xa928e(llI11Il1)
local _0x9002687=l1lllI1Il11ll.PlayerNames or {}
local _pnvwlzcdve=llI11Il1.Parent
for _qgkwaomd=1,2 do
if not _pnvwlzcdve then
break
end
if _0x9002687[_pnvwlzcdve.Name] then
return true
end
for _0xe402ab04,_kfwxygcb in ipairs(_pnvwlzcdve:GetChildren()) do
if _kfwxygcb:IsA("TextLabel") or _kfwxygcb:IsA("TextButton") then
local _0xec3f85=_kfwxygcb.Name:lower():gsub("[^%a]","")
if _0xec3f85=="username" or _0xec3f85=="displayname" or _0xec3f85=="playername" or _0xec3f85=="name" or _0xec3f85=="namelabel" then
local llI111lIlI11=tostring(_kfwxygcb.Text):gsub("<[^>]+>",""):match("^%s*(.-)%s*$")
if _0x9002687[llI111lIlI11] or _0xc074.HideName and llI111lIlI11=="Player" then
return true
end
end
end
end
_pnvwlzcdve=_pnvwlzcdve.Parent
end
return false
end
local function _0x051669e(_l111lIl11)
local lIlIIlIIIl11="" pcall(function() lIlIIlIIIl11=tostring(_l111lIl11.Image):lower()
end
)
if lIlIIlIIIl11:find("rbxthumb://",1,true) and (lIlIIlIIIl11:find("type=avatar",1,true) or lIlIIlIIIl11:find("type=headshot",1,true)) then
return true
end
if lIlIIlIIIl11:find("headshot%-thumbnail") or lIlIIlIIIl11:find("avatar%-thumbnail") or lIlIIlIIIl11:find("avatar%.ashx") or lIlIIlIIIl11:find("headshot%.ashx") or lIlIIlIIIl11:find("thumbnails.roblox.com/v1/users/",1,true) then
return true
end
local _1IllI111=_l111lIl11.Name:lower():gsub("[^%a]","")
if _1IllI111:find("avatar",1,true) or _1IllI111:find("headshot",1,true) or _1IllI111:find("portrait",1,true) or _1IllI111=="playericon" or _1IllI111=="playerimage" or _1IllI111=="profilepicture" then
return true
end
return _0xa928e(_l111lIl11)
end
local function _0xebd6d2() _0xc665c4()
if not l1lllI1Il11ll.Alive or not l1lllI1Il11ll.Enabled then
return
end
l1lllI1Il11ll.PlayerNames={}
local function _0x905de9a8(I1I111lI)
if I1I111lI.Name then
l1lllI1Il11ll.PlayerNames[I1I111lI.Name]=true
end
if I1I111lI.DisplayName then
l1lllI1Il11ll.PlayerNames[I1I111lI.DisplayName]=true
end
if I1I111lI.UserId then
l1lllI1Il11ll.PlayerNames[tostring(I1I111lI.UserId)]=true
end
end
_0x905de9a8(_hthfivdqj_qnr)
local _toqttxxtaejni pcall(function() _toqttxxtaejni=game:GetService("Players")
for _0xe2e8f1b0,_yflgyivvpsev in ipairs(_toqttxxtaejni:GetPlayers()) do
_0x905de9a8(_yflgyivvpsev)
end
end
)
local IlIII111IlIl=setmetatable({},{__mode="k"})
local function I1Il1IIIlllll1(_peecgfv)
if not l1lllI1Il11ll.Alive or not l1lllI1Il11ll.Enabled or IlIII111IlIl[_peecgfv] then
return
end
if not (_peecgfv:IsA("ImageLabel") or _peecgfv:IsA("ImageButton") or _peecgfv:IsA("ViewportFrame")) then
return
end
local Il1IIIl1l1I=_0x051669e(_peecgfv)
if Il1IIIl1l1I then
if l1lllI1Il11ll.ImageSaved[_peecgfv]==nil then
l1lllI1Il11ll.ImageSaved[_peecgfv]=_peecgfv.ImageTransparency
end
IlIII111IlIl[_peecgfv]=true _peecgfv.ImageTransparency=1 IlIII111IlIl[_peecgfv]=nil
elseif l1lllI1Il11ll.ImageSaved[_peecgfv]~=nil then
local _tpqlgdntymo=l1lllI1Il11ll.ImageSaved[_peecgfv] l1lllI1Il11ll.ImageSaved[_peecgfv]=nil IlIII111IlIl[_peecgfv]=true _peecgfv.ImageTransparency=_tpqlgdntymo IlIII111IlIl[_peecgfv]=nil
end
end
local function _fandusa__dap(_0x74ca810)
local l1l1ll1lllI1=_0x74ca810.Parent
if not l1l1ll1lllI1 then
return
end
for _I11Il1Il11 in pairs(l1lllI1Il11ll.ImageWatches) do
if _I11Il1Il11.Parent==l1l1ll1lllI1 or _I11Il1Il11.Parent and _I11Il1Il11.Parent.Parent==l1l1ll1lllI1 then
pcall(I1Il1IIIlllll1,_I11Il1Il11)
end
end
end
local function _0xc414(_sgibrgaumuwai)
if l1lllI1Il11ll.ImageWatches[_sgibrgaumuwai] then
pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
return
end
local _luyeoqtghn=_sgibrgaumuwai:IsA("ImageLabel") or _sgibrgaumuwai:IsA("ImageButton") or _sgibrgaumuwai:IsA("ViewportFrame")
local I1IIIl1l1=_sgibrgaumuwai.Name:lower():gsub("[^%a]","")
local _0x03068=(_sgibrgaumuwai:IsA("TextLabel") or _sgibrgaumuwai:IsA("TextButton")) and (I1IIIl1l1=="username" or I1IIIl1l1=="displayname" or I1IIIl1l1=="playername" or I1IIIl1l1=="name" or I1IIIl1l1=="namelabel")
if not _luyeoqtghn and not _0x03068 then
return
end
local _dnqkirm={} l1lllI1Il11ll.ImageWatches[_sgibrgaumuwai]=_dnqkirm
local function _lil_u_wtkl(_ohlieazqco,_0x1298c)
local _0xdc894721,_0xadaa=pcall(function()
return _sgibrgaumuwai:GetPropertyChangedSignal(_ohlieazqco):Connect(_0x1298c)
end
)
if _0xdc894721 then
_dnqkirm[#_dnqkirm+1]=_0xadaa
end
end
if _luyeoqtghn then
_lil_u_wtkl("Image",function() pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
end
) _lil_u_wtkl("Name",function() pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
end
)
if _sgibrgaumuwai.AncestryChanged then
_dnqkirm[#_dnqkirm+1]=_sgibrgaumuwai.AncestryChanged:Connect(function() pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
end
)
end
_lil_u_wtkl("ImageTransparency",function()
if IlIII111IlIl[_sgibrgaumuwai] or not l1lllI1Il11ll.Enabled then
return
end
if l1lllI1Il11ll.ImageSaved[_sgibrgaumuwai]~=nil then
l1lllI1Il11ll.ImageSaved[_sgibrgaumuwai]=_sgibrgaumuwai.ImageTransparency
end
pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
end
) pcall(I1Il1IIIlllll1,_sgibrgaumuwai)
else
_lil_u_wtkl("Text",function() _fandusa__dap(_sgibrgaumuwai)
end
) _fandusa__dap(_sgibrgaumuwai)
end
if _sgibrgaumuwai.Destroying then
_dnqkirm[#_dnqkirm+1]=_sgibrgaumuwai.Destroying:Connect(function()
for lI1111111,I1l1IIII1III in ipairs(_dnqkirm) do
pcall(I1l1IIII1III.Disconnect,I1l1IIII1III)
end
l1lllI1Il11ll.ImageWatches[_sgibrgaumuwai]=nil l1lllI1Il11ll.ImageSaved[_sgibrgaumuwai]=nil
end
)
end
end
local II11lIIll1ll={} pcall(function()
local IIlI1I1I=_hthfivdqj_qnr:FindFirstChildOfClass("PlayerGui")
if IIlI1I1I then
II11lIIll1ll[#II11lIIll1ll+1]=IIlI1I1I
end
end
)
for llI1IlIlIIl,_waacsemesq in ipairs({"CoreGui","Workspace"}) do
pcall(function() II11lIIll1ll[#II11lIIll1ll+1]=game:GetService(_waacsemesq)
end
)
end
local function _1IIIII1(_orynemww)
if _orynemww.DescendantAdded then
l1lllI1Il11ll.ImageConnections[#l1lllI1Il11ll.ImageConnections+1]=_orynemww.DescendantAdded:Connect(function(_0xe2b64afe) task.defer(function()
if l1lllI1Il11ll.Alive and l1lllI1Il11ll.Enabled then
pcall(_0xc414,_0xe2b64afe)
end
end
)
end
)
end
local _0x5621a1f,_hphbmmm_ot=pcall(_orynemww.GetDescendants,_orynemww)
if _0x5621a1f then
for _1Il1IIl,_uqanmiqil in ipairs(_hphbmmm_ot) do
pcall(_0xc414,_uqanmiqil)
end
end
end
for llIlll1I111I,_0x8e67 in ipairs(II11lIIll1ll) do
_1IIIII1(_0x8e67)
end
if _hthfivdqj_qnr.ChildAdded then
l1lllI1Il11ll.ImageConnections[#l1lllI1Il11ll.ImageConnections+1]=_hthfivdqj_qnr.ChildAdded:Connect(function(_mkiufylojumq)
if l1lllI1Il11ll.Alive and l1lllI1Il11ll.Enabled and _mkiufylojumq:IsA("PlayerGui") then
_1IIIII1(_mkiufylojumq)
end
end
)
end
if _toqttxxtaejni and _toqttxxtaejni.PlayerAdded then
l1lllI1Il11ll.ImageConnections[#l1lllI1Il11ll.ImageConnections+1]=_toqttxxtaejni.PlayerAdded:Connect(function(_ykfhtprzct_) _0x905de9a8(_ykfhtprzct_)
for _curnsbjczx in pairs(l1lllI1Il11ll.ImageWatches) do
pcall(I1Il1IIIlllll1,_curnsbjczx)
end
end
)
end
end
local function _I11Ill1IIIl1()
for _IlII1III,_0x618b1dd in pairs(l1lllI1Il11ll.Saved) do
for _0xb8352,llIIlI1Il in pairs(_0x618b1dd) do
pcall(function() _IlII1III[_0xb8352]=llIIlI1Il
end
)
end
end
l1lllI1Il11ll.Saved={}
end
local function _0xf454(_0x7aab5) l1lllI1Il11ll.Generation=l1lllI1Il11ll.Generation+1
local _l11I11l11IlI=l1lllI1Il11ll.Generation
if l1lllI1Il11ll.Descendants then
l1lllI1Il11ll.Descendants:Disconnect() l1lllI1Il11ll.Descendants=nil
end
_I11Ill1IIIl1() l1lllI1Il11ll.Character=_0x7aab5
if not l1lllI1Il11ll.Alive or not l1lllI1Il11ll.Enabled or not _0x7aab5 then
return
end
local _0x4ff5a23=Color3.fromRGB(255,0,0)
local function ll11l1lII(_11llI11lII1l)
if l1lllI1Il11ll.Saved[_11llI11lII1l] or not _11llI11lII1l:IsDescendantOf(_0x7aab5) then
return
end
local _0x846be71
if _11llI11lII1l:IsA("Accessory") or _11llI11lII1l:IsA("Shirt") or _11llI11lII1l:IsA("Pants") or _11llI11lII1l:IsA("ShirtGraphic") or _11llI11lII1l:IsA("CharacterMesh") then
_0x846be71={Parent=false}
elseif _11llI11lII1l:IsA("BasePart") and _11llI11lII1l.Parent==_0x7aab5 and _11llI11lII1l.Name~="HumanoidRootPart" then
_0x846be71={Color=_0x4ff5a23}
if _11llI11lII1l:IsA("MeshPart") then
_0x846be71.TextureID=""
end
elseif _11llI11lII1l:IsA("BodyColors") then
_0x846be71={}
for _wwyqenwvjn,_pkhvapd in ipairs({"HeadColor3","TorsoColor3","LeftArmColor3","RightArmColor3","LeftLegColor3","RightLegColor3"}) do
_0x846be71[_pkhvapd]=_0x4ff5a23
end
elseif _11llI11lII1l:IsA("SpecialMesh") and _11llI11lII1l.Parent and _11llI11lII1l.Parent.Parent==_0x7aab5 then
_0x846be71={TextureId=""}
elseif _11llI11lII1l:IsA("SurfaceAppearance") and _11llI11lII1l.Parent and _11llI11lII1l.Parent.Parent==_0x7aab5 then
_0x846be71={Parent=false}
end
if _0x846be71 then
local _0xba700={} l1lllI1Il11ll.Saved[_11llI11lII1l]=_0xba700
for l1Ill1I1,l11lIII1 in pairs(_0x846be71) do
pcall(function() _0xba700[l1Ill1I1]=_11llI11lII1l[l1Ill1I1]
if l1Ill1I1=="Parent" then
_11llI11lII1l.Parent=nil
else
_11llI11lII1l[l1Ill1I1]=l11lIII1
end
end
)
end
end
end
l1lllI1Il11ll.Descendants=_0x7aab5.DescendantAdded:Connect(function(lIl1IlIll1I) task.defer(function()
if l1lllI1Il11ll.Alive and l1lllI1Il11ll.Enabled and _l11I11l11IlI==l1lllI1Il11ll.Generation then
pcall(ll11l1lII,lIl1IlIll1I)
end
end
)
end
)
for _cvejmzljyefxl,_0xdb69 in ipairs(_0x7aab5:GetDescendants()) do
pcall(ll11l1lII,_0xdb69)
end
end
function l1lllI1Il11ll.Set(_0x85d9c)
if not l1lllI1Il11ll.Alive then
return
end
_0x85d9c=_0x85d9c==true _0xc074.HideUser=_0x85d9c
if l1lllI1Il11ll.Enabled==_0x85d9c and (not _0x85d9c or l1lllI1Il11ll.Character==_hthfivdqj_qnr.Character) then
return
end
l1lllI1Il11ll.Enabled=_0x85d9c _0xf454(_0x85d9c and _hthfivdqj_qnr.Character or nil) _0xebd6d2()
end
function l1lllI1Il11ll.Destroy()
if not l1lllI1Il11ll.Alive then
return
end
l1lllI1Il11ll.Alive=false l1lllI1Il11ll.Enabled=false _0xf454(nil) _0xc665c4()
if l1lllI1Il11ll.Respawn then
l1lllI1Il11ll.Respawn:Disconnect() l1lllI1Il11ll.Respawn=nil
end
if _0x8aa53b31[_0xd7ab22f1]==l1lllI1Il11ll then
_0x8aa53b31[_0xd7ab22f1]=nil
end
end
l1lllI1Il11ll.Respawn=_hthfivdqj_qnr.CharacterAdded:Connect(function(_lll1llIllI1l)
if l1lllI1Il11ll.Alive and l1lllI1Il11ll.Enabled then
_0xf454(_lll1llIllI1l)
end
end
) function _nskhdwamyrmet.SetHideUser(II1lIIl1I) l1lllI1Il11ll.Set(II1lIIl1I)
end
if hubWindow and type(hubWindow.OnDestroy)=="function" then
pcall(function() hubWindow:OnDestroy(l1lllI1Il11ll.Destroy)
end
)
end
l1lllI1Il11ll.Set(_0xc074.HideUser)
end
__jna_giqojd_(_0x24ed,"Hide User","HideUser",nil,hubState.SetHideUser) _0x633c(_0x24ed,"Performance") __jna_giqojd_(_0x24ed,"FPS Boost","FPSBoost",nil,hubState.SetFPS) _0x633c(_0x24ed,"Anti-AFK") __jna_giqojd_(_0x24ed,"Anti-AFK","AntiAFK") do
local _l1lll1llIl=hubWindow:Tab({Title="Info",Icon="info"})
local III1IIlI="https://discord.gg/CP2RHTgbFT" _l1lll1llIl:Section({Title="Information"}) _l1lll1llIl:Paragraph({Title="Cactus Hub",Desc="Feel Free To Join Discord For Suggestion and Report Bugs"}) _l1lll1llIl:Button({Title="Discord",Desc=III1IIlI,Icon="external-link",Callback=function()
local _IlII1I1
if type(openurl)=="function" then
local _tcxvwim,_0x9917=pcall(openurl,III1IIlI)
if _tcxvwim and _0x9917~=false then
_IlII1I1="Discord link opened."
end
end
if not _IlII1I1 then
for _gcjzkjcdsvetp,II1lllIl in ipairs({"setclipboard","toclipboard","set_clipboard"}) do
local _i_mjbsvxx=type(getgenv)=="function" and getgenv() or _G
local _ryh_lbe=_i_mjbsvxx[II1lllIl]
if type(_ryh_lbe)=="function" then
local Il1Il1lII,_uzbctbsxqlgxf=pcall(_ryh_lbe,III1IIlI)
if Il1Il1lII and _uzbctbsxqlgxf~=false then
_IlII1I1="Copied! Paste the link into your browser or Discord."
break
end
end
end
end
pcall(function() uiLibrary:Notify({Title="Discord",Content=_IlII1I1 or "Open this link: " .. III1IIlI,Duration=5,Icon="message-circle"})
end
)
end
})
end
hubState.Syncing=false
if hubWindow.OnDestroy then
hubWindow:OnDestroy(hubState.Destroy)
end
end
hubState.ReadState() hubState.Connect(localPlayer.Idled,function()
if hubSettings.AntiAFK then
local _0x5f35=game:GetService("VirtualUser") pcall(function() _0x5f35:CaptureController() _0x5f35:ClickButton2(Vector2.new())
end
)
end
end
) do
local function _0x90a22(_0xd693)
local III1Ill1IlI=_0xd693.Player
local _0x296f3=_0xd693.Lobby
local _fllcorv,_k_wmhtjife=game.PlaceId,game.JobId
local _ustyaxpcqszlx=game:GetService("TeleportService")
local _I1lIl1llI={}
local _0x82f995={2,8,18}
local lIIl1lll1,l1l1l11ll1,_0x998d
local lI1l1Il11l1
local _r_v_keuuv=-math.huge function _I1lIl1llI.Busy()
return l1l1l11ll1~=nil
end
function _I1lIl1llI.Watch(_zoi_hrazo)
local _I1I1l111Il1l1=_0xd693.ReplayKey and _0xd693.ReplayKey() _zoi_hrazo=_zoi_hrazo or _I1I1l111Il1l1
if _zoi_hrazo==nil or _I1I1l111Il1l1~=_zoi_hrazo or lIIl1lll1 and lIIl1lll1.Key==_zoi_hrazo then
return
end
lIIl1lll1={Key=_zoi_hrazo,Deadline=os.clock()+(_0xd693.ReplayTimeout or 35)}
return lIIl1lll1
end
function _I1lIl1llI.Rejected(_0xcec3e2)
if lIIl1lll1==_0xcec3e2 then
lIIl1lll1=nil
end
end
function _I1lIl1llI.Request(_0xca9dd69a,_0xb7e3)
if l1l1l11ll1 or not _0xd693.Alive() then
return
end
if _0xd693.LegacyPending and _0xd693.LegacyPending() then
return
end
if game.PlaceId==_0x296f3 and not _0xd693.SamePlace then
return
end
l1l1l11ll1={Reason=_0xca9dd69a,ReplayKey=_0xb7e3,Attempts=0,NextAt=os.clock()+_0x82f995[1]} warn("[CactusHub Hub] " .. _0xca9dd69a .. ". Returning to lobby.")
end
local function _0xec2fb(_0x222c63b2)
if not _0xd693.Alive() then
return
end
if l1l1l11ll1 and l1l1l11ll1.Waiting and _0x222c63b2 and _0x222c63b2~=_0x296f3 then
return
end
local _0xf529=os.clock()
if _0xf529 - _r_v_keuuv<1 then
return
end
_r_v_keuuv=_0xf529 _0x998d=nil
if l1l1l11ll1 and l1l1l11ll1.Waiting then
l1l1l11ll1.Waiting=nil l1l1l11ll1.NextAt=_0xf529+(_0x82f995[l1l1l11ll1.Attempts+1] or 0)
elseif not _0xd693.AutoRejoin or _0xd693.AutoRejoin() then
local _0x856fa=lIIl1lll1 and lIIl1lll1.Key _I1lIl1llI.Request("Roblox teleport failed",_0x856fa)
end
end
local function _0x517910(II1l1I11l1lI)
local _0x9ca0=type(II1l1I11l1lI)=="string" and II1l1I11l1lI:lower() or ""
if _0x9ca0==lI1l1Il11l1 then
return
end
lI1l1Il11l1=_0x9ca0
if _0x9ca0:find("teleport",1,true) and (_0x9ca0:find("fail",1,true) or _0x9ca0:find("error",1,true) or _0x9ca0:find("unable",1,true)) then
_0xec2fb()
end
end
function _I1lIl1llI.Step()
if game.PlaceId~=_fllcorv or game.JobId~=_k_wmhtjife then
lIIl1lll1,l1l1l11ll1,_0x998d=nil,nil,nil
return
end
local _laglowhnddmp=os.clock()
if _0x998d and _laglowhnddmp>=_0x998d then
_0x998d=nil
end
local _ofwhezjukmp=(lIIl1lll1 or l1l1l11ll1 and l1l1l11ll1.ReplayKey~=nil) and _0xd693.ReplayKey()
if lIIl1lll1 and lIIl1lll1.Key~=_ofwhezjukmp then
lIIl1lll1=nil
end
if l1l1l11ll1 and l1l1l11ll1.ReplayKey~=nil and l1l1l11ll1.ReplayKey~=_ofwhezjukmp then
l1l1l11ll1=nil
end
if lIIl1lll1 and not _0x998d and _laglowhnddmp>=lIIl1lll1.Deadline then
_I1lIl1llI.Request("Replay sent but the match did not restart",lIIl1lll1.Key)
end
if not l1l1l11ll1 or _0x998d then
return
end
if l1l1l11ll1.Waiting then
if _laglowhnddmp<l1l1l11ll1.Waiting then
return
end
l1l1l11ll1.Waiting=nil l1l1l11ll1.NextAt=_laglowhnddmp+(_0x82f995[l1l1l11ll1.Attempts+1] or 0)
end
if _laglowhnddmp<l1l1l11ll1.NextAt or l1l1l11ll1.Exhausted then
return
end
if l1l1l11ll1.Attempts>=#_0x82f995 then
l1l1l11ll1.Exhausted=true warn("[CactusHub Hub] Lobby teleport unconfirmed after 3 attempts.")
return
end
local _1ll11IIII1lII=l1l1l11ll1 _1ll11IIII1lII.Attempts=_1ll11IIII1lII.Attempts+1 _1ll11IIII1lII.Waiting=_laglowhnddmp+25
if _0xd693.BeforeTeleport then
pcall(_0xd693.BeforeTeleport)
end
if l1l1l11ll1~=_1ll11IIII1lII or not _0xd693.Alive() then
return
end
if _1ll11IIII1lII.ReplayKey~=nil and _0xd693.ReplayKey()~=_1ll11IIII1lII.ReplayKey then
l1l1l11ll1=nil
return
end
local _lll11111II1I=pcall(_ustyaxpcqszlx.Teleport,_ustyaxpcqszlx,_0x296f3,III1Ill1IlI)
if not _lll11111II1I and l1l1l11ll1==_1ll11IIII1lII and _1ll11IIII1lII.Waiting then
_1ll11IIII1lII.Waiting=nil _1ll11IIII1lII.NextAt=os.clock()+(_0x82f995[_1ll11IIII1lII.Attempts+1] or 0)
end
end
_0xd693.Connect(_ustyaxpcqszlx.TeleportInitFailed,function(II11II1lI,Il1l1llI1,Il1l1llI1,_cgicwcooauc)
if II11II1lI==III1Ill1IlI then
_0xec2fb(_cgicwcooauc)
end
end
) _0xd693.Connect(III1Ill1IlI.OnTeleport,function(_wsfecgdzzrl,_csvqvdonkdl)
if _wsfecgdzzrl==Enum.TeleportState.Failed then
_0xec2fb(_csvqvdonkdl)
elseif _wsfecgdzzrl==Enum.TeleportState.Started or _wsfecgdzzrl==Enum.TeleportState.InProgress then
_0x998d=_0x998d or os.clock()+25
end
end
) pcall(function()
local _zdjsakrgxfmsr=game:GetService("GuiService") _0xd693.Connect(_zdjsakrgxfmsr.ErrorMessageChanged,_0x517910) _0x517910(_zdjsakrgxfmsr:GetErrorMessage())
end
) task.spawn(function()
while _0xd693.Alive() and game.PlaceId==_fllcorv and game.JobId==_k_wmhtjife do
_I1lIl1llI.Step() task.wait(0.25)
end
end
)
return _I1lIl1llI
end
hubState.Recovery=_0x90a22({Player=localPlayer,Lobby=hubState.LobbyId,Connect=hubState.Connect,Alive=function()
return hubState.Running
end
,BeforeTeleport=function() hubState.SaveConfig() hubState.QueueTeleport()
end
,ReplayKey=function()
if hubSettings.EndAction=="Replay" then
return hubState.Ended and hubState.Round or nil
end
end
,AutoRejoin=function()
return hubSettings.AutoRejoin
end
})
end
hubState.Connect(localPlayer.OnTeleport,function(_111l1II)
if _111l1II==Enum.TeleportState.Started then
hubState.SaveConfig() hubState.QueueTeleport()
end
end
)
if lIIIIllll11I1.TeleportInitFailed then
hubState.Connect(lIIIIllll11I1.TeleportInitFailed,function(_0x46b4)
if _0x46b4==localPlayer then
hubState.RejoinAt=nil hubState.Next.RejoinAttempt=os.clock()+10 hubState.JoinSent=nil
end
end
)
end
pcall(function()
local _0x3978=game:GetService("GuiService") hubState.Connect(_0x3978.ErrorMessageChanged,function(_0xacc124)
if type(_0xacc124)~="string" then
return
end
_0xacc124=_0xacc124:lower()
if _0xacc124:find("disconnect",1,true) or _0xacc124:find("connection",1,true) or _0xacc124:find("kicked",1,true) or _0xacc124:match("error%s*code%s*:%s*%d+") then
hubState.Disconnected=true
end
end
)
end
)
local _0x373f0,IllIII1ll111I=pcall(hubState.BuildUI)
if not _0x373f0 then
hubState.Destroy() error("Dragon TD UI: " .. tostring(IllIII1ll111I),0)
end
if not hubState.Running or executorEnvironment.DragonTDHub~=hubState then
return
end
if hubSettings.Profile~="" then
hubState.LoadMacro(hubSettings.Profile)
end
hubState.SetHide(hubSettings.HideName) hubState.SetFPS(hubSettings.FPSBoost) hubState.QueueTeleport() hubState.SkipManaged=hubSettings.AutoSkip hubState.StateStep()
local function _beeeq_qi(_teuzsbfdvb,_0x4d2cfa8,_0xf414dd12) task.spawn(function()
while hubState.Running do
local _0x3b6b4,ll1IIlI1I=pcall(_0xf414dd12)
if not _0x3b6b4 then
hubState.LastError=_teuzsbfdvb .. ": " .. tostring(ll1IIlI1I)
end
task.wait(_0x4d2cfa8)
end
end
)
end
_beeeq_qi("State",.05,hubState.StateStep) _beeeq_qi("Record",.03,function()
local _11lllII1=hubState.Jobs[hubState.Head]
if not _11lllII1 or not _11lllII1.Done then
return
end
hubState.RecordBusy=true
local _0x6c484772,lI11l1111lI1I1=pcall(hubState.RecordJob,_11lllII1) hubState.RecordBusy=false hubState.Head=hubState.Head+1
if not _0x6c484772 then
hubState.RecordFault=tostring(lI11l1111lI1I1)
end
if hubState.Head>#hubState.Jobs then
hubState.Jobs={} hubState.Head=1
end
end
) _beeeq_qi("Match",.2,function() hubState.WaveStep() hubState.EndStep()
end
) _beeeq_qi("Lobby",.25,hubState.LobbyStep) _beeeq_qi("Summon",.25,hubState.SummonStep) _beeeq_qi("Rejoin",1,hubState.RejoinStep) hubState.Notify("Hub loaded")]========]
if isfile(destination) then
local existing = readfile(destination)
if existing ~= hubSource then
pcall(writefile, folder .. "/Hub_backup_before_Cactus.lua", existing)
end
end
writefile(destination, hubSource)
assert(readfile(destination) == hubSource, "[Cactus Hub] Could not verify Hub.lua was updated")
local runHub, compileError = loadstring(hubSource)
assert(runHub, compileError)
runHub()Loads code from the internet. It downloads more code when it runs (loadstring + HttpGet), which can change after it was posted. From: raw.githubusercontent.com, cdn.discordapp.com, discord.com, discord.gg.
Stay safe
Never paste your .ROBLOSECURITY cookie anywhere, and use an alt account with scripts.