Replicating Trails On Clients

Hi! Currently I am implementing Client sided VFX through remote events. Firing other clients/players from the server when a player uses a move. Through this system I am currently trying to implement the use of trails for weapons, but I am not sure how to go about doing it.

Should I just enable the trails in a server script when a player M1s?
Should I pass the “weapon object” to the other clients and enable in client local scripts?
If I do weapon trails on the server will there be lots of lag?

Any advice is appreciated!

What kind of beam are you talking about? Like a beam for the bullets? Or what?

If its for bullets, handle it all in the client side.

It’s a sword trail. I’m thinking I would spawn the sword on server and weld it to the character. The issue is I would like the swords to have a trail, but I’m not sure how to replicate the trail onto the clients, instead of handling it on the server

You could signal the server whenever the player swings their sword, however, I believe you shouldn’t send another signal to every client in the server from the server if objects on the server replicates to all of the clients anyways.

Try making a remote event on the sword or putting it in ReplicatedStorage, and :FireServer() whenever the client activates the sword tool. On the server, retrieve the tool and it’s trail. Then enable it and use task.wait to wait a bit after enabling it, and then disable it. If the server does this, all of the clients on the server should be able to see the trail.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.