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 » Scripting Helpers
Home Search
 

Re: Spawn with clothing

Previous Thread :: Next Thread 
MidnightMigrane is not online. MidnightMigrane
Joined: 11 Dec 2013
Total Posts: 184
03 May 2014 07:09 PM
I need to make it so when a player spawns he spawns with a specific shirt pants etc. like Blox hunt
Report Abuse
Aethium is not online. Aethium
Joined: 29 Mar 2014
Total Posts: 574
03 May 2014 07:12 PM
http://wiki.roblox.com/index.php/LoadAsset_(Method)

- Add 1.5k | Deplexity | its a lego men game stop worrying
Report Abuse
MidnightMigrane is not online. MidnightMigrane
Joined: 11 Dec 2013
Total Posts: 184
03 May 2014 07:13 PM
How do I use this... kinda a noob .-.
Report Abuse
Aethium is not online. Aethium
Joined: 29 Mar 2014
Total Posts: 574
03 May 2014 07:29 PM
When you use LoadAsset, it spawns in a model with the item you requested in it.

To get the item you requested, use this:

Item = game:GetService("InsertService"):LoadAsset(AssetId)[1]

Then you would put it in the respective player using a PlayerAdded, then Character added method.

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
Item = game:GetService("InsertService"):LoadAsset(AssetId)[1]
Item.Parent = Character
end)
end)

You would also have to remove some stuff from the player to prevent over-lapping, but you get the picture.

- Add 1.5k | Deplexity | its a lego men game stop worrying
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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