Yeah I see that. That is because it gets confused with Color3.new
. When coloring UI, .new
will automatically convert to .fromRGB
, but not in the case of changing the color(s) of BaseParts.
It’s actually to do with the character’s appearance having not yet loaded.
local Players = game:GetService("Players")
local function onPlayerAdded(player)
local function onCharacterAdded(character)
player.CharacterAppearanceLoaded:Wait()
--if player.leaderstats.Cotton.Value >= 1000 then
--return
--else
character:WaitForChild("Left Arm").BrickColor = BrickColor.new(0, 0, 0)
character:WaitForChild("Right Arm").BrickColor = BrickColor.new(0, 0, 0)
character:WaitForChild("Torso").BrickColor = BrickColor.new(0, 0, 0)
character:WaitForChild("Left Leg").BrickColor = BrickColor.new(0, 0, 0)
character:WaitForChild("Right Leg").BrickColor = BrickColor.new(0, 0, 0)
character:WaitForChild("Head").BrickColor = BrickColor.new(0, 0, 0)
--end
end
player.CharacterAdded:Connect(onCharacterAdded)
end
Players.PlayerAdded:Connect(onPlayerAdded)
This script yields the same result as the other I provided.
Yeah I noticed that while testing. I was mistaken.