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)

5 comments
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.
no its from a local script, I already knew about this, but it still didn't work
@the8bitdude11
maybe you could weld the muzzleflash to the end of the gun instead of just positioning it?
ohhhh thanks, after that I should just enable and disable the image?