sometimes when changing properties with a script/localscript, it will error with no permission. how can I check if the script has no permissions to change a property before attempting to change it?
Can you give a clearer example of when this occurs?
What properties are you trying to change?
I am not gonna change these properties they will be grayed out as they are unchangeable I wanna check if they unchangeable
when I attempt change an unchangeable property, I don’t want a fix I just wanna detect if the property is unchangeable
The only way this can be done as far as I’m aware, is to manually make a list of all of the changeable properties. There is no GetProperties sort of thing, so this is generally how people store properties of instances for specific projects.
I suppose maybe you could also pcall setting the property, and if it errors and returns non-successful, you could assume its a read only property lol.
that’s actually what I did at first but chagning the property sometimes doesn’t work since it’s the same thing and if I set it to something different is can effection the expierence for examplke if I set first mode to true and then orginal property which is false then it will become first person for a second and cause player zoom out
Whats the reason for this in the first place?
I am reccereatieng the explorer from studio
Yea I think your best bet is just manually getting the changable and readable properties to know which is which. I’m pretty sure people have already done this and posted it somewhere here. Not pretty but, until they add a GetProperties method, thats the most straightforward way, AFAIK.
ok I will do this
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.