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

How would you give uniform to player on join?

Asked by 7 years ago

I created a script, but it has to be chatted. Any way to make it automatic on join? Also, how would you add hats?

1 answer

Log in to vote
0
Answered by 7 years ago
Edited 7 years ago

If you have the ids then it should be easy

local ShirtID = 'http://www.roblox.com/asset/?id=369695645'
local PantsID = 'http://www.roblox.com/asset/?id=419630782' --Put your ID's where the # is

game.Players.PlayerAdded:connect(function(Player)
    wait(3)
    local Shirt = workspace[Player.Name]:FindFirstChild('Shirt')
    if Shirt == nil then
        local ShirtObj = Instance.new('Shirt')
        ShirtObj.Parent = workspace[Player.Name]
        ShirtObj.Name = 'Shirt'
    end
    local Pants = workspace[Player.Name]:FindFirstChild('Pants')
    if Pants == nil then
        local PantsObj = Instance.new('Pants')
        PantsObj.Parent = workspace[Player.Name]
        PantsObj.Name = 'Pants'
    end
    workspace[Player.Name].Shirt.ShirtTemplate = ShirtID
    workspace[Player.Name].Pants.PantsTemplate = PantsID
end)

0
Technically you are NOT supposed to let people give you scripts but eh. I'll let it slide ;) Lord_Hagenost 40 — 7y
0
I found a few errors, they've been corrected Lord_Hagenost 40 — 7y
Ad

Answer this question