-- Custom Blue GUI for VillainHub 🔫
local Player = game.Players.LocalPlayer
-- ScreenGui
local Gui = Instance.new("ScreenGui")
Gui.Name = "VillainHubGui"
Gui.Parent = Player:WaitForChild("PlayerGui")
-- Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 400, 0, 300)
MainFrame.Position = UDim2.new(0.5, -200, 0.5, -150)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 50, 200) -- Blue theme
MainFrame.BorderSizePixel = 0
MainFrame.Parent = Gui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 10)
UICorner.Parent = MainFrame
-- Drag Function
local dragging, dragInput, dragStart, startPos
local function update(input)
local delta = input.Position - dragStart
MainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end
MainFrame.InputBegan:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 then
dragging = true
dragStart = input.Position
startPos = MainFrame.Position
input.Changed:Connect(function()
if input.UserInputState == Enum.UserInputState.End then
dragging = false
end
end)
end
end)
MainFrame.InputChanged:Connect(function(input)
if input.UserInputType == Enum.UserInputType.MouseMovement then
dragInput = input
end
end)
game:GetService("UserInputService").InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
-- Title
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.BackgroundColor3 = Color3.fromRGB(20, 40, 180)
Title.Text = "🔥VillainHub 🔫"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.TextScaled = true
Title.Parent = MainFrame
-- Tabs
local TabsFrame = Instance.new("Frame")
TabsFrame.Size = UDim2.new(1, 0, 0, 40)
TabsFrame.Position = UDim2.new(0, 0, 0, 40)
TabsFrame.BackgroundColor3 = Color3.fromRGB(25, 45, 180)
TabsFrame.Parent = MainFrame
local function CreateTab(name, xOffset)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 120, 1, 0)
btn.Position = UDim2.new(0, xOffset, 0, 0)
btn.Text = name
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.BackgroundColor3 = Color3.fromRGB(30, 60, 220)
btn.Parent = TabsFrame
local uic = Instance.new("UICorner")
uic.CornerRadius = UDim.new(0,5)
uic.Parent = btn
return btn
end
local HomeTabBtn = CreateTab("🏠 Home", 0)
local TeleportsTabBtn = CreateTab("🏝 Teleports", 140)
local MiscTabBtn = CreateTab("🎲 Misc", 280)
-- Content Frame
local ContentFrame = Instance.new("Frame")
ContentFrame.Size = UDim2.new(1, -20, 1, -100)
ContentFrame.Position = UDim2.new(0, 10, 0, 90)
ContentFrame.BackgroundColor3 = Color3.fromRGB(20, 40, 180)
ContentFrame.Parent = MainFrame
-- Buttons
local function CreateButton(text, y)
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0, 360, 0, 40)
btn.Position = UDim2.new(0, 0, 0, y)
btn.Text = text
btn.BackgroundColor3 = Color3.fromRGB(30, 70, 220)
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Parent = ContentFrame
local uic = Instance.new("UICorner")
uic.CornerRadius = UDim.new(0,5)
uic.Parent = btn
return btn
end
-- Example Buttons
local AutoFarmBtn = CreateButton("Auto-Farm", 10)
local AimBtn = CreateButton("Aimbot", 60)
AutoFarmBtn.MouseButton1Click:Connect(function()
print("Auto-Farm clicked")
end)
AimBtn.MouseButton1Click:Connect(function()
print("Aimbot clicked")
end)
To embed this project on your website, copy the following code and paste it into your website's HTML: