Currently working on a wand - In doing so, the Player equips the wand and it loads a .Chatted function to locate the spoken spell.
The [local] script then fires a ServerEvent (Which is inside the wand) which then locates a Module within the Wand with said spell and fires it.
This goes from local > Server > Module, however the projectile is to remove itself / cause damage upon impact and in doing so is having delays of a few seconds. Was wondering if there's a way to avoid this?
Was going to post the code itself but it's too long.
Thank you!
The delay is not coming from .Touched you will always get a little bit of delay when using PartOnRay
but the delay is usually not noticeable when run in a local script, the problem is there is a delay when you FireServer
so if possible try to do as much as you can in the local script then validate the information in the server script.