Changing Torso Color

I am trying to change the player’s torso color to RGB(40, 127, 71) when they join but for some reason it won’t change

the code:

local Players = game:GetService("Players")

Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function(character)
		local torso = character:FindFirstChild("Torso")
		if torso then
			print("torso = true")
			torso.Color3 = Color3.new(0.156863, 0.498039, 0.278431)
		end
	end)
end)

the error:
Screen Shot 2022-07-15 at 4.16.12 PM

try torso.Color = Color3.new(0.156863, 0.498039, 0.278431)

that is literally what I did, did you not see?

  if torso then
		print("torso = true")
		torso.Color3 = Color3.new(0.156863, 0.498039, 0.278431)
	end

never mind, I found out how after a bit of tweaking

Okay but note that you tried to set the property of the parts color3 but that property doesn’t exist, the property is called Color, that’s the difference between the code you posted and my code, it’s small but thats where the issue I saw was.

Glad you found a solution!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.