If Box.Visible = true i want the button to have Close as text on it. If Box.Visible = false i want the button to have Assault as text ... Any help?

Box = script.Parent.Parent
Button = script.Parent.Parent.Parent


	if Box.Visible == false then
		Button.Text = "Assault"
	end
	

	if Box.Visible == true then
		Button.Text = "Close"
	end

8 comments

0

this works...

0

what?

0

its not working for me

0

Is there any error printed in the output?

0

No

0

Perhaps put "elseif" instead of the second "if", then you only need one end.

0

ok

0

Nope not working