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

Touched event Delay...?

Asked by 9 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 tweaked the script so that you will be able to rocket jump and such.

I have also 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, and completely makes rocket jumping impossible. Is there any way to get rid of this delay?

Thanks in advance.

1
Can you post your script? Spongocardo 1991 — 9y
0
My script has nothing to do with this phenomenon, I guarantee it. NutsNWaffles 135 — 9y
0
i wouldnt call that a phenomum :P NinjoOnline 1146 — 9y
0
I have that same probem too with my own rocket stuff and I'm not sure how to fix it :( Octillerysnacker 115 — 9y
View all comments (5 more)
0
Well I can't help unless you post your script. However, I would suggest using RunService's RenderStepeed event in place of a wait() in your Touched event. Spongocardo 1991 — 9y
0
This problem occurs with the default rocket launcher. NutsNWaffles 135 — 9y
0
Yes, but you said you added a way for the rocket to detect collision using Raycasting, so the script would be edited. Could you post your edits? Spongocardo 1991 — 9y
0
The Roblox Touched event has always been slightly glitchy. I would bet on that being the problem, or just lag. Perci1 4988 — 9y
0
+1 MEEEE TOOOOO asadefa 55 — 4y

Answer this question