RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"fly script"
-- local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local function fly() local character = player.Character local humanoid = character:WaitForChild("Humanoid") local flySpeed = 50 local maxFly = 150 local currentFly = 0 local flyDirection = Vector3.new(0,1,0) while currentFly < maxFly do local flyVector = Vector3.new(flyDirection.X * flySpeed, flyDirection.Y * flySpeed, flyDirection.Z * flySpeed) humanoid:ChangeState("Flying") humanoid.PlatformStand = true humanoid:MoveTo(humanoid.Position + flyVector) currentFly = currentFly + flySpeed wait() end humanoid:ChangeState("FallingDown") humanoid.PlatformStand = false end mouse.Button1Down:Connect(fly)