C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 12:23 PM |
It seems like Roblox broke the clothing template property.
No matter what ID I put in, it ALWAYS SAYS FAIL TO RESOLVE TEXTURE. -ALWAYS- |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 05 Dec 2016 12:25 PM |
Probably not.
If you think it's a Roblox bug, go check the bug report dump somewhere on RBXDev, or links to other threads with a similar issue. Assuming that the issue does not lie with your script is pretty.. unproductive.
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 05 Dec 2016 12:27 PM |
Ensure it's a string Shirt.ShirtTemplace = "rbxassetid://12341234"
or
id = 12341234 Shirt.ShirtTemplate = "rbxassetid://"..id
|
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 12:28 PM |
It works when I put the ID of the shirt in the template by hand. Not by script.
It should be logically correct. But I guess not. |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
| |
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 12:32 PM |
Yeah Soy, it is a string. Thanks though.
Here's a ge-ah-zo to illustrate this problem. I feel like it's on roblox this time.
/e7c0925c3112e1bbe7d9e1e65e4d26e8 |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 05 Dec 2016 12:33 PM |
Nothing is on roblox. It is always you, not them.
|
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 12:33 PM |
Here is the code.
local AssetFunctions = { ["Shirt"] = function(x) c.Shirt.ShirtTemplate = "rbxassetid://"..GetClothingID(x) end; ["Pants"] = function(x) c.Pants.PantsTemplate = "rbxassetid://"..GetClothingID(x) end; ["Face"] = function(x) c.Head.face.Texture = "rbxassetid://"..GetClothingID(x) end; ["Hat1"] = function(x) RemoveHats() InsertObject(x) end; ["Hat2"] = function(x) InsertObject(x) end; ["Hat3"] = function(x) InsertObject(x) end; } |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 12:35 PM |
Tell you what.
Can some one write me a script to change your current shirt to an ID?
That shall be the test. |
|
|
| Report Abuse |
|
|
Moolah60
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 654 |
|
|
| 05 Dec 2016 12:43 PM |
| The correct template asset for that shirt is ########## It's not always the Shirt AssetID - ## Sometimes it can be AssetID - 2 or 3. |
|
|
| Report Abuse |
|
|
Moolah60
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 654 |
|
|
| 05 Dec 2016 12:44 PM |
| Well since that was censored, here's the math: ######### - # # Template ID |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 05 Dec 2016 12:45 PM |
I wouldn't store functions in a dictionary like that only because I'm not familiar with it. If you understand it, go for it, but it coud be the source of your error.
Does separating the lines with those semicolons remove the need to use a comma between dictionary elements?
function ReplaceShirt(char,id) local shirt = char:FindFirstChild("Shirt") if shirt then shirt.ShirtTemplate = id else newShirt = Instance.new("Shirt",char) newShirt.ShirtTemaplte = id end end
shirtId = 12341234 -- adjust game.Players.PlayerAdded:connect(function(player) player.CharacterAppearanceLoaded:connect(function(char) -- wait for clothing and extras ReplaceShirt(char,shirtId) end) end)
|
|
|
| Report Abuse |
|
|
Moolah60
|
  |
| Joined: 26 Sep 2009 |
| Total Posts: 654 |
|
|
| 05 Dec 2016 12:45 PM |
| I suppose they think that's a cellular device number. 'rbxassetid://564988953' |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 01:07 PM |
It's strange though. The function you rewrote for me Soy didn't change the ID to -1 or -2 from the original ID given, it returned the starting ID. Another fact, when I copied and paste the original ID by hand, it worked!
what could be the reason of error? this is INSANE |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
| |
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 05 Dec 2016 01:21 PM |
Like I mentioned in green comment text, try assigning a variable to id at the beginning of the function and manipulate that
i.e.
function ReplaceShirt(char,id) local idNum = id --loop -- get asset info and perform check on idNum, if not then idNum = idNum-1 -- end loop end
|
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
| |
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 01:59 PM |
Still absolutely nothing xD
I swear roblox is toying with me.
I edited your function, and it still returned the SAME id as the id that was passed in to the function. This. Is. A. JOKE.
Roblox is trash. |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 02:01 PM |
I printed out the name of the product, and yeah, the ID I sent in to the function was correct. But it's saying it failed to resolve the texture? LOL.
The ID is correct! It's failing to resolve the texture. Maybe it's strange, like even though the ID is correct, the actual render ID has to be different. I'll experiment with that and see what happens.
Need more help, this is definitely an issue with roblox. |
|
|
| Report Abuse |
|
|
C_Sharper
|
  |
| Joined: 03 Oct 2011 |
| Total Posts: 6405 |
|
|
| 05 Dec 2016 02:03 PM |
That was exactly it!
Good grief. That was exhilarating.
I finally got it to resolve the texture C:
Thread is closed, for now atleast. |
|
|
| Report Abuse |
|
|