So I'm trying to make some sort of dialog for my game. I'm trying to make a textbutton change the text of the textlabel.
local button = script.Parent
local main = game.StarterGui.ScreenGui.Frame.MainDIalogue.Text
local function onClicked()
main = "something something"
end
button.Activated:Connect(onClicked)
However, when I try clicking on the textbutton. Literally nothing happens, no error, no change. Just nothing. Did I reference something wrong or probably I have it in the wrong order? Im using a local script for this by the way.

1 comment
Oh whoops I didnt notice that error. I changed it and yet still the same problem