Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Clothes On StarterCharacter Appearing Grey?

I Made a Started Character and added a shirt and pants to the model. When the model is in the workspace I can see it fine, however, when I put it in starter character, I spawn as it but the clothes are all grey with no textures. I tried putting this LocalScript in the StarterGui and It gave no error, but my clothes are still grey. I tried in both Studio Test mode and a Live game. Same Result.

shirtid = "http://www.roblox.com/asset/?id=925627339"
pantsid = "http://www.roblox.com/asset/?id=2040734207"
 
game.Players.PlayerAdded:connect(function(player)
    char = game.Players.LocalPlayer.Character
    char.Shirt.ShirtTemplate = 925627339
    char.Pants.PantsTemplate = 2040734207
end)

Please help soon!

Edit Here is Screenshot of the explorer and test area. https://imgur.com/a/S0tjYcr

(making a link didn't work sorry)

UPDATE: I deleted The StarterHumanoid that I had in the starterPlayer folder and it fixed the problem.

3 comments

0

The issue's because the script's listening for a new player to join (via PlayerAdded).

0

Also, please put your code in a block block; it makes it easier to read. https://forum.scriptinghelpers.org/topic/82/how-to-format-questions-answers-on-the-main-site

0

How do I fix this?

1 answer

Try this

Dummy = game.Workspace.Model --insert your model name instead
Player = game.Players.LocalPlayer

T = Dummy.Clothing:Clone() --Shirt
T.Parent = Player.Character

T = Dummy.Clothing:Clone() --Pants
T.Parent = Player.Character

Rename clothing to Shirt and Pants because their names by default are clothing

4 comments

0

Tried this and got no errors, but still no clothes. When the Character is in workspace it has clothes but as soon as I put it into game.StarterPlayer it appears Grey.

0

Maybe its just a visual problem for you, i'll try to make you a step by step solution so you can check if you did anything wrong

0

I had a friend join and both of us saw just grey :/ Im not sure but I think its an issue with the code

0

https://imgur.com/a/vjqfXY4 see if it works now

This discussion is preserved as it was. New answers, comments, and votes are closed.