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

How to make a brick change color only for you?

Asked by 6 years ago

So I've seen many games that have the ability to change a brick color only for you, and I was wondering how all of that works? I'm not the greatest at scripting, I've been trying for about 2 years and still have yet to learn much, as the wiki pages aren't exactly helpful in my opinion, and youtube tutorial's are absolutely terrible.

An example of what I'm talking about is if you have a certain amount of points(lets say 10) that the brick is green for you, while for everyone that has less than that amount it shows up as red. This also goes for transparency. Thanks in advance.

1 answer

Log in to vote
0
Answered by 6 years ago

For the brick color you will need to use Local parts or better still use Filtering enabled which means that any changes made by the client in a local script will not replicate to the server.

The main purpose of this is to stop client side exploits but FE is also a good development tool and should be used at all times, there are no good reasons not to use FE in your game.

You can also change the transparency of parts with FE / local parts but there is also a property available to us called LocalTransparencyModifier which is used to change the transparency for that local user, this is mainly used in the characters camera zoom where as you zoom in the character fades away.

I would recommend that you use FE since it should be enabled on your game.

side note, local parts are not supported by roblox they are just a side effect of how the instance / system is setup.

I hope this helps.

0
I still don't have a clue what Filtering Enabled is, but you did answer what I was looking for. I now know what Local Parts are. thanks! IScriptThat 5 — 6y
Ad

Answer this question