Saving Player Body Color values when they join

Hello,
a while back, I made a post, asking for how I would go about restoring a player’s original body colors on a click.
Now I did receive what I think would be a solution for this (which is saving the value of their body colors), and adding them accordingly when needed, however I am unsure on how to save said original body colors in the first place.

If it helps, I will provide context for what I want to make: Upon touching a radioactive surface, the players body colors will turn to various shades of green to let off a “radioactive” vibe. (This has already been done.)
After this, if they were to click on a certain med kit, they would get their original body colors back.
(Not done.)

Here is also the original post I did regarding this.

I would appreciate any help that could be provided.

local bodyColors = {}

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		for _, v in pairs(char:GetChildren()) do
			if v:IsA('Part') then
				table.insert(bodyColors, v.Name..':'..tostring(v.Color))
			end
		end
		print(bodyColors)
	end)
end)

what i have done here is gotten all of the parts from the character when it is first added and put them directly into a table with the part name and the part color3 values.

1 Like

First of all, thank you for responding,
Second of all I apologize for not responding to your posts. I took a break from developing for a while, which is why this response is being sent so late.

I will try out your solution soon and update this post regarding it.