You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
I have an invisible button the size of the screen
What is the issue? Include screenshots / videos if possible!
it doesn’t let me rotate the camera
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I set the button to disactive and it still didn’t work. I found GUI blocking me from turning camera but it didn’t have the solution
The reason I’m not using mouse.clicked is because I don’t want it to signal when the mouse is hovering a button. Only when it hit’s the screen. I have the button zindex to 0 so the other gui is on top of it
Did that but the button doesn’t work anymore, nothing happens when I click it. There is nothing wrong with my code. The buttton only signals when clicked with visible on
local Players = game:GetService("Players")
local player = Players.LocalPlayer
local mouse = player:GetMouse()
local function onButton1Down()
-- put whatever you want to happen in this function
end)
mouse.Button1Down:Connect(onMouseClick)
Thats the only way to achieve the effect without breaking the camera as far as I’m aware, but you could add a bool which shows if the mouse is over an object and check that.