"fly script r6 and r15"
xxxxxxxxxx
-- local script
local player = game.Players.LocalPlayer
local flying = false
local function fly()
if flying then
flying = false
player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Landed)
else
flying = true
player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Flying)
end
end
game:GetService("UserInputService").InputBegan:Connect(function(inputObject, gameProcessedEvent)
if inputObject.KeyCode == Enum.KeyCode.Space then
fly()
end
end)