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: Is there a way to do this?

Previous Thread :: Next Thread 
Sp1ff is not online. Sp1ff
Joined: 04 Nov 2011
Total Posts: 2731
19 Jul 2016 09:58 AM
Can you make it so that when a player joins a game they have a certain outfit on?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
19 Jul 2016 10:05 AM
Yes :)
Report Abuse
Sp1ff is not online. Sp1ff
Joined: 04 Nov 2011
Total Posts: 2731
19 Jul 2016 10:43 AM
@bothangles how....
Report Abuse
brack4712 is not online. brack4712
Joined: 07 Mar 2009
Total Posts: 243
19 Jul 2016 11:37 AM
easy.

function onAdded(player)
wait(2)
player.Character.Shirt.ShirtTemplate = ASSETIDHERE
player.Character.Pants.PantsTemplate = ASSETIDHERE
print("Changed the outfit")
end

game.Players.PlayerAdded:connect(onAdded)
Report Abuse
lululukas is not online. lululukas
Joined: 23 Aug 2010
Total Posts: 1043
19 Jul 2016 11:41 AM
shirtid=YOURASSETIDHERE
pantsid=YOURASSETIDHERE

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
sh=char:WaitForChild("Shirt")
pa=char:WaitForChild("Pants")
sh.ShirtTemplate=shirtid
pa.PantsTemplate=pantsid
end)
end)


Report Abuse
Kodran is not online. Kodran
Joined: 15 Aug 2013
Total Posts: 5330
19 Jul 2016 11:42 AM
and if the player isnt wearing a shirt? ^^^^^

you have to make one if there isn't already one there.
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