Godot Version
4.2.1
Question
So i made a button and all i want from that button is for when its clicked that it makes a part invisible so i made this script:
@onready var button = $Button as Button
func _on_button_pressed():
global.mouse_click = true
and in the other script i said that when global,mouse_click is true than that part gets invisible.But it wont do it.Can anyone tell me what did i do wrong?