Edit Character color with GUI

I want to make it so when I push a button my Roblox character (R6) would change color using RGB

The issue is that I don’t know how to get the player who pushed the button so I can get their body parts to change their color

Does anyone know how I would do this?

A physical button in the workspace using surface gui or a button that’s on the players screen? (GUI)

Players Screen. In the Starter GUI folder

Are you trying to do this for an individual body part, or the whole body?

Check this out. BodyColors | Roblox Creator Documentation If you are doing this locally, you will have to fire a remote event to the server, THEN change the body colors in the OnServerEvent , so that his body color updates for everyone, unless it is automatically updated, I do not know if it is.

Ive Created A simple button that changes a players body colors to the assigned brickcolor. I am not the best at changing character proporties, but it does change the brickcolor atleast. Here is the code;

For the gui button local script it is;


local Bttn = script.Parent

local RepStorage = game:WaitForChild("ReplicatedStorage")

local ClrEvent = RepStorage.ColorEvent

Bttn.Activated:Connect(function()
	
	ClrEvent:FireServer()
	
end)

You will need a remote event, It can be named anything, in this case, I called it ColorEvent

For the server script;

local RepStorage = game:WaitForChild("ReplicatedStorage")

local ClrEvent = RepStorage.ColorEvent



ClrEvent.OnServerEvent:Connect(function(plr)
	
	local char = plr.Character
	
	print(char.Name)
	
	for _, v in pairs(char:GetChildren()) do
		
		if v:IsA("BasePart") then
			
			v.BrickColor = BrickColor.new("") -- BrickColor You want goes here
			
		end
		
		
	end
	
	
end)