RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"fly on"
-- not sure what you are trying to do, but here's a script to make a character fly local player = game.Players.LocalPlayer local character = player.Character local flying = false local function toggleFlying() if flying then flying = false character.Humanoid:ChangeState(Enum.HumanoidStateType.Landed) else flying = true character.Humanoid:ChangeState(Enum.HumanoidStateType.Flying) end end player.KeyDown:Connect(function(key) if key == "f" then toggleFlying() end end)