|
| 21 Sep 2013 11:38 AM |
game.Players.PlayerAdded:connect(function(player) wait() player.CharacterAdded:connect(function(character) studs = Instance.new("Shirt", character); studs.ShirtTemplate = "http://www.roblox.com/asset/?id=76457144"; end); end);
I tested this script in a server and it threw no error, but it doesn't make the object "Shirt" inside the character either. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 21 Sep 2013 05:15 PM |
Are you using the id that you get when you are buying the shirt or did you subtract it by 1?
~rekt get |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 07:59 PM |
| Yes but as I said it doesn't even create the object "Shirt" |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 21 Sep 2013 08:01 PM |
| I dunno if this will work, but remove any shirts the character already has? |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Sep 2013 08:04 PM |
Or check if the character has a shirt.
if character:findFirstChild("Shirt") then character.Shirt.ShirtTemplate = "" else local s = Instance.new("Shirt", character) s.ShirtTemplate = "" end
~rekt get |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 08:06 PM |
game.Players.PlayerAdded:connect(function(plr) plr.CharacterAdded:connect(function(char) if char:FindFirstChild("Shirt") then char.Shirt.ShirtTemplate = "TemplateHere" else Instance.new("Shirt",char).ShirtTemplate = "TemplateHere" end end) end)
"U BROKE THE TV U IDIOT!" - CeaselessSoul |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 21 Sep 2013 08:06 PM |
| Or if the guy has a shirt, just change the template number into the one you want. Happyface. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 21 Sep 2013 08:07 PM |
| My internet connection problems have arose. |
|
|
| Report Abuse |
|
|
|
| 21 Sep 2013 08:13 PM |
| Still seems to not work, but that's okay I'll just use Textures. |
|
|
| Report Abuse |
|
|