
KeylessUniversal

-- Create the GUI Hub
local player = game.Players.LocalPlayer
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "RandomHub"
screenGui.Parent = player.PlayerGui
-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 300, 0, 400)
mainFrame.Position = UDim2.new(0.5, -150, 0.5, -200)
mainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
mainFrame.BorderSizePixel = 2
mainFrame.BorderColor3 = Color3.fromRGB(0, 255, 0)
mainFrame.Visible = false
mainFrame.Parent = screenGui
-- Draggable Frame
local dragging, dragStart, startPos
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 dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
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
end)
-- Open/Close Button
local openButton = Instance.new("TextButton")
openButton.Size = UDim2.new(0, 200, 0, 50)
openButton.Position = UDim2.new(0.5, -100, 0.9, 0)
openButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0)
openButton.Text = "Open RandomHub"
openButton.Parent = screenGui
openButton.MouseButton1Click:Connect(function()
mainFrame.Visible = not mainFrame.Visible
end)
-- Random Scripts
local scripts = {
{"Freeze Player", function()
local target = game.Players:GetPlayers()[2] -- Freezes a random other player
if target and target.Character then
for _, part in pairs(target.Character:GetChildren()) do
if part:IsA("BasePart") then
part.Anchored = true
end
end
end
end},
{"Explode Player", function()
local explosion = Instance.new("Explosion")
explosion.Position = player.Character.HumanoidRootPart.Position
explosion.BlastRadius = 20
explosion.Parent = workspace
end},
{"Spawn Neon Ball", function()
local ball = Instance.new("Part")
ball.Shape = Enum.PartType.Ball
ball.Size = Vector3.new(5, 5, 5)
ball.BrickColor = BrickColor.new("Bright red")
ball.Material = Enum.Material.Neon
ball.Position = player.Character.HumanoidRootPart.Position + Vector3.new(0, 5, 0)
ball.Parent = workspace
end},
{"Instant Kill", function()
player.Character.Humanoid.Health = 0
end},
{"Fly Mode", function()
player.Character.HumanoidRootPart.Anchored = true
wait(5)
player.Character.HumanoidRootPart.Anchored = false
end}
}
-- Add Buttons for Scripts
for i, scriptData in ipairs(scripts) do
local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 250, 0, 40)
button.Position = UDim2.new(0.5, -125, 0, (i - 1) * 50 + 10)
button.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
button.Text = scriptData[1]
button.Parent = mainFrame
button.MouseButton1Click:Connect(scriptData[2])
end



@mscript32 Hey so I switched to codex today and I wanna ask u 2 questions
First, is this a script hub that uses scriptblox as search and second
Is this ai code?
is ai code because it have --
@OpenConfiguration The -- thing is called "comments" in roblox scripting. More common when ai makes the code so it's probably made by ai. My *umption only tho
bro my gui is better than that trash