local player = game.Players.LocalPlayer local character = player.Character.CharacterAppearance character.onPlayerEntered.CharacterAppearance:connect(function() character.CharacterAppearance = ("Shirt") character.CharacterAppearance.Shirt = ("shirtid") character.CharatcerApperance.Shirt.shirtid = ("http://roblox.com/asset/id?=232711648") end) character.onPlayerEntered.CharacterAppearance:connect(function() character.CharacterAppearance = ("Pants") character.CharacterAppearance.Pants = ("pantsid") character.CharacterAppearance.Pants.pantsid = ("http://roblox.com/asset/id?=233364124") end)
I'm trying to make a Character Appearance script for my game to change a character's appearance when entered. But this doesn't work. What did I type wrong?
local Player = Game.Players.LocalPlayer local Character = Player.Character or Player.CharacterAdded:wait() local NewShirt = Instance.new("Shirt") -- Create a shirt. Players won't spawn with one (because you should have AutoCharacterAppearance turned off) local NewPants = Instance.new("Pants") -- Create new pants for the same reason NewShirt.ShirtTemplate = "rbxassetid://232711647" -- Original ID was wrong. You must use the texture. NewPants.PantsTemplate = "rbxassetid://233364123" NewShirt.Parent = Character -- Obviously, parent the clothing to the character NewPants.Parent = Character