Faris Hub by Faresbh5
Key RequiredUniversal

Faris Hub by Faresbh5

Universal Scriptfarisbh1438farisbh1438 1.8K views 2.6K executesUpdated Jun 18, 2026
2.5/ 5(2 votes)
1150% Positive
Lua Script•994 lines (32862 chars)
-- Services
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local Lighting = game:GetService("Lighting")

-- Player GUI
local player = Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "CustomToggleMenu"
screenGui.ResetOnSpawn = false
screenGui.IgnoreGuiInset = true
screenGui.DisplayOrder = 999999
screenGui.Parent = playerGui

-- Design Colors & Constants
local DARK_SOFT_BLUE = Color3.fromRGB(35, 45, 65)
local WAY_DARKER_BLUE = Color3.fromRGB(12, 16, 26)
local GREEN_TOGGLE = Color3.fromRGB(46, 204, 113)
local RED_CLOSE = Color3.fromRGB(231, 76, 60)

local CYAN_BOX = Color3.fromRGB(0, 210, 255)
local BLUE_TOGGLE_ON = Color3.fromRGB(0, 100, 255)
local BLUE_TOGGLE_OFF = Color3.fromRGB(100, 150, 200)

-- UI Sizes
local RECT_SIZE = UDim2.new(0, 240, 0, 440) 
local CIRCLE_SIZE = UDim2.new(0, 60, 0, 60)

-- Strict Session Memory
local viewportSize = workspace.CurrentCamera.ViewportSize
local savedRectPosition = UDim2.new(0, (viewportSize.X / 2) - 120, 0, (viewportSize.Y / 2) - 220)
local savedCirclePosition = UDim2.new(0, 15, 0, (viewportSize.Y / 2) - 30)
local isMinimized = false

-- Feature States
local infJumpEnabled = false
local noclipEnabled = false
local invisibleEnabled = false
local spinEnabled = false
local espEnabled = false
local fullbrightEnabled = false
local espConnections = {}
local selectedTargetPlayer = nil

-- Config States for Sliders
local currentWalkSpeed = 16
local currentJumpPower = 50
local currentSpinSpeed = 1

-- Character Backup Caches
local invisibleSavedParts = {}

-- Lighting Backup Cache
local lightingBackup = {
	Ambient = Lighting.Ambient,
	OutdoorAmbient = Lighting.OutdoorAmbient,
	Brightness = Lighting.Brightness,
	ClockTime = Lighting.ClockTime,
	GlobalShadows = Lighting.GlobalShadows
}

-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = RECT_SIZE
mainFrame.Position = savedRectPosition
mainFrame.BackgroundColor3 = DARK_SOFT_BLUE
mainFrame.BorderSizePixel = 0
mainFrame.Active = false
mainFrame.ClipsDescendants = true
mainFrame.Parent = screenGui

local mainCorner = Instance.new("UICorner")
mainCorner.CornerRadius = UDim.new(0, 14)
mainCorner.Parent = mainFrame

local uiStroke = Instance.new("UIStroke")
uiStroke.Name = "MenuOutline"
uiStroke.Color = WAY_DARKER_BLUE
uiStroke.Thickness = 3 
uiStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
uiStroke.Parent = mainFrame

-- Top Drag Bar
local topDragBar = Instance.new("Frame")
topDragBar.Name = "TopDragBar"
topDragBar.Size = UDim2.new(1, 0, 0, 40)
topDragBar.Position = UDim2.new(0, 0, 0, 0)
topDragBar.BackgroundTransparency = 1
topDragBar.Active = true
topDragBar.Parent = mainFrame

-- Pastel Blue Top Background
local PASTEL_BLUE = Color3.fromRGB(173, 216, 230)
local topBackground = Instance.new("Frame")
topBackground.Name = "TopBackground"
topBackground.Size = UDim2.new(1, 0, 0, 40)
topBackground.Position = UDim2.new(0, 0, 0, 0)
topBackground.BackgroundColor3 = PASTEL_BLUE
topBackground.BorderSizePixel = 0
topBackground.ZIndex = 4
topBackground.Parent = topDragBar

local topCorner = Instance.new("UICorner")
topCorner.CornerRadius = UDim.new(0, 14)
topCorner.Parent = topBackground

local patch = Instance.new("Frame")
patch.Size = UDim2.new(1, 0, 0, 10)
patch.Position = UDim2.new(0, 0, 0, 30)
patch.BackgroundColor3 = PASTEL_BLUE
patch.BorderSizePixel = 0
patch.ZIndex = 4
patch.Parent = topBackground

