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: Tiny bit of help

Previous Thread :: Next Thread 
HigherDesire is not online. HigherDesire
Joined: 11 Sep 2008
Total Posts: 10051
02 Dec 2015 03:49 AM
local GroupID = 2702519 --The ID of the group.
local ShirtID = 326036053 --The ID of the shirt.
local PantsID = 326035957 --The ID of the pants.

game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(GroupID) then
player.CharacterAdded:connect(function(character)
local Shirt = Instance.new('Shirt', character)
Shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id='..ShirtID
local Pants = Instance.new('Pants', character)
Pants.PantsTemplate = 'http://www.roblox.com/asset/?id='..PantsID
character.ChildAdded:connect(function(child)
if child:IsA('Clothing') and not Shirt and not Pants then
wait()
child:remove()
end
end)
end)
end
end)--End of script.


Group ID is right

Shirt + Pants ID = The number at top of the item link

it no worky qq
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
02 Dec 2015 04:57 AM
is it the assetid of the shirts and pants?
Report Abuse
HigherDesire is not online. HigherDesire
Joined: 11 Sep 2008
Total Posts: 10051
02 Dec 2015 05:43 AM
I'm really bad
BUT
I believe it's right, not 100% sure about scripting

http://www.roblox.com/DS-Uniformed-Shirt-item?id=326036053

http://www.roblox.com/DS-Uniformed-Pants-item?id=326035957
Report Abuse
LilMcManiac is online. LilMcManiac
Joined: 31 Oct 2011
Total Posts: 2812
02 Dec 2015 06:20 AM
local GroupID = 2702519 --The ID of the group.
local ShirtID = 326036052 --The ID of the shirt.
local PantsID = 326035956 --The ID of the pants.

game.Players.PlayerAdded:connect(function(player)
if player:IsInGroup(GroupID) then
player.CharacterAdded:connect(function(character)
local Shirt = Instance.new('Shirt', character)
Shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id='..ShirtID
local Pants = Instance.new('Pants', character)
Pants.PantsTemplate = 'http://www.roblox.com/asset/?id='..PantsID
character.ChildAdded:connect(function(child)
if child:IsA('Clothing') and not Shirt and not Pants then
wait()
child:remove()
end
end)
end)
end
end)--End of script.
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