How do i make this work? Yet it does nothing and i get this error in the output :11: attempt to call field 'MouseEnter' (a userdata value)
text = script.Parent.Parent.TextLabel
function OnOver()
text.Text = "random text"
end
function OffOver()
text.Text = "random text2"
end
script.Parent.MouseEnter(OnOver)
script.Parent.MouseLeave(OffOver)

2 comments
What object is "script.Parent"?
TextButton gui