sooooooooo I haven't done lua in a year so I'm a bit rusty and I'm curious why this doesn't work
local button = script.Parent
local function onButtonActivated()
if script.Parent.Text = "Back" then
script.Parent.text = "Credits"
else
script.Parent.Text = "Back"
end
end
button.Activated:Connect(onButtonActivated)

2 comments
Ah yes thank you! It's starting to come back to me
wait but why MouseButton1Click? isnt it better to use Activated because Activated can support mobile and pc?