Gun bullet ricochet on the wall with FastCast

  1. What do you want to achieve? Hello, i am currently working on a gun system with FastCast but my gun can bullets ricochet on the wall when i shoot very close to it, and it can shoot through walls too, as you can see on this video : 2023-01-23 15-28-50

  2. What is the issue? My gun bullets ricochet on the walls and can shoot through them.

This is the code of the caster :
image

(firePoint is an attachement on the front of the gun)

  1. What solutions have you tried so far? I searched on forums and tried to fix it myself.

If you need more details, feel free to ask me

An easy solution to this would be to have the ray fire from the head of the character and have the gun’s bullet purely be a visual effect.
Many popular shooter games on Roblox, such as Entry Point, do this.

2 Likes

Sorry for the late answer, so as an origin i would put player.Character.Head.Position ?

Correct, but since you marked the answer, you have already answered this question.
For anybody stumbling upon this post several months later, the answer is yes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.