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

My muzzle flash lags when player is moving?

Asked by 2 years ago
Edited 2 years ago

Here's a video: https://i.gyazo.com/98e412d33066d03b3a97234c24ff28d2.gif Good day, I was wondering on how to fix that kind of lag demonstrated in the video?

Here's my local script:

local fireeffect = replicatedstorage:WaitForChild("Particletest"):Clone()
            fireeffect.Parent = script.Parent.Handle
            fireeffect.Position = startbul.WorldPosition
            game.Debris:AddItem(fireeffect, 0.15)
0
I'm assuming you are dealing with the flash on the server side, in which case it will be offset based off the amount of ping/ms the player has. 2 ways you could deal with this are to do the muzzle flash on just the shooter's client, or have the server fire all the clients to make the flash locally. the8bitdude11 358 — 2y
0
no its from a local script, I already knew about this, but it still didn't work RichDiggerW189 2 — 2y
0
@the8bitdude11 RichDiggerW189 2 — 2y
0
maybe you could weld the muzzleflash to the end of the gun instead of just positioning it? the8bitdude11 358 — 2y
0
ohhhh thanks, after that I should just enable and disable the image? RichDiggerW189 2 — 2y

Answer this question