generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Shirts won't work?

Previous Thread :: Next Thread 
DiaKing is not online. 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 is not online. DiaKing
Joined: 12 Aug 2015
Total Posts: 219
11 Aug 2016 07:53 PM
bump
Report Abuse
Adstract is not online. 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 is not online. 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
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
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 is not online. 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
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
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 is not online. DiaKing
Joined: 12 Aug 2015
Total Posts: 219
11 Aug 2016 07:57 PM
*variable
Report Abuse
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
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 is not online. 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 is not online. 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
newcoolman2 is not online. newcoolman2
Joined: 01 Apr 2010
Total Posts: 2637
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
RecurringNightmare is not online. RecurringNightmare
Joined: 05 Jul 2012
Total Posts: 15336
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 is not online. DiaKing
Joined: 12 Aug 2015
Total Posts: 219
11 Aug 2016 08:00 PM
Wow that actually worked
thx
Report Abuse
DiaKing is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image