DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 07:50 PM |
I never really worked with shirts, pants, etc. But i'm assuming you do it like this..?
local shirt = Instance.new("Shirt", plr) shirt.ShirtTemplate = "rbxassetid://0"
This didn't work for me so i'm guessing i did this wrong Help..? |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
| |
|
Adstract
|
  |
| Joined: 13 Sep 2015 |
| Total Posts: 3342 |
|
|
| 11 Aug 2016 07:56 PM |
local shirt = Instance.new("Shirt", plr) plr = plr - 1 shirt.ShirtTemplate = "rbxassetid://0"
|
|
|
| Report Abuse |
|
|
Adstract
|
  |
| Joined: 13 Sep 2015 |
| Total Posts: 3342 |
|
|
| 11 Aug 2016 07:56 PM |
i don't know what it means but the texture you need is like 1 less than the actual texture.
|
|
|
| Report Abuse |
|
|
|
| 11 Aug 2016 07:56 PM |
the Shirt and Pants instances are in the player's Character. iterate to destroy any shirts/pants they may have on them instantiate them that way, parenting them to the player's character
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 07:56 PM |
no i already made plr a value
local plr = game:GetService("Players").LocalPlayer
|
|
|
| Report Abuse |
|
|
|
| 11 Aug 2016 07:57 PM |
@adstract; not necessarily at all
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
| |
|
|
| 11 Aug 2016 07:58 PM |
player.Character
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
Adstract
|
  |
| Joined: 13 Sep 2015 |
| Total Posts: 3342 |
|
|
| 11 Aug 2016 07:58 PM |
i have no idea lol, i've never tried scripting anything involving clothing
|
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 07:59 PM |
| Where am i supossed to put the player.Character at..? |
|
|
| Report Abuse |
|
|
|
| 11 Aug 2016 07:59 PM |
for _,children in pairs(plr.Character:GetChildren()) do if children:IsA"Shirt" then children:Destroy() local shirt = Instance.new("Shirt",plr.Character) shirt.ShirtTemplate = "rbxassetid://0" end end
|
|
|
| Report Abuse |
|
|
|
| 11 Aug 2016 08:00 PM |
Character is a property of the Player. it's their character model in workspace
Ever wanted to learn how to script? Check out my YouTube channel: youtube.com/austintheslayer Want to see me code in action? Follow my twitch: twitch.tv/austinrblx |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 08:00 PM |
Wow that actually worked thx |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 08:07 PM |
wait what about pants? I tried to do the same thing with pants but it didn't work.. |
|
|
| Report Abuse |
|
|
DiaKing
|
  |
| Joined: 12 Aug 2015 |
| Total Posts: 219 |
|
|
| 11 Aug 2016 08:08 PM |
wait nvm simple mistake i didn't see sorry about that |
|
|
| Report Abuse |
|
|