I want any character that enters my game to have on no clothes their skin grey and a hat??? one already made???
✓ ANSWER ACCEPTED
How do I make character start with a certain uniform?
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.
