
Key Required

-- LocalScript (StarterPlayerScripts)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
-- Atualiza character ao respawn
player.CharacterAdded:Connect(function(char)
character = char
humanoid = character:WaitForChild("Humanoid")
rootPart = character:WaitForChild("HumanoidRootPart")
end)
-- Criar GUI
local gui = Instance.new("ScreenGui")
gui.Parent = player:WaitForChild("PlayerGui")
gui.ResetOnSpawn = false
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 250, 0, 50)
frame.Position = UDim2.new(0.5, -125, 1, -120) -- Parte inferior da tela
frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
frame.BorderSizePixel = 0
frame.Parent = gui
local corner = Instance.new("UICorner", frame)
corner.CornerRadius = UDim.new(0, 12)
local textbox = Instance.new("TextBox")
textbox.Size = UDim2.new(1, -20, 1, -20)
textbox.Position = UDim2.new(0, 10, 0, 10)
textbox.PlaceholderText = "Digite: fly ou infinitejump"
textbox.Text = ""
textbox.TextScaled = true
textbox.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
textbox.TextColor3 = Color3.new(1,1,1)
textbox.Parent = frame
local corner2 = Instance.new("UICorner", textbox)
corner2.CornerRadius = UDim.new(0, 8)
-- Variáveis
local flying = false
local infiniteJump = false
local bodyVelocity
local bodyGyro
-- Função Fly
local function toggleFly()
if flying then
flying = false
if bodyVelocity then bodyVelocity:Destroy() end
if bodyGyro then bodyGyro:Destroy() end
else
flying = true
bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(9e9,9e9,9e9)
bodyVelocity.Velocity = Vector3.new(0,0,0)
bodyVelocity.Parent = rootPart
bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(9e9,9e9,9e9)
bodyGyro.CFrame = rootPart.CFrame
bodyGyro.Parent = rootPart
game:GetService("RunService").RenderStepped:Connect(function()
if flying and bodyVelocity then
bodyVelocity.Velocity = humanoid.MoveDirection * 50
bodyGyro.CFrame = workspace.CurrentCamera.CFrame
end
end)
end
end
-- Infinite Jump
UserInputService.JumpRequest:Connect(function()
if infiniteJump and humanoid then
humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
end
end)
-- Detectar comando digitado
textbox.FocusLost:Connect(function(enterPressed)
if enterPressed then
local text = string.lower(textbox.Text)
if text == "fly" then
toggleFly()
elseif text == "infinitejump" then
infiniteJump = not infiniteJump
end
textbox.Text = ""
end
end)



It's not CoreGui🙏