CloseButton.InputBegan:Connect(function(Input)
if Input.UserInputType == Enum.UserInputType.MouseButton1 or Input.UserInputType == Enum.UserInputType.Touch then
IsPressed = true
end
end)`
When I used the code above the image button was not working on mobile devices
CloseButton.MouseButton1Down:Connect(function()
IsPressed = true
end)
however, when i changed it to the old MouseButton1Down event it worked find, is this a glitch in the system or am i doing something wrong