Cheat hub
Key Required

Cheat hub

BEAR (Alpha)NotWhitey999NotWhitey999 178 views 1.1K executesUpdated Jul 5, 2026
Unrated
00
Lua Script•1507 lines (46779 chars)
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")

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

for _, guiName in ipairs({ "QuidzHubUI", "BearAlphaCheatHub" }) do
	local oldGui = playerGui:FindFirstChild(guiName)
	if oldGui then
		oldGui:Destroy()
	end
end

local targetPosition = Vector3.new(407.5, 40, -27.5)
local teleportDelay = 5
local teleportRadius = 8
local enabled = false
local loopId = 0
local lastTeleportAt = -math.huge
local teleporting = false

local presetStore = _G.BearAlphaCheatHubPreset or {}
_G.BearAlphaCheatHubPreset = presetStore

local green = Color3.fromRGB(0, 255, 150)
local greenSoft = Color3.fromRGB(135, 255, 195)
local greenText = Color3.fromRGB(120, 255, 180)
local red = Color3.fromRGB(255, 55, 75)
local redButton = Color3.fromRGB(190, 35, 55)
local redDark = Color3.fromRGB(18, 4, 6)

local selectedHubColor = presetStore.HubColor or green
local selectedHubHue, selectedHubSaturation, selectedHubValue = selectedHubColor:ToHSV()
selectedHubValue = 1

local toggleKey = presetStore.ToggleKey or Enum.KeyCode.RightShift
local walkSpeedValue = presetStore.WalkSpeed or 16
local jumpPowerValue = presetStore.JumpPower or 50
local waitingForBind = false
local currentPage = "Teleport"

local draggingFrame = nil
local dragStart = nil
local startPos = nil
local pickingColor = false
local ScreenGui = nil

local function savePreset()
	presetStore.HubColor = selectedHubColor
	presetStore.HubHue = selectedHubHue
	presetStore.HubSaturation = selectedHubSaturation
	presetStore.HubValue = selectedHubValue
	presetStore.ToggleKey = toggleKey
	presetStore.WalkSpeed = walkSpeedValue
	presetStore.JumpPower = jumpPowerValue
end

local function darken(color, amount)
	return Color3.new(
		math.clamp(color.R * amount, 0, 1),
		math.clamp(color.G * amount, 0, 1),
		math.clamp(color.B * amount, 0, 1)
	)
end

local function soften(color, amount)
	return Color3.new(
		math.clamp(color.R + (1 - color.R) * amount, 0, 1),
		math.clamp(color.G + (1 - color.G) * amount, 0, 1),
		math.clamp(color.B + (1 - color.B) * amount, 0, 1)
	)
end

local function colorToRGBText(color)
	return math.floor(color.R * 255 + 0.5) .. ", " .. math.floor(color.G * 255 + 0.5) .. ", " .. math.floor(color.B * 255 + 0.5)
end

local function atan2(y, x)
	if math.atan2 then
		return math.atan2(y, x)
	end

	return math.atan(y, x)
end

local function getCharacterState()
	local character = player.Character or player.CharacterAdded:Wait()
	local root = character:FindFirstChild("HumanoidRootPart") or character:WaitForChild("HumanoidRootPart", 5)
	local humanoid = character:FindFirstChildOfClass("Humanoid")

	return character, root, humanoid
end

local function getRoot()
	local _, root = getCharacterState()
	return root
end

local function getHumanoid()
	local character = player.Character
	if not character then
		return nil
	end

	return character:FindFirstChildOfClass("Humanoid")
end

local function applyPlayerStats()
	local humanoid = getHumanoid()
	if not humanoid then
		return false
	end

	pcall(function()
		humanoid.WalkSpeed = walkSpeedValue
	end)

	pcall(function()
		humanoid.UseJumpPower = true
	end)

	pcall(function()
		humanoid.JumpPower = jumpPowerValue
	end)

	return true
end

local function clearCharacterVelocity(root)
	if not root then
		return
	end

	root.AssemblyLinearVelocity = Vector3.zero
	root.AssemblyAngularVelocity = Vector3.zero
end

local function isNearTarget(root)
	return root and (root.Position - targetPosition).Magnitude <= teleportRadius
end

local function teleportPlayer(force)
	if teleporting then
		return false
	end

	local now = os.clock()
	if not force and now - lastTeleportAt < teleportDelay then
		return false
	end

	local character, root, humanoid = getCharacterState()
	if not character or not root then
		return false
	end

	if humanoid and (humanoid.Health <= 0 or humanoid.Sit) then
		return false
	end

	if not force and isNearTarget(root) then
		return false
	end

	teleporting = true
	lastTeleportAt = now
	clearCharacterVelocity(root)

	local success = pcall(function()
		character:PivotTo(CFrame.new(targetPosition))
	end)

	task.defer(function()
		clearCharacterVelocity(root)
		teleporting = false
	end)

	return success
end

