In my game, I am using the default Roblox Rocket Launcher tool taken from the Roblox Sets. When I use it online however, the rocket does not explode EXACTLY on touch, rather it explodes a few moments after it hits any part (The rocket goes through the part, and shortly after explodes) Is this lag? Or perhaps some flaw in the script..
I need the explosion to be instantaneous because I plan to be tweaking the script so that you will be able to rocket jump and such.
Thanks in advance.
EDIT: I have now added a way to detect collision using rays, and it works a bit faster better than the Touched event, HOWEVER, when I play on Solo mode (Test) in the studio, all the rocket jumps I commit and all knockbacks are perfect, and just as I wanted them to be, but when it comes to online, there's still that slight delay that can really screw you up, is there any other way to get rid of this delay?

5 comments
The .Touched() event does seem to act up like this at times. I might suggest changing the script to instead cast a ray in front of the rocket on runService.Stepped() intervals, and using that to detect hits.
I will try that.
Post has been edited.
Try using the wait() method for the RenderStepped event in the RunService when the ray hits something. Make sure it's in a LocalScript otherwise it will not work.
This is working just fine in a regular Script..