
114.4k Views
14 Executions
Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
New script
Updates
Script edited: Create script
-- هذا السكربت يتيح للشخصية الطيران عند الضغط على مفتاح "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)
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!








