-- هذا السكربت يتيح للشخصية الطيران عند الضغط على مفتاح "E" local userInputService = game:GetService("UserInputService") local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:FindFirstChildOfClass("Humanoid") local flying = false local function toggleFly() flying = not flying if flying then humanoid.PlatformStand = true -- تعطيل تحكم اللاعب local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.Velocity = Vector3.new(0, 0, 0) bodyVelocity.MaxForce = Vector3.new(4000, 4000, 4000) bodyVelocity.Parent = character.HumanoidRootPart else humanoid.PlatformStand = false -- إعادة التحكم للاعب for _, obj in ipairs(character.HumanoidRootPart:GetChildren()) do if obj:IsA("BodyVelocity") then obj:Destroy() end end end end userInputService.InputBegan:Connect(function(input, gameProcessedEvent) if not gameProcessedEvent and input.KeyCode == Enum.KeyCode.E then toggleFly() end end)