Im insanely bad at making weapons especially guns. I dont know anything about raycasting or anything. I just wanted to note that. I am trying to make a only FORWARD shooting gun. I dont want it to go where the mouse is. Just forward. Any help is appreciated.
Update: It may be the line runner type camera that is effecting the gun.
Do you have anything so far, even if it doesn’t work? Can you also provide more context about what you want to use this for?
1 Like
If you want this you can use the CFrame.LookVector of either the barrel or the player’s torso as the direction of the raycast, this would make the raycast only ever shoot forward relative to the player/gun
You could store a part in the gun (your bullet) and you could clone it and tween it so it goes forward until it hits something. You can also check if it hits the object you want it to hit and then do what you want to do.
I found out i do not need this anymore as ive fixed whatever issue i had. Thank you for your help.