So I want the GUI button to move if a frames Visible = true but if it equals false then to continue as normal, this is what I have so far.
script.Parent.PrevPage.MouseButton1Click:connect(function()
if script.Parent.Pages.Cover1.Visible == true then
script.Parent.NextPage.Position = UDim2.new(
0.5,
120,
0.5,
-25)
script.Parent.PrevPage.Sound:Play()
else
script.Page.Value = script.Page.Value - 1
script.Parent.PrevPage.Sound:Play()
end
end)
