First of all, I have made the topbar invisible. So, when I have a below the name, it doesnt register click nor hover overs… Is there any way that the button is, like above? Or something like that.
It’s a bit complicated. Since the TextButton Click doesn’t work on Topbar, you can make own with UserInputService and MouseEnterMouseLeave event.
local Button = script.Parent -- Button
local UserInputService = game:GetService("UserInputService")
local EnabledClick = false
local function onHover()
EnabledClick = true
end
local function onUnhover()
EnabledClick = false
end
local function onClick(input)
if input.UserInputType == Enum.UserInputType.MouseButton1 and EnabledClick then
-- Mouse click code
end
end
button.MouseEnter:Connect(onHover)
button.MouseLeave:Connect(onUnhover)
UserInputService.InputBegan:Connect(onClick)
Didn’t tried it, but hopefully work. So basically this code checks if the button is hovered, then enabledClick set to true, if not then false. And UserInputService makes click event when the enabledClick is true.
Hopefully really soon! There was a lot of feedback on that thread though so perhaps they’re busy implementing some changes and addressing some design concerns regarding the icons.