For whatever reason when I use the following script, the text button I am trying to change the text of will remain the same.
local button = script.Parent.TextButton if button.MouseButton1Down == true then button.Text = "X" script.Parent.TextButton2.Visible = true print("yep") end
Any suggestions?
Use a function, not a true/false parameter.
local button = script.Parent.TextButton button.MouseButton1Click:Connect(function() button.Text = "X" script.Parent.TextButton2.Visible = true print("yep") end)