local hubTitle = Instance.new("TextLabel")
hubTitle.Name = "HubTitle"
hubTitle.Size = UDim2.new(1, -70, 1, 0)
hubTitle.Position = UDim2.new(0, 12, 0, 4)
hubTitle.BackgroundTransparency = 1
hubTitle.Text = "Faris Hub"
hubTitle.TextColor3 = Color3.fromRGB(255, 255, 255)
hubTitle.Font = Enum.Font.GothamBold
hubTitle.TextSize = 16
hubTitle.TextXAlignment = Enum.TextXAlignment.Left
hubTitle.ZIndex = 6
hubTitle.Parent = topDragBar

-- Red Close Button
local closeButton = Instance.new("TextButton")
closeButton.Name = "CloseButton"
closeButton.Size = UDim2.new(0, 22, 0, 22)
closeButton.Position = UDim2.new(1, -28, 0, 10) 
closeButton.BackgroundColor3 = RED_CLOSE
closeButton.Text = "" 
closeButton.BorderSizePixel = 0
closeButton.ZIndex = 5
closeButton.Parent = mainFrame

local redCorner = Instance.new("UICorner")
redCorner.CornerRadius = UDim.new(1, 0)
redCorner.Parent = closeButton

-- Green Toggle Button
local toggleButton = Instance.new("TextButton")
toggleButton.Name = "ToggleButton"
toggleButton.Size = UDim2.new(0, 22, 0, 22)
toggleButton.Position = UDim2.new(1, -56, 0, 10) 
toggleButton.BackgroundColor3 = GREEN_TOGGLE
toggleButton.Text = "" 
toggleButton.BorderSizePixel = 0
toggleButton.ZIndex = 5
toggleButton.Parent = mainFrame

local greenCorner = Instance.new("UICorner")
greenCorner.CornerRadius = UDim.new(1, 0)
greenCorner.Parent = toggleButton

--------------------------------------------------------------------------------
-- SCROLLING CONTAINER ENGINE
--------------------------------------------------------------------------------
local contentFrame = Instance.new("ScrollingFrame")
contentFrame.Name = "ContentFrame"
contentFrame.Size = UDim2.new(1, -12, 1, -55)
contentFrame.Position = UDim2.new(0, 10, 0, 50)
contentFrame.BackgroundTransparency = 1
contentFrame.ClipsDescendants = false -- Set to false to allow expanded dropdown visibility
contentFrame.CanvasSize = UDim2.new(0, 0, 0, 0) 
contentFrame.ScrollBarThickness = 4
contentFrame.ScrollBarImageColor3 = CYAN_BOX
contentFrame.Parent = mainFrame

local listLayout = Instance.new("UIListLayout")
listLayout.Padding = UDim.new(0, 10)
listLayout.SortOrder = Enum.SortOrder.LayoutOrder
listLayout.Parent = contentFrame

-- Automatic Canvas Scaler
listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
	contentFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y + 15)
end)

-- Click/Drag Detector for Circle Mode
local circleClicker = Instance.new("TextButton")
circleClicker.Name = "CircleClicker"
circleClicker.Size = UDim2.new(1, 0, 1, 0)
circleClicker.BackgroundTransparency = 1
circleClicker.Text = ""
circleClicker.Visible = false
circleClicker.ZIndex = 10
circleClicker.Parent = mainFrame

-- Circle FH Label
local circleLabel = Instance.new("TextLabel")
circleLabel.Name = "CircleLabel"
circleLabel.Size = UDim2.new(1, 0, 1, 0)
circleLabel.BackgroundTransparency = 1
circleLabel.Text = "FH"
circleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
circleLabel.Font = Enum.Font.GothamBold
circleLabel.TextSize = 18
circleLabel.Visible = false
circleLabel.ZIndex = 2
circleLabel.Parent = mainFrame

--------------------------------------------------------------------------------
-- ACTIVE MOTION & SIMULATION ENGINE LOOPS
--------------------------------------------------------------------------------
RunService.PostSimulation:Connect(function()
	if player.Character then
		local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
		local rootPart = player.Character:FindFirstChild("HumanoidRootPart")
		
		if humanoid then
			humanoid.WalkSpeed = currentWalkSpeed
			humanoid.UseJumpPower = true
			humanoid.JumpPower = currentJumpPower
		end
		
		-- Server-Replicated Spin Engine
		if spinEnabled and rootPart then
			rootPart.CFrame = rootPart.CFrame * CFrame.Angles(0, math.rad(currentSpinSpeed), 0)
		end
		
		-- Local visibility system loop
		if invisibleEnabled then
			for _, child in ipairs(player.Character:GetDescendants()) do
				if child:IsA("BasePart") or child:IsA("Decal") then
					if child.Name ~= "HumanoidRootPart" then
						child.Transparency = 0.5
					end
				end
			end
		end
	end
end)

