So I am trying make a code execute if both conditions are true. I put a || because that is what you do in java but it does not work. How do you do and statements in lua?
if script.Parent.Parent.Parent.Parent.Parent.Work.Frame.Frame.Slot1.Visible == true || script.Parent.Parent.Parent.Parent.Parent.Work.Frame.Frame.Slot2.Visible == true then

2 comments
here is an example: if condition1 == true and condition2 == true then print("both are true") end
so basically just write and where you wrote || and , and the could should work fine. Also try to make Variables instead of writing that many Parents, it would make things a bit more organized and easy to understand later on. I hope I solved your problem, esepek.