Hi there, my code isn’t working for a character customization editor. I want to make it so the player selects a body part to change color of, and then press the desired color. It works… for the head. See, I am changing a string value to find in the dummy. Then I use a remote event to send the bodypart value and color. However, no matter what bodypart I choose, it just changes the head. I also made it print what body part it is changing, and it printed head, while bodypart value was something else. Along with the gui. This is my code.
Bodyparts:
script.Parent.Activated:Connect(function()
script.Parent.Parent.BodyPart.Value = script.Parent.Text
end)
Gui Change:
--I know it isn't optimal but I didn't wanna go through the tedious action of changing all the scripts as I forgot.
while true do
wait(.1)
script.Parent.Text = ("Body Part: "..script.Parent.Parent.BodyPart.Value)
end
RemoteEvent:
local ReplicatedStorage = game:GetService('ReplicatedStorage')
local BodyPart = script.Parent.Parent.Parent.Body_Part.BodyPart
local Color = script.Parent.BackgroundColor3
script.Parent.Activated:Connect(function()
ReplicatedStorage.Color:FireServer(BodyPart, Color)
end)
Also, I can provide any additional information if needed. Please help.