-- Script Name: Tze Ex (v1.0.0) -- Developed for Delta Executor local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local MarketplaceService = game:GetService("MarketplaceService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- Lấy tên game hiện tại local GameName = "Unknown Game" pcall(function() GameName = MarketplaceService:GetProductInfo(game.PlaceId).Name end) -- Tạo ScreenGui chính local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "TzeExGui" ScreenGui.ResetOnSpawn = false pcall(function() ScreenGui.Parent = game:GetService("CoreGui") end) if not ScreenGui.Parent then ScreenGui.Parent = LocalPlayer:WaitForChild("PlayerGui") end -- 1. NÚT ĐÓNG/MỞ GUI (HÌNH VUÔNG + KÉO ĐƯỢC + IMAGE) local ToggleBtn = Instance.new("ImageButton") ToggleBtn.Name = "ToggleBtn" ToggleBtn.Size = UDim2.new(0, 50, 0, 50) ToggleBtn.Position = UDim2.new(0, 20, 0.4, 0) ToggleBtn.Image = "rbxassetid://6031097225" -- ID Ảnh mặc định (Bạn có thể thay ID mới) ToggleBtn.BackgroundColor3 = Color3.fromRGB(35, 35, 35) ToggleBtn.BorderSizePixel = 0 ToggleBtn.Parent = ScreenGui local ToggleCorner = Instance.new("UICorner") ToggleCorner.CornerRadius = UDim.new(0, 8) ToggleCorner.Parent = ToggleBtn -- 2. KHUNG CHÍNH (MAIN FRAME - HÌNH VUÔNG) local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 480, 0, 320) MainFrame.Position = UDim2.new(0.5, -240, 0.5, -160) MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25) MainFrame.BorderSizePixel = 0 MainFrame.ClipsDescendants = true MainFrame.Parent = ScreenGui -- Hàm xử lý Kéo/Thả (Drag) cho Nút Toggle và MainFrame local function makeDraggable(guiObject) local dragging, dragInput, dragStart, startPos guiObject.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = guiObject.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) guiObject.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if input == dragInput and dragging then local delta = input.Position - dragStart guiObject.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) end makeDraggable(ToggleBtn) makeDraggable(MainFrame) -- Đóng/Mở GUI khi click nút ToggleBtn.MouseButton1Click:Connect(function() MainFrame.Visible = not MainFrame.Visible end) -- 3. THANH NGANG TRÊN CÙNG (TOP BAR) local TopBar = Instance.new("Frame") TopBar.Size = UDim2.new(1, 0, 0, 35) TopBar.BackgroundColor3 = Color3.fromRGB(35, 35, 35) TopBar.BorderSizePixel = 0 TopBar.Parent = MainFrame -- Chấm xanh lá chớp nháy local StatusDot = Instance.new("Frame") StatusDot.Size = UDim2.new(0, 10, 0, 10) StatusDot.Position = UDim2.new(0, 10, 0.5, -5) StatusDot.BackgroundColor3 = Color3.fromRGB(0, 255, 100) StatusDot.BorderSizePixel = 0 StatusDot.Parent = TopBar local DotCorner = Instance.new("UICorner") DotCorner.CornerRadius = UDim.new(1, 0) DotCorner.Parent = StatusDot task.spawn(function() while true do StatusDot.BackgroundTransparency = 0 task.wait(0.5) StatusDot.BackgroundTransparency = 0.8 task.wait(0.5) end end) -- Tiêu đề Info (Name script | Version | Game) local TitleLabel = Instance.new("TextLabel") TitleLabel.Size = UDim2.new(1, -30, 1, 0) TitleLabel.Position = UDim2.new(0, 25, 0, 0) TitleLabel.BackgroundTransparency = 1 TitleLabel.Text = "Tze Ex | v1.0.0 | " .. GameName TitleLabel.TextColor3 = Color3.fromRGB(230, 230, 230) TitleLabel.TextXAlignment = Enum.TextXAlignment.Left TitleLabel.Font = Enum.Font.SourceSansBold TitleLabel.TextSize = 14 TitleLabel.Parent = TopBar -- 4. THANH DỌC CHỨA TAB (LEFT SIDEBAR) local SideBar = Instance.new("Frame") SideBar.Size = UDim2.new(0, 110, 1, -35) SideBar.Position = UDim2.new(0, 0, 0, 35) SideBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30) SideBar.BorderSizePixel = 0 SideBar.Parent = MainFrame local ContentArea = Instance.new("Frame") ContentArea.Size = UDim2.new(1, -110, 1, -35) ContentArea.Position = UDim2.new(0, 110, 0, 35) ContentArea.BackgroundTransparency = 1 ContentArea.Parent = MainFrame -- Quản lý Tabs & Content local Tabs = {} local TabButtons = {} local function CreateTab(tabName) local TabBtn = Instance.new("TextButton") TabBtn.Size = UDim2.new(1, 0, 0, 35) TabBtn.Position = UDim2.new(0, 0, 0, #TabButtons * 35) TabBtn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) TabBtn.BorderSizePixel = 0 TabBtn.Text = tabName TabBtn.TextColor3 = Color3.fromRGB(180, 180, 180) TabBtn.Font = Enum.Font.SourceSansBold TabBtn.TextSize = 14 TabBtn.Parent = SideBar local TabPage = Instance.new("Frame") TabPage.Size = UDim2.new(1, 0, 1, 0) TabPage.BackgroundTransparency = 1 TabPage.Visible = false TabPage.Parent = ContentArea Tabs[tabName] = TabPage table.insert(TabButtons, TabBtn) TabBtn.MouseButton1Click:Connect(function() for _, btn in pairs(TabButtons) do btn.BackgroundColor3 = Color3.fromRGB(30, 30, 30) btn.TextColor3 = Color3.fromRGB(180, 180, 180) end for _, page in pairs(Tabs) do page.Visible = false end TabBtn.BackgroundColor3 = Color3.fromRGB(45, 45, 45) TabBtn.TextColor3 = Color3.fromRGB(0, 255, 150) TabPage.Visible = true end) return TabPage end -- Tạo các Tab local MainTab = CreateTab("Main") local CombatTab = CreateTab("Combat") local MarcoTab = CreateTab("Marco") local CreditsTab = CreateTab("Credits") -- Chọn Tab mặc định TabButtons[1].BackgroundColor3 = Color3.fromRGB(45, 45, 45) TabButtons[1].TextColor3 = Color3.fromRGB(0, 255, 150) Tabs["Main"].Visible = true -------------------------------------------------------------------------------- -- TAB 1: MAIN -------------------------------------------------------------------------------- local MainBox1 = Instance.new("TextLabel") MainBox1.Size = UDim2.new(0.9, 0, 0, 40) MainBox1.Position = UDim2.new(0.05, 0, 0.1, 0) MainBox1.BackgroundColor3 = Color3.fromRGB(40, 40, 40) MainBox1.TextColor3 = Color3.fromRGB(255, 255, 255) MainBox1.Text = "Sybau" MainBox1.Font = Enum.Font.SourceSansBold MainBox1.TextSize = 16 MainBox1.Parent = MainTab local MainBox2 = Instance.new("TextLabel") MainBox2.Size = UDim2.new(0.9, 0, 0, 40) MainBox2.Position = UDim2.new(0.05, 0, 0.3, 0) MainBox2.BackgroundColor3 = Color3.fromRGB(40, 40, 40) MainBox2.TextColor3 = Color3.fromRGB(255, 255, 255) MainBox2.Text = "Script to beta" MainBox2.Font = Enum.Font.SourceSansBold MainBox2.TextSize = 16 MainBox2.Parent = MainTab -------------------------------------------------------------------------------- -- TAB 2: COMBAT (Silent Aim & BackYou) -------------------------------------------------------------------------------- local SilentAimEnabled = false local BackYouEnabled = false local BackYouDistance = 5 local CurrentTarget = nil -- Hàm tìm Target gần nhất local function GetClosestPlayer() local closest, minDistance = nil, math.huge for _, player in pairs(Players:GetPlayers()) do if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") and player.Character:FindFirstChildOfClass("Humanoid").Health > 0 then local dist = (LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart")) and (player.Character.HumanoidRootPart.Position - LocalPlayer.Character.HumanoidRootPart.Position).Magnitude or math.huge if dist < minDistance then minDistance = dist closest = player end end end return closest end -- Nút Silent Aim local SilentBtn = Instance.new("TextButton") SilentBtn.Size = UDim2.new(0.9, 0, 0, 35) SilentBtn.Position = UDim2.new(0.05, 0, 0.05, 0) SilentBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) SilentBtn.Text = "Silent Aim: OFF" SilentBtn.TextColor3 = Color3.fromRGB(255, 100, 100) SilentBtn.Font = Enum.Font.SourceSansBold SilentBtn.TextSize = 14 SilentBtn.Parent = CombatTab SilentBtn.MouseButton1Click:Connect(function() SilentAimEnabled = not SilentAimEnabled SilentBtn.Text = "Silent Aim: " .. (SilentAimEnabled and "ON" or "OFF") SilentBtn.TextColor3 = SilentAimEnabled and Color3.fromRGB(100, 255, 100) or Color3.fromRGB(255, 100, 100) if not SilentAimEnabled then CurrentTarget = nil end end) -- Nút BackYou local BackBtn = Instance.new("TextButton") BackBtn.Size = UDim2.new(0.9, 0, 0, 35) BackBtn.Position = UDim2.new(0.05, 0, 0.22, 0) BackBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) BackBtn.Text = "BackYou: OFF" BackBtn.TextColor3 = Color3.fromRGB(255, 100, 100) BackBtn.Font = Enum.Font.SourceSansBold BackBtn.TextSize = 14 BackBtn.Parent = CombatTab BackBtn.MouseButton1Click:Connect(function() BackYouEnabled = not BackYouEnabled BackBtn.Text = "BackYou: " .. (BackYouEnabled and "ON" or "OFF") BackBtn.TextColor3 = BackYouEnabled and Color3.fromRGB(100, 255, 100) or Color3.fromRGB(255, 100, 100) if not BackYouEnabled then CurrentTarget = nil end end) -- Thanh kéo Distance (1 ~ 30 studs) local SliderLabel = Instance.new("TextLabel") SliderLabel.Size = UDim2.new(0.9, 0, 0, 20) SliderLabel.Position = UDim2.new(0.05, 0, 0.38, 0) SliderLabel.BackgroundTransparency = 1 SliderLabel.Text = "Khoảng cách BackYou: 5 Studs" SliderLabel.TextColor3 = Color3.fromRGB(200, 200, 200) SliderLabel.Font = Enum.Font.SourceSans SliderLabel.TextSize = 14 SliderLabel.Parent = CombatTab local SliderBg = Instance.new("Frame") SliderBg.Size = UDim2.new(0.9, 0, 0, 15) SliderBg.Position = UDim2.new(0.05, 0, 0.46, 0) SliderBg.BackgroundColor3 = Color3.fromRGB(40, 40, 40) SliderBg.Parent = CombatTab local SliderFill = Instance.new("Frame") SliderFill.Size = UDim2.new((5 - 1) / 29, 0, 1, 0) SliderFill.BackgroundColor3 = Color3.fromRGB(0, 255, 150) SliderFill.BorderSizePixel = 0 SliderFill.Parent = SliderBg local Sliding = false local function UpdateSlider(input) local pos = math.clamp((input.Position.X - SliderBg.AbsolutePosition.X) / SliderBg.AbsoluteSize.X, 0, 1) SliderFill.Size = UDim2.new(pos, 0, 1, 0) BackYouDistance = math.floor(1 + (pos * 29)) SliderLabel.Text = "Khoảng cách BackYou: " .. tostring(BackYouDistance) .. " Studs" end SliderBg.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then Sliding = true UpdateSlider(input) end end) UserInputService.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then Sliding = false end end) UserInputService.InputChanged:Connect(function(input) if Sliding and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then UpdateSlider(input) end end) -- Vòng lặp Xử lý Combat Logic RunService.RenderStepped:Connect(function() -- Kiểm tra Target hiện tại còn sống không if CurrentTarget then local hum = CurrentTarget.Character and CurrentTarget.Character:FindFirstChildOfClass("Humanoid") if not hum or hum.Health <= 0 or not CurrentTarget.Character:FindFirstChild("HumanoidRootPart") then CurrentTarget = nil end end -- Chọn Target mới nếu chưa có if (SilentAimEnabled or BackYouEnabled) and not CurrentTarget then CurrentTarget = GetClosestPlayer() end -- Xử lý Silent Aim (Xoay nhân vật về phía mục tiêu) if SilentAimEnabled and CurrentTarget and CurrentTarget.Character and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then local myHRP = LocalPlayer.Character.HumanoidRootPart local targetHRP = CurrentTarget.Character.HumanoidRootPart myHRP.CFrame = CFrame.new(myHRP.Position, Vector3.new(targetHRP.Position.X, myHRP.Position.Y, targetHRP.Position.Z)) end -- Xử lý BackYou (Teleport ra sau lưng mục tiêu) if BackYouEnabled and CurrentTarget and CurrentTarget.Character and LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then local myHRP = LocalPlayer.Character.HumanoidRootPart local targetHRP = CurrentTarget.Character.HumanoidRootPart myHRP.CFrame = targetHRP.CFrame * CFrame.new(0, 0, BackYouDistance) end end) -------------------------------------------------------------------------------- -- TAB 3: MARCO (Auto Click) -------------------------------------------------------------------------------- local MarcoEnabled = false local LastClickPos = nil local MarcoBtn = Instance.new("TextButton") MarcoBtn.Size = UDim2.new(0.9, 0, 0, 35) MarcoBtn.Position = UDim2.new(0.05, 0, 0.1, 0) MarcoBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 50) MarcoBtn.Text = "Auto Click: OFF" MarcoBtn.TextColor3 = Color3.fromRGB(255, 100, 100) MarcoBtn.Font = Enum.Font.SourceSansBold MarcoBtn.TextSize = 14 MarcoBtn.Parent = MarcoTab MarcoBtn.MouseButton1Click:Connect(function() MarcoEnabled = not MarcoEnabled MarcoBtn.Text = "Auto Click: " .. (MarcoEnabled and "ON" or "OFF") MarcoBtn.TextColor3 = MarcoEnabled and Color3.fromRGB(100, 255, 100) or Color3.fromRGB(255, 100, 100) end) -- Ghi nhận vị trí bấm màn hình/chuột UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then LastClickPos = input.Position if MarcoEnabled and LastClickPos then task.delay(0.33, function() if MarcoEnabled then -- Bấm lại đúng vị trí vừa bấm sau 0.33s (Lặp lại 1 lần) VirtualInputManager = game:GetService("VirtualInputManager") VirtualInputManager:SendMouseButtonEvent(LastClickPos.X, LastClickPos.Y, 0, true, game, 0) task.wait(0.05) VirtualInputManager:SendMouseButtonEvent(LastClickPos.X, LastClickPos.Y, 0, false, game, 0) end end) end end end) -------------------------------------------------------------------------------- -- TAB 4: CREDITS -------------------------------------------------------------------------------- local CreditsText = Instance.new("TextLabel") CreditsText.Size = UDim2.new(0.9, 0, 0, 50) CreditsText.Position = UDim2.new(0.05, 0, 0.1, 0) CreditsText.BackgroundColor3 = Color3.fromRGB(35, 35, 35) CreditsText.TextColor3 = Color3.fromRGB(255, 255, 255) CreditsText.Text = "Script by .faded37 in discord🐧" CreditsText.Font = Enum.Font.SourceSansItalic CreditsText.TextSize = 16 CreditsText.Parent = CreditsTab