Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Default Roblox Rocket Launcher Lag? [UNSOLVED]

Asked by 10 years ago

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?

1
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. Defaultio 160 — 10y
0
I will try that. NutsNWaffles 135 — 10y
0
Post has been edited. NutsNWaffles 135 — 10y
0
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. Spongocardo 1991 — 10y
0
This is working just fine in a regular Script.. NutsNWaffles 135 — 10y

1 answer

Log in to vote
0
Answered by 10 years ago

You can try use a local script in the character that will make the rocket explode on touch. Since Solo Mode is local and run on your computer and local scripts do the same; you can get the same result in online mode from solo.

0
How can I do that? NutsNWaffles 135 — 10y
0
You can put the local script into the gui too Warafare48 10 — 10y
0
I can't find a way to make that work. NutsNWaffles 135 — 10y
Ad

Answer this question