
KeylessUniversal

local Players = game:GetService("Players")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local UIS = game:GetService("UserInputService")
-- UI Setup
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
screenGui.ResetOnSpawn = false
local messageLabel = Instance.new("TextLabel", screenGui)
messageLabel.Size = UDim2.new(0.5, 0, 0.1, 0)
messageLabel.Position = UDim2.new(0.25, 0, 0.05, 0)
messageLabel.TextScaled = true
messageLabel.BackgroundColor3 = Color3.fromRGB(50, 50, 50)
messageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
messageLabel.Text = ""
-- Prize UI Frame
local prizeFrame = Instance.new("Frame", screenGui)
prizeFrame.Size = UDim2.new(0.3, 0, 0.3, 0)
prizeFrame.Position = UDim2.new(0.35, 0, 0.2, 0)
prizeFrame.Visible = false
prizeFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
prizeFrame.Active = true
prizeFrame.Draggable = true
-- Prize Button Creator
local function createButton(text, position, callback)
local button = Instance.new("TextButton", prizeFrame)
button.Size = UDim2.new(0.8, 0, 0.2, 0)
button.Position = position
button.Text = text
button.BackgroundColor3 = Color3.fromRGB(80, 80, 255)
button.TextColor3 = Color3.fromRGB(255, 255, 255)
button.TextScaled = true
button.MouseButton1Click:Connect(callback)
end
-- Prize Buttons
createButton("Fly", UDim2.new(0.1, 0, 0.1, 0), function()
character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid and character:FindFirstChild("HumanoidRootPart") then
local bp = Instance.new("BodyPosition", character.HumanoidRootPart)
bp.Position = character.HumanoidRootPart.Position + Vector3.new(0, 50, 0)
bp.MaxForce = Vector3.new(1e5, 1e5, 1e5)
game.Debris:AddItem(bp, 3)
end
end)
createButton("More Speed", UDim2.new(0.1, 0, 0.4, 0), function()
character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.WalkSpeed = 32
end
end)
createButton("Big Jump", UDim2.new(0.1, 0, 0.7, 0), function()
character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid.JumpPower = 100
end
end)
-- Jump Checker
local function waitForJump(count, timeLimit)
local jumps = 0
local success = false
local conn
local deadline = tick() + timeLimit
conn = UIS.JumpRequest:Connect(function()
if tick() <= deadline then
jumps += 1
if jumps >= count then
success = true
conn:Disconnect()
end
end
end)
while tick() <= deadline do
if success then break end
task.wait(0.1)
end
if not success then
local hrp = character:WaitForChild("HumanoidRootPart")
hrp.CFrame = workspace:FindFirstChild("SpawnLocation") and workspace.SpawnLocation.CFrame + Vector3.new(0, 5, 0) or CFrame.new(0, 10, 0)
end
return success
end
-- Game Flow
local function startGame()
messageLabel.Text = "You have 5 seconds to jump!"
local firstSuccess = waitForJump(1, 5)
if not firstSuccess then
messageLabel.Text = "Try again!"
task.wait(2)
return startGame()
end
messageLabel.Text = "Congrats! Now jump twice. You have 10 seconds!"
local secondSuccess = waitForJump(2, 10)
if secondSuccess then
messageLabel.Text = "You win! Now have this prize."
task.wait(2)
prizeFrame.Visible = true
else
messageLabel.Text = "Try again!"
task.wait(2)
return startGame()
end
end
startGame()



No