-- WET HOTBAR MOBILE💧 -- HỆ THỐNG ĐIỀU KHIỂN HOTBAR V9 - MINIMALIST (QUICK FOOD SIZE UPDATE) local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local LocalPlayer = Players.LocalPlayer local PlayerGui = LocalPlayer:WaitForChild("PlayerGui") if CoreGui:FindFirstChild("MinimalistHotbarMenu") then CoreGui.MinimalistHotbarMenu:Destroy() end local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "MinimalistHotbarMenu" ScreenGui.ResetOnSpawn = false if not pcall(function() ScreenGui.Parent = CoreGui end) then ScreenGui.Parent = PlayerGui end -- BỘ BIẾN LOGIC local offsetX, offsetY = 0, 0 local step = 20 local foodSizeMultiplier = 1.0 local isEpViTriActive = true -- HÀM ÉP VỊ TRÍ & PHÓNG TO QUICK FOOD local function applyNewPosition() if not isEpViTriActive then return end pcall(function() for _, obj in ipairs(PlayerGui:GetDescendants()) do if obj:IsA("GuiObject") then local name = obj.Name:lower() -- 1. Ép vị trí thanh Hotbar chính if name == "hotbar" or name == "mainbar" or name == "bottombar" or name == "inventorybar" or name == "slots" then if obj.Parent then local layout = obj.Parent:FindFirstChildOfClass("UIListLayout") or obj.Parent:FindFirstChildOfClass("UIGridLayout") if layout then layout.Enabled = false end end obj.AnchorPoint = Vector2.new(0.5, 1) obj.Position = UDim2.new(0.5, offsetX, 1, -60 + offsetY) end -- 2. Dò quét và phóng to riêng ô Quick Food if name:find("food") or name:find("eat") or name:find("heal") or name == "quickfood" then if not obj:GetAttribute("OriginalSizeX") then obj:SetAttribute("OriginalSizeX", obj.Size.X.Offset > 0 and obj.Size.X.Offset or 60) obj:SetAttribute("OriginalSizeY", obj.Size.Y.Offset > 0 and obj.Size.Y.Offset or 60) end local origX = obj:GetAttribute("OriginalSizeX") local origY = obj:GetAttribute("OriginalSizeY") obj.Size = UDim2.new(0, origX * foodSizeMultiplier, 0, origY * foodSizeMultiplier) end end end end) end -- KHUNG MENU CHÍNH local Menu = Instance.new("Frame") Menu.Size = UDim2.new(0, 240, 0, 220) Menu.Position = UDim2.new(0.1, 0, 0.4, 0) Menu.BackgroundColor3 = Color3.fromRGB(28, 28, 30) Menu.BorderSizePixel = 0 Menu.Active = true Menu.ClipsDescendants = true Menu.Parent = ScreenGui local Corner = Instance.new("UICorner") Corner.CornerRadius = UDim.new(0, 10) Corner.Parent = Menu -- THANH TIÊU ĐỀ local DragBar = Instance.new("TextLabel") DragBar.Size = UDim2.new(1, 0, 0, 35) DragBar.BackgroundColor3 = Color3.fromRGB(38, 38, 40) DragBar.Text = " 💧 WET HOTBAR MOBILE" DragBar.TextColor3 = Color3.fromRGB(240, 240, 240) DragBar.TextXAlignment = Enum.TextXAlignment.Left DragBar.Font = Enum.Font.SourceSansBold DragBar.TextSize = 13 DragBar.Active = true DragBar.Parent = Menu local TopCorner = Instance.new("UICorner") TopCorner.CornerRadius = UDim.new(0, 10) TopCorner.Parent = DragBar -- HỆ THỐNG KÉO THẢ MOBILE local dragging, dragInput, dragStart, startPos DragBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = Menu.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) DragBar.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 Menu.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end end) -- PHẦN THÂN MENU local ContentFrame = Instance.new("Frame") ContentFrame.Size = UDim2.new(1, 0, 1, -35) ContentFrame.Position = UDim2.new(0, 0, 0, 35) ContentFrame.BackgroundTransparency = 1 ContentFrame.Parent = Menu -- NÚT THU NHỎ/PHÓNG TO MENU local MinimizeBtn = Instance.new("TextButton") MinimizeBtn.Size = UDim2.new(0, 30, 0, 25) MinimizeBtn.Position = UDim2.new(1, -35, 0, 5) MinimizeBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 55) MinimizeBtn.Text = "-" MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255) MinimizeBtn.Font = Enum.Font.SourceSansBold MinimizeBtn.TextSize = 16 MinimizeBtn.Parent = Menu local MC = Instance.new("UICorner") MC.CornerRadius = UDim.new(0, 4) MC.Parent = MinimizeBtn local isMinimized = false MinimizeBtn.MouseButton1Click:Connect(function() isMinimized = not isMinimized if isMinimized then ContentFrame.Visible = false Menu.Size = UDim2.new(0, 240, 0, 35) MinimizeBtn.Text = "+" else ContentFrame.Visible = true Menu.Size = UDim2.new(0, 240, 0, 220) MinimizeBtn.Text = "-" end end) -- CÁC NÚT DI CHUYỂN HOTBAR local function createBtn(text, pos, callback) local btn = Instance.new("TextButton") btn.Size = UDim2.new(0, 48, 0, 32) btn.Position = pos btn.BackgroundColor3 = Color3.fromRGB(48, 48, 50) btn.Text = text btn.TextColor3 = Color3.fromRGB(230, 230, 230) btn.Font = Enum.Font.SourceSansBold btn.TextSize = 14 btn.Parent = ContentFrame local c = Instance.new("UICorner") c.CornerRadius = UDim.new(0, 6) c.Parent = btn btn.MouseButton1Click:Connect(callback) end createBtn("🔼", UDim2.new(0, 96, 0, 10), function() offsetY = offsetY - step applyNewPosition() end) createBtn("🔽", UDim2.new(0, 96, 0, 45), function() offsetY = offsetY + step applyNewPosition() end) createBtn("◀️", UDim2.new(0, 43, 0, 27), function() offsetX = offsetX - step applyNewPosition() end) createBtn("▶️", UDim2.new(0, 149, 0, 27), function() offsetX = offsetX + step applyNewPosition() end) -- KHU VỰC CÂN CHỈNH KÍCH CỠ QUICK FOOD local FoodLabel = Instance.new("TextLabel") FoodLabel.Size = UDim2.new(0, 110, 0, 30) FoodLabel.Position = UDim2.new(0, 10, 0, 90) FoodLabel.BackgroundTransparency = 1 FoodLabel.Text = "Cỡ Food: 100%" FoodLabel.TextColor3 = Color3.fromRGB(200, 200, 200) FoodLabel.Font = Enum.Font.SourceSansBold FoodLabel.TextSize = 13 FoodLabel.TextXAlignment = Enum.TextXAlignment.Left FoodLabel.Parent = ContentFrame local FoodDown = Instance.new("TextButton") FoodDown.Size = UDim2.new(0, 45, 0, 28) FoodDown.Position = UDim2.new(0, 130, 0, 90) FoodDown.BackgroundColor3 = Color3.fromRGB(48, 48, 50) FoodDown.Text = "Cỡ -" FoodDown.TextColor3 = Color3.fromRGB(255, 255, 255) FoodDown.Font = Enum.Font.SourceSansBold FoodDown.TextSize = 12 FoodDown.Parent = ContentFrame local fdCorner = Instance.new("UICorner") fdCorner.CornerRadius = UDim.new(0, 6) fdCorner.Parent = FoodDown local FoodUp = Instance.new("TextButton") FoodUp.Size = UDim2.new(0, 45, 0, 28) FoodUp.Position = UDim2.new(0, 185, 0, 90) FoodUp.BackgroundColor3 = Color3.fromRGB(0, 120, 255) FoodUp.Text = "Cỡ +" FoodUp.TextColor3 = Color3.fromRGB(255, 255, 255) FoodUp.Font = Enum.Font.SourceSansBold FoodUp.TextSize = 12 FoodUp.Parent = ContentFrame local fuCorner = Instance.new("UICorner") fuCorner.CornerRadius = UDim.new(0, 6) fuCorner.Parent = FoodUp FoodUp.MouseButton1Click:Connect(function() foodSizeMultiplier = foodSizeMultiplier + 0.15 FoodLabel.Text = "Cỡ Food: " .. math.floor(foodSizeMultiplier * 100) .. "%" applyNewPosition() end) FoodDown.MouseButton1Click:Connect(function() if foodSizeMultiplier > 0.5 then foodSizeMultiplier = foodSizeMultiplier - 0.15 FoodLabel.Text = "Cỡ Food: " .. math.floor(foodSizeMultiplier * 100) .. "%" applyNewPosition() end end) -- NÚT TOGGLE KHÓA VỊ TRÍ local ToggleBtn = Instance.new("TextButton") ToggleBtn.Size = UDim2.new(1, -20, 0, 40) ToggleBtn.Position = UDim2.new(0, 10, 1, -50) ToggleBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 90) ToggleBtn.Text = "TRẠNG THÁI: ĐANG ÉP VỊ TRÍ" ToggleBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ToggleBtn.Font = Enum.Font.SourceSansBold ToggleBtn.TextSize = 13 ToggleBtn.Parent = ContentFrame local C3 = Instance.new("UICorner") C3.CornerRadius = UDim.new(0, 6) C3.Parent = ToggleBtn ToggleBtn.MouseButton1Click:Connect(function() isEpViTriActive = not isEpViTriActive ToggleBtn.Text = isEpViTriActive and "TRẠNG THÁI: ĐANG ÉP VỊ TRÍ" or "TRẠNG THÁI: ĐÃ TẮT ÉP" ToggleBtn.BackgroundColor3 = isEpViTriActive and Color3.fromRGB(0, 180, 90) or Color3.fromRGB(200, 50, 50) applyNewPosition() end) task.spawn(function() while true do if isEpViTriActive then pcall(applyNewPosition) end task.wait(0.5) end end)