Problem
When attempting to script MaterialService.Use2022Materials, the following error occurs: The current thread cannot write 'Use2022Materials' (lacking capability RobloxScript)
even through the documentation states that you can. This issue even occurs on the command line when manually typed in. Furthermore, even though the documentation says read parallel, there is no read access. Attempting to even read the property returns the same error.
At this point I’m not sure if it’s a documentation issue or if it’s an engine issue.
In a system that uses multiple maps with different configurations, it is essential to be able to specify which set of materials that should be used when rendering the map in the workspace so the map environment has the intended look.
Additional Information
Parameter | Value |
---|---|
Problem Area | Engine |
Problem Component | LUA API |
First Noticed | 23 Mar 2024 |
Priority | Medium |
Impact | Medium |
Annoyance Level | High |
The beta features that I have enabled are as follows:
- AI-Powered Texture Generator
- Assistant Preview
- Material Generator
- Notched Screen Support
- Notification Overhaul
- Updated Docking System
- Updated Roblox Controls
As for plugins, I have a bunch that are installed, but very few are enabled. The ones that are enabled are listed below with links to their details page on the Roblox store website:
Expectations
What I expect to happen is to be able to set this value via script since the documentation says that I can.
Visuals
Output window of Studio
Specific Documentation
Reproduction
Since this also happens on the command line, open Roblox Studio and enter the following commands on the command line:
game.MaterialService.Use2022Materials = true
print(game.MaterialService.Use2022Materials)