You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I would like to be able to save theColor3
value sent by another script into the Attribute of a string value.The used script to change the avatar color is a module script. The one used to start the function is a local script. -
What is the issue? Include screenshots / videos if possible!
The following script gets theplayer
and theColor3
variable. The script changes the body of the avatar to the right color, but it doesn’t store that color into the value.
function ChangeNameColor.ChangeColor(player, Color)
local Tag = game.Workspace.Date.Players:FindFirstChild("=" .. player.Name)
local Colore = Tag:GetAttribute("Colore")
local Character = game.Workspace:FindFirstChild(player.Name)
local BodyColors = Character.BodyColors
Colore = Color.Value -- the color doesn't get saved into the value Colore
BodyColors.LeftLegColor3 = Color.Value
BodyColors.RightLegColor3 = Color.Value
BodyColors.TorsoColor3 = Color.Value
end
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Tried to look around the web, no solution found.