Hi, I’m trying to change a StringValue to a player’s StringValue but I can’t
for tm,tamam in pairs(script.Parent:GetChildren()) do
if not tamam:IsA("Script") then
tamam.ClickDetector.MouseClick:Connect(function(plr)
tamam.BrickColor = BrickColor.new(plr.Color.Value)
print(plr.Color.Value)
tamam.Color.Value = tostring(plr.Color.Value)
end)
end
end
Stack Begin - Studio 22:38:33.226 Script 'Workspace.Model.thefirstone', Line 19
The line you sent is only the error location. Could you sent the whole error message, including the description?
22:57:11.237 Value cannot be assigned to - Server - thefirstone:19
22:57:11.237 Stack Begin - Studio
22:57:11.237 Script 'Workspace.Model.thefirstone', Line 19 - Studio - thefirstone:19
22:57:11.237 Stack End - Studio
That’s all I get
I got why I had the error, it was because Color
is a property of it, so I was trying to edit it’s color by trying to edit it’s value.