I am making a shop gui for my game using filtering enabled, however when I move my mouse over the button in studio the button does not respond, it just stays white.
Here's my local script:
local OpenGui = game:GetService('ReplicatedStorage').Remote.GuiOpen
script.Parent.MouseButton1Click:Connect(function()
OpenGui:FireServer('shopMainFrame')
end)
And my server scipt:
function openGui(player, gui)
game.Players:WaitForChild(player.name).PlayerGui.Guis.ScreenGui:WaitForChild(gui).Visible = not game.Players:WaitForChild(player.name).PlayerGui.Guis.ScreenGui:WaitForChild(gui).Visible
end
game:GetService('ReplicatedStorage').Remote.GuiOpen.OnServerEvent:Connect(function(player, gui)
openGui(player, gui)
end)
My StarterGui looks like this:
https://imgur.com/a/nZpIt
And here is what my guis look like when the mouse is over them: https://imgur.com/SVUrGS0

6 comments
I've added this script and yet when I try hovering over the button nothing happens. My buttons do have pictures with transparent backgrounds, and even if I make a new test or image button neither respond.
However when I create a new place with the same security settings a text button works.
I cant think of a reason why it would work in one place and not another. Is it possible you have a transparent UI element covering the buttons that is blocking the mouse events?
I've played around with the gui and I've discovered that it works on it's own when some other element(That I haven't pinned down yet) is implemented in to the new place. I'll test around some more and see if I can narrow it down.
I think I figured it out, for some reason the players service was still active in the explorer even after the test was ended. Now I'm not sure on this one but this leads me to believe that that PlayerGui object was not being updated for events. I made a new place and copied everything in except for the old gui (which I remade for the new place just in case) and now it works.
That is strange, but great news that you have it working :)