
9.2k Views
9 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
TTWB طيران
-- سكربت طيران بسيط
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local flying = false
local speed = 50
-- إنشاء BodyVelocity عشان يحرك اللاعب
local bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(4000, 4000, 4000)
bv.Velocity = Vector3.zero
bv.Parent = character.PrimaryPart
-- التبديل بين الطيران والتوقف
function toggleFly()
flying = not flying
if flying then
print("بدأ الطيران 🚀")
else
bv.Velocity = Vector3.zero
print("وقف الطيران ⛔")
end
end
-- لما يضغط زر "F" يتبدل الطيران
game:GetService("UserInputService").InputBegan:Connect(function(input, gpe)
if gpe then return end
if input.KeyCode == Enum.KeyCode.F then
toggleFly()
end
end)
-- تحديث الحركة
game:GetService("RunService").Heartbeat:Connect(function()
if flying then
local moveDirection = humanoid.MoveDirection
bv.Velocity = moveDirection * speed + Vector3.new(0, speed/2, 0)
end
end)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!





