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

unable to change character appearence?

Asked by 5 years ago

i am working on a game thats suppost to force your characer tolook like a noob` game.Players.PlayerAdded:Connect(function(plr)

plr.CharacterAdded:Connect(function(char)

print(char.Name)

char.Torso.BrickColor = BrickColor.new("Bright blue")

char["Left Arm"].BrickColor = BrickColor.new("Bright yellow")

char["Right Arm"].BrickColor = BrickColor.new("Bright yellow")

char["Left Leg"].BrickColor = BrickColor.new("Bright green")

char["Right Leg"].BrickColor = BrickColor.new("Bright green")

char.Head.BrickColor = BrickColor.new("Bright yellow")

local d = char:GetChildren()

for i=1, #d do

if (d[i].className == "Accessory") then

d[i]:remove()

end

end

local d = char:GetChildren()

for i=1, #d do

if (d[i].className == "Shirt") then

d[i]:remove()

end

end

local d = char:GetChildren()

for i=1, #d do

if (d[i].className == "Pants") then

d[i]:remove()

end

end

local d = char:GetChildren()

for i=1, #d do

if (d[i].className == "CharacterMesh") then

d[i]:remove()

end

end

end)

end)`

(the script is in serverscriptservice) for some reason itll print in the output, but it doesnt change the character at all, i used alot of this code in a different game and it worked just fine but now its not for some reason

Answer this question