Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
How would you reference a negative output. For example, if I were trying to reference a clothing's ID number, how would I make it so if the ID minus 1 doesn't work, I would be able to check that it didn't work by detecting a negative output. Then once the negative output it tries the ID minus 2, then 3 and so on until the item's texture is on display?
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
you don't need to put the asset id of clothing or decals.
roblox will automatically do it for you, just put the normal id number.
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
I would do that but the user is inputting the number into a screengui and for some reason it does not work with just the regular id.
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
local Asset = game:GetService("MarketplaceService"):GetProductInfo(PUT ID HERE)
print(Asset.AssetId)
you can use this as well
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
I will try that. Thank you!
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
I got the error "Unable to cast string to int"
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
which line
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
I fixed that error message but the item ID for the texture is staying as the regular shirt ID. It is not automatically finding the texture.
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
yes, i noticed that as well.
you can use this concept to fix it
when a player enters the regular id in the textbox, then clicks a button to submit his id, it would store that id inside a value.
then, it would change the id of his shirt/pants to rbxassetid:// .. IDValue.Value
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
That is exactly what I have down. :P
game.Workspace.MannequinAd01.Model.Shirt.ShirtTemplate ="rbxassetid://"..Asset.AssetId
It still does not want to work.
|
|
HlKMATJoin Date: 2012-10-20 Post Count: 1360 |
yes, that's why i told you to store it inside an int value then reference it
|
|
Dad_BotJoin Date: 2011-06-27 Post Count: 1055 |
I did that but it didn't change anything
|
|