My goal is simply to create a Shop tooltip system.
The problem isn't too big but it's still an issue. When I move my mouse really fast but still entering another button, Roblox seems to not pick up the MouseEnter or MouseMove though I slowed down and moving within the area.
Evidence: 19e98bdd9c093d45ed8dd6cca8ada8f5.gif https://gyazo.com/81c2fe967aa05cf1fa165d89277c2f63.gif
I don't think it has anything to do with the script but it's a localscript in a ScreenGui
--// TOOL TIP SHOP \\ -- local ShopShowToolTipSizeX = ShopToolTip.Size.X.Offset spawn(function() for _, item in pairs(Shop:GetChildren()) do if item:IsA('ImageButton') then item.MouseEnter:Connect(function() ShopToolTip.Visible = true ShopToolTip.ItemName.Text = 'Name: '..item.Name ShopToolTip:WaitForChild('ItemDesc').Text = 'Desc: '..MovesInfo[item.Name].Desc ShopToolTip.ItemDamage.Text = 'Dmg: '..MovesInfo[item.Name].Damage ShopToolTip.ItemPrice.Text = 'B$ '..MovesInfo[item.Name].Cost item.MouseLeave:Wait() ShopToolTip.Visible = false end) item.MouseMoved:Connect(function(X, Y) ShopToolTip.Position = UDim2.new(0, (X - ShopShowToolTipSizeX) - 10, 0, Y) end) end end end)
Any feedback on how to improve this code or solve the issue is appreciated. Thank you for reading.