Text not changing with value

Hi!
Classic me, I somehow messed a simple script.
image
What’s wrong? If anything, I think I’m using the wrong ValueType.
It’s currently a StringValue.

script.Parent.Parent.Parent.Parent.Parent.UserOwned.Changed:Connect(function()
print ("Mailbox Name Value changed.")
	script.Parent.Text = (script.Parent.Parent.Parent.Parent.Parent.UserOwned.Value.."'s Plot") --set the owner's text
end)

Thanks for any help!

I can definetely say that’s not because of string value, maybe you can show explorer so I can help more?

image

You shouldn’t need the parenthesis in this script.Parent.Text = (script.Parent.Parent.Parent.Parent.Parent.UserOwned.Value.."'s Plot")


No console error, it still says “Nobody’s”

Check the server portion of console.

nothing different…

local Owner = script.Parent:FindFirstAncestorWhichIsA("Folder"):FindFirstChildWhichIsA("StringValue")

Owner:GetPropertyChangedSignal("Value"):Connect(function()
    script.Parent.Text = (Owner.Value.."'s Plot") --set the owner's text
end)

This should fix the problem.

Still, just no error. And still not working

I need to see your explorer, this code works I think it’s a structure problem.

image

Are you changing it whilst running the game? If that is the case you need to change it from a script on server.

How would that be done? Yes, it’s for a House Script-ish.

You need to change the actual value of the instance/class. Instance.Value = “”, this would fire the change function.

Your issue could also be because your yielding the script before it parses the connection.

You could change it while testing in studio, just make sure you’re on the server.
image image

Its a better to simulate the actual use of the object, this would work yes but its not really liable in game.