--------------------------------------------------------------------------------
-- SLIDER CREATION ENGINE (FULLY CIRCULAR AND PILL DESIGN)
--------------------------------------------------------------------------------
local function createSliderRow(titleName, minVal, maxVal, defaultVal, layoutOrder)
	local rowFrame = Instance.new("Frame")
	rowFrame.Name = titleName .. "Row"
	rowFrame.Size = UDim2.new(1, -8, 0, 50)
	rowFrame.BackgroundColor3 = CYAN_BOX
	rowFrame.BorderSizePixel = 0
	rowFrame.LayoutOrder = layoutOrder
	rowFrame.Parent = contentFrame
	
	local rowCorner = Instance.new("UICorner")
	rowCorner.CornerRadius = UDim.new(0, 25) 
	rowCorner.Parent = rowFrame
	
	local rowStroke = Instance.new("UIStroke")
	rowStroke.Color = WAY_DARKER_BLUE
	rowStroke.Thickness = 1.5
	rowStroke.Parent = rowFrame

	local textLabel = Instance.new("TextLabel")
	textLabel.Size = UDim2.new(1, -20, 0, 22)
	textLabel.Position = UDim2.new(0, 16, 0, 2)
	textLabel.BackgroundTransparency = 1
	textLabel.Text = titleName .. ": " .. tostring(defaultVal)
	textLabel.TextColor3 = WAY_DARKER_BLUE
	textLabel.Font = Enum.Font.GothamBold
	textLabel.TextSize = 12
	textLabel.TextXAlignment = Enum.TextXAlignment.Left
	textLabel.Parent = rowFrame

	local sliderTrack = Instance.new("TextButton")
	sliderTrack.Name = "SliderTrack"
	sliderTrack.Size = UDim2.new(1, -32, 0, 10)
	sliderTrack.Position = UDim2.new(0, 16, 0, 28)
	sliderTrack.BackgroundColor3 = WAY_DARKER_BLUE
	sliderTrack.BackgroundTransparency = 0.6
	sliderTrack.Text = ""
	sliderTrack.BorderSizePixel = 0
	sliderTrack.Parent = rowFrame
	
	local trackCorner = Instance.new("UICorner")
	trackCorner.CornerRadius = UDim.new(1, 0)
	trackCorner.Parent = sliderTrack

	local sliderKnob = Instance.new("Frame")
	sliderKnob.Name = "SliderKnob"
	sliderKnob.Size = UDim2.new(0, 16, 0, 16)
	sliderKnob.Position = UDim2.new(0, 0, 0.5, -8)
	sliderKnob.BackgroundColor3 = BLUE_TOGGLE_ON
	sliderKnob.BorderSizePixel = 0
	sliderKnob.Parent = sliderTrack
	
	local knobCorner = Instance.new("UICorner")
	knobCorner.CornerRadius = UDim.new(1, 0) 
	knobCorner.Parent = sliderKnob
	
	local knobStroke = Instance.new("UIStroke")
	knobStroke.Color = WAY_DARKER_BLUE
	knobStroke.Thickness = 1.5
	knobStroke.Parent = sliderKnob

	local pct = (defaultVal - minVal) / (maxVal - minVal)
	sliderKnob.Position = UDim2.new(pct, -8, 0.5, -8)

	local sliderDragging = false
	
	local function updateSlider(input)
		local trackWidth = sliderTrack.AbsoluteSize.X
		local relativeX = input.Position.X - sliderTrack.AbsolutePosition.X
		local clampedX = math.clamp(relativeX, 0, trackWidth)
		local ratio = clampedX / trackWidth
		
		local exactValue = minVal + (ratio * (maxVal - minVal))
		local finalValue = math.round(exactValue)
		
		textLabel.Text = titleName .. ": " .. tostring(finalValue)
		sliderKnob.Position = UDim2.new(ratio, -8, 0.5, -8)
		
		if titleName == "speed slider" then
			currentWalkSpeed = finalValue
		elseif titleName == "jump slider" then
			currentJumpPower = finalValue
		elseif titleName == "spin speed slider" then
			currentSpinSpeed = finalValue
		end
	end

	sliderTrack.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			sliderDragging = true
			updateSlider(input)
		end
	end)

	UserInputService.InputChanged:Connect(function(input)
		if sliderDragging and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
			updateSlider(input)
		end
	end)

	UserInputService.InputEnded:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			sliderDragging = false
		end
	end)
end

--------------------------------------------------------------------------------
-- ACTIVE INFINITE JUMP FUNCTIONALITY
--------------------------------------------------------------------------------
UserInputService.JumpRequest:Connect(function()
	if infJumpEnabled and player.Character then
		local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
		local rootPart = player.Character:FindFirstChild("HumanoidRootPart")
		
		if humanoid and rootPart then
			humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
			rootPart.AssemblyLinearVelocity = Vector3.new(rootPart.AssemblyLinearVelocity.X, humanoid.JumpPower, rootPart.AssemblyLinearVelocity.Z)
		end
	end
end)

