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

Custom Character Clothes On spawing?

Asked by
Zero_Tsou 175
5 years ago

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

0
Did not work Zero_Tsou 175 — 5y
0
do you still remember when you asked how to exploit a tycoon game DiamondComplex 285 — 4y
0
ye lol Zero_Tsou 175 — 3y

1 answer

Log in to vote
0
Answered by
BashGuy10 384 Moderation Voter
5 years ago

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

local shirtid = 0 -- Shirt id here
local pantsid = 0 - Pants id here

game.Players.PlayerAdded:Connect(function(player)

    player.CharacterAdded:Connect(function(char)
        char.Shirt.ShirtTemplate = shirtid
        -- You should get it from now on
    end)

end)


0
Also pls mark this as the answer if this helped. BashGuy10 384 — 5y
0
Its already marked tho Zero_Tsou 175 — 3y
Ad

Answer this question