Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Attempt at editing player body color VIA Script, it should work in theory but its not?

color1 = 23 function color() script.Parent.Parent.Parent.Parent.Character["Body Colors"].LeftArmColor = new(color1) script.Parent.Parent.Parent.Parent.Character["Body Colors"].LeftLegColor = new(color1) script.Parent.Parent.Parent.Parent.Character["Body Colors"].RightArmColor = new(color1) script.Parent.Parent.Parent.Parent.Character["Body Colors"].RightLegColor = new(color1) script.Parent.Parent.Parent.Parent.Character["Body Colors"].TorsoColor = new(color1) script.Parent.Parent.Parent.Parent.Character["Body Colors"].HeadColor = new(color1) end

script.Parent.MouseButton1Down:connect(color)

1 answer

✓ Accepted answer

Here is a simple script to change the Color of your character's entire body.

local block=script.Parent
block.ClickDetector.MouseClick:connect(function(player)
	
local p=player.Character:GetChildren()

for i= 1,#p do
	
if p[i].ClassName=="Part" then
	
	
p[i].BrickColor=BrickColor.new("Bright green")	
	
	
end
	
end
	
	
	
	
end)

I made a button and I have that acting as the trigger, of course you can set it to a touched event as well.

Change bright green to whatever color you want.

1 comment

0

I need it to work in a GUI script, its for a morph

This discussion is preserved as it was. New answers, comments, and votes are closed.