#Directly changing shirtID's on NPC's not functioning

34 messages · Page 1 of 1 (latest)

old fiber
#

script i have is ```shirts = {7306916393, 4702838223, 3193677442, 6607995780, 6340287018, 1365928449, 184830315}

local randomshirt = math.random(1,#shirts)
local clothing = script.Parent
clothing.ShirtTemplate = 'http://www.roblox.com/asset/?id=' ..shirts[randomshirt]```

wintry lake
#

do you have ownership over the assets?

old fiber
#

no, but when i apply it in studio it shows up

#

only doesnt work when applied by the script

#

(btw script is the child of the clothing)

wintry lake
#

are you using the same id format that you use for applying in studio?

#

are the IDs the same?

old fiber
#

yes

#

i can copy and paste what the script generates manually and it works

old fiber
#

thats just because you cant look at assets via that kind of link

#

this is what it is

wintry lake
#

oh wait i forgot it does that

#

hm

#

does it work in-game?

old fiber
burnt swift
old fiber
#

it will work in game if i manually put it in tho

old fiber
burnt swift
#

quick question are the shirts layerd clothing? or roblox classic shirts?

old fiber
#

classic

burnt swift
gleaming muralBOT
#

studio** You are now Level 4! **studio

old fiber
#

i can stream it if you like

burnt swift
#

do you have a screenshot or image of this?

old fiber
#

what part?

#

here

#

notice the id is perfectly fine

#

but he has no shirt

old fiber
#

holy crap how has no one had this problem before