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: Giving a Player a shirt

Previous Thread :: Next Thread 
superduperturtle1 is not online. superduperturtle1
Joined: 09 Feb 2015
Total Posts: 14
08 Aug 2015 10:08 PM
Okay so I was trying to make a script that makes a player get a link shirt when they respawn and it was not working too well. I looks in the explorer to see if it actually gave me a shirt and stuff and it does. It puts the right template and everything but not showing it.

Script:

game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
wait(3)
local FindShirt = Character:FindFirstChild("Shirt")
if FindShirt then
FindShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=102271272"
else
local GiveShirt = Instance.new("Shirt")
GiveShirt.Parent = Character
GiveShirt.Name = "Shirt"
GiveShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=102271272"
end
end)
end)
Report Abuse
Darkggod0 is not online. Darkggod0
Joined: 08 Jan 2013
Total Posts: 2946
08 Aug 2015 10:10 PM
I fine that glitch a lot too, I just check if the shirt is there and then remove it and create a new one your better off doing that.


~Darkggod~ - Glory To Vaktovia -
Report Abuse
superduperturtle1 is not online. superduperturtle1
Joined: 09 Feb 2015
Total Posts: 14
08 Aug 2015 10:10 PM
I don't know what you mean.
Report Abuse
Darkggod0 is not online. Darkggod0
Joined: 08 Jan 2013
Total Posts: 2946
08 Aug 2015 10:12 PM
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
wait(3)
local FindShirt = Character:FindFirstChild("Shirt")
if FindShirt then
FindShirt:Destroy()
x=Instance.new("Shirt",Character)
x.ShirtTemplate = "http://www.roblox.com/asset/?id=102271272"
end
else
local GiveShirt = Instance.new("Shirt")
GiveShirt.Parent = Character
GiveShirt.Name = "Shirt"
GiveShirt.ShirtTemplate = "http://www.roblox.com/asset/?id=102271272"
end
end)
end)


~Darkggod~ - Glory To Vaktovia -
Report Abuse
superduperturtle1 is not online. superduperturtle1
Joined: 09 Feb 2015
Total Posts: 14
08 Aug 2015 10:17 PM
Either way would do the same and yours doesn't work either. I think it's a glitch or something because in the workspace it shows my player with the shirt and the shirt template id thing.
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