EDIT: I only want to disable mouse events for the Gui Buttons I specify in the script, not every button.
I’ve tried setting the properties Active and Selectable to false, but whether I did that manually or through a localscript, the event still always fires.
The description of Active suggests that it should be the solution, but it’s not.
So the mouse events get fired when the Gui Buttons are clicked… except I would like to (temporarily) stop that from happening in some point in my script. So the button is visible, but it doesn’t do anything.
Sorry, I just realised that I’ve been saying that I wanted to do this for all Mouse Events when I only wanted to stop Mouse Events from firing for the Gui Buttons I specify.
for _,v in pairs(script.Parent:GetChildren()) do
if v:IsA(“TextButton”) and fire ~= false then
–This is if they are allowed to click it.
else
–Not Allowed
end
end
Problem is, I’m using more than one event across 3 scripts for this.
I thought that there might be a property that could be set to false to stop any given Gui Button for firing Mouse Events.