[HELP] Need to know how to make particles sync with other players

use server side to broadcast a client event (this event send the instruction to start the particle effect)

yes but you cant get player coords from serverside so you would need to go into a clent script get the coords save them globally trigger a server event that will take thoughs variables and trigger a client even to everyone that sets their respective variables to the values given by the initial client. It is confusing i know but that is the only way i have found to do it. If you want an example look at how additional server sync works.

1 Like

I got the fires showing up for everyone by spawning them on their client at the same time but its weird because the code breaks after it runs for a few times…

it’s breaking ? what do you mean ?

What I meant was when the fire was removed from the table it was in the function to make it spread seemed to break. I fixed it though by doing some more checks so its a little harder on the client who first spawned the fire but thats just how it has to be for now. Anyway I got it 100% working now i just want to focus on making everything look better :slight_smile:

1 Like

how close is this to working? iv been looking for this and would love to use it.

it is working, the code in the topic up top is fully working.

How would you go about stopping the fx?

There is a ntive that does exactly that use this list or another

https://pastebin.com/F220j8xS

Search for particlefx

im an idiot but what should i put for the p1 and p0

the first variable is the particle itself so if you did local fire = creating particle here then you would put

the first variable as fire.

i usually use the stop in range natives though

What we have in our server is a script where fire is spanwed when u press a button but we want an effect for a smoke plume but we want it to dissapear after a while, bear in mind the fire gets spanwed at wherever the player is

Their is a few tricks I did to get it to work, however until the server owner that i made the script for allows me I cannot give away any more information on how to sync or control the fires. I wasn’t even supposed to help this far but I couldn’t help it.

The last bit of help ill give on creating the firescript is that you need to store the flames in a table like this

table.insert(fires, code to create fire here)
table.insert(fires, x)
table.insert(fires, y)
table.insert(fires, z)

and when you call on them do fires[i+1] for x and so on. There is a lot more ways to do this more efficient, however that is the method ill share.

Ill try get that figured out and try get it working thanks for the help!

1 Like

PM me for an opportunity to get the alpha version of my fire script that works 100%

2 Likes

The firescript has just went live at:

1 Like

btw sir.I got a smoke particle script but it doesnt run with physics its just a graphic how can I add the physics to the particle with code like your fire script help me out plz

Why a person is able to tell you if your script is private or public?

2 Likes

How would you sync multiple particle effect on all clients? Only one client can use the effect and it’s being parsed through a server event

how exactly did you sync the particles you used?