GUI template
Key RequiredUniversal

GUI template

Universal Scriptmelvinnagy07melvinnagy07 509 views 45 executesUpdated Jan 24, 2026
0.0/ 5(1 votes)
010% Positive
Lua Script•281 lines (7477 chars)
local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local Stats = game:GetService("Stats")

local player = Players.LocalPlayer

local CONFIG = {
	KEY = "MINDYO",
	TOGGLE_KEY = Enum.KeyCode.RightShift,

	THEME = {
		BG = Color3.fromRGB(15,15,18),
		PANEL = Color3.fromRGB(25,25,30),
		ACCENT = Color3.fromRGB(120,150,255),
		TEXT = Color3.fromRGB(240,240,240),
		MUTED = Color3.fromRGB(160,160,160),
		STROKE = Color3.fromRGB(80,80,100),
		GLOW = Color3.fromRGB(140,170,255),
		SUCCESS = Color3.fromRGB(90,200,140),
		ERROR = Color3.fromRGB(220,80,80)
	},

	FEATURE_SIZE = UDim2.new(0,200,0,120),
	FEATURE_PADDING = UDim2.new(0,14,0,14),
	FEATURES_PER_ROW = 3,
	ANIM_TIME = 0.25
}

local unlocked = false
local currentPage
local pages = {}
local clicks = 0
local cps = 0

local function corner(o,r)
	local c = Instance.new("UICorner")
	c.CornerRadius = UDim.new(0,r or 10)
	c.Parent = o
end

local function stroke(o,t)
	local s = Instance.new("UIStroke")
	s.Thickness = t or 1.4
	s.Color = CONFIG.THEME.STROKE
	s.Parent = o
end

local function glow(o)
	local g = Instance.new("UIStroke")
	g.Thickness = 3
	g.Color = CONFIG.THEME.GLOW
	g.Transparency = 0.65
	g.Parent = o
end

local function tween(o,p,t)
	TweenService:Create(o,TweenInfo.new(t or CONFIG.ANIM_TIME,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),p):Play()
end

local gui = Instance.new("ScreenGui")
gui.Name = "MindYoUI"
gui.ResetOnSpawn = false
gui.Parent = player.PlayerGui

-- KEY UI
local keyFrame = Instance.new("Frame")
keyFrame.Size = UDim2.fromScale(0.32,0.28)
keyFrame.Position = UDim2.fromScale(0.34,0.36)
keyFrame.BackgroundColor3 = CONFIG.THEME.BG
keyFrame.Parent = gui
corner(keyFrame,14)
stroke(keyFrame)
glow(keyFrame)

local keyTitle = Instance.new("TextLabel")
keyTitle.Size = UDim2.new(1,0,0,42)
keyTitle.Text = "MIND YO DAM BUSINESS"
keyTitle.Font = Enum.Font.GothamBold
keyTitle.TextSize = 20
keyTitle.TextColor3 = CONFIG.THEME.TEXT
keyTitle.BackgroundTransparency = 1
keyTitle.Parent = keyFrame

local keyBox = Instance.new("TextBox")
keyBox.Size = UDim2.new(1,-40,0,36)
keyBox.Position = UDim2.new(0,20,0,60)
keyBox.PlaceholderText = "ENTER KEY"
keyBox.Font = Enum.Font.Gotham
keyBox.TextSize = 14
keyBox.TextColor3 = CONFIG.THEME.TEXT
keyBox.BackgroundColor3 = CONFIG.THEME.PANEL
keyBox.ClearTextOnFocus = false
keyBox.Parent = keyFrame
corner(keyBox,8)
stroke(keyBox)

local keyStatus = Instance.new("TextLabel")
keyStatus.Size = UDim2.new(1,0,0,24)
keyStatus.Position = UDim2.new(0,0,1,-28)
keyStatus.BackgroundTransparency = 1
keyStatus.Font = Enum.Font.Gotham
keyStatus.TextSize = 13
keyStatus.TextColor3 = CONFIG.THEME.MUTED
keyStatus.Parent = keyFrame

-- MAIN UI
local main = Instance.new("Frame")
main.Size = UDim2.fromScale(0.6,0.7)
main.Position = UDim2.fromScale(0.2,0.15)
main.BackgroundColor3 = CONFIG.THEME.BG
main.Visible = false
main.Parent = gui
corner(main,14)
stroke(main)
glow(main)

do
	local dragging,startPos,startInput
	main.InputBegan:Connect(function(i)
		if i.UserInputType == Enum.UserInputType.MouseButton1 then
			dragging = true
			startInput = i.Position
			startPos = main.Position
		end
	end)
	UIS.InputChanged:Connect(function(i)
		if dragging and i.UserInputType == Enum.UserInputType.MouseMovement then
			local d = i.Position - startInput
			main.Position = UDim2.new(startPos.X.Scale,startPos.X.Offset+d.X,startPos.Y.Scale,startPos.Y.Offset+d.Y)
		end
	end)
	UIS.InputEnded:Connect(function(i)
		if i.UserInputType == Enum.UserInputType.MouseButton1 then
			dragging = false
		end
	end)
end

