When my script executes I get the error
attempt to index upvalue 'name' (a string value)
I'm not sure why I keep getting this error.
My Code
local code = script.Parent.Parent.View -- NumberValue
local name = script.Parent.Name -- TextGUI
local desc = script.Parent.Description -- TextGUI
local val = code.Value
local value = tostring(val)
name.Text = Names["N".. value]
desc.Text = Descriptions["D".. value]

1 comment
Thank you :)