How to make bullet spread with mouse.Target

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I made a gun system. it detects player with mouse.Target. I am trying if possible to make a bullet spread like that but keep the mouse.target thing.
  2. What is the issue? Include screenshots / videos if possible!
    The issue is i dont know how would i make bullet spread that used mouse.target
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried maybe offseting the mouse’s position but sadly it didnt work.

So how would i do this?

2 Likes

Are you raycasting the gun to the mouse position

1 Like

I am not raycasting anything. I am just in client using mouse.Target. The reason i dont is because there is a delay and the hitscan wont work when moving or jumping.

1 Like

well , can you send the script

1 Like

If you want the bullet to have a random offset, you need to create a function that chooses a point at a given location (in your case, it’s mouse.Hit), in a given radius, based on accuracy factor. If you want, you can set the given location to mouse.Target’s location.

1 Like

how so? How can i make an offset with mouse.Target?

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