I have this code, which changes the text on the sign to display the owner of the tycoon.
local ui = script.Parent.Parent.Parent
local sign = ui.Parent.Parent.Parent
local tycoon = sign.Parent.Parent
local owner = tycoon.Owner
local ns = script.Parent
owner:GetPropertyChangedSignal("Value"):Connect(function()
print(owner.Value)
if owner.Value == nil then
ns.Text = "Nobody's Mine"
else
ns.Text = owner.Value.."'s Mine"
end
end)
Here is the path to the ‘Owner’ value:
The script does print the owner.Value whenever it is changed but does not change the text. What am i doing wrong here?