
I was following a youtubers tutorial, and it sort of worked. Issue is, I can’t shoot the dummy from far away. Any solutions?

I was following a youtubers tutorial, and it sort of worked. Issue is, I can’t shoot the dummy from far away. Any solutions?
What is position in this case?
Could you elaborate on that, please? I’m not too good with Roblox studio.
Your remote event has a parameter called position, what is it set to on client?
Let me check that, it’ll just be a moment.
In the code, I added print(position)
It wouldn’t print until I went up to the dummy and shot.
However, this is what I got.
Post the client code if you can.
Try getting the unit of those two positions.
How would I do that? I’m not to familiar with scripting.
.Unit after the parenthesis, that gets the unit from a vector.
![]()
Before or after raycastpa? Would I remove the *3000 if it’s before the raycastpa?
Before the multiplication with the 3000
What was this supposed to do again? Nothing changed.
I’m not sure what the problem is without debugging it myself, make sure the video you used has the same code as you. My guess is you forgot something.
I did make sure my code was the same in the video. Watched it 3 times.
Where Exactly are you firing this?
there may be an Object blocking your Ray from reaching its Proper Destination?
I was told to use a muzzleflash in the video. Cancollide is off, I’ve made sure that it’s outside the gun
CanCollide doesn’t help the Ray go through stuff, you may be looking at CanQuery for this
Also, if you are using a viewmodel for this and its Parented to the Camera, you should Probably handle the Ray around the Character and not on the Viewmodel as the Viewmodel will be based on where the Camera is located rather than where the Player is.
God bless you man. The CanQuery fixed my problem.