do local HUB_NAME="⚡ LAK HUB";local HUB_VERSION="v2.0";local GAME_NAME="4Kings Melee Wars!";local GUI_NAME="LakHub_4Kings";if ((HUB_NAME~="⚡ LAK HUB") or (GAME_NAME~="4Kings Melee Wars!")) then game.Players.LocalPlayer:Kick("❌ ตรวจพบการแก้ไขสคริปต์! กรุณาใช้สคริปต์ต้นฉบับจาก LAK HUB เท่านั้น");while true do end end local CoreGui=game:GetService("CoreGui");local Players=game:GetService("Players");local RunService=game:GetService("RunService");local UserInputService=game:GetService("UserInputService");local TweenService=game:GetService("TweenService");local LocalPlayer=Players.LocalPlayer;if CoreGui:FindFirstChild(GUI_NAME) then CoreGui[GUI_NAME]:Destroy();end local function tween(obj,props,time,style,dir) if not obj then return;end TweenService:Create(obj,TweenInfo.new(time or 0.2 ,style or Enum.EasingStyle.Quint ,dir or Enum.EasingDirection.Out ),props):Play();end local function tweenBack(obj,props,time) tween(obj,props,time or 0.35 ,Enum.EasingStyle.Back,Enum.EasingDirection.Out);end local theme={bg=Color3.fromRGB(8,8,16),surface=Color3.fromRGB(16,18,32),surfaceLt=Color3.fromRGB(24,26,48),border=Color3.fromRGB(30,32,55),accent=Color3.fromRGB(100,80,255),accentAlt=Color3.fromRGB(0,200,255),success=Color3.fromRGB(0,220,130),danger=Color3.fromRGB(255,60,80),textMain=Color3.fromRGB(240,240,255),textSub=Color3.fromRGB(120,125,160)};local ScreenGui=Instance.new("ScreenGui");ScreenGui.Name=GUI_NAME;ScreenGui.Parent=CoreGui;ScreenGui.IgnoreGuiInset=true;ScreenGui.ZIndexBehavior=Enum.ZIndexBehavior.Sibling;local ToggleBtn=Instance.new("TextButton");ToggleBtn.Size=UDim2.new(0,48,0,48);ToggleBtn.Position=UDim2.new(0,12,0.4,0);ToggleBtn.BackgroundColor3=theme.accent;ToggleBtn.Text="⚡";ToggleBtn.TextColor3=theme.textMain;ToggleBtn.Font=Enum.Font.GothamBlack;ToggleBtn.TextSize=18;ToggleBtn.Active=true;ToggleBtn.Draggable=true;ToggleBtn.Parent=ScreenGui;Instance.new("UICorner",ToggleBtn).CornerRadius=UDim.new(1,0);local fabStroke=Instance.new("UIStroke",ToggleBtn);fabStroke.Color=theme.accentAlt;fabStroke.Thickness=2;fabStroke.Transparency=0.3;task.spawn(function() while ToggleBtn and ToggleBtn.Parent do tween(fabStroke,{Transparency=0.8,Thickness=3},1.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut);task.wait(1.2);tween(fabStroke,{Transparency=0.2,Thickness=1.5},1.2,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut);task.wait(1.2);end end);local MainFrame=Instance.new("Frame");MainFrame.Size=UDim2.new(0,580,0,400);MainFrame.AnchorPoint=Vector2.new(0.5,0.5);MainFrame.Position=UDim2.new(0.5,0,0.5,0);MainFrame.BackgroundColor3=theme.bg;MainFrame.BorderSizePixel=0;MainFrame.Active=true;MainFrame.Draggable=true;MainFrame.Parent=ScreenGui;MainFrame.ClipsDescendants=true;Instance.new("UICorner",MainFrame).CornerRadius=UDim.new(0,14);local mainStroke=Instance.new("UIStroke",MainFrame);mainStroke.Color=theme.border;mainStroke.Thickness=1;mainStroke.Transparency=0.3;MainFrame.Size=UDim2.new(0,0,0,0);MainFrame.BackgroundTransparency=1;task.defer(function() tweenBack(MainFrame,{Size=UDim2.new(0,580,0,400),BackgroundTransparency=0},0.5);end);local guiOpen=true;ToggleBtn.MouseButton1Click:Connect(function() if guiOpen then tween(MainFrame,{Size=UDim2.new(0,580,0,0),BackgroundTransparency=1},0.3,Enum.EasingStyle.Back,Enum.EasingDirection.In);task.wait(0.3);MainFrame.Visible=false;else MainFrame.Visible=true;MainFrame.Size=UDim2.new(0,0,0,0);MainFrame.BackgroundTransparency=1;tweenBack(MainFrame,{Size=UDim2.new(0,580,0,400),BackgroundTransparency=0},0.4);end guiOpen= not guiOpen;end);local Header=Instance.new("Frame",MainFrame);Header.Size=UDim2.new(1,0,0,46);Header.BackgroundColor3=theme.surface;Header.BorderSizePixel=0;Header.ZIndex=3;Instance.new("UICorner",Header).CornerRadius=UDim.new(0,14);local hFix=Instance.new("Frame",Header);hFix.Size=UDim2.new(1,0,0,14);hFix.Position=UDim2.new(0,0,1, -14);hFix.BackgroundColor3=theme.surface;hFix.BorderSizePixel=0;hFix.ZIndex=3;local Title=Instance.new("TextLabel",Header);Title.Size=UDim2.new(0,200,1,0);Title.Position=UDim2.new(0,16,0,0);Title.BackgroundTransparency=1;Title.Text=HUB_NAME;Title.TextXAlignment=Enum.TextXAlignment.Left;Title.TextColor3=theme.accent;Title.Font=Enum.Font.GothamBlack;Title.TextSize=17;Title.ZIndex=4;local VerLabel=Instance.new("TextLabel",Header);VerLabel.Size=UDim2.new(0,60,1,0);VerLabel.Position=UDim2.new(0,140,0,1);VerLabel.BackgroundTransparency=1;VerLabel.Text=HUB_VERSION;VerLabel.TextXAlignment=Enum.TextXAlignment.Left;VerLabel.TextColor3=theme.textSub;VerLabel.Font=Enum.Font.GothamBold;VerLabel.TextSize=11;VerLabel.ZIndex=4;local CloseBtn=Instance.new("TextButton",Header);CloseBtn.Size=UDim2.new(0,36,0,36);CloseBtn.AnchorPoint=Vector2.new(0.5,0.5);CloseBtn.Position=UDim2.new(1, -24,0.5,0);CloseBtn.BackgroundColor3=theme.danger;CloseBtn.BackgroundTransparency=0.85;CloseBtn.AutoButtonColor=false;CloseBtn.Text="x";CloseBtn.TextColor3=theme.danger;CloseBtn.Font=Enum.Font.GothamBlack;CloseBtn.TextSize=18;CloseBtn.ZIndex=5;Instance.new("UICorner",CloseBtn).CornerRadius=UDim.new(0,8);CloseBtn.MouseEnter:Connect(function() tween(CloseBtn,{BackgroundTransparency=0.3,TextColor3=theme.textMain},0.12);end);CloseBtn.MouseLeave:Connect(function() tween(CloseBtn,{BackgroundTransparency=0.85,TextColor3=theme.danger},0.12);end);CloseBtn.MouseButton1Click:Connect(function() tween(MainFrame,{Size=UDim2.new(0,580,0,0),BackgroundTransparency=1},0.3,Enum.EasingStyle.Back,Enum.EasingDirection.In);task.wait(0.3);MainFrame.Visible=false;guiOpen=false;end);local Sidebar=Instance.new("Frame",MainFrame);Sidebar.Size=UDim2.new(0,150,1, -46);Sidebar.Position=UDim2.new(0,0,0,46);Sidebar.BackgroundColor3=theme.surface;Sidebar.BorderSizePixel=0;local sideBar=Instance.new("Frame",Sidebar);sideBar.Size=UDim2.new(0,1,1,0);sideBar.Position=UDim2.new(1,0,0,0);sideBar.BackgroundColor3=theme.border;sideBar.BackgroundTransparency=0.5;sideBar.BorderSizePixel=0;local ContentArea=Instance.new("Frame",MainFrame);ContentArea.Size=UDim2.new(1, -160,1, -56);ContentArea.Position=UDim2.new(0,155,0,51);ContentArea.BackgroundTransparency=1;local TabContainer=Instance.new("Frame",Sidebar);TabContainer.Size=UDim2.new(1, -12,1, -10);TabContainer.Position=UDim2.new(0,6,0,5);TabContainer.BackgroundTransparency=1;local UIListLayout_Tabs=Instance.new("UIListLayout",TabContainer);UIListLayout_Tabs.FillDirection=Enum.FillDirection.Vertical;UIListLayout_Tabs.HorizontalAlignment=Enum.HorizontalAlignment.Center;UIListLayout_Tabs.Padding=UDim.new(0,3);local PageContainer=Instance.new("Frame",ContentArea);PageContainer.Size=UDim2.new(1, -16,1, -10);PageContainer.Position=UDim2.new(0,8,0,5);PageContainer.BackgroundTransparency=1;local allPages={};local allTabBtns={};local function createPage() local page=Instance.new("ScrollingFrame");page.Size=UDim2.new(1,0,1,0);page.BackgroundTransparency=1;page.BorderSizePixel=0;page.ScrollBarThickness=0;page.ScrollingDirection=Enum.ScrollingDirection.Y;page.Parent=PageContainer;local layout=Instance.new("UIListLayout");layout.Padding=UDim.new(0,6);layout.HorizontalAlignment=Enum.HorizontalAlignment.Center;layout.Parent=page;layout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function() page.CanvasSize=UDim2.new(0,0,0,layout.AbsoluteContentSize.Y + 15 );end);page.Visible= #allPages==0 ;table.insert(allPages,page);return page;end local function createTab(icon,text,page) local btn=Instance.new("TextButton");btn.Size=UDim2.new(1, -8,0,38);btn.BackgroundColor3=(page.Visible and theme.surfaceLt) or theme.surface ;btn.BackgroundTransparency=(page.Visible and 0) or 1 ;btn.AutoButtonColor=false;btn.Text=" " .. icon .. " " .. text ;btn.TextXAlignment=Enum.TextXAlignment.Left;btn.TextColor3=(page.Visible and theme.textMain) or theme.textSub ;btn.Font=Enum.Font.GothamBold;btn.TextSize=13;btn.Parent=TabContainer;Instance.new("UICorner",btn).CornerRadius=UDim.new(0,8);local indicator=Instance.new("Frame",btn);indicator.Size=UDim2.new(0,3,0,(page.Visible and 20) or 0 );indicator.Position=UDim2.new(0,0,0.5, -10);indicator.BackgroundColor3=theme.accent;indicator.BorderSizePixel=0;Instance.new("UICorner",indicator).CornerRadius=UDim.new(0,2);table.insert(allTabBtns,{btn=btn,indicator=indicator,page=page});btn.MouseButton1Click:Connect(function() if page.Visible then return;end for _,p in ipairs(allPages) do p.Visible=false;end for _,t in ipairs(allTabBtns) do tween(t.btn,{BackgroundTransparency=1,BackgroundColor3=theme.surface,TextColor3=theme.textSub},0.15);tween(t.indicator,{Size=UDim2.new(0,3,0,0)},0.15);end tween(btn,{BackgroundTransparency=0,BackgroundColor3=theme.surfaceLt,TextColor3=theme.textMain},0.15);tween(indicator,{Size=UDim2.new(0,3,0,20)},0.2,Enum.EasingStyle.Back);page.Position=UDim2.new(0.05,0,0,0);page.Visible=true;tween(page,{Position=UDim2.new(0,0,0,0)},0.25,Enum.EasingStyle.Quint);end);end local function createButton(text,page) local btn=Instance.new("TextButton");btn.Size=UDim2.new(1,0,0,42);btn.BackgroundColor3=theme.surface;btn.AutoButtonColor=false;btn.Text=" " .. text ;btn.TextXAlignment=Enum.TextXAlignment.Center;btn.TextColor3=theme.textMain;btn.Font=Enum.Font.GothamBold;btn.TextSize=13;btn.Parent=page;Instance.new("UICorner",btn).CornerRadius=UDim.new(0,8);Instance.new("UIStroke",btn).Color=theme.border;return btn;end local function createToggle(text,page) local btn=Instance.new("TextButton");btn.Size=UDim2.new(1,0,0,42);btn.BackgroundColor3=theme.surface;btn.AutoButtonColor=false;btn.Text=" " .. text ;btn.TextXAlignment=Enum.TextXAlignment.Left;btn.TextColor3=theme.textMain;btn.Font=Enum.Font.GothamBold;btn.TextSize=13;btn.Parent=page;Instance.new("UICorner",btn).CornerRadius=UDim.new(0,8);local bStroke=Instance.new("UIStroke",btn);bStroke.Color=theme.border;bStroke.Thickness=1;bStroke.Transparency=0.6;local switchBg=Instance.new("Frame",btn);switchBg.Size=UDim2.new(0,40,0,20);switchBg.Position=UDim2.new(1, -52,0.5, -10);switchBg.BackgroundColor3=theme.bg;switchBg.BorderSizePixel=0;Instance.new("UICorner",switchBg).CornerRadius=UDim.new(1,0);local tStroke=Instance.new("UIStroke",switchBg);tStroke.Color=theme.border;tStroke.Thickness=1;tStroke.Transparency=0.3;local knob=Instance.new("Frame",switchBg);knob.Size=UDim2.new(0,16,0,16);knob.Position=UDim2.new(0,2,0.5, -8);knob.BackgroundColor3=theme.textSub;knob.BorderSizePixel=0;Instance.new("UICorner",knob).CornerRadius=UDim.new(1,0);switchBg:GetPropertyChangedSignal("BackgroundColor3"):Connect(function() if (switchBg.BackgroundColor3==Color3.fromRGB(60,60,60)) then tween(switchBg,{BackgroundColor3=theme.bg},0.2);tween(knob,{Position=UDim2.new(0,2,0.5, -8),BackgroundColor3=theme.textSub},0.2);tween(tStroke,{Color=theme.border},0.2);tween(bStroke,{Color=theme.border,Transparency=0.6},0.2);elseif (switchBg.BackgroundColor3==Color3.fromRGB(0,200,100)) then tween(switchBg,{BackgroundColor3=theme.accent},0.2);tween(knob,{Position=UDim2.new(1, -18,0.5, -8),BackgroundColor3=Color3.new(1,1,1)},0.15);task.delay(0.05,function() tweenBack(knob,{Size=UDim2.new(0,18,0,18),Position=UDim2.new(1, -19,0.5, -9)},0.2);task.delay(0.2,function() tween(knob,{Size=UDim2.new(0,16,0,16),Position=UDim2.new(1, -18,0.5, -8)},0.15);end);end);tween(tStroke,{Color=theme.accent},0.2);tween(bStroke,{Color=theme.accent,Transparency=0.4},0.2);end end);btn.MouseButton1Click:Connect(function() tween(btn,{Size=UDim2.new(0.97,0,0,40)},0.06);task.delay(0.08,function() tween(btn,{Size=UDim2.new(1,0,0,42)},0.15);end);end);return btn,switchBg;end local function createSlider(text,min,max,default,page,callback) local frame=Instance.new("Frame");frame.Size=UDim2.new(1,0,0,55);frame.BackgroundColor3=theme.surface;frame.Parent=page;Instance.new("UICorner",frame).CornerRadius=UDim.new(0,8);Instance.new("UIStroke",frame).Color=theme.border;local label=Instance.new("TextLabel",frame);label.Size=UDim2.new(0.75, -10,0,22);label.Position=UDim2.new(0,10,0,4);label.Text=text;label.TextColor3=theme.textMain;label.Font=Enum.Font.GothamBold;label.TextSize=12;label.TextXAlignment=Enum.TextXAlignment.Left;label.BackgroundTransparency=1;local valLabel=Instance.new("TextLabel",frame);valLabel.Size=UDim2.new(0,55,0,22);valLabel.Position=UDim2.new(1, -60,0,4);valLabel.Text=tostring(default);valLabel.TextColor3=theme.accent;valLabel.Font=Enum.Font.GothamBlack;valLabel.TextSize=13;valLabel.TextXAlignment=Enum.TextXAlignment.Right;valLabel.BackgroundTransparency=1;local bg=Instance.new("TextButton",frame);bg.Text="";bg.AutoButtonColor=false;bg.Size=UDim2.new(1, -20,0,6);bg.Position=UDim2.new(0,10,0,36);bg.BackgroundColor3=theme.bg;bg.BorderSizePixel=0;Instance.new("UICorner",bg).CornerRadius=UDim.new(1,0);local fill=Instance.new("Frame",bg);fill.Size=UDim2.new((default-min)/(max-min) ,0,1,0);fill.BackgroundColor3=theme.accent;fill.BorderSizePixel=0;Instance.new("UICorner",fill).CornerRadius=UDim.new(1,0);local sknob=Instance.new("TextButton",bg);sknob.Text="";sknob.AutoButtonColor=false;sknob.Size=UDim2.new(0,14,0,14);sknob.Position=UDim2.new((default-min)/(max-min) , -7,0.5, -7);sknob.BackgroundColor3=Color3.new(1,1,1);Instance.new("UICorner",sknob).CornerRadius=UDim.new(1,0);local kStroke=Instance.new("UIStroke",sknob);kStroke.Color=theme.accent;kStroke.Thickness=2;kStroke.Transparency=0.5;local drag=false;local function update(input) local p=math.clamp((input.Position.X-bg.AbsolutePosition.X)/bg.AbsoluteSize.X ,0,1);local v=math.floor(min + ((max-min) * p) );fill.Size=UDim2.new(p,0,1,0);sknob.Position=UDim2.new(p, -7,0.5, -7);valLabel.Text=tostring(v);callback(v);end local function inputBegan(i) if ((i.UserInputType==Enum.UserInputType.MouseButton1) or (i.UserInputType==Enum.UserInputType.Touch)) then drag=true;update(i);tween(sknob,{Size=UDim2.new(0,18,0,18),Position=UDim2.new(sknob.Position.X.Scale, -9,0.5, -9)},0.1);tween(kStroke,{Transparency=0,Thickness=3,Color=theme.accentAlt},0.1);end end bg.InputBegan:Connect(inputBegan);sknob.InputBegan:Connect(inputBegan);UserInputService.InputEnded:Connect(function(i) if ((i.UserInputType==Enum.UserInputType.MouseButton1) or (i.UserInputType==Enum.UserInputType.Touch)) then drag=false;tween(sknob,{Size=UDim2.new(0,14,0,14),Position=UDim2.new(sknob.Position.X.Scale, -7,0.5, -7)},0.15);tween(kStroke,{Transparency=0.5,Thickness=2,Color=theme.accent},0.15);end end);UserInputService.InputChanged:Connect(function(i) if (drag and ((i.UserInputType==Enum.UserInputType.MouseMovement) or (i.UserInputType==Enum.UserInputType.Touch))) then update(i);end end);end local function createDropdown(text,page,getOptionsCallback,selectCallback) local container=Instance.new("Frame");container.Size=UDim2.new(1,0,0,42);container.BackgroundTransparency=1;container.ClipsDescendants=true;container.Parent=page;local btn=Instance.new("TextButton");btn.Size=UDim2.new(1,0,0,42);btn.BackgroundColor3=theme.surface;btn.AutoButtonColor=false;btn.Text=" " .. text .. " : [ - ] ▼" ;btn.TextXAlignment=Enum.TextXAlignment.Left;btn.TextColor3=theme.textMain;btn.Font=Enum.Font.GothamBold;btn.TextSize=12;btn.Parent=container;Instance.new("UICorner",btn).CornerRadius=UDim.new(0,8);local ddStroke=Instance.new("UIStroke",btn);ddStroke.Color=theme.border;ddStroke.Thickness=1;ddStroke.Transparency=0.5;local listFrame=Instance.new("ScrollingFrame");listFrame.Size=UDim2.new(1, -4,0,0);listFrame.Position=UDim2.new(0,2,0,46);listFrame.BackgroundColor3=theme.bg;listFrame.BorderSizePixel=0;listFrame.ScrollBarThickness=2;listFrame.ScrollBarImageColor3=theme.accent;listFrame.Visible=false;listFrame.ZIndex=5;listFrame.Parent=container;Instance.new("UICorner",listFrame).CornerRadius=UDim.new(0,6);local listLayout=Instance.new("UIListLayout",listFrame);listLayout.SortOrder=Enum.SortOrder.LayoutOrder;listLayout.Padding=UDim.new(0,2);local isOpen=false;local function closeDropdown() isOpen=false;tween(container,{Size=UDim2.new(1,0,0,42)},0.2);tween(ddStroke,{Color=theme.border},0.15);task.delay(0.2,function() listFrame.Visible=false;end);btn.Text=string.gsub(btn.Text,"▲","▼");end btn.MouseButton1Click:Connect(function() isOpen= not isOpen;if isOpen then for _,child in pairs(listFrame:GetChildren()) do if child:IsA("TextButton") then child:Destroy();end end local options=getOptionsCallback();local ySize=0;for _,opt in ipairs(options) do local optBtn=Instance.new("TextButton");optBtn.Size=UDim2.new(1, -6,0,32);optBtn.BackgroundColor3=theme.surface;optBtn.BackgroundTransparency=0.5;optBtn.AutoButtonColor=false;optBtn.Text=" " .. opt ;optBtn.TextXAlignment=Enum.TextXAlignment.Left;optBtn.TextColor3=theme.textSub;optBtn.Font=Enum.Font.GothamBold;optBtn.TextSize=12;optBtn.ZIndex=6;optBtn.Parent=listFrame;Instance.new("UICorner",optBtn).CornerRadius=UDim.new(0,4);optBtn.MouseButton1Click:Connect(function() btn.Text=" " .. text .. " : [ " .. opt .. " ] ▼" ;tween(btn,{TextColor3=theme.accent});tween(ddStroke,{Color=theme.accent},0.15);selectCallback(opt);closeDropdown();end);ySize=ySize + 34 ;end listFrame.CanvasSize=UDim2.new(0,0,0,ySize);local frameHeight=math.clamp(ySize,0,160);listFrame.Size=UDim2.new(1, -4,0,frameHeight);listFrame.Visible=true;tween(container,{Size=UDim2.new(1,0,0,42 + frameHeight + 6 )},0.25,Enum.EasingStyle.Back);tween(ddStroke,{Color=theme.accent},0.15);btn.Text=string.gsub(btn.Text,"▼","▲");else closeDropdown();end end);return container;end local function addToggle(text,page,callback) local state=false;local btn,switchBg=createToggle(text,page);btn.MouseButton1Click:Connect(function() state= not state;switchBg.BackgroundColor3=(state and Color3.fromRGB(0,200,100)) or Color3.fromRGB(60,60,60) ;if callback then callback(state);end end);return btn,switchBg;end local function addButton(text,page,callback) local btn=createButton(text,page);btn.MouseButton1Click:Connect(function() if callback then callback(btn);end end);return btn;end local addSlider=createSlider;local addDropdown=createDropdown;task.spawn(function() local splash=Instance.new("Frame",ScreenGui);splash.Size=UDim2.new(1,0,1,0);splash.BackgroundColor3=Color3.fromRGB(4,4,10);splash.BackgroundTransparency=0;splash.ZIndex=100;splash.BorderSizePixel=0;local logo=Instance.new("TextLabel",splash);logo.Size=UDim2.new(0.6,0,0,50);logo.Position=UDim2.new(0.2,0,0.4,0);logo.BackgroundTransparency=1;logo.Text=HUB_NAME;logo.TextColor3=theme.accent;logo.Font=Enum.Font.GothamBlack;logo.TextSize=36;logo.TextTransparency=1;logo.ZIndex=101;local ver=Instance.new("TextLabel",splash);ver.Size=UDim2.new(0.6,0,0,25);ver.Position=UDim2.new(0.2,0,0.4,50);ver.BackgroundTransparency=1;ver.Text=HUB_VERSION .. " • Obsidian Neon" ;ver.TextColor3=theme.accentAlt;ver.Font=Enum.Font.GothamBold;ver.TextSize=14;ver.TextTransparency=1;ver.ZIndex=101;local sub=Instance.new("TextLabel",splash);sub.Size=UDim2.new(0.8,0,0,20);sub.Position=UDim2.new(0.1,0,0.55,0);sub.BackgroundTransparency=1;sub.Text=GAME_NAME;sub.TextColor3=theme.textSub;sub.Font=Enum.Font.GothamMedium;sub.TextSize=12;sub.TextTransparency=1;sub.ZIndex=101;task.wait(0.2);tween(logo,{TextTransparency=0},0.5);task.wait(0.3);tween(ver,{TextTransparency=0},0.4);task.wait(0.2);tween(sub,{TextTransparency=0},0.4);task.wait(1.5);tween(logo,{TextTransparency=1,Position=UDim2.new(0.2,0,0.35,0)},0.4);tween(ver,{TextTransparency=1},0.3);tween(sub,{TextTransparency=1},0.3);tween(splash,{BackgroundTransparency=1},0.5);task.wait(0.6);splash:Destroy();end);local Page_Main=createPage();local Page_Settings=createPage();createTab("🎮","หลัก",Page_Main);createTab("🔧","ตั้งค่า",Page_Settings);local _ESP_Config={Enabled=false,Color=Color3.fromRGB(255,0,0),TextSize=14,ShowBox=true};local _ESP_Instances={};local function clearESP() for _,obj in pairs(_ESP_Instances) do if obj then obj:Destroy();end end _ESP_Instances={};end RunService.RenderStepped:Connect(function() if _ESP_Config.Enabled then clearESP();for _,obj in pairs(workspace:GetChildren()) do if (obj:IsA("Model") and obj:FindFirstChild("HumanoidRootPart") and (obj.Name~=LocalPlayer.Name)) then local hrp=obj:FindFirstChild("HumanoidRootPart");local espGui=Instance.new("BillboardGui");espGui.Adornee=hrp;espGui.Size=UDim2.new(0,150,0,50);espGui.StudsOffset=Vector3.new(0,3.5,0);espGui.AlwaysOnTop=true;local nameLabel=Instance.new("TextLabel");nameLabel.Parent=espGui;nameLabel.Size=UDim2.new(1,0,1,0);nameLabel.BackgroundTransparency=1;nameLabel.TextColor3=_ESP_Config.Color;nameLabel.TextStrokeTransparency=0.2;nameLabel.Font=Enum.Font.GothamBold;nameLabel.TextSize=_ESP_Config.TextSize;if (LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")) then local dist=math.floor((hrp.Position-LocalPlayer.Character.HumanoidRootPart.Position).Magnitude);nameLabel.Text=string.format("%s\n[%d m]",obj.Name,dist);else nameLabel.Text=obj.Name;end espGui.Parent=CoreGui;table.insert(_ESP_Instances,espGui);if _ESP_Config.ShowBox then local highlight=Instance.new("Highlight");highlight.Adornee=obj;highlight.FillColor=_ESP_Config.Color;highlight.FillTransparency=0.5;highlight.OutlineColor=_ESP_Config.Color;highlight.OutlineTransparency=0;highlight.DepthMode=Enum.HighlightDepthMode.AlwaysOnTop;highlight.Parent=CoreGui;table.insert(_ESP_Instances,highlight);end end end end end);local _AutoClick_Config={Enabled=false};local VirtualUser=game:GetService("VirtualUser");task.spawn(function() while task.wait(0.2) do if (_AutoClick_Config.Enabled and LocalPlayer.Character) then local tool=LocalPlayer.Character:FindFirstChildOfClass("Tool");if tool then VirtualUser:ClickButton1(Vector2.new(9999,9999));end end end end);local _TP_Config={Enabled=false,Target=nil,Distance=3,CurrentTargetData=nil};local _AutoFarmPlayers_Config={Enabled=false};local function getClosestLivingPlayer() local closestDist=math.huge;local closestTarget=nil;for _,obj in pairs(workspace:GetChildren()) do if (obj:IsA("Model") and (obj.Name~=LocalPlayer.Name)) then local hrp=obj:FindFirstChild("HumanoidRootPart");local hum=obj:FindFirstChild("Humanoid");if (hrp and hum and (hum.Health>0)) then if (LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")) then local myHrp=LocalPlayer.Character.HumanoidRootPart;local dist=(myHrp.Position-hrp.Position).Magnitude;if (dist