
1.8k Views
5.4k Executions
Simple Fly Script
Universal Script π
ziynet7bfkv0akinciFirst script
6 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Simple Fly Script
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 speed = 75
local bodyVelocity
local bodyGyro
local function startFlying()
if flying then return end
flying = true
bodyVelocity = Instance.new("BodyVelocity")
bodyVelocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bodyVelocity.Parent = rootPart
bodyGyro = Instance.new("BodyGyro")
bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bodyGyro.P = 10000
bodyGyro.Parent = rootPart
humanoid.PlatformStand = true
RunService:BindToRenderStep("Fly", Enum.RenderPriority.Character.Value, function()
if not flying then return end
local camera = workspace.CurrentCamera
local moveDirection = humanoid.MoveDirection
bodyVelocity.Velocity = moveDirection * speed
bodyGyro.CFrame = camera.CFrame
end)
end
Comments
0Log in to join the conversation. Login
No comments yet. Be the first!