local tabBar = Instance.new("ScrollingFrame")
tabBar.Size = UDim2.new(1,-20,0,44)
tabBar.Position = UDim2.new(0,10,0,10)
tabBar.ScrollBarThickness = 4
tabBar.ScrollingDirection = Enum.ScrollingDirection.X
tabBar.BackgroundTransparency = 1
tabBar.Parent = main

local tabLayout = Instance.new("UIListLayout")
tabLayout.FillDirection = Enum.FillDirection.Horizontal
tabLayout.Padding = UDim.new(0,8)
tabLayout.Parent = tabBar

tabLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
	tabBar.CanvasSize = UDim2.new(0,tabLayout.AbsoluteContentSize.X+10,0,0)
end)

local function createPage(name)
	local page = Instance.new("Frame")
	page.Size = UDim2.new(1,-20,1,-70)
	page.Position = UDim2.new(0,10,0,60)
	page.BackgroundTransparency = 1
	page.Visible = false
	page.Parent = main
	pages[name] = page

	local container = Instance.new("Frame")
	container.Size = UDim2.new(1,0,1,0)
	container.BackgroundTransparency = 1
	container.Parent = page

	local grid = Instance.new("UIGridLayout")
	grid.CellSize = CONFIG.FEATURE_SIZE
	grid.CellPadding = CONFIG.FEATURE_PADDING
	grid.FillDirectionMaxCells = CONFIG.FEATURES_PER_ROW
	grid.Parent = container

	return page,container
end

local function createTab(name)
	local btn = Instance.new("TextButton")
	btn.Size = UDim2.new(0,math.max(120,#name*10),1,0)
	btn.Text = name
	btn.Font = Enum.Font.Gotham
	btn.TextSize = 14
	btn.TextColor3 = CONFIG.THEME.MUTED
	btn.BackgroundColor3 = CONFIG.THEME.PANEL
	btn.Parent = tabBar
	corner(btn,8)
	stroke(btn)

	local page,container = createPage(name)

	btn.MouseButton1Click:Connect(function()
		if not unlocked then return end
		if currentPage then currentPage.Visible = false end
		for _,b in ipairs(tabBar:GetChildren()) do
			if b:IsA("TextButton") then
				b.TextColor3 = CONFIG.THEME.MUTED
			end
		end
		btn.TextColor3 = CONFIG.THEME.TEXT
		page.Visible = true
		currentPage = page
	end)

	return container,btn
end

local function addFeature(container,title)
	local box = Instance.new("Frame")
	box.BackgroundColor3 = CONFIG.THEME.PANEL
	box.Parent = container
	corner(box,10)
	stroke(box)

	local lbl = Instance.new("TextLabel")
	lbl.Size = UDim2.new(1,-10,0,28)
	lbl.Position = UDim2.new(0,5,0,5)
	lbl.Text = title
	lbl.Font = Enum.Font.GothamBold
	lbl.TextSize = 14
	lbl.TextColor3 = CONFIG.THEME.TEXT
	lbl.BackgroundTransparency = 1
	lbl.Parent = box

	return lbl
end

local homeContainer,homeTab = createTab("Home")
local settingsContainer,_ = createTab("Settings")
local statsContainer,_ = createTab("Stats")

addFeature(homeContainer,"Welcome")
addFeature(homeContainer,"Feature Slot")
addFeature(settingsContainer,"UI Toggle")
addFeature(settingsContainer,"Theme Option")

local fpsLabel = addFeature(statsContainer,"FPS")
local pingLabel = addFeature(statsContainer,"Ping")
local cpsLabel = addFeature(statsContainer,"CPS")

UIS.InputBegan:Connect(function(i,g)
	if g then return end
	if i.UserInputType == Enum.UserInputType.MouseButton1 then
		clicks += 1
	end
end)

RunService.RenderStepped:Connect(function(dt)
	cps = clicks
	clicks = 0
	fpsLabel.Text = "FPS: "..math.floor(1/dt)
	pingLabel.Text = "Ping: "..Stats.Network.ServerStatsItem["Data Ping"]:GetValueString()
	cpsLabel.Text = "CPS: "..cps
end)

keyBox.FocusLost:Connect(function(enter)
	if not enter then return end
	if keyBox.Text == CONFIG.KEY then
		unlocked = true
		keyStatus.Text = "ACCESS GRANTED"
		keyStatus.TextColor3 = CONFIG.THEME.SUCCESS
		tween(keyFrame,{Transparency=1})
		task.wait(0.25)
		keyFrame.Visible = false
		main.Visible = true
		homeTab.MouseButton1Click:Fire()
	else
		keyStatus.Text = "INVALID KEY"
		keyStatus.TextColor3 = CONFIG.THEME.ERROR
	end
end)

UIS.InputBegan:Connect(function(i,g)
	if g or not unlocked then return end
	if i.KeyCode == CONFIG.TOGGLE_KEY then
		main.Visible = not main.Visible
	end
end

Features & Information

Ya it might be a bit complex for some people but ya

Community Comments (1)

ifprogodifprogodMay 18, 2026

Not work

More Scripts for Universal Scripts