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: Instance.new problems

Previous Thread :: Next Thread 
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
21 Sep 2013 11:38 AM
game.Players.PlayerAdded:connect(function(player)
wait()
player.CharacterAdded:connect(function(character)
studs = Instance.new("Shirt", character);
studs.ShirtTemplate = "http://www.roblox.com/asset/?id=76457144";
end);
end);


I tested this script in a server and it threw no error, but it doesn't make the object "Shirt" inside the character either.
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
21 Sep 2013 04:04 PM
bump
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
21 Sep 2013 05:12 PM
bump
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
21 Sep 2013 05:15 PM
Are you using the id that you get when you are buying the shirt or did you subtract it by 1?

~rekt get
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
21 Sep 2013 07:59 PM
Yes but as I said it doesn't even create the object "Shirt"
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Sep 2013 08:01 PM
I dunno if this will work, but remove any shirts the character already has?
Report Abuse
Project2015 is not online. Project2015
Joined: 11 Sep 2013
Total Posts: 384
21 Sep 2013 08:03 PM
Try in roblox player.
Report Abuse
blackboy167thst is not online. blackboy167thst
Joined: 22 Jul 2011
Total Posts: 2468
21 Sep 2013 08:04 PM
Or check if the character has a shirt.

if character:findFirstChild("Shirt") then
character.Shirt.ShirtTemplate = ""
else
local s = Instance.new("Shirt", character)
s.ShirtTemplate = ""
end

~rekt get
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
21 Sep 2013 08:06 PM
game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)
if char:FindFirstChild("Shirt") then
char.Shirt.ShirtTemplate = "TemplateHere"
else
Instance.new("Shirt",char).ShirtTemplate = "TemplateHere"
end
end)
end)

"U BROKE THE TV U IDIOT!" - CeaselessSoul
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Sep 2013 08:06 PM
Or if the guy has a shirt, just change the template number into the one you want. Happyface.
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
21 Sep 2013 08:07 PM
My internet connection problems have arose.
Report Abuse
expressmyself is not online. expressmyself
Joined: 19 Apr 2011
Total Posts: 1768
21 Sep 2013 08:13 PM
Still seems to not work, but that's okay I'll just use Textures.
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