Help with a button script

for some reason, i’m getting “aaa” instead of the script being enabled

local captions = script.Parent.captions

local onClicked = script.Parent

local checkifcapon = script.Parent.Parent.check_box

if checkifcapon.Visible == true then

captions.Disabled = false

else

print("aaa")

end
1 Like

The checkifcaption.Visible probably isn’t true.

1 Like

oh no, so i want it if it turns visible then

1 Like

If it’s visible, it wouldn’t print aaa.

yeah but i have another script

1 Like

so,

local captions = script.Parent.captions
local onClicked = script.Parent
local Onc = onClicked.MouseButton1Click
local checkifcapon = script.Parent.Parent.check_box

wait(Onc)
	if checkifcapon.Visible == true then
		captions.Disabled = false
	else
		print("aaa")
end
1 Like
local captions = script.Parent.captions
local onClicked = script.Parent
local checkifcapon = script.Parent.Parent.check_box

onClicked.MouseButton1Click:Connect(function()
	if checkifcapon.Visible == true then
		captions.Disabled = false
	else
		print("aaa")
	end
end)

got print(“AAA”) i really need help on this.

It prints “aaa” because checkifcapon is visible.

well, in the caption i have a print saying "print(“captions enabled”) and it didnt show up.