What do you want to achieve?
I want to clear the TextureId such that a model part has no texture
What is the issue?
If I clear the TextureId value then once I run the game in Roblox Studio the property is auto set back to the previously set texture ID. How do I keep this value cleared out?
What solutions have you tried so far?
I tried setting the value to empty, “”, nil.
You gotta delete the texture completely.
What if it’s a texture still used by other parts and other models? Seems extreme to have to delete it, re-create it then reset it on all models that use to use it. Is there really no other way?
You can upload a texture that’s completely transparent?
No because i need to set the color of the model part and if it has a texture then i cant set the color.
For my exact scenario, I have a character customization dialog. In this dialog I have made it so players can pick any color they want for their hair.
To set the hair color the character.Hair.Handle.Mesh.TextureId must be nil so that i can then set:
character.Hair.Handle.Color = selectedColor
Yeah, for this scenario you would have to do what I said, delete texture.
I tried this but it fails. This is my steps:
- Set TextureId to an existing texture
- Delete the texture
- Save and restart Roblox Studio
- Run game.
Result: The TextureId is set to the first texture in my list of images. It seems like its always trying to forcibly set it.
Have you tried this:
- In Asset Manager, right-click on the texture and select ‘Remove from game’
- Remove all textures (not just the ID, but the instance itself) that reference that texture
- Publish and restart Studio
- Rename the texture on your PC and reupload it
- Copy the texture ID and paste it into a new texture instance wherever you want to use it
Another issue is that the texture you’re trying to upload did not pass moderation standards. I tried uploading a texture just a week ago with a bunch of blots and it somehow didn’t pass moderation standards.
I have encountered this problem too, however I copied and pasted a group of textures as I wanted to change the Texture value. The texture value then later reverted to the old values.
I am in Studio Team Create.