Hey, everyone!
I’ve been trying to make a player’s body colors a certain set of colors (specifically camo and rust), but when I use humanoid description to change a character’s body colors, their colors are all white instead of what I wanted! Here’s my code. It’s in a for loop that loops through the players:
Is that the full script or just a part of it, if it’s not then please reply or edit the topic with the full script, and also are there any errors in the output? Or is it not outputting anything?
Sorry for that! I was rushing when making this post and didn’t include the whole script. I can’t give it to you right now because I don’t have access to studio, and to answer your other answer: no, I have no errors in the output.
However, as for now, I can tell you that I do have something similar to this:
local infectedNum1 = math.random(1, #plrs) --I have a table of the players in the game
local infectedNum2 = math.random(1, #plrs)
if infectedNum2 == infectedNum2 then
function RepickNum() -- Function that repicks the number, isn’t included in this fragment of code
end
for i, player in pairs(plrs) do
local hum = player.Character.Humanoid
if i == infectedNum2 or i == infectedNum1 then
--this is where I put my humanoid description script
end
end