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

How do I make character start with a certain uniform?

I want any character that enters my game to have on no clothes their skin grey and a hat??? one already made???

1 answer

✓ Accepted answer

local shirtemplate = "id here"

local pantstemplate = "id here"

 

function giveShirtAndPants(p)

    local c = p.Character

    c.Shirt.ShirtTemplate = shirtemplate

    c.Pants.PantsTemplate = shirtemplate

end

 

game.Players.PlayerAdded:connect(function(p)

    repeat wait() until p ~= nil

    repeat wait() until p.Character ~= nil

    giveShirtAndPants(p)

    p.CharacterAdded:connect(function(c)

        repeat wait() until c ~= nil

        giveShirtAndPants(p)

    end)

end)

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