
KeylessUniversal

local player = game.Players.LocalPlayer
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local character = player.Character or player.CharacterAdded:Wait()
local hrp = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local flying = false
local speed = 60
local ascendSpeed = 50
local bv, bg
-- إنشاء زر على الشاشة للجوال
local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
local flyButton = Instance.new("TextButton", screenGui)
flyButton.Size = UDim2.new(0, 120, 0, 50)
flyButton.Position = UDim2.new(0.05, 0, 0.8, 0)
flyButton.Text = "✈️ الطيران"
flyButton.BackgroundColor3 = Color3.fromRGB(0, 150, 255)
flyButton.TextColor3 = Color3.new(1,1,1)
flyButton.TextScaled = true
flyButton.BorderSizePixel = 0
flyButton.BackgroundTransparency = 0.2
flyButton.Visible = true
flyButton.Active = true
flyButton.AutoButtonColor = true
flyButton.TextStrokeTransparency = 0.5
flyButton.Font = Enum.Font.SourceSansBold
local function enableFly()
if flying then return end
flying = true
humanoid.PlatformStand = true
bv = Instance.new("BodyVelocity", hrp)
bv.MaxForce = Vector3.new(1e5, 1e5, 1e5)
bv.Velocity = Vector3.new(0,0,0)
bg = Instance.new("BodyGyro", hrp)
bg.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
bg.P = 3000
flyButton.Text = "🛑 إيقاف الطيران"
end
local function disableFly()
if not flying then return end
flying = false
if bv then bv:Destroy() end
if bg then bg:Destroy() end
humanoid.PlatformStand = false
flyButton.Text = "✈️ الطيران"
end
flyButton.MouseButton1Click:Connect(function()
if flying then disableFly() else enableFly() end
end)
-- حركة الكاميرا والاتجاه
RunService.RenderStepped:Connect(function()
if flying and hrp then
local cam = workspace.CurrentCamera
bg.CFrame = cam.CFrame
local moveDir = Vector3.new()
-- دعم الجوال والمفاتيح
if UIS:IsKeyDown(Enum.KeyCode.W) or UIS.TouchEnabled then
moveDir = moveDir + cam.CFrame.LookVector
end
if UIS:IsKeyDown(Enum.KeyCode.S) then
moveDir = moveDir - cam.CFrame.LookVector
end
if UIS:IsKeyDown(Enum.KeyCode.Space) then
moveDir = moveDir + Vector3.new(0,1,0)
end
if UIS:IsKeyDown(Enum.KeyCode.LeftControl) then
moveDir = moveDir - Vector3.new(0,1,0)
end
bv.Velocity = moveDir * speed
end
end)
-- تنظيف عند الموت أو إعادة التحميل
player.CharacterRemoving:Connect(disableFly)No comments yet for this script.



