
Keyless

local CoreGui = game:GetService("CoreGui")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UserInputService = game:GetService("UserInputService")
local StarterGui = game:GetService("StarterGui")
-- Destroy existing UI to prevent overlapping
if CoreGui:FindFirstChild("GuessMyNumberUI") then
CoreGui.GuessMyNumberUI:Destroy()
end
-- Create ScreenGui
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "GuessMyNumberUI"
ScreenGui.Parent = CoreGui
ScreenGui.Enabled = true -- Visible on startup
-- Main Frame
local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 300, 0, 200)
MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100)
MainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
MainFrame.BorderSizePixel = 0
MainFrame.Parent = ScreenGui
local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = MainFrame
local UIStroke = Instance.new("UIStroke")
UIStroke.Color = Color3.fromRGB(60, 60, 60)
UIStroke.Thickness = 2
UIStroke.Parent = MainFrame
-- Title
local Title = Instance.new("TextLabel")
Title.Size = UDim2.new(1, 0, 0, 40)
Title.BackgroundTransparency = 1
Title.Text = "Guess My Number"
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.Font = Enum.Font.GothamBold
Title.TextSize = 18
Title.Parent = MainFrame
-- Reveal Number Button
local RevealBtn = Instance.new("TextButton")
RevealBtn.Size = UDim2.new(0.8, 0, 0, 35)
RevealBtn.Position = UDim2.new(0.1, 0, 0.25, 0)
RevealBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 215)
RevealBtn.Text = "Reveal Number"
RevealBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
RevealBtn.Font = Enum.Font.GothamSemibold
RevealBtn.TextSize = 14
RevealBtn.AutoButtonColor = true
RevealBtn.Parent = MainFrame
local RevealCorner = Instance.new("UICorner")
RevealCorner.CornerRadius = UDim.new(0, 8)
RevealCorner.Parent = RevealBtn
-- Hint Number Button
local HintBtn = Instance.new("TextButton")
HintBtn.Size = UDim2.new(0.8, 0, 0, 35)
HintBtn.Position = UDim2.new(0.1, 0, 0.5, 0)
HintBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 85)
HintBtn.Text = "Hint Number"
HintBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
HintBtn.Font = Enum.Font.GothamSemibold
HintBtn.TextSize = 14
HintBtn.AutoButtonColor = true
HintBtn.Parent = MainFrame
local HintCorner = Instance.new("UICorner")
HintCorner.CornerRadius = UDim.new(0, 8)
HintCorner.Parent = HintBtn
-- Footer (Signature)
local Footer = Instance.new("TextLabel")
Footer.Size = UDim2.new(1, 0, 0, 30)
Footer.Position = UDim2.new(0, 0, 1, -30)
Footer.BackgroundTransparency = 1
Footer.Text = "made by akifrzayev"
Footer.TextColor3 = Color3.fromRGB(150, 150, 150)
Footer.Font = Enum.Font.Gotham
Footer.TextSize = 12
Footer.Parent = MainFrame
--- Dragging Logic ---
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 or input.UserInputType == Enum.UserInputType.Touch 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 or input.UserInputType == Enum.UserInputType.Touch then
dragInput = input
end
end)
UserInputService.InputChanged:Connect(function(input)
if input == dragInput and dragging then
update(input)
end
end)
--- Button Functions (FireServer) ---
RevealBtn.MouseButton1Click:Connect(function()
ReplicatedStorage.Events.Remote.UseRevealNumber:FireServer()
end)
HintBtn.MouseButton1Click:Connect(function()
ReplicatedStorage.Events.Remote.UseHint:FireServer()
end)
--- Toggle Menu with 'M' ---
UserInputService.InputBegan:Connect(function(input, gameProcessed)
-- Prevent toggling if the user is typing in chat
if not gameProcessed then
if input.KeyCode == Enum.KeyCode.M then
ScreenGui.Enabled = not ScreenGui.Enabled
end
end
end)
--- Notification ---
-- Small delay to ensure the notification works properly in executors
task.spawn(function()
task.wait(0.5)
pcall(function()
StarterGui:SetCore("SendNotification", {
Title = "Script Loaded",
Text = "Press 'M' to hide or show the menu.",
Duration = 7 -- Duration in seconds
})
end)
end)
@adadwadwa I agree
W script if this gets patched it's bc of you
10/10 i love tss so much
patched in latest update
Dont work