I just had this idea And i wanted to accept the challenge To upgrade my scripting level, But i FAILED, Can you help me Out? I want to give my players when they join the game a custom clothes ( and also when they respawn Because it will go default as thier Avatar )
Sorry if you didn't understand my spelling ( IT'S just English is not my main ) And im not 9 years old or something, DON'T GET IT WRONG
Hi, i'm BashGuy10. I hope i can help you!
Problem?
You want character to spawn in with custom clothes.
Fixes
Use player.CharacterAdded:Connect(function(char)
and char.Shirt.ShirtTemplate = shirtid
and char.Pants.PantsTemplate = pantsid
Example fix
01 | local shirtid = 0 -- Shirt id here |
02 | local pantsid = 0 - Pants id here |
03 |
04 | game.Players.PlayerAdded:Connect( function (player) |
05 |
06 | player.CharacterAdded:Connect( function (char) |
07 | char.Shirt.ShirtTemplate = shirtid |
08 | -- You should get it from now on |
09 | end ) |
10 |
11 | end ) |