Hello, I was trying to assign Text to a plugin:getSetting() value, but Unable to assign property Text. string expected, got nil error showed up. I wonder what went wrong.
Script:
local WELCOME = "WELCOME"
Welcome.Input.Text = plugin:GetSetting(WELCOME)
This is just a concept of a script, but works exactly the same way.
The error tells you exactly what went wrong. The value you tried to assign to the text property is nil, so the result of plugin:GetSetting(WELCOME) was nil.
Just because the input value of the function was a string, doesn’t mean the output value must be. Check the documentation, it should tell in what case the function would return nil.