What in the world is localTransparencyModifier?

I have been playing around with it for a long time and so far it has done nothing. I looked it up on devhub and copied and pasted their code, but the script didn’t do anything. Whenever I print localTransparencyModifier it always prints zero. Another thing is whenever I try to change the value of localTransparencyModifier it always prints an error saying that localTransparencyModifier is not a valid member of part (even though I’m able to print it)

What is this and how do I use it? Devhub isn’t helping.

Found this, it should help you to find what you want.
https://developer.roblox.com/en-us/api-reference/property/BasePart/LocalTransparencyModifier
You said it wasnt on the devhub but it didnt help, but the devforum is the only place that you’ll be able to find something, I didnt even know this existed.

I wish you would read my post before replying.

I would also like to know if I put it in a server script, a local script, and where do I put the script? Devhub doesn’t say any of that and neither does any other sources.

1 Like

I did read the post, theres no other place to actually find it since its a “roblox-exclusive” feature.

The script required for this is a local script

1 Like

Yes, I was having trouble trying to get a model to turn invisible when I go in first person mode, and someone said this was the answer to my problems but idk how it works or even know what the general idea of it is.

Models wont work, it has to be single parts, there arent loops to change every part
(Add a for i,v in pairs - it might work then)

Another weird thing I noticed is that sometimes you have to capitalize it, but sometimes you don’t?

(LocalTransparencyModifier, localTransparencyModifier )

Honestly I didn’t this existed. But from what i’ve been able to recollect. The links that @PaintDevs sent are pretty much the only links that’ll do you best, even though you say that they don’t work. (Maybe you copied code wrong)

But why would want to use it anyway? You can just use the transparency on the parts to do…well just that.

Yes, in most cases the lowercase version is deprecated, example: “findFirstChild” and “FindFirstChild”

1 Like

Okay I got the part to actually change transparency now, but it changed the transparency across the server, and not the client like it said it would.

Also I don’t see the point of why this exists. Apparently this is used to make parts go transparent when you go in first person mode (which is what I’m trying to do) but so far it looks like it has nothing to do with that.

Sometimes it prints errors when I use the lowercase version and sometimes it doesn’t

I agree with you, I was thinking the same, but I think this was just another fancy way for roblox to change data values (transparency in this case) since they had spare time tbh


It could be buggy as its not intended for widespread usage.
I think roblox just jumped the gun on this one as its not mainly used.

6 Likes

Well while you’re here, do you know any way to make a model go transparent when I go in first person mode? (My camera subject set to one of its parts)

I am not sure how to achieve that, but when I go on studio, I can try

You could try to use a viewmodel, I’m not sure if it’d work tho