動作中
FLYLYLLYLLY THIS IS A FLY SCRUPTT

スクリプトコード
Lua
-- Simple Fly Script (for educational purposes / Roblox Studio testing)
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local flying = false
local flySpeed = 50
local bv, bg
local function startFly()
if flying then return end
flying = true
bv = Instance.new("BodyVelocity")
bv.MaxForce = Vector3.new(1e5, 1e5, 1e5)
bv.Velocity = Vector3.new(0, 0, 0)
bv.Parent = rootPart
bg = Instance.new("BodyGyro")
bg.MaxTorque = Vector3.new(1e5, 1e5, 1e5)
bg.P = 12500
bg.Parent = rootPart
humanoid.PlatformStand = true
end
local function stopFly()
if not flying then return end
flying = false
humanoid.PlatformStand = false
if bv then bv:Destroy() end
if bg then bg:Destroy() end
end
local function updateFly()
if not flying then return end
local moveDirection = Vector3.new(0, 0, 0)
if UserInputService:IsKeyDown(Enum.KeyCode.W) then moveDirection = moveDirection + workspace.CurrentCamera.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.S) then moveDirection = moveDirection - workspace.CurrentCamera.CFrame.LookVector end
if UserInputService:IsKeyDown(Enum.KeyCode.A) then moveDirection = moveDirection - workspace.CurrentCamera.CFrame.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.D) then moveDirection = moveDirection + workspace.CurrentCamera.CFrame.RightVector end
if UserInputService:IsKeyDown(Enum.KeyCode.Space) then moveDirection = moveDirection + Vector3.new(0, 1, 0) end
if UserInputService:IsKeyDown(Enum.KeyCode.LeftControl) then moveDirection = moveDirection - Vector3.new(0, 1, 0) end
bv.Velocity = moveDirection.Unit * flySpeed
bg.CFrame = workspace.CurrentCamera.CFrame
end
-- Toggle with F key
UserInputService.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.F then
if flying then
stopFly()
else
startFly()
end
end
end)
RunService.Heartbeat:Connect(updateFly)
-- Cleanup
player.CharacterAdded:Connect(function(newChar)
character = newChar
humanoid = newChar:WaitForChild("Humanoid")
rootPart = newChar:WaitForChild("HumanoidRootPart")
if flying then stopFly() end
end)説明
THIS IS A FLY SCRIPT THIS IS NOT MADE BY AI IT WAS INDEED MADE BY ME AFJHAKDJFHASDKFJHASKDFJHASKDFJHASDKFJHASDKJFHASDFKJHASDKFJHASDFHASDFKJ
コメント (0)
- 最初のコメントを投稿しましょう。
よくある質問
- FLYLYLLYLLY THIS IS A FLY SCRUPTTスクリプトはどう使いますか?
- 上のスクリプトコードをコピーし、Robloxエグゼキューターを開いて貼り付け、ゲーム中に実行を押してください。スクリプトが実行されると、機能が即座に有効になります。
- FLYLYLLYLLY THIS IS A FLY SCRUPTTスクリプトは無料ですか?
- はい。このスクリプトは無料でコピー&使用できます。キーシステムを使用している場合は、リンクから無料でキーを取得してください。
- FLYLYLLYLLY THIS IS A FLY SCRUPTTスクリプトの使用は安全ですか?
- ソースコード全体がこのページに表示されるので、実行前に内容を正確に確認できます。信頼できるエグゼキューターを使用し、スクリプトの使用はRobloxの利用規約に違反するため、自己責任で使用してください。
- FLYLYLLYLLY THIS IS A FLY SCRUPTTに対応するエグゼキューターは?
- このスクリプトはほとんどの人気Robloxエグゼキューターで動作します。お使いのデバイス向けの信頼できる無料または有料エグゼキューターを見つけるには、エグゼキューターページをご覧ください。