Text not changing using simple script

Really have no idea what is happening here, and I do know that I am getting the textLabel.

My script:

script.Parent.MouseButton1Click:Connect(function() 

script.Parent.Parent.Parent.Parent.ItemDescription.Name.Text = "Adoni"

end)

If the text object is called “Name” it won’t work since Name is a property of the ItemDescription object.
So what you should do is change the “Name” textlabel’s name to something else, and then try running your code again

Either that or the object name is “ItemDescription” and the OP added “Name” into the path without realizing.

According to the Name issue, I think it can remain unchanged if FindFirstChild is used, although I consider it a bad practise:

local button = script.Parent 
local description = button.Parent.Parent.Parent.ItemDescription
local Name = description:FindFirstChild("Name")
button.MouseButton1Click:Connect(function()
	Name.Text = "Text here"
end)