I have a GUI that I want to run two functions: Change the border color and make another GUI visible. Although it runs the first function, It won't run the second. This is the script:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.BorderColor3=Color3.new(0,0,0)
end)
script.Parent.MouseButton2Click:Connect(function()
script.Parent.BorderColor3=Color3.new(255,255,255)
script.Parent.Parent.Parent.File.Visible=true
end)
--File is a frame under a ScreenGui

1 comment
MouseButton2Click is the right mouse button. You can use a BoolValue to check if it was clicked before. E.g. if clickedOnce then