I want to make the PointLight and ImageLabel appear for 0.05 seconds without interrupting my OnServerEvent function.
Currently I have it inside the OnServerEvent function because that is when I want it to appear, but it slows the fire rate of my gun. I have looked on the Dev Forum for a solutions but there weren’t exactly specific keywords I knew to search for.
However, note that if this entire thing runs again before the delay time is up, it will create oddly timed changes to the light due to it being enabled/disabled at specific intervals. So if you were to run this twice very quickly, it would look like the light only changed once because it sets it to true twice, then false twice. 5 or more times rapidly and it could cause the light to blink very quickly.