Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 08 May 2014 12:44 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=155648123" character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=155648378" end) end)
here i made one but its doesnt works. |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
| |
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 08 May 2014 12:47 PM |
| the script will error if someone is not wearing a shirt. |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
|
| 08 May 2014 12:47 PM |
| Huh, how do i fix it than ? |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
| |
|
| |
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 08 May 2014 01:19 PM |
Oh, the wonders of pcall! Replace your two lines setting shirt and pants with this bit.
if pcall (function() character.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=155648123"end) then return else return end if pcall (function() character.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=155648378"end) then return else return end
--Shira Wolven |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
| |
|
powertool
|
  |
| Joined: 01 Feb 2008 |
| Total Posts: 3771 |
|
|
| 08 May 2014 01:27 PM |
Does it matter? It works and if there's a shirt/pants it'll run and return, and if there isn't, it'll just return. Plus it's quick, dirty, and efficient.
--Shira Wolven |
|
|
| Report Abuse |
|
|
Aisoc
|
  |
| Joined: 08 Jun 2013 |
| Total Posts: 412 |
|
| |
|