Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help With String Value Script?

Asked by
Scootakip 299 Moderation Voter
9 years ago
function ColorClick(click)
    script.Parent.Parent.Color.Value = "" ..script.Parent.BrickColor.. ""
end

script.Parent.ClickDetector.MouseClick:connect(ColorClick)

This script gives me this error in the output

Workspace.Colorizor.Part.Script:2: attempt to concatenate field 'BrickColor' (a userdata value)

Can someone help me figure out what this means and how to fix it? Thanks.

Answer this question