Retexturing tool help!

I’ve been working on my own project recently, a text-based roleplay game with an immersive character creator. I looked at some other similar games (After the Flash by Chadthecreator, Pine Ridge by the Trite community) and came to the conclusion that I need a way for people to be able to change the texture of their hats.

I set up a system that works well, but upon testing the feature with some friends, I realized there was an issue. Sometimes, users input a decal ID instead of a texture ID, which usually should be fine since Roblox automatically turns the decal into a texture, but here thats not the case.

The code sends the ID the player requested to the server, which puts it in the texture property of the specific hat the player requested, but the ID, if it’s a decal ID, isn’t automatically changed to a texture id, it will just stay as the decal ID, which causes the hat to turn grey.

What can I do to fix this?

1 Like

Assuming here that your ids are assets from other creators, don’t both decals and textures accept the same content uri (rbxassetid://id)?

Yes, they do, but that wasn’t the issue. Roblox stores two content ID’s for images. It stores a Decal ID, and a Texture ID (the one I wanted.)

You can get the texture ID through scripts by loading the decal into workspace and grabbing the ID, which will automatically become a texture ID if done this way.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.