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
this works...
what?
its not working for me
Is there any error printed in the output?
No
Perhaps put "elseif" instead of the second "if", then you only need one end.
ok
Nope not working