This bug has been reported 5 years ago and wasn’t fixed to this day.
When we use .PageEnter
or .PageLeave
events, function doesn’t work.
As an Example code we can give this:
local Gui = script.Parent
local Background = Gui.Background
local UIPageLayout = Background.UIPageLayout
UIPageLayout.PageEnter:Connect(function(Page: Instance)
print("We entered:", Page.Name)
end)
UIPageLayout.PageLeave:Connect(function(Page: Instance)
print("We left:", Page.Name)
end)
But we won’t get any result in Output.
Here is the video of how it looks:
Expected behavior
These two events should be fired after leaving and entering the page.