--------------------------------------------------------------------------------
-- ACTIVE NOCLIP ENGINE
--------------------------------------------------------------------------------
RunService.Stepped:Connect(function()
	if noclipEnabled and player.Character then
		for _, part in ipairs(player.Character:GetDescendants()) do
			if part:IsA("BasePart") then
				part.CanCollide = false
			end
		end
	end
end)

--------------------------------------------------------------------------------
-- RUN CLEAN CHARACTER INVISIBLE ENGINE
--------------------------------------------------------------------------------
local function runInvisibleEngine(state)
	invisibleEnabled = state
	local character = player.Character
	if not character then return end
	
	local lowerTorso = character:FindFirstChild("LowerTorso") or character:FindFirstChild("Torso")
	local rootPart = character:FindFirstChild("HumanoidRootPart")
	
	if state then
		table.clear(invisibleSavedParts)
		for _, child in ipairs(character:GetDescendants()) do
			if child:IsA("BasePart") or child:IsA("Decal") then
				invisibleSavedParts[child] = child.Transparency
			end
		end

		if lowerTorso and rootPart then
			local rootJoint = rootPart:FindFirstChild("RootJoint") or lowerTorso:FindFirstChild("RootJoint")
			if rootJoint then
				invisibleSavedParts["RootJoint_Obj"] = rootJoint
				invisibleSavedParts["RootJoint_Parent"] = rootJoint.Parent
				rootJoint.Parent = nil
			end
		end
	else
		for part, originalTransparency in pairs(invisibleSavedParts) do
			if typeof(part) == "Instance" and part:IsA("BasePart") or part:IsA("Decal") then
				if part.Parent then
					part.Transparency = originalTransparency
				end
			end
		end

		local savedJoint = invisibleSavedParts["RootJoint_Obj"]
		local savedJointParent = invisibleSavedParts["RootJoint_Parent"]
		if savedJoint and savedJointParent then
			savedJoint.Parent = savedJointParent
		end
		
		table.clear(invisibleSavedParts)
	end
end

player.CharacterAdded:Connect(function()
	if invisibleEnabled then
		task.wait(0.5)
		runInvisibleEngine(true)
	end
end)

--------------------------------------------------------------------------------
-- ACTIVE CLIENT-SIDE BLUE ESP ENGINE WITH DETAILED TAGS
--------------------------------------------------------------------------------
local function clearESP()
	for _, obj in ipairs(workspace:GetDescendants()) do
		if (obj:IsA("Highlight") or obj:IsA("BillboardGui")) and (obj.Name == "FarisHubESP" or obj.Name == "FarisHubTag") then
			obj:Destroy()
		end
	end
	for _, conn in ipairs(espConnections) do
		if conn then conn:Disconnect() end
	end
	espConnections = {}
end

local function applyESP(targetPlayer)
	if targetPlayer == player then return end 
	
	local function addESPParts(character)
		if not character then return end
		
		local oldHighlight = character:FindFirstChild("FarisHubESP")
		if oldHighlight then oldHighlight:Destroy() end
		local oldTag = character:FindFirstChild("FarisHubTag")
		if oldTag then oldTag:Destroy() end
		
		local head = character:WaitForChild("Head", 5)
		if not head then return end

		local highlight = Instance.new("Highlight")
		highlight.Name = "FarisHubESP"
		highlight.FillColor = Color3.fromRGB(0, 162, 255)
		highlight.FillTransparency = 0.5
		highlight.OutlineColor = Color3.fromRGB(255, 255, 255)
		highlight.OutlineTransparency = 0
		highlight.Adornee = character
		highlight.Parent = character

		local billboard = Instance.new("BillboardGui")
		billboard.Name = "FarisHubTag"
		billboard.Size = UDim2.new(0, 200, 0, 60)
		billboard.AlwaysOnTop = true
		billboard.ExtentsOffset = Vector3.new(0, 3, 0)
		billboard.Adornee = head
		billboard.Parent = character

		local textLabel = Instance.new("TextLabel")
		textLabel.Size = UDim2.new(1, 0, 1, 0)
		textLabel.BackgroundTransparency = 1
		textLabel.TextColor3 = Color3.fromRGB(0, 190, 255)
		textLabel.Font = Enum.Font.GothamBold
		textLabel.TextSize = 13
		textLabel.TextStrokeTransparency = 0
		textLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)
		
		local age = targetPlayer.AccountAge
		textLabel.Text = string.format("%s\n(@%s)\n[Age: %d days]", targetPlayer.DisplayName, targetPlayer.Name, age)
		textLabel.Parent = billboard
	end

	if targetPlayer.Character then
		addESPParts(targetPlayer.Character)
	end
	
	local charAddedConn = targetPlayer.CharacterAdded:Connect(addESPParts)
	table.insert(espConnections, charAddedConn)
end

