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

How do I make character start with a certain uniform?

Asked by 10 years ago

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

1 answer

Log in to vote
1
Answered by 10 years ago

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)
Ad

Answer this question