local function tween(object, properties, time)
	TweenService:Create(
		object,
		TweenInfo.new(time or 0.25, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
		properties
	):Play()
end

local function addCorner(object, radius)
	local corner = Instance.new("UICorner")
	corner.CornerRadius = UDim.new(0, radius)
	corner.Parent = object
	return corner
end

local function addStroke(object, color, thickness, transparency)
	local stroke = Instance.new("UIStroke")
	stroke.Color = color
	stroke.Thickness = thickness
	stroke.Transparency = transparency
	stroke.Parent = object
	return stroke
end

local function makeDraggable(frame, dragBar)
	dragBar.InputBegan:Connect(function(input)
		if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
			draggingFrame = frame
			dragStart = input.Position
			startPos = frame.Position

			input.Changed:Connect(function()
				if input.UserInputState == Enum.UserInputState.End and draggingFrame == frame then
					draggingFrame = nil
				end
			end)
		end
	end)
end

local function createNoise(parent, height, startColor)
	local noiseLayer = Instance.new("Frame")
	noiseLayer.Name = "OldTVNoise"
	noiseLayer.Parent = parent
	noiseLayer.Size = UDim2.new(1, 0, 1, 0)
	noiseLayer.BackgroundTransparency = 1
	noiseLayer.ZIndex = 2

	local dots = {}

	for _ = 1, 65 do
		local dot = Instance.new("Frame")
		dot.Name = "NoiseDot"
		dot.Parent = noiseLayer
		dot.Size = UDim2.new(0, math.random(1, 3), 0, math.random(1, 3))
		dot.Position = UDim2.new(math.random(0, 1000) / 1000, 0, math.random(0, 1000) / 1000, 0)
		dot.BackgroundColor3 = startColor
		dot.BackgroundTransparency = 0.93
		dot.BorderSizePixel = 0
		dot.ZIndex = 2

		table.insert(dots, dot)
	end

	for y = 0, height, 8 do
		local scanline = Instance.new("Frame")
		scanline.Name = "Scanline"
		scanline.Parent = noiseLayer
		scanline.Size = UDim2.new(1, 0, 0, 1)
		scanline.Position = UDim2.new(0, 0, 0, y)
		scanline.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
		scanline.BackgroundTransparency = 0.965
		scanline.BorderSizePixel = 0
		scanline.ZIndex = 2
	end

	local sweepLine = Instance.new("Frame")
	sweepLine.Name = "SweepLine"
	sweepLine.Parent = noiseLayer
	sweepLine.Size = UDim2.new(1, 0, 0, 18)
	sweepLine.Position = UDim2.new(0, 0, 0, -18)
	sweepLine.BackgroundColor3 = startColor
	sweepLine.BackgroundTransparency = 0.955
	sweepLine.BorderSizePixel = 0
	sweepLine.ZIndex = 2

	return {
		Dots = dots,
		SweepLine = sweepLine
	}
end

local function startTeleportLoop()
	loopId += 1
	local thisLoop = loopId

	task.spawn(function()
		while enabled and ScreenGui and ScreenGui.Parent and thisLoop == loopId do
			teleportPlayer()
			task.wait(teleportDelay)
		end
	end)
end

ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "BearAlphaCheatHub"
ScreenGui.ResetOnSpawn = false
ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Global
ScreenGui.Parent = playerGui

local Hub = Instance.new("Frame")
Hub.Name = "Hub"
Hub.Parent = ScreenGui
Hub.Size = UDim2.new(0, 560, 0, 340)
Hub.Position = UDim2.new(0.5, -280, 0.5, -170)
Hub.BackgroundColor3 = darken(selectedHubColor, 0.08)
Hub.BackgroundTransparency = 0.04
Hub.BorderSizePixel = 0
Hub.Active = true
Hub.ClipsDescendants = true
Hub.ZIndex = 1

addCorner(Hub, 10)
local HubStroke = addStroke(Hub, selectedHubColor, 1.4, 0.12)
local HubNoise = createNoise(Hub, 340, selectedHubColor)

local HubTopBar = Instance.new("Frame")
HubTopBar.Name = "TopBar"
HubTopBar.Parent = Hub
HubTopBar.Size = UDim2.new(1, 0, 0, 38)
HubTopBar.BackgroundColor3 = darken(selectedHubColor, 0.06)
HubTopBar.BackgroundTransparency = 0.08
HubTopBar.BorderSizePixel = 0
HubTopBar.ZIndex = 5

local HubTopLine = Instance.new("Frame")
HubTopLine.Parent = HubTopBar
HubTopLine.Size = UDim2.new(1, 0, 0, 1)
HubTopLine.Position = UDim2.new(0, 0, 1, -1)
HubTopLine.BackgroundColor3 = selectedHubColor
HubTopLine.BackgroundTransparency = 0.35
HubTopLine.BorderSizePixel = 0
HubTopLine.ZIndex = 6

local HubTitle = Instance.new("TextLabel")
HubTitle.Parent = HubTopBar
HubTitle.Size = UDim2.new(1, -120, 1, 0)
HubTitle.Position = UDim2.new(0, 14, 0, 0)
HubTitle.BackgroundTransparency = 1
HubTitle.Text = "BEAR (ALPHA) CHEAT HUB"
HubTitle.TextColor3 = soften(selectedHubColor, 0.82)
HubTitle.Font = Enum.Font.Code
HubTitle.TextSize = 18
HubTitle.TextXAlignment = Enum.TextXAlignment.Left
HubTitle.ZIndex = 6

local HubVersion = Instance.new("TextLabel")
HubVersion.Parent = HubTopBar
HubVersion.Size = UDim2.new(0, 55, 1, 0)
HubVersion.Position = UDim2.new(1, -91, 0, 0)
HubVersion.BackgroundTransparency = 1
HubVersion.Text = "v1.0"
HubVersion.TextColor3 = soften(selectedHubColor, 0.55)
HubVersion.Font = Enum.Font.Code
HubVersion.TextSize = 13
HubVersion.TextXAlignment = Enum.TextXAlignment.Right
HubVersion.ZIndex = 6

local HubClose = Instance.new("TextButton")
HubClose.Parent = HubTopBar
HubClose.Size = UDim2.new(0, 26, 0, 24)
HubClose.Position = UDim2.new(1, -33, 0, 7)
HubClose.BackgroundColor3 = darken(selectedHubColor, 0.16)
HubClose.BorderSizePixel = 0
HubClose.Text = "X"
HubClose.TextColor3 = soften(selectedHubColor, 0.55)
HubClose.Font = Enum.Font.Code
HubClose.TextSize = 14
HubClose.AutoButtonColor = false
HubClose.ZIndex = 6

addCorner(HubClose, 5)

local Sidebar = Instance.new("Frame")
Sidebar.Name = "Sidebar"
Sidebar.Parent = Hub
Sidebar.Size = UDim2.new(0, 112, 1, -38)
Sidebar.Position = UDim2.new(0, 0, 0, 38)
Sidebar.BackgroundColor3 = Color3.fromRGB(4, 11, 7)
Sidebar.BackgroundTransparency = 0.18
Sidebar.BorderSizePixel = 0
Sidebar.ZIndex = 4

local SidebarLine = Instance.new("Frame")
SidebarLine.Parent = Sidebar
SidebarLine.Size = UDim2.new(0, 1, 1, 0)
SidebarLine.Position = UDim2.new(1, -1, 0, 0)
SidebarLine.BackgroundColor3 = selectedHubColor
SidebarLine.BackgroundTransparency = 0.55
SidebarLine.BorderSizePixel = 0
SidebarLine.ZIndex = 5

local function createTab(text, y)
	local tab = Instance.new("TextButton")
	tab.Parent = Sidebar
	tab.Size = UDim2.new(1, -16, 0, 32)
	tab.Position = UDim2.new(0, 8, 0, y)
	tab.BackgroundColor3 = darken(selectedHubColor, 0.2)
	tab.BackgroundTransparency = 0.55
	tab.BorderSizePixel = 0
	tab.Text = text
	tab.TextColor3 = soften(selectedHubColor, 0.45)
	tab.Font = Enum.Font.Code
	tab.TextSize = 13
	tab.TextXAlignment = Enum.TextXAlignment.Left
	tab.AutoButtonColor = false
	tab.ZIndex = 6

	addCorner(tab, 6)
	return tab
end

local TeleportTab = createTab("> Teleport", 14)
local PlayerTab = createTab("  Player", 50)
local SettingTab = createTab("  Setting", 86)

local Content = Instance.new("Frame")
Content.Name = "Content"
Content.Parent = Hub
Content.Size = UDim2.new(1, -112, 1, -38)
Content.Position = UDim2.new(0, 112, 0, 38)
Content.BackgroundTransparency = 1
Content.ZIndex = 4

local HubAccent = Instance.new("Frame")
HubAccent.Parent = Content
HubAccent.Size = UDim2.new(0, 3, 1, -34)
HubAccent.Position = UDim2.new(0, 18, 0, 18)
HubAccent.BackgroundColor3 = selectedHubColor
HubAccent.BorderSizePixel = 0
HubAccent.ZIndex = 5

addCorner(HubAccent, 20)

local TeleportPage = Instance.new("Frame")
TeleportPage.Name = "TeleportPage"
TeleportPage.Parent = Content
TeleportPage.Size = UDim2.new(1, 0, 1, 0)
TeleportPage.BackgroundTransparency = 1
TeleportPage.ZIndex = 4

local PageTitle = Instance.new("TextLabel")
PageTitle.Parent = TeleportPage
PageTitle.Size = UDim2.new(1, -55, 0, 34)
PageTitle.Position = UDim2.new(0, 34, 0, 16)
PageTitle.BackgroundTransparency = 1
PageTitle.Text = "Teleport"
PageTitle.TextColor3 = soften(selectedHubColor, 0.82)
PageTitle.Font = Enum.Font.Code
PageTitle.TextSize = 22
PageTitle.TextXAlignment = Enum.TextXAlignment.Left
PageTitle.ZIndex = 5

local HubStatus = Instance.new("TextLabel")
HubStatus.Parent = TeleportPage
HubStatus.Size = UDim2.new(1, -60, 0, 22)
HubStatus.Position = UDim2.new(0, 34, 0, 58)
HubStatus.BackgroundTransparency = 1
HubStatus.Text = "> FARM UI: READY"
HubStatus.TextColor3 = soften(selectedHubColor, 0.55)
HubStatus.Font = Enum.Font.Code
HubStatus.TextSize = 14
HubStatus.TextXAlignment = Enum.TextXAlignment.Left
HubStatus.ZIndex = 5

local FarmModule = Instance.new("Frame")
FarmModule.Parent = TeleportPage
FarmModule.Size = UDim2.new(1, -64, 0, 68)
FarmModule.Position = UDim2.new(0, 34, 0, 92)
FarmModule.BackgroundColor3 = Color3.fromRGB(7, 18, 11)
FarmModule.BackgroundTransparency = 0.2
FarmModule.BorderSizePixel = 0
FarmModule.ZIndex = 5

addCorner(FarmModule, 7)
local FarmModuleStroke = addStroke(FarmModule, red, 1, 0.55)

local FarmModuleTitle = Instance.new("TextLabel")
FarmModuleTitle.Parent = FarmModule
FarmModuleTitle.Size = UDim2.new(1, -155, 0, 25)
FarmModuleTitle.Position = UDim2.new(0, 14, 0, 9)
FarmModuleTitle.BackgroundTransparency = 1
FarmModuleTitle.Text = "Quidz Farm UI"
FarmModuleTitle.TextColor3 = Color3.fromRGB(255, 235, 238)
FarmModuleTitle.Font = Enum.Font.Code
FarmModuleTitle.TextSize = 16
FarmModuleTitle.TextXAlignment = Enum.TextXAlignment.Left
FarmModuleTitle.ZIndex = 6

local FarmModuleInfo = Instance.new("TextLabel")
FarmModuleInfo.Parent = FarmModule
FarmModuleInfo.Size = UDim2.new(1, -155, 0, 20)
FarmModuleInfo.Position = UDim2.new(0, 14, 0, 36)
FarmModuleInfo.BackgroundTransparency = 1
FarmModuleInfo.Text = "> open teleport module"
FarmModuleInfo.TextColor3 = Color3.fromRGB(255, 125, 140)
FarmModuleInfo.Font = Enum.Font.Code
FarmModuleInfo.TextSize = 12
FarmModuleInfo.TextXAlignment = Enum.TextXAlignment.Left
FarmModuleInfo.ZIndex = 6

local OpenFarmButton = Instance.new("TextButton")
OpenFarmButton.Parent = FarmModule
OpenFarmButton.Size = UDim2.new(0, 122, 0, 36)
OpenFarmButton.Position = UDim2.new(1, -136, 0.5, -18)
OpenFarmButton.BackgroundColor3 = redButton
OpenFarmButton.BorderSizePixel = 0
OpenFarmButton.Text = "TELEPORT"
OpenFarmButton.TextColor3 = Color3.fromRGB(255, 235, 238)
OpenFarmButton.Font = Enum.Font.Code
OpenFarmButton.TextSize = 13
OpenFarmButton.AutoButtonColor = false
OpenFarmButton.ZIndex = 6

addCorner(OpenFarmButton, 7)
local OpenFarmStroke = addStroke(OpenFarmButton, Color3.fromRGB(255, 105, 120), 1, 0.15)

local HubPulse = Instance.new("Frame")
HubPulse.Parent = TeleportPage
HubPulse.Size = UDim2.new(0, 10, 0, 10)
HubPulse.Position = UDim2.new(1, -38, 0, 27)
HubPulse.BackgroundColor3 = selectedHubColor
HubPulse.BorderSizePixel = 0
HubPulse.ZIndex = 6

addCorner(HubPulse, 20)

local PlayerPage = Instance.new("Frame")
PlayerPage.Name = "PlayerPage"
PlayerPage.Parent = Content
PlayerPage.Size = UDim2.new(1, 0, 1, 0)
PlayerPage.BackgroundTransparency = 1
PlayerPage.Visible = false
PlayerPage.ZIndex = 4

local PlayerTitle = Instance.new("TextLabel")
PlayerTitle.Parent = PlayerPage
PlayerTitle.Size = UDim2.new(1, -55, 0, 34)
PlayerTitle.Position = UDim2.new(0, 34, 0, 16)
PlayerTitle.BackgroundTransparency = 1
PlayerTitle.Text = "Player"
PlayerTitle.TextColor3 = soften(selectedHubColor, 0.82)
PlayerTitle.Font = Enum.Font.Code
PlayerTitle.TextSize = 22
PlayerTitle.TextXAlignment = Enum.TextXAlignment.Left
PlayerTitle.ZIndex = 5

local PlayerInfo = Instance.new("TextLabel")
PlayerInfo.Parent = PlayerPage
PlayerInfo.Size = UDim2.new(1, -60, 0, 22)
PlayerInfo.Position = UDim2.new(0, 34, 0, 58)
PlayerInfo.BackgroundTransparency = 1
PlayerInfo.Text = "> SPEED: " .. walkSpeedValue .. " | JUMP: " .. jumpPowerValue
PlayerInfo.TextColor3 = soften(selectedHubColor, 0.55)
PlayerInfo.Font = Enum.Font.Code
PlayerInfo.TextSize = 14
PlayerInfo.TextXAlignment = Enum.TextXAlignment.Left
PlayerInfo.ZIndex = 5

local SpeedRow = Instance.new("Frame")
SpeedRow.Parent = PlayerPage
SpeedRow.Size = UDim2.new(1, -64, 0, 58)
SpeedRow.Position = UDim2.new(0, 34, 0, 92)
SpeedRow.BackgroundColor3 = Color3.fromRGB(7, 18, 11)
SpeedRow.BackgroundTransparency = 0.2
SpeedRow.BorderSizePixel = 0
SpeedRow.ZIndex = 5

addCorner(SpeedRow, 7)
local SpeedRowStroke = addStroke(SpeedRow, selectedHubColor, 1, 0.68)

local SpeedTitle = Instance.new("TextLabel")
SpeedTitle.Parent = SpeedRow
SpeedTitle.Size = UDim2.new(1, -155, 0, 24)
SpeedTitle.Position = UDim2.new(0, 14, 0, 8)
SpeedTitle.BackgroundTransparency = 1
SpeedTitle.Text = "WalkSpeed"
SpeedTitle.TextColor3 = soften(selectedHubColor, 0.82)
SpeedTitle.Font = Enum.Font.Code
SpeedTitle.TextSize = 15
SpeedTitle.TextXAlignment = Enum.TextXAlignment.Left
SpeedTitle.ZIndex = 6

local SpeedInfo = Instance.new("TextLabel")
SpeedInfo.Parent = SpeedRow
SpeedInfo.Size = UDim2.new(1, -155, 0, 18)
SpeedInfo.Position = UDim2.new(0, 14, 0, 32)
SpeedInfo.BackgroundTransparency = 1
SpeedInfo.Text = "> default is 16"
SpeedInfo.TextColor3 = soften(selectedHubColor, 0.45)
SpeedInfo.Font = Enum.Font.Code
SpeedInfo.TextSize = 12
SpeedInfo.TextXAlignment = Enum.TextXAlignment.Left
SpeedInfo.ZIndex = 6

local SpeedInput = Instance.new("TextBox")
SpeedInput.Parent = SpeedRow
SpeedInput.Size = UDim2.new(0, 122, 0, 34)
SpeedInput.Position = UDim2.new(1, -136, 0.5, -17)
SpeedInput.BackgroundColor3 = darken(selectedHubColor, 0.22)
SpeedInput.BorderSizePixel = 0
SpeedInput.Text = tostring(walkSpeedValue)
SpeedInput.PlaceholderText = "16"
SpeedInput.TextColor3 = soften(selectedHubColor, 0.82)
SpeedInput.PlaceholderColor3 = soften(selectedHubColor, 0.35)
SpeedInput.Font = Enum.Font.Code
SpeedInput.TextSize = 14
SpeedInput.ClearTextOnFocus = false
SpeedInput.ZIndex = 6

addCorner(SpeedInput, 7)
local SpeedInputStroke = addStroke(SpeedInput, selectedHubColor, 1, 0.25)

local JumpRow = Instance.new("Frame")
JumpRow.Parent = PlayerPage
JumpRow.Size = UDim2.new(1, -64, 0, 58)
JumpRow.Position = UDim2.new(0, 34, 0, 160)
JumpRow.BackgroundColor3 = Color3.fromRGB(7, 18, 11)
JumpRow.BackgroundTransparency = 0.2
JumpRow.BorderSizePixel = 0
JumpRow.ZIndex = 5

addCorner(JumpRow, 7)
local JumpRowStroke = addStroke(JumpRow, selectedHubColor, 1, 0.68)

local JumpTitle = Instance.new("TextLabel")
JumpTitle.Parent = JumpRow
JumpTitle.Size = UDim2.new(1, -155, 0, 24)
JumpTitle.Position = UDim2.new(0, 14, 0, 8)
JumpTitle.BackgroundTransparency = 1
JumpTitle.Text = "JumpPower"
JumpTitle.TextColor3 = soften(selectedHubColor, 0.82)
JumpTitle.Font = Enum.Font.Code
JumpTitle.TextSize = 15
JumpTitle.TextXAlignment = Enum.TextXAlignment.Left
JumpTitle.ZIndex = 6

local JumpInfo = Instance.new("TextLabel")
JumpInfo.Parent = JumpRow
JumpInfo.Size = UDim2.new(1, -155, 0, 18)
JumpInfo.Position = UDim2.new(0, 14, 0, 32)
JumpInfo.BackgroundTransparency = 1
JumpInfo.Text = "> default is 50"
JumpInfo.TextColor3 = soften(selectedHubColor, 0.45)
JumpInfo.Font = Enum.Font.Code
JumpInfo.TextSize = 12
JumpInfo.TextXAlignment = Enum.TextXAlignment.Left
JumpInfo.ZIndex = 6

local JumpInput = Instance.new("TextBox")
JumpInput.Parent = JumpRow
JumpInput.Size = UDim2.new(0, 122, 0, 34)
JumpInput.Position = UDim2.new(1, -136, 0.5, -17)
JumpInput.BackgroundColor3 = darken(selectedHubColor, 0.22)
JumpInput.BorderSizePixel = 0
JumpInput.Text = tostring(jumpPowerValue)
JumpInput.PlaceholderText = "50"
JumpInput.TextColor3 = soften(selectedHubColor, 0.82)
JumpInput.PlaceholderColor3 = soften(selectedHubColor, 0.35)
JumpInput.Font = Enum.Font.Code
JumpInput.TextSize = 14
JumpInput.ClearTextOnFocus = false
JumpInput.ZIndex = 6

addCorner(JumpInput, 7)
local JumpInputStroke = addStroke(JumpInput, selectedHubColor, 1, 0.25)

local ApplyStatsButton = Instance.new("TextButton")
ApplyStatsButton.Parent = PlayerPage
ApplyStatsButton.Size = UDim2.new(1, -64, 0, 40)
ApplyStatsButton.Position = UDim2.new(0, 34, 0, 234)
ApplyStatsButton.BackgroundColor3 = darken(selectedHubColor, 0.22)
ApplyStatsButton.BorderSizePixel = 0
ApplyStatsButton.Text = "APPLY PLAYER STATS"
ApplyStatsButton.TextColor3 = soften(selectedHubColor, 0.82)
ApplyStatsButton.Font = Enum.Font.Code
ApplyStatsButton.TextSize = 15
ApplyStatsButton.AutoButtonColor = false
ApplyStatsButton.ZIndex = 5

addCorner(ApplyStatsButton, 7)
local ApplyStatsStroke = addStroke(ApplyStatsButton, selectedHubColor, 1, 0.25)

local PlayerHint = Instance.new("TextLabel")
PlayerHint.Parent = PlayerPage
PlayerHint.Size = UDim2.new(1, -64, 0, 22)
PlayerHint.Position = UDim2.new(0, 34, 0, 286)
PlayerHint.BackgroundTransparency = 1
PlayerHint.Text = "> values re-apply after respawn"
PlayerHint.TextColor3 = soften(selectedHubColor, 0.45)
PlayerHint.Font = Enum.Font.Code
PlayerHint.TextSize = 12
PlayerHint.TextXAlignment = Enum.TextXAlignment.Left
PlayerHint.ZIndex = 5

local SettingPage = Instance.new("ScrollingFrame")
SettingPage.Name = "SettingPage"
SettingPage.Parent = Content
SettingPage.Size = UDim2.new(1, 0, 1, 0)
SettingPage.BackgroundTransparency = 1
SettingPage.BorderSizePixel = 0
SettingPage.CanvasSize = UDim2.new(0, 0, 0, 360)
SettingPage.ScrollBarThickness = 4
SettingPage.ScrollBarImageColor3 = selectedHubColor
SettingPage.ScrollBarImageTransparency = 0.25
SettingPage.ScrollingDirection = Enum.ScrollingDirection.Y
SettingPage.Visible = false
SettingPage.ZIndex = 4

local SettingTitle = Instance.new("TextLabel")
SettingTitle.Parent = SettingPage
SettingTitle.Size = UDim2.new(1, -55, 0, 34)
SettingTitle.Position = UDim2.new(0, 34, 0, 16)
SettingTitle.BackgroundTransparency = 1
SettingTitle.Text = "Setting"
SettingTitle.TextColor3 = soften(selectedHubColor, 0.82)
SettingTitle.Font = Enum.Font.Code
SettingTitle.TextSize = 22
SettingTitle.TextXAlignment = Enum.TextXAlignment.Left
SettingTitle.ZIndex = 5

local SettingInfo = Instance.new("TextLabel")
SettingInfo.Parent = SettingPage
SettingInfo.Size = UDim2.new(1, -60, 0, 22)
SettingInfo.Position = UDim2.new(0, 34, 0, 58)
SettingInfo.BackgroundTransparency = 1
SettingInfo.Text = "> HUB CONTROL"
SettingInfo.TextColor3 = soften(selectedHubColor, 0.55)
SettingInfo.Font = Enum.Font.Code
SettingInfo.TextSize = 14
SettingInfo.TextXAlignment = Enum.TextXAlignment.Left
SettingInfo.ZIndex = 5

local BindRow = Instance.new("Frame")
BindRow.Parent = SettingPage
BindRow.Size = UDim2.new(1, -64, 0, 54)
BindRow.Position = UDim2.new(0, 34, 0, 88)
BindRow.BackgroundColor3 = Color3.fromRGB(7, 18, 11)
BindRow.BackgroundTransparency = 0.2
BindRow.BorderSizePixel = 0
BindRow.ZIndex = 5

addCorner(BindRow, 7)
local BindRowStroke = addStroke(BindRow, selectedHubColor, 1, 0.68)

local BindTitle = Instance.new("TextLabel")
BindTitle.Parent = BindRow
BindTitle.Size = UDim2.new(1, -155, 0, 22)
BindTitle.Position = UDim2.new(0, 14, 0, 7)
BindTitle.BackgroundTransparency = 1
BindTitle.Text = "Toggle Hub Key"
BindTitle.TextColor3 = soften(selectedHubColor, 0.82)
BindTitle.Font = Enum.Font.Code
BindTitle.TextSize = 15
BindTitle.TextXAlignment = Enum.TextXAlignment.Left
BindTitle.ZIndex = 6

local BindInfo = Instance.new("TextLabel")
BindInfo.Parent = BindRow
BindInfo.Size = UDim2.new(1, -155, 0, 18)
BindInfo.Position = UDim2.new(0, 14, 0, 29)
BindInfo.BackgroundTransparency = 1
BindInfo.Text = "> key: " .. toggleKey.Name
BindInfo.TextColor3 = soften(selectedHubColor, 0.45)
BindInfo.Font = Enum.Font.Code
BindInfo.TextSize = 12
BindInfo.TextXAlignment = Enum.TextXAlignment.Left
BindInfo.ZIndex = 6

local BindButton = Instance.new("TextButton")
BindButton.Parent = BindRow
BindButton.Size = UDim2.new(0, 122, 0, 34)
BindButton.Position = UDim2.new(1, -136, 0.5, -17)
BindButton.BackgroundColor3 = darken(selectedHubColor, 0.22)
BindButton.BorderSizePixel = 0
BindButton.Text = toggleKey.Name
BindButton.TextColor3 = soften(selectedHubColor, 0.82)
BindButton.Font = Enum.Font.Code
BindButton.TextSize = 13
BindButton.AutoButtonColor = false
BindButton.ZIndex = 6

addCorner(BindButton, 7)
local BindButtonStroke = addStroke(BindButton, selectedHubColor, 1, 0.25)

local HideRow = Instance.new("Frame")
HideRow.Parent = SettingPage
HideRow.Size = UDim2.new(1, -64, 0, 54)
HideRow.Position = UDim2.new(0, 34, 0, 152)
HideRow.BackgroundColor3 = Color3.fromRGB(7, 18, 11)
HideRow.BackgroundTransparency = 0.2
HideRow.BorderSizePixel = 0
HideRow.ZIndex = 5

addCorner(HideRow, 7)
local HideRowStroke = addStroke(HideRow, selectedHubColor, 1, 0.68)

local HideTitle = Instance.new("TextLabel")
HideTitle.Parent = HideRow
HideTitle.Size = UDim2.new(1, -155, 0, 22)
HideTitle.Position = UDim2.new(0, 14, 0, 7)
HideTitle.BackgroundTransparency = 1
HideTitle.Text = "Hub Visibility"
HideTitle.TextColor3 = soften(selectedHubColor, 0.82)
HideTitle.Font = Enum.Font.Code
HideTitle.TextSize = 15
HideTitle.TextXAlignment = Enum.TextXAlignment.Left
HideTitle.ZIndex = 6

local HideInfo = Instance.new("TextLabel")
HideInfo.Parent = HideRow
HideInfo.Size = UDim2.new(1, -155, 0, 18)
HideInfo.Position = UDim2.new(0, 14, 0, 29)
HideInfo.BackgroundTransparency = 1
HideInfo.Text = "> press " .. toggleKey.Name .. " to show again"
HideInfo.TextColor3 = soften(selectedHubColor, 0.45)
HideInfo.Font = Enum.Font.Code
HideInfo.TextSize = 12
HideInfo.TextXAlignment = Enum.TextXAlignment.Left
HideInfo.ZIndex = 6

local HideButton = Instance.new("TextButton")
HideButton.Parent = HideRow
HideButton.Size = UDim2.new(0, 122, 0, 34)
HideButton.Position = UDim2.new(1, -136, 0.5, -17)
HideButton.BackgroundColor3 = darken(selectedHubColor, 0.22)
HideButton.BorderSizePixel = 0
HideButton.Text = "HIDE HUB"
HideButton.TextColor3 = soften(selectedHubColor, 0.82)
HideButton.Font = Enum.Font.Code
HideButton.TextSize = 13
HideButton.AutoButtonColor = false
HideButton.ZIndex = 6

addCorner(HideButton, 7)
local HideButtonStroke = addStroke(HideButton, selectedHubColor, 1, 0.25)

local ColorTitle = Instance.new("TextLabel")
ColorTitle.Parent = SettingPage
ColorTitle.Size = UDim2.new(1, -60, 0, 20)
ColorTitle.Position = UDim2.new(0, 34, 0, 214)
ColorTitle.BackgroundTransparency = 1
ColorTitle.Text = "> DEFAULT HUB COLOR: " .. colorToRGBText(selectedHubColor)
ColorTitle.TextColor3 = soften(selectedHubColor, 0.55)
ColorTitle.Font = Enum.Font.Code
ColorTitle.TextSize = 13
ColorTitle.TextXAlignment = Enum.TextXAlignment.Left
ColorTitle.ZIndex = 5

local ColorWheel = Instance.new("Frame")
ColorWheel.Name = "PixelColorWheel"
ColorWheel.Parent = SettingPage
ColorWheel.Size = UDim2.new(0, 84, 0, 84)
ColorWheel.Position = UDim2.new(0, 34, 0, 240)
ColorWheel.BackgroundColor3 = Color3.fromRGB(2, 8, 5)
ColorWheel.BorderSizePixel = 0
ColorWheel.ClipsDescendants = true
ColorWheel.Active = true
ColorWheel.ZIndex = 6

addCorner(ColorWheel, 42)
addStroke(ColorWheel, selectedHubColor, 1, 0.2)

local wheelResolution = 28
local cellScale = 1 / wheelResolution

for y = 0, wheelResolution - 1 do
	for x = 0, wheelResolution - 1 do
		local nx = ((x + 0.5) / wheelResolution) * 2 - 1
		local ny = ((y + 0.5) / wheelResolution) * 2 - 1
		local distance = math.sqrt(nx * nx + ny * ny)

		if distance <= 1 then
			local angle = atan2(ny, nx)
			local hue = (angle / (math.pi * 2)) % 1

			local cell = Instance.new("Frame")
			cell.Parent = ColorWheel
			cell.Size = UDim2.new(cellScale + 0.002, 0, cellScale + 0.002, 0)
			cell.Position = UDim2.new(x * cellScale, 0, y * cellScale, 0)
			cell.BackgroundColor3 = Color3.fromHSV(hue, distance, 1)
			cell.BorderSizePixel = 0
			cell.ZIndex = 6
		end
	end
end

local ColorSelector = Instance.new("Frame")
ColorSelector.Name = "Selector"
ColorSelector.Parent = ColorWheel
ColorSelector.Size = UDim2.new(0, 9, 0, 9)
ColorSelector.AnchorPoint = Vector2.new(0.5, 0.5)
ColorSelector.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
ColorSelector.BorderSizePixel = 0
ColorSelector.ZIndex = 8

addCorner(ColorSelector, 10)
addStroke(ColorSelector, Color3.fromRGB(0, 0, 0), 1, 0.15)

local ColorPreview = Instance.new("Frame")
ColorPreview.Parent = SettingPage
ColorPreview.Size = UDim2.new(0, 170, 0, 34)
ColorPreview.Position = UDim2.new(0, 136, 0, 244)
ColorPreview.BackgroundColor3 = selectedHubColor
ColorPreview.BorderSizePixel = 0
ColorPreview.ZIndex = 6

addCorner(ColorPreview, 7)
local ColorPreviewStroke = addStroke(ColorPreview, selectedHubColor, 1, 0.18)

local ColorPreviewText = Instance.new("TextLabel")
ColorPreviewText.Parent = ColorPreview
ColorPreviewText.Size = UDim2.new(1, -20, 1, 0)
ColorPreviewText.Position = UDim2.new(0, 10, 0, 0)
ColorPreviewText.BackgroundTransparency = 1
ColorPreviewText.Text = "SELECTED"
ColorPreviewText.TextColor3 = Color3.fromRGB(2, 8, 5)
ColorPreviewText.Font = Enum.Font.Code
ColorPreviewText.TextSize = 13
ColorPreviewText.TextXAlignment = Enum.TextXAlignment.Left
ColorPreviewText.ZIndex = 7

local ColorHint = Instance.new("TextLabel")
ColorHint.Parent = SettingPage
ColorHint.Size = UDim2.new(0, 240, 0, 34)
ColorHint.Position = UDim2.new(0, 136, 0, 286)
ColorHint.BackgroundTransparency = 1
ColorHint.Text = "> click the wheel to set hub color"
ColorHint.TextColor3 = soften(selectedHubColor, 0.45)
ColorHint.Font = Enum.Font.Code
ColorHint.TextSize = 12
ColorHint.TextXAlignment = Enum.TextXAlignment.Left
ColorHint.ZIndex = 6

local FarmFrame = Instance.new("Frame")
FarmFrame.Name = "QuidzFarmUI"
FarmFrame.Parent = ScreenGui
FarmFrame.Size = UDim2.new(0, 340, 0, 190)
FarmFrame.Position = UDim2.new(0.5, -170, 0.5, -95)
FarmFrame.BackgroundColor3 = redDark
FarmFrame.BorderSizePixel = 0
FarmFrame.Active = true
FarmFrame.ClipsDescendants = true
FarmFrame.Visible = false
FarmFrame.ZIndex = 1

addCorner(FarmFrame, 18)

local BackgroundImage = Instance.new("ImageLabel")
BackgroundImage.Name = "BackgroundImage"
BackgroundImage.Parent = FarmFrame
BackgroundImage.Size = UDim2.new(1, 0, 1, 0)
BackgroundImage.BackgroundTransparency = 1
BackgroundImage.Image = "rbxassetid://97231572434823"
BackgroundImage.ImageTransparency = 0.7
BackgroundImage.ImageColor3 = red
BackgroundImage.ScaleType = Enum.ScaleType.Crop
BackgroundImage.ZIndex = 1

addCorner(BackgroundImage, 18)

local FarmNoise = createNoise(FarmFrame, 190, red)
local FarmStroke = addStroke(FarmFrame, red, 1.6, 0.1)

local FarmTopBar = Instance.new("Frame")
FarmTopBar.Name = "FarmTopBar"
FarmTopBar.Parent = FarmFrame
FarmTopBar.Size = UDim2.new(1, 0, 0, 50)
FarmTopBar.BackgroundTransparency = 1
FarmTopBar.ZIndex = 3

local FarmAccent = Instance.new("Frame")
FarmAccent.Parent = FarmFrame
FarmAccent.Size = UDim2.new(0, 4, 1, -28)
FarmAccent.Position = UDim2.new(0, 14, 0, 14)
FarmAccent.BackgroundColor3 = red
FarmAccent.BorderSizePixel = 0
FarmAccent.ZIndex = 3

addCorner(FarmAccent, 20)

local FarmTitle = Instance.new("TextLabel")
FarmTitle.Parent = FarmTopBar
FarmTitle.Size = UDim2.new(1, -120, 1, 0)
FarmTitle.Position = UDim2.new(0, 30, 0, 0)
FarmTitle.BackgroundTransparency = 1
FarmTitle.Text = "TELEPORT QUIDZ FARM"
FarmTitle.TextColor3 = Color3.fromRGB(255, 220, 225)
FarmTitle.Font = Enum.Font.Code
FarmTitle.TextSize = 19
FarmTitle.TextXAlignment = Enum.TextXAlignment.Left
FarmTitle.ZIndex = 4

local FarmPulse = Instance.new("Frame")
FarmPulse.Parent = FarmTopBar
FarmPulse.Size = UDim2.new(0, 10, 0, 10)
FarmPulse.Position = UDim2.new(1, -84, 0, 20)
FarmPulse.BackgroundColor3 = red
FarmPulse.BorderSizePixel = 0
FarmPulse.ZIndex = 4

addCorner(FarmPulse, 20)

local BackButton = Instance.new("TextButton")
BackButton.Parent = FarmTopBar
BackButton.Size = UDim2.new(0, 30, 0, 30)
BackButton.Position = UDim2.new(1, -46, 0, 10)
BackButton.BackgroundColor3 = Color3.fromRGB(35, 12, 16)
BackButton.BorderSizePixel = 0
BackButton.Text = "<"
BackButton.TextColor3 = Color3.fromRGB(255, 145, 155)
BackButton.Font = Enum.Font.Code
BackButton.TextSize = 18
BackButton.AutoButtonColor = false
BackButton.ZIndex = 4

addCorner(BackButton, 8)

local FarmStatus = Instance.new("TextLabel")
FarmStatus.Parent = FarmFrame
FarmStatus.Size = UDim2.new(1, -48, 0, 24)
FarmStatus.Position = UDim2.new(0, 30, 0, 62)
FarmStatus.BackgroundTransparency = 1
FarmStatus.Text = "> STATUS: OFFLINE"
FarmStatus.TextColor3 = Color3.fromRGB(255, 125, 140)
FarmStatus.Font = Enum.Font.Code
FarmStatus.TextSize = 14
FarmStatus.TextXAlignment = Enum.TextXAlignment.Left
FarmStatus.ZIndex = 3

local FarmInterval = Instance.new("TextLabel")
FarmInterval.Parent = FarmFrame
FarmInterval.Size = UDim2.new(1, -120, 0, 22)
FarmInterval.Position = UDim2.new(0, 30, 0, 88)
FarmInterval.BackgroundTransparency = 1
FarmInterval.Text = "> TELEPORT: EVERY 5 SECONDS"
FarmInterval.TextColor3 = Color3.fromRGB(200, 75, 90)
FarmInterval.Font = Enum.Font.Code
FarmInterval.TextSize = 13
FarmInterval.TextXAlignment = Enum.TextXAlignment.Left
FarmInterval.ZIndex = 3

local FarmVersion = Instance.new("TextLabel")
FarmVersion.Parent = FarmFrame
FarmVersion.Size = UDim2.new(0, 58, 0, 22)
FarmVersion.Position = UDim2.new(1, -78, 0, 88)
FarmVersion.BackgroundTransparency = 1
FarmVersion.Text = "v1.0"
FarmVersion.TextColor3 = Color3.fromRGB(255, 105, 120)
FarmVersion.Font = Enum.Font.Code
FarmVersion.TextSize = 13
FarmVersion.TextXAlignment = Enum.TextXAlignment.Right
FarmVersion.ZIndex = 3

local EnableButton = Instance.new("TextButton")
EnableButton.Parent = FarmFrame
EnableButton.Size = UDim2.new(1, -60, 0, 44)
EnableButton.Position = UDim2.new(0, 30, 1, -59)
EnableButton.BackgroundColor3 = redButton
EnableButton.BorderSizePixel = 0
EnableButton.Text = "ENABLE"
EnableButton.TextColor3 = Color3.fromRGB(255, 235, 238)
EnableButton.Font = Enum.Font.Code
EnableButton.TextSize = 18
EnableButton.AutoButtonColor = false
EnableButton.ZIndex = 3

addCorner(EnableButton, 12)
local EnableStroke = addStroke(EnableButton, Color3.fromRGB(255, 105, 120), 1, 0.15)

makeDraggable(Hub, HubTopBar)
makeDraggable(FarmFrame, FarmTopBar)

local function refreshSettingTexts()
	BindInfo.Text = "> key: " .. toggleKey.Name
	BindButton.Text = waitingForBind and "PRESS KEY" or toggleKey.Name
	ColorTitle.Text = "> DEFAULT HUB COLOR: " .. colorToRGBText(selectedHubColor)
	HideInfo.Text = "> press " .. toggleKey.Name .. " to show again"
end

local function cleanStatNumber(text, fallback, minValue, maxValue)
	local normalized = tostring(text or ""):gsub(",", ".")
	local number = tonumber(normalized)

	if not number then
		return fallback
	end

	number = math.clamp(number, minValue, maxValue)
	return math.floor(number * 10 + 0.5) / 10
end

local function refreshPlayerTexts()
	SpeedInput.Text = tostring(walkSpeedValue)
	JumpInput.Text = tostring(jumpPowerValue)
	PlayerInfo.Text = "> SPEED: " .. walkSpeedValue .. " | JUMP: " .. jumpPowerValue
end

local function applyPlayerSettingsFromInputs()
	walkSpeedValue = cleanStatNumber(SpeedInput.Text, walkSpeedValue, 0, 250)
	jumpPowerValue = cleanStatNumber(JumpInput.Text, jumpPowerValue, 0, 300)

	refreshPlayerTexts()
	savePreset()
	applyPlayerStats()
end

local function updateColorSelector()
	local angle = selectedHubHue * math.pi * 2
	ColorSelector.Position = UDim2.new(
		0.5 + math.cos(angle) * selectedHubSaturation * 0.5,
		0,
		0.5 + math.sin(angle) * selectedHubSaturation * 0.5,
		0
	)
end

local function applyHubTheme()
	local hubSoft = soften(selectedHubColor, 0.55)
	local hubBright = soften(selectedHubColor, 0.82)
	local hubDark = darken(selectedHubColor, 0.08)
	local hubButtonDark = darken(selectedHubColor, 0.22)

	tween(Hub, { BackgroundColor3 = hubDark })
	tween(HubTopBar, { BackgroundColor3 = darken(selectedHubColor, 0.06) })
	tween(HubStroke, { Color = selectedHubColor })
	tween(HubTopLine, { BackgroundColor3 = selectedHubColor })
	tween(SidebarLine, { BackgroundColor3 = selectedHubColor })
	tween(HubAccent, { BackgroundColor3 = selectedHubColor })
	tween(HubPulse, { BackgroundColor3 = selectedHubColor })
	tween(HubNoise.SweepLine, { BackgroundColor3 = selectedHubColor })

	tween(HubTitle, { TextColor3 = hubBright })
	tween(HubVersion, { TextColor3 = hubSoft })
	tween(HubClose, {
		BackgroundColor3 = darken(selectedHubColor, 0.16),
		TextColor3 = hubSoft
	})

	tween(PageTitle, { TextColor3 = hubBright })
	tween(PlayerTitle, { TextColor3 = hubBright })
	tween(SettingTitle, { TextColor3 = hubBright })
	tween(HubStatus, { TextColor3 = hubSoft })
	tween(PlayerInfo, { TextColor3 = hubSoft })
	tween(SettingInfo, { TextColor3 = hubSoft })
	tween(ColorTitle, { TextColor3 = hubSoft })
	tween(ColorHint, { TextColor3 = soften(selectedHubColor, 0.45) })
	tween(PlayerHint, { TextColor3 = soften(selectedHubColor, 0.45) })
	tween(SettingPage, { ScrollBarImageColor3 = selectedHubColor })
	tween(ColorPreview, { BackgroundColor3 = selectedHubColor })
	tween(ColorPreviewStroke, { Color = selectedHubColor })

	tween(SpeedRowStroke, { Color = selectedHubColor })
	tween(JumpRowStroke, { Color = selectedHubColor })
	tween(BindRowStroke, { Color = selectedHubColor })
	tween(HideRowStroke, { Color = selectedHubColor })
	tween(SpeedTitle, { TextColor3 = hubBright })
	tween(JumpTitle, { TextColor3 = hubBright })
	tween(BindTitle, { TextColor3 = hubBright })
	tween(HideTitle, { TextColor3 = hubBright })
	tween(SpeedInfo, { TextColor3 = hubSoft })
	tween(JumpInfo, { TextColor3 = hubSoft })
	tween(BindInfo, { TextColor3 = hubSoft })
	tween(HideInfo, { TextColor3 = hubSoft })

	tween(SpeedInput, {
		BackgroundColor3 = hubButtonDark,
		TextColor3 = hubBright,
		PlaceholderColor3 = soften(selectedHubColor, 0.35)
	})
	tween(JumpInput, {
		BackgroundColor3 = hubButtonDark,
		TextColor3 = hubBright,
		PlaceholderColor3 = soften(selectedHubColor, 0.35)
	})
	tween(ApplyStatsButton, {
		BackgroundColor3 = hubButtonDark,
		TextColor3 = hubBright
	})
	tween(BindButton, {
		BackgroundColor3 = hubButtonDark,
		TextColor3 = hubBright
	})
	tween(HideButton, {
		BackgroundColor3 = hubButtonDark,
		TextColor3 = hubBright
	})
	tween(SpeedInputStroke, { Color = selectedHubColor })
	tween(JumpInputStroke, { Color = selectedHubColor })
	tween(ApplyStatsStroke, { Color = selectedHubColor })
	tween(BindButtonStroke, { Color = selectedHubColor })
	tween(HideButtonStroke, { Color = selectedHubColor })

	local function setTab(tab, active, text)
		tab.Text = text
		tween(tab, {
			BackgroundColor3 = active and darken(selectedHubColor, 0.22) or darken(selectedHubColor, 0.12),
			BackgroundTransparency = active and 0.18 or 0.55,
			TextColor3 = active and hubBright or hubSoft
		})
	end

	setTab(TeleportTab, currentPage == "Teleport", currentPage == "Teleport" and "> Teleport" or "  Teleport")
	setTab(PlayerTab, currentPage == "Player", currentPage == "Player" and "> Player" or "  Player")
	setTab(SettingTab, currentPage == "Setting", currentPage == "Setting" and "> Setting" or "  Setting")

	refreshSettingTexts()
	refreshPlayerTexts()
	updateColorSelector()
end

local function setHubColorFromPosition(position)
	local absolutePosition = ColorWheel.AbsolutePosition
	local absoluteSize = ColorWheel.AbsoluteSize
	local x = ((position.X - absolutePosition.X) / absoluteSize.X) * 2 - 1
	local y = ((position.Y - absolutePosition.Y) / absoluteSize.Y) * 2 - 1
	local distance = math.sqrt(x * x + y * y)

	if distance > 1 then
		x /= distance
		y /= distance
		distance = 1
	end

	selectedHubHue = (atan2(y, x) / (math.pi * 2)) % 1
	selectedHubSaturation = distance
	selectedHubValue = 1
	selectedHubColor = Color3.fromHSV(selectedHubHue, selectedHubSaturation, selectedHubValue)

	savePreset()
	applyHubTheme()
end

local function setPage(pageName)
	currentPage = pageName
	TeleportPage.Visible = pageName == "Teleport"
	PlayerPage.Visible = pageName == "Player"
	SettingPage.Visible = pageName == "Setting"
	applyHubTheme()
end

local function updateUI()
	if enabled then
		EnableButton.Text = "DISABLE"
		FarmStatus.Text = "> STATUS: ONLINE"
		HubStatus.Text = "> FARM MODULE: ONLINE"
		FarmModuleInfo.Text = "> teleport loop is running"
		OpenFarmButton.Text = "ONLINE"

		tween(FarmModuleStroke, { Color = green, Transparency = 0.45 })
		tween(FarmModuleTitle, { TextColor3 = Color3.fromRGB(225, 255, 238) })
		tween(FarmModuleInfo, { TextColor3 = greenText })
		tween(OpenFarmButton, {
			BackgroundColor3 = green,
			TextColor3 = Color3.fromRGB(2, 8, 5)
		})
		tween(OpenFarmStroke, { Color = greenSoft })

		tween(FarmFrame, { BackgroundColor3 = Color3.fromRGB(3, 8, 5) })
		tween(FarmStroke, { Color = green, Transparency = 0 })
		tween(FarmAccent, { BackgroundColor3 = green })
		tween(FarmPulse, { BackgroundColor3 = green })
		tween(BackgroundImage, { ImageColor3 = green })
		tween(FarmNoise.SweepLine, { BackgroundColor3 = green })

		tween(FarmTitle, { TextColor3 = Color3.fromRGB(225, 255, 238) })
		tween(FarmStatus, { TextColor3 = greenText })
		tween(FarmInterval, { TextColor3 = Color3.fromRGB(70, 180, 125) })
		tween(FarmVersion, { TextColor3 = greenSoft })
		tween(EnableButton, {
			BackgroundColor3 = green,
			TextColor3 = Color3.fromRGB(2, 8, 5)
		})
		tween(EnableStroke, { Color = greenSoft })
		tween(BackButton, {
			BackgroundColor3 = Color3.fromRGB(18, 35, 28),
			TextColor3 = greenSoft
		})
	else
		EnableButton.Text = "ENABLE"
		FarmStatus.Text = "> STATUS: OFFLINE"
		HubStatus.Text = "> FARM UI: READY"
		FarmModuleInfo.Text = "> open teleport module"
		OpenFarmButton.Text = "TELEPORT"

		tween(FarmModuleStroke, { Color = red, Transparency = 0.55 })
		tween(FarmModuleTitle, { TextColor3 = Color3.fromRGB(255, 235, 238) })
		tween(FarmModuleInfo, { TextColor3 = Color3.fromRGB(255, 125, 140) })
		tween(OpenFarmButton, {
			BackgroundColor3 = redButton,
			TextColor3 = Color3.fromRGB(255, 235, 238)
		})
		tween(OpenFarmStroke, { Color = Color3.fromRGB(255, 105, 120) })

		tween(FarmFrame, { BackgroundColor3 = redDark })
		tween(FarmStroke, { Color = red, Transparency = 0.1 })
		tween(FarmAccent, { BackgroundColor3 = red })
		tween(FarmPulse, { BackgroundColor3 = red })
		tween(BackgroundImage, { ImageColor3 = red })
		tween(FarmNoise.SweepLine, { BackgroundColor3 = red })

		tween(FarmTitle, { TextColor3 = Color3.fromRGB(255, 220, 225) })
		tween(FarmStatus, { TextColor3 = Color3.fromRGB(255, 125, 140) })
		tween(FarmInterval, { TextColor3 = Color3.fromRGB(200, 75, 90) })
		tween(FarmVersion, { TextColor3 = Color3.fromRGB(255, 105, 120) })
		tween(EnableButton, {
			BackgroundColor3 = redButton,
			TextColor3 = Color3.fromRGB(255, 235, 238)
		})
		tween(EnableStroke, { Color = Color3.fromRGB(255, 105, 120) })
		tween(BackButton, {
			BackgroundColor3 = Color3.fromRGB(35, 12, 16),
			TextColor3 = Color3.fromRGB(255, 145, 155)
		})
	end

	applyHubTheme()
end

UserInputService.InputChanged:Connect(function(input)
	if draggingFrame and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
		local delta = input.Position - dragStart

		draggingFrame.Position = UDim2.new(
			startPos.X.Scale,
			startPos.X.Offset + delta.X,
			startPos.Y.Scale,
			startPos.Y.Offset + delta.Y
		)
	end

	if pickingColor and (input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch) then
		setHubColorFromPosition(input.Position)
	end
end)

TeleportTab.MouseButton1Click:Connect(function()
	setPage("Teleport")
end)

PlayerTab.MouseButton1Click:Connect(function()
	setPage("Player")
end)

SettingTab.MouseButton1Click:Connect(function()
	setPage("Setting")
end)

OpenFarmButton.MouseButton1Click:Connect(function()
	Hub.Visible = false
	FarmFrame.Visible = true
end)

BackButton.MouseButton1Click:Connect(function()
	FarmFrame.Visible = false
	Hub.Visible = true
end)

BindButton.MouseButton1Click:Connect(function()
	waitingForBind = true
	refreshSettingTexts()
end)

SpeedInput.FocusLost:Connect(function()
	applyPlayerSettingsFromInputs()
end)

JumpInput.FocusLost:Connect(function()
	applyPlayerSettingsFromInputs()
end)

ApplyStatsButton.MouseButton1Click:Connect(function()
	applyPlayerSettingsFromInputs()
end)

HideButton.MouseButton1Click:Connect(function()
	savePreset()
	ScreenGui.Enabled = false
end)

HubClose.MouseButton1Click:Connect(function()
	savePreset()
	ScreenGui.Enabled = false
end)

ColorWheel.InputBegan:Connect(function(input)
	if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
		pickingColor = true
		setHubColorFromPosition(input.Position)

		input.Changed:Connect(function()
			if input.UserInputState == Enum.UserInputState.End then
				pickingColor = false
			end
		end)
	end
end)

EnableButton.MouseButton1Click:Connect(function()
	enabled = not enabled

	if enabled then
		startTeleportLoop()
	else
		loopId += 1
	end

	updateUI()
end)

UserInputService.InputBegan:Connect(function(input)
	if input.UserInputType ~= Enum.UserInputType.Keyboard then
		return
	end

	if waitingForBind then
		toggleKey = input.KeyCode
		waitingForBind = false
		savePreset()
		refreshSettingTexts()
		return
	end

	if input.KeyCode == toggleKey then
		savePreset()
		ScreenGui.Enabled = not ScreenGui.Enabled
	end
end)

player.CharacterAdded:Connect(function()
	task.wait(1)
	applyPlayerStats()

	if enabled then
		teleportPlayer()
	end
end)

task.spawn(function()
	while ScreenGui.Parent do
		for _, dot in ipairs(HubNoise.Dots) do
			local brightness = math.random(140, 255)

			dot.Position = UDim2.new(math.random(0, 1000) / 1000, 0, math.random(0, 1000) / 1000, 0)
			dot.Size = UDim2.new(0, math.random(1, 3), 0, math.random(1, 3))
			dot.BackgroundColor3 = Color3.new(
				math.clamp(selectedHubColor.R * math.random(70, 130) / 100, 0, 1),
				math.clamp(selectedHubColor.G * brightness / 255, 0, 1),
				math.clamp(selectedHubColor.B * math.random(70, 130) / 100, 0, 1)
			)
			dot.BackgroundTransparency = math.random(88, 97) / 100
		end

		for _, dot in ipairs(FarmNoise.Dots) do
			dot.Position = UDim2.new(math.random(0, 1000) / 1000, 0, math.random(0, 1000) / 1000, 0)
			dot.Size = UDim2.new(0, math.random(1, 3), 0, math.random(1, 3))

			if enabled then
				dot.BackgroundColor3 = Color3.fromRGB(math.random(20, 90), math.random(180, 255), math.random(120, 190))
				dot.BackgroundTransparency = math.random(86, 95) / 100
			else
				dot.BackgroundColor3 = Color3.fromRGB(255, math.random(35, 90), math.random(50, 95))
				dot.BackgroundTransparency = math.random(88, 97) / 100
			end
		end

		task.wait(0.06)
	end
end)

task.spawn(function()
	while ScreenGui.Parent do
		HubNoise.SweepLine.Position = UDim2.new(0, 0, 0, -18)
		tween(HubNoise.SweepLine, {
			Position = UDim2.new(0, 0, 1, 18),
			BackgroundColor3 = selectedHubColor
		}, 1.35)

		FarmNoise.SweepLine.Position = UDim2.new(0, 0, 0, -18)
		tween(FarmNoise.SweepLine, {
			Position = UDim2.new(0, 0, 1, 18),
			BackgroundColor3 = enabled and green or red
		}, 1.35)

		task.wait(1.8)
	end
end)

task.spawn(function()
	while ScreenGui.Parent do
		tween(HubPulse, {
			BackgroundTransparency = 0.08
		}, 0.55)

		tween(FarmPulse, {
			BackgroundTransparency = enabled and 0.05 or 0.45
		}, 0.55)

		task.wait(0.55)

		tween(HubPulse, {
			BackgroundTransparency = 0.28
		}, 0.55)

		tween(FarmPulse, {
			BackgroundTransparency = enabled and 0.25 or 0.15
		}, 0.55)

		task.wait(0.55)
	end
end)

setPage("Teleport")
updateUI()
applyPlayerStats()
savePreset()

Features & Information

- NO KEY REQUIRED!!!! - Quidz Farm via teleporting to the treasure chest - Custom WalkSpeed & JumpPower - Customizable and closeable UI
#Cheat#Bear Alpha

Community Comments (0)

No comments yet for this script.

More Scripts for BEAR (Alpha)