RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Fly toggle script"
-- local script local player = game.Players.LocalPlayer local fly = false local function toggleFly() if fly then fly = false player.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Jumping") else fly = true player.Character:FindFirstChildOfClass("Humanoid"):ChangeState("Flying") end end player.KeyDown:Connect(function(key) if key == "f" then toggleFly() end end)