hi! I'm new to scripting and am trying to make my update log for my game work. It is supposed to be invisible until the TextButton that says"Update Log" is clicked,however, it doesn't work at the moment,and stays invisible.The Textbutton that makes it turn visible doesn't turn invisible. My script is down below, can anyone help me out?

not:tried to keep this script as simple as possible so i didn't confuse myself.

local textbutton = script.Parent
textbutton.MouseButton1click:connect(function()
	if textbutton.Mousebutton1click = true
		then
		game.StarterGui("Starter Screen").visible = true
		and
		textbutton.Parent.Visible = false
end)

	

2 comments

0

well, first, will it still work if i have to use it for a textbutton instead, which i need the textbutton to be clicked,turn invisible,and then make the Update Log visible. second, will i have to rewrite my functions since im using playergui instead?