zCrxtix
(zavier)
December 13, 2020, 2:56pm
#1
Hello, I would like to know how to make a fly command using WASD. I’ve seen some tutorials on YouTube, but they use the mouse. Here is my code.
In main script:
if args[1] == prefix.."fly" then
mod.Fly(player, args)
end
end
In module script:
commands.Fly = function(player, args)
--code
end
4 Likes
I made a topic with the script if you want to check it out:
So I made my own flying script since I am making a tycoon with a fly tool. But every time I press W or a button it does not change the direction of the player to the camera, and I have to press it again to change the direction which is bad when you are not trying to move in a straight line. I have body gyro but it does nothing to fix it.
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local HumanRootPart = character:WaitForChild("Humano…
you need BodyVelocity, BodyGyro use a bool value say fly or not / use user input service fire () z q d s or Wasd need ipad ply physique or xbox // ne e or buton unfly
and it change vector to fire client