Hello, I was just doing some work with the MouseEnter and MouseLeave functions, and found that they don’t seem to reach the end of the function sometimes, while other times working flawlessly.
I’ve been looking for help on the subject, and found this.
Here’s a video of the issue:
and here’s my code for handling this (I have my own custom function for handling tweens):
musicFrame.NowPlayingText.MouseHoverArea.MouseEnter:Connect(function()
print("Hovering")
local changesTable = {
[musicFrame.NowPlayingText.SongSelection] = {
{"Position",UDim2.new(0,0,1,5)},
{"Size",UDim2.new(1,0,2,0)}
},
[musicFrame.NowPlayingText.MouseHoverArea] = {
{"Size",UDim2.new(1,0,3,5)}
}
}
musicFrame.NowPlayingText.SongSelection.Visible = true
animation("Multiple",changesTable)
print(musicFrame.NowPlayingText.SongSelection.Size)
end)
musicFrame.NowPlayingText.MouseHoverArea.MouseLeave:Connect(function()
print("Leaving")
local changesTable = {
[musicFrame.NowPlayingText.SongSelection] = {
{"Position",UDim2.new(0,0,0,0)},
{"Size",UDim2.new(1,0,0,0)}
},
[musicFrame.NowPlayingText.MouseHoverArea] = {
{"Size",UDim2.new(1,0,1,0)}
}
}
animation("Multiple",changesTable)
print("About to change visibility")
musicFrame.NowPlayingText.SongSelection.Visible = false
end)
The prints for both function rarely actually get printed.
Is this just a bug with Roblox, or am I doing something wrong? If it is a bug, has it already been submitted as one, and what can I do to combat this in the meantime?