Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Clothes On StarterCharacter Appearing Grey?

Asked by 5 years ago
Edited 5 years ago

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.

0
The issue's because the script's listening for a new player to join (via PlayerAdded). TheeDeathCaster 2368 — 5y
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 TheeDeathCaster 2368 — 5y
0
How do I fix this? NoahJordan21 5 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

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

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. NoahJordan21 5 — 5y
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 Wad_dles 15 — 5y
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 NoahJordan21 5 — 5y
0
https://imgur.com/a/vjqfXY4 see if it works now Wad_dles 15 — 5y
Ad

Answer this question