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: Help?!

Previous Thread :: Next Thread 
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
10 Mar 2017 07:21 PM
So I'm new to scripting and I wanna know how do you add shirts and pants to a player automatically when they join? this is the script I came up with.

local shirt = Instance.new("Shirt",plr)shirt.ShirtTemplate = "rbxassetid://=267396876"
local pants = Instance.new("Pants",plr)pants.PantsTemplate = "rbxassetid://=267397081"


I used a localscript to put that script in. Also where do I put the script in? Like do I put the local script inside of the workspace? or..?

Also does it matter if its r6 or r15.
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
10 Mar 2017 07:29 PM
Shirt and Pants objects go inside the player's character. A server script can do that too but if you want a local script to run it should be either in StarterGui or StarterPlayerScripts
Report Abuse
cokeeeeeeeee is online. cokeeeeeeeee
Joined: 08 Oct 2016
Total Posts: 218
10 Mar 2017 07:29 PM
player = ######################### ##################### player.Character) Instance.new("Pants", player.Character) player.Shirt.ShirtTemplate = "" player.Pants.PantsTemplate = "" try this
Report Abuse
cokeeeeeeeee is online. cokeeeeeeeee
Joined: 08 Oct 2016
Total Posts: 218
10 Mar 2017 07:30 PM
ARE YOU KIDDING ME ROBLOX ASDASD


Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
10 Mar 2017 07:30 PM
I tried that but when i press play it doesn't work.
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
10 Mar 2017 08:27 PM
Assets={267396876,267397081}
game.Players.PlayerAdded:connect(function(player)
local character = player.Character or player.CharacterAdded:wait()
for i,v in pairs(Assets) do
game:GetService("InsertService"):LoadAsset(v).Parent = character
end
end)

Idk if this works but try it
Report Abuse
kylerzong is not online. kylerzong
Joined: 06 Aug 2011
Total Posts: 659
10 Mar 2017 08:29 PM
(Normal Script In Workspace)
Report Abuse
AwesomeBrickJoe is not online. AwesomeBrickJoe
Joined: 11 Sep 2011
Total Posts: 550
14 Mar 2017 01:17 PM
It didn't work.
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