-- Khoi tao UI (Classic Brick UI - No Library) local ScreenGui = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Title = Instance.new("TextLabel") local TimerLabel = Instance.new("TextLabel") local TPOnlyButton = Instance.new("TextButton") -- Nut TP thuan tuy local StopButton = Instance.new("TextButton") -- Nut dung khan cap local LoadScriptButton = Instance.new("TextButton") -- Thiet lap UI ScreenGui.Parent = game.CoreGui ScreenGui.Name = "BaconNoob_Clean_UI" MainFrame.Name = "MainFrame" MainFrame.Parent = ScreenGui MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) MainFrame.Position = UDim2.new(0.5, -100, 0.5, -100) MainFrame.Size = UDim2.new(0, 200, 0, 200) -- Thu gon kich thuoc MainFrame.Active = true MainFrame.Draggable = true Instance.new("UICorner", MainFrame).CornerRadius = UDim.new(0, 8) Title.Parent = MainFrame Title.Size = UDim2.new(1, 0, 0, 30) Title.Text = "BaconNoob Utility" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.BackgroundTransparency = 1 Title.Font = Enum.Font.SourceSansBold Title.TextSize = 18 -- O dem nguoc TimerLabel.Parent = MainFrame TimerLabel.Position = UDim2.new(0.1, 0, 0.18, 0) TimerLabel.Size = UDim2.new(0.8, 0, 0, 25) TimerLabel.BackgroundColor3 = Color3.fromRGB(20, 20, 20) TimerLabel.TextColor3 = Color3.fromRGB(0, 255, 0) TimerLabel.Font = Enum.Font.Code TimerLabel.TextSize = 20 TimerLabel.Text = "10:00" Instance.new("UICorner", TimerLabel) -- Nut 1: Only TP TPOnlyButton.Parent = MainFrame TPOnlyButton.Position = UDim2.new(0.1, 0, 0.38, 0) TPOnlyButton.Size = UDim2.new(0.8, 0, 0, 30) TPOnlyButton.Text = "Only TP to End" TPOnlyButton.BackgroundColor3 = Color3.fromRGB(0, 80, 0) TPOnlyButton.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", TPOnlyButton) -- Nut 2: Dung khan cap StopButton.Parent = MainFrame StopButton.Position = UDim2.new(0.1, 0, 0.58, 0) StopButton.Size = UDim2.new(0.8, 0, 0, 30) StopButton.Text = "STOP TP" StopButton.BackgroundColor3 = Color3.fromRGB(150, 0, 0) StopButton.TextColor3 = Color3.fromRGB(255, 255, 255) StopButton.Font = Enum.Font.SourceSansBold Instance.new("UICorner", StopButton) -- Nut 3: Load Scripts LoadScriptButton.Parent = MainFrame LoadScriptButton.Position = UDim2.new(0.1, 0, 0.78, 0) LoadScriptButton.Size = UDim2.new(0.8, 0, 0, 30) LoadScriptButton.Text = "Activate Scripts" LoadScriptButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) LoadScriptButton.TextColor3 = Color3.fromRGB(255, 255, 255) Instance.new("UICorner", LoadScriptButton) -- --- LOGIC DIEU KHIEN --- local targetCFrame = CFrame.new(-12.5695953, 16.2331924, -48741.0391, 1, 0, 0, 0, 1, 0, 0, 0, 1) local stopTP = false local timeLeft = 10 * 60 -- Dem nguoc task.spawn(function() while timeLeft > 0 do local min = math.floor(timeLeft / 60) local sec = timeLeft % 60 TimerLabel.Text = string.format("%02d:%02d", min, sec) task.wait(1) timeLeft = timeLeft - 1 end end) -- Ham TP local function smoothTP() local char = game.Players.LocalPlayer.Character if not char then return end local hrp = char:WaitForChild("HumanoidRootPart") stopTP = false local distance = (hrp.Position - targetCFrame.Position).Magnitude local speed = 350 for i = 0, distance, speed / 10 do if stopTP then break end hrp.CFrame = hrp.CFrame:Lerp(targetCFrame, i / distance) task.wait(0.01) end if not stopTP then hrp.CFrame = targetCFrame end end -- Xu ly su kien StopButton.MouseButton1Click:Connect(function() stopTP = true end) TPOnlyButton.MouseButton1Click:Connect(function() task.spawn(smoothTP) end) LoadScriptButton.MouseButton1Click:Connect(function() task.spawn(function() loadstring(game:HttpGet("https://raw.githubusercontent.com/gumanba/Scripts/refs/heads/main/DeadRails", true))() end) task.spawn(function() loadstring(game:HttpGet('https://raw.githubusercontent.com/EdgeIY/infiniteyield/master/source'))() end) end)