local function runESPEngine()
	clearESP()
	if not espEnabled then return end
	
	for _, p in ipairs(Players:GetPlayers()) do
		applyESP(p)
	end
	
	local playerAddedConn = Players.PlayerAdded:Connect(applyESP)
	local playerRemovingConn = Players.PlayerRemoving:Connect(function(p)
		if p.Character then
			local t = p.Character:FindFirstChild("FarisHubTag")
			local h = p.Character:FindFirstChild("FarisHubESP")
			if t then t:Destroy() end
			if h then h:Destroy() end
		end
	end)
	
	table.insert(espConnections, playerAddedConn)
	table.insert(espConnections, playerRemovingConn)
end

--------------------------------------------------------------------------------
-- ACTIVE FULLBRIGHT LOOP ENGINE
--------------------------------------------------------------------------------
RunService.RenderStepped:Connect(function()
	if fullbrightEnabled then
		Lighting.Ambient = Color3.fromRGB(255, 255, 255)
		Lighting.OutdoorAmbient = Color3.fromRGB(255, 255, 255)
		Lighting.Brightness = 2
		Lighting.ClockTime = 14
		Lighting.GlobalShadows = false
	end
end)

--------------------------------------------------------------------------------
-- ACTION BUTTON SYSTEM
--------------------------------------------------------------------------------
local function createActionButtonRow(titleName, buttonText, layoutOrder, callback)
	local rowFrame = Instance.new("Frame")
	rowFrame.Name = titleName .. "Row"
	rowFrame.Size = UDim2.new(1, -8, 0, 45)
	rowFrame.BackgroundColor3 = CYAN_BOX
	rowFrame.BorderSizePixel = 0
	rowFrame.LayoutOrder = layoutOrder
	rowFrame.Parent = contentFrame
	
	local rowCorner = Instance.new("UICorner")
	rowCorner.CornerRadius = UDim.new(0, 22)
	rowCorner.Parent = rowFrame
	
	local rowStroke = Instance.new("UIStroke")
	rowStroke.Color = WAY_DARKER_BLUE
	rowStroke.Thickness = 1.5
	rowStroke.Parent = rowFrame

	local textLabel = Instance.new("TextLabel")
	textLabel.Size = UDim2.new(1, -115, 1, 0)
	textLabel.Position = UDim2.new(0, 16, 0, 0)
	textLabel.BackgroundTransparency = 1
	textLabel.Text = titleName
	textLabel.TextColor3 = WAY_DARKER_BLUE
	textLabel.Font = Enum.Font.GothamBold
	textLabel.TextSize = 14
	textLabel.TextXAlignment = Enum.TextXAlignment.Left
	textLabel.Parent = rowFrame

	local actionBtn = Instance.new("TextButton")
	actionBtn.Name = "ActionBtn"
	actionBtn.Size = UDim2.new(0, 80, 0, 26)
	actionBtn.Position = UDim2.new(1, -96, 0.5, -13)
	actionBtn.BackgroundColor3 = BLUE_TOGGLE_ON
	actionBtn.Text = buttonText
	actionBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
	actionBtn.Font = Enum.Font.GothamBold
	actionBtn.TextSize = 11
	actionBtn.BorderSizePixel = 0
	actionBtn.Parent = rowFrame
	
	local btnCorner = Instance.new("UICorner")
	btnCorner.CornerRadius = UDim.new(0, 6)
	btnCorner.Parent = actionBtn
	
	local btnStroke = Instance.new("UIStroke")
	btnStroke.Color = WAY_DARKER_BLUE
	btnStroke.Thickness = 1
	btnStroke.Parent = actionBtn

	actionBtn.MouseButton1Click:Connect(callback)
end

