Hello! I want to make a shooting game where I can fire a fireball at a certain direction using bodyVelocity. But it only goes forward. How to I make bodyVelocity go in the direction of the player’s mouse?
A player’s mouse position is only accessible from the client, yet I assume you’re shooting the fireball from the server.
You’ll want to include the player’s mouse position (or the desired shoot direction) as an argument to the remote that you’re firing to tell the server to shoot the fireball. The local player’s mouse position can be obtained by game.Players.LocalPlayer:GetMouse().Hit.Position.
and it gives me the error of: “lookVector is not a valid member of Vector3”.
Do any of you know what I’m doing wrong here (once again I apologise for notifying everyone)?