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

Character Appearance on Entered?

Asked by
FiredDusk 1466 Moderation Voter
9 years ago

When someone joins they will have a certain kind of character Appearance. This script disables the character appearance but I want it to be true. What would I do it I just want only the shirt and pants to be disabled? But the hats will be enabled

local shirt = Instance.new("Shirt")
local pants = Instance.new("Pants")
local shirtID="http://www.roblox.com/asset/?id=51350913"
local pantsID = "http://www.roblox.com/asset/?id=137169695"

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
        player.CanLoadCharacterAppearance=false --This is what is taking away all clothing

        shirt.ShirtTemplate=shirtID
        shirt.Parent=player.Character

        pants.PantsTemplate=pantsID
        pants.Parent=player.Character
    end)
end)    

Answer this question