--------------------------------------------------------------------------------
-- DYNAMIC DROPDOWN SELECTION SYSTEM (ABOVE VOID KILL)
--------------------------------------------------------------------------------
local function createDropdownRow(titleName, layoutOrder)
	local rowFrame = Instance.new("Frame")
	rowFrame.Name = titleName .. "Row"
	rowFrame.Size = UDim2.new(1, -8, 0, 45)
	rowFrame.BackgroundColor3 = CYAN_BOX
	rowFrame.BorderSizePixel = 0
	rowFrame.LayoutOrder = layoutOrder
	rowFrame.ZIndex = 100
	rowFrame.Parent = contentFrame
	
	local rowCorner = Instance.new("UICorner")
	rowCorner.CornerRadius = UDim.new(0, 22)
	rowCorner.Parent = rowFrame
	
	local rowStroke = Instance.new("UIStroke")
	rowStroke.Color = WAY_DARKER_BLUE
	rowStroke.Thickness = 1.5
	rowStroke.Parent = rowFrame

	local textLabel = Instance.new("TextLabel")
	textLabel.Size = UDim2.new(1, -125, 1, 0)
	textLabel.Position = UDim2.new(0, 16, 0, 0)
	textLabel.BackgroundTransparency = 1
	textLabel.Text = titleName
	textLabel.TextColor3 = WAY_DARKER_BLUE
	textLabel.Font = Enum.Font.GothamBold
	textLabel.TextSize = 13
	textLabel.TextXAlignment = Enum.TextXAlignment.Left
	textLabel.ZIndex = 101
	textLabel.Parent = rowFrame

	local openBtn = Instance.new("TextButton")
	openBtn.Name = "OpenBtn"
	openBtn.Size = UDim2.new(0, 95, 0, 26)
	openBtn.Position = UDim2.new(1, -111, 0.5, -13)
	openBtn.BackgroundColor3 = BLUE_TOGGLE_ON
	openBtn.Text = "Select Target"
	openBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
	openBtn.Font = Enum.Font.GothamBold
	openBtn.TextSize = 10
	openBtn.BorderSizePixel = 0
	openBtn.ZIndex = 101
	openBtn.Parent = rowFrame
	
	local btnCorner = Instance.new("UICorner")
	btnCorner.CornerRadius = UDim.new(0, 6)
	btnCorner.Parent = openBtn

	-- Dropdown Expanded Window Menu Container Frame
	local dropContainer = Instance.new("ScrollingFrame")
	dropContainer.Name = "DropContainer"
	dropContainer.Size = UDim2.new(1, 0, 0, 120)
	dropContainer.Position = UDim2.new(0, 0, 1, 5)
	dropContainer.BackgroundColor3 = WAY_DARKER_BLUE
	dropContainer.Visible = false
	dropContainer.BorderSizePixel = 0
	dropContainer.ZIndex = 200
	dropContainer.ScrollBarThickness = 4
	dropContainer.ScrollBarImageColor3 = CYAN_BOX
	dropContainer.CanvasSize = UDim2.new(0, 0, 0, 0)
	dropContainer.Parent = rowFrame
	
	local dropCorner = Instance.new("UICorner")
	dropCorner.CornerRadius = UDim.new(0, 10)
	dropCorner.Parent = dropContainer
	
	local dropList = Instance.new("UIListLayout")
	dropList.Padding = UDim.new(0, 4)
	dropList.SortOrder = Enum.SortOrder.LayoutOrder
	dropList.Parent = dropContainer

	dropList:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
		dropContainer.CanvasSize = UDim2.new(0, 0, 0, dropList.AbsoluteContentSize.Y + 6)
	end)

	local function refreshDropdown()
		for _, oldItem in ipairs(dropContainer:GetChildren()) do
			if oldItem:IsA("TextButton") then oldItem:Destroy() end
		end
		
		for _, p in ipairs(Players:GetPlayers()) do
			if p ~= player then
				local choiceBtn = Instance.new("TextButton")
				choiceBtn.Size = UDim2.new(1, -8, 0, 25)
				choiceBtn.BackgroundColor3 = DARK_SOFT_BLUE
				choiceBtn.Text = p.DisplayName .. " (@" .. p.Name .. ")"
				choiceBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
				choiceBtn.Font = Enum.Font.Gotham
				choiceBtn.TextSize = 10
				choiceBtn.BorderSizePixel = 0
				choiceBtn.ZIndex = 201
				choiceBtn.Parent = dropContainer
				
				local choiceCorner = Instance.new("UICorner")
				choiceCorner.CornerRadius = UDim.new(0, 4)
				choiceCorner.Parent = choiceBtn
				
				choiceBtn.MouseButton1Click:Connect(function()
					selectedTargetPlayer = p
					openBtn.Text = p.Name
					dropContainer.Visible = false
				end)
			end
		end
	end

	openBtn.MouseButton1Click:Connect(function()
		dropContainer.Visible = not dropContainer.Visible
		if dropContainer.Visible then
			refreshDropdown()
		end
	end)

	Players.PlayerAdded:Connect(refreshDropdown)
	Players.PlayerRemoving:Connect(function(removed)
		if selectedTargetPlayer == removed then
			selectedTargetPlayer = nil
			openBtn.Text = "Select Target"
		end
		refreshDropdown()
	end)
end

