How can I unable Visual Effects (like ParticleEmitters) locally?

Hi there!

Welp, cutting to the chase, I have this one game with a ‘VFX’ options in settings. It’s meant to unable textures, particle emitters, and so on for players who have low-end PCs.

Nonetheless, I don’t know at all how to single-clientedly unable them. Like I can just make it invisible or destroy them, but that’ll mean no one in the server’d see them.

Any clue? Thanks in advance, any help’s appreciated hehe

If you destroy them from local script, only the client will see them as destroyed and therefore other players will see it normally

2 Likes

Get the descendants of the workspace then loop the array check if the value is a type of BasePart then set their material to SmoothPlastic, if its a particle emitter or texture then just destroy.

You don’t have to worry about that if the script is being done locally.

1 Like

What if I unable them from a LocalScript? Will it work that way as well?

I want the option to be reversible without rejoining the game.

Well, instead of destroying the object, just set its enabled value to false. As for the BasePart’s materials, it would probably be best to store them on a table with their previous material.

Just use local script and it will hide the stuff for the player except others as I showed it in the video below
image

1 Like

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