Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Why doesn't this shirt changing script work?

Asked by
Avectus 120
9 years ago

I'm trying to change a player's shirt to the shirt id below right when they join. The code below is in a localscript inside StarterPlayerScripts.

The script just takes away the current user's shirt but doesn't replace it with the id below, only showing the players base colors.

wait(1)
script.Parent.Parent.Character["Shirt"].ShirtTemplate = "http://www.roblox.com/asset/?id=230178938"

Could someone please tell me how I fix this or if there is another way to do this?

Thanks.

1 answer

Log in to vote
2
Answered by
davness 376 Moderation Voter
9 years ago

When on putting the shirt ID, did you subtract one?

wait(1)
script.Parent.Parent.Character["Shirt"].ShirtTemplate = "http://www.roblox.com/asset/?id=230178937" --subtract one to the ID-- 
Ad

Answer this question