--------------------------------------------------------------------------------
-- CREATING CYAN RECTANGLES WITH TITLES & BLUE TOGGLES
--------------------------------------------------------------------------------
local function createToggleRow(titleName, layoutOrder)
	local rowFrame = Instance.new("Frame")
	rowFrame.Name = titleName .. "Row"
	rowFrame.Size = UDim2.new(1, -8, 0, 45)
	rowFrame.BackgroundColor3 = CYAN_BOX
	rowFrame.BorderSizePixel = 0
	rowFrame.LayoutOrder = layoutOrder
	rowFrame.Parent = contentFrame
	
	local rowCorner = Instance.new("UICorner")
	rowCorner.CornerRadius = UDim.new(0, 22)
	rowCorner.Parent = rowFrame
	
	local rowStroke = Instance.new("UIStroke")
	rowStroke.Color = WAY_DARKER_BLUE
	rowStroke.Thickness = 1.5
	rowStroke.Parent = rowFrame

	local textLabel = Instance.new("TextLabel")
	textLabel.Size = UDim2.new(1, -65, 1, 0)
	textLabel.Position = UDim2.new(0, 60, 0, 0)
	textLabel.BackgroundTransparency = 1
	textLabel.Text = titleName
	textLabel.TextColor3 = WAY_DARKER_BLUE
	textLabel.Font = Enum.Font.GothamBold
	textLabel.TextSize = 14
	textLabel.TextXAlignment = Enum.TextXAlignment.Left
	textLabel.Parent = rowFrame

	local toggleTrack = Instance.new("TextButton")
	toggleTrack.Name = "ToggleTrack"
	toggleTrack.Size = UDim2.new(0, 40, 0, 22)
	toggleTrack.Position = UDim2.new(0, 10, 0.5, -11)
	toggleTrack.BackgroundColor3 = BLUE_TOGGLE_OFF
	toggleTrack.Text = ""
	toggleTrack.BorderSizePixel = 0
	toggleTrack.Parent = rowFrame
	
	local trackCorner = Instance.new("UICorner")
	trackCorner.CornerRadius = UDim.new(1, 0)
	trackCorner.Parent = toggleTrack
	
	local trackStroke = Instance.new("UIStroke")
	trackStroke.Color = WAY_DARKER_BLUE
	trackStroke.Thickness = 1
	trackStroke.Parent = toggleTrack

	local toggleSlider = Instance.new("Frame")
	toggleSlider.Name = "ToggleSlider"
	toggleSlider.Size = UDim2.new(0, 16, 0, 16)
	toggleSlider.Position = UDim2.new(0, 3, 0.5, -8)
	toggleSlider.BackgroundColor3 = BLUE_TOGGLE_ON
	toggleSlider.BorderSizePixel = 0
	toggleSlider.Parent = toggleTrack
	
	local sliderCorner = Instance.new("UICorner")
	sliderCorner.CornerRadius = UDim.new(1, 0)
	sliderCorner.Parent = toggleSlider
	
	local sliderStroke = Instance.new("UIStroke")
	sliderStroke.Color = WAY_DARKER_BLUE
	sliderStroke.Thickness = 1
	sliderStroke.Parent = toggleSlider

	local toggledOn = false
	toggleTrack.MouseButton1Click:Connect(function()
		local info = TweenInfo.new(0.2, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
		toggledOn = not toggledOn
		
		if toggledOn then
			TweenService:Create(toggleSlider, info, {Position = UDim2.new(1, -19, 0.5, -8)}):Play()
			TweenService:Create(toggleTrack, info, {BackgroundColor3 = BLUE_TOGGLE_ON}):Play()
			TweenService:Create(toggleSlider, info, {BackgroundColor3 = Color3.fromRGB(255, 255, 255)}):Play()
		else
			TweenService:Create(toggleSlider, info, {Position = UDim2.new(0, 3, 0.5, -8)}):Play()
			TweenService:Create(toggleTrack, info, {BackgroundColor3 = BLUE_TOGGLE_OFF}):Play()
			TweenService:Create(toggleSlider, info, {BackgroundColor3 = BLUE_TOGGLE_ON}):Play()
		end

		if titleName == "infinite jump" then
			infJumpEnabled = toggledOn
		elseif titleName == "noclip" then
			noclipEnabled = toggledOn
		elseif titleName == "invisible" then
			runInvisibleEngine(toggledOn)
		elseif titleName == "spin" then
			spinEnabled = toggledOn
		elseif titleName == "esp" then
			espEnabled = toggledOn
			runESPEngine()
		elseif titleName == "fullbright" then
			fullbrightEnabled = toggledOn
			if not toggledOn then
				Lighting.Ambient = lightingBackup.Ambient
				Lighting.OutdoorAmbient = lightingBackup.OutdoorAmbient
				Lighting.Brightness = lightingBackup.Brightness
				Lighting.ClockTime = lightingBackup.ClockTime
				Lighting.GlobalShadows = lightingBackup.GlobalShadows
			end
		end
	end)
end

-- Structured UI Hierarchy via Explicit Layout Orders
createToggleRow("infinite jump", 1)
createToggleRow("noclip", 2)
createToggleRow("invisible", 3)
createToggleRow("spin", 4)
createSliderRow("spin speed slider", 1, 1000, 1, 5)

-- Dropdown target configuration item row
createDropdownRow("player target", 6)

-- Instant Void Kill Execution Operation Row
createActionButtonRow("void kill", "KILL", 7, function()
	local localChar = player.Character
	local localRoot = localChar and localChar:FindFirstChild("HumanoidRootPart")
	
	if localRoot and selectedTargetPlayer and selectedTargetPlayer.Character then
		local targetRoot = selectedTargetPlayer.Character:FindFirstChild("HumanoidRootPart")
		if targetRoot then
			local originalPos = localRoot.CFrame
			local voidY = workspace.FallenPartsDestroyHeight + 5
			local tInfo = TweenInfo.new(0.001, Enum.EasingStyle.Linear)
			
			local t1 = TweenService:Create(localRoot, tInfo, {CFrame = CFrame.new(targetRoot.Position)})
			local t2 = TweenService:Create(localRoot, tInfo, {CFrame = CFrame.new(targetRoot.Position.X, voidY, targetRoot.Position.Z)})
			local t3 = TweenService:Create(localRoot, tInfo, {CFrame = originalPos})
			
			t1:Play()
			t1.Completed:Wait()
			t2:Play()
			t2.Completed:Wait()
			t3:Play()
		end
	end
end)

createSliderRow("speed slider", 16, 500, 16, 8)
createSliderRow("jump slider", 50, 1000, 50, 9)
createToggleRow("esp", 10)
createToggleRow("fullbright", 11)

--------------------------------------------------------------------------------
-- ZERO-DRIFT TRACKING DRAG ENGINE
--------------------------------------------------------------------------------
local isDragging = false
local dragActive = false 
local dragOffset = Vector2.new(0, 0)
local startMousePos = Vector2.new(0, 0)
local dragThreshold = 7 

local function getGuiMousePosition()
	local mouse = player:GetMouse()
	return Vector2.new(mouse.X, mouse.Y)
end

local function onDragStart()
	isDragging = true
	dragActive = false
	local currentMouse = getGuiMousePosition()
	startMousePos = currentMouse
	
	local currentPos = mainFrame.Position
	dragOffset = Vector2.new(currentMouse.X - currentPos.X.Offset, currentMouse.Y - currentPos.Y.Offset)
end

topDragBar.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		onDragStart()
	end
end)

