I found a bug that can cause people to accidentally buy stuff in my game without their knowledge.
So when the user clicks on a button when there is a frame over the button, it still activates. This is so weird considering I have large portfolio in SwiftUI.
Is it possible to make it not clickable without disabling it? I know it can be an easy fix, but I just want to see if there is something I didn’t know about.
Thats probably your best bet. I was thinking like checking your Zindex or making sure your UI frame was above the ones with the Buttons in it or something.
What I ended up doing is make a property in my script called
local canPurchaseRootCharacter = true
And if the skins frame is opened, I set this to false.
With the actual get button, I added this:
if not canPurchaseRootCharacter then return end
If there is a property in the frame that overrides the Button’s priority, lmk and I would much rather use that. Its kind of weird that Roblox doesn’t have a property like this.