|
| 22 Apr 2014 05:06 PM |
This is what I have in my script, and it takes off my player's clothing but does not replace it with the new one because :
17:01:18.944 - Image failed to load: http://www.roblox.com/asset/?id=108129063: Failed to resolve texture format
or when I enter it from the catalog's link :
Image failed to load: http://www.roblox.com/Red-Adidas-Hoodie-item?id=108129063: Request failed
script :
prefix = "http://www.roblox.com/asset/?id="
shirtTable = {prefix.."108129063", prefix.."153068618", prefix.."146978987" }
pantTable = {prefix.."89224181", prefix.."110454553", prefix.."59869182", prefix.."98355682" }
function changeClothes(char) local s = char:FindFirstChild("Shirt") s.ShirtTemplate = shirtTable[math.random(1, #shirtTable)] wait() local p = char:FindFirstChild("Pants") p.PantsTemplate = pantTable[math.random(1, #pantTable)] print "Clothing randomized." end
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) wait(2) print "en guarde" wait(2) changeClothes(char) end) end) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
| 22 Apr 2014 05:55 PM |
Subtract the asset ID by 1, if that doesn't work then try 2.
~masterCameron101, advanced Lua programmer, certified graphics designer and geek~ |
|
|
| Report Abuse |
|
|
| |
|