I’m trying to make a system that updates the shirt based on the intvalue. I’ve tried many methods to no success,
So far I have:
script.Parent.ShirtTemplate = game:GetService("MarketplaceService"):GetProductInfo(script.Parent.Value.Value).ProductId
I’m trying to make a system that updates the shirt based on the intvalue. I’ve tried many methods to no success,
So far I have:
script.Parent.ShirtTemplate = game:GetService("MarketplaceService"):GetProductInfo(script.Parent.Value.Value).ProductId
What exactly is going wrong? Are you getting any errors? What methods have you tried? What is happening compared to what you want to happen?
It’s important to include as much information as possible so we can help solve your problem efficiently and effectively.
No errors, its just changing the ID of the shirt template without changing the texture
I’ve tried script.Parent.ShirtTemplate = "rbxassetid://".. script.Parent.Value.Value
, but I got the same result.
I want it to change the shirt texture not just update some numbers
You need to use the shirt template ID of the shirt rather than the asset id of the shirt. You can get this id by manually copy pasting it into a shirt object and copying the template ID it gets converted to. Use that string instead for the shirt and it will likely just fine.
I’m trying to make that process automatic to prevent false advertization. An example of this would be if you’re selling a yellow shirt and you forgot to change the shirt, the user might not see this change and would be the other product.