circleClicker.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		onDragStart()
	end
end)

UserInputService.InputEnded:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		isDragging = false
		dragActive = false
	end
end)

RunService.RenderStepped:Connect(function()
	if isDragging then
		local currentMouse = getGuiMousePosition()
		
		if not dragActive then
			if (currentMouse - startMousePos).Magnitude >= dragThreshold then
				dragActive = true
			end
		end
		
		if dragActive then
			local targetX = currentMouse.X - dragOffset.X
			local targetY = currentMouse.Y - dragOffset.Y
			local targetUDim = UDim2.new(0, targetX, 0, targetY)
			
			mainFrame.Position = targetUDim
			
			if isMinimized then
				savedCirclePosition = targetUDim
			else
				savedRectPosition = targetUDim
			end
		end
	end
end)

--------------------------------------------------------------------------------
-- TOGGLE SYSTEM
--------------------------------------------------------------------------------
local function toggleUI()
	local info = TweenInfo.new(0.3, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)
	
	if not isMinimized then
		isMinimized = true
		
		circleClicker.Visible = true
		circleLabel.Visible = true 
		toggleButton.Visible = false
		closeButton.Visible = false
		topDragBar.Visible = false
		contentFrame.Visible = false
		
		local frameTween = TweenService:Create(mainFrame, info, {Size = CIRCLE_SIZE, Position = savedCirclePosition})
		local cornerTween = TweenService:Create(mainCorner, info, {CornerRadius = UDim.new(1, 0)})
		
		frameTween:Play()
		cornerTween:Play()
	else
		isMinimized = false
		circleClicker.Visible = false
		circleLabel.Visible = false 
		
		toggleButton.Visible = true
		closeButton.Visible = true
		topDragBar.Visible = true
		contentFrame.Visible = true
		
		local frameTween = TweenService:Create(mainFrame, info, {Size = RECT_SIZE, Position = savedRectPosition})
		local cornerTween = TweenService:Create(mainCorner, info, {CornerRadius = UDim.new(0, 14)})
		
		frameTween:Play()
		cornerTween:Play()
	end
end

circleClicker.MouseButton1Up:Connect(function()
	local currentMouse = getGuiMousePosition()
	local distanceMoved = (currentMouse - startMousePos).Magnitude
	
	if distanceMoved < dragThreshold then
		toggleUI()
	end
end)

toggleButton.MouseButton1Click:Connect(toggleUI)

closeButton.MouseButton1Click:Connect(function()
	clearESP() 
	runInvisibleEngine(false)
	if fullbrightEnabled then
		Lighting.Ambient = lightingBackup.Ambient
		Lighting.OutdoorAmbient = lightingBackup.OutdoorAmbient
		Lighting.Brightness = lightingBackup.Brightness
		Lighting.ClockTime = lightingBackup.ClockTime
		Lighting.GlobalShadows = lightingBackup.GlobalShadows
	end
	screenGui:Destroy()
end)

Features & Information

the script can make you fly, noclip, spin, be invisible, so much more!

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts