How can i fix mouse leave laggy glitch

  1. What do you want to achieve? I want when mouse leave button back to the normal size it works but when mouse very fast it laggy

  2. What is the issue?

  3. What solutions have you tried so far? I tried some solutions but it didn’t work

We have nothing to work with here, please send your code

Theres no fix to this issue, its just roblox’s mouse leave and mouse enter events, we can’t fix those.

This could be an error in their code, that’s why im asking for it, if it was this easy to glitch then i think something would be done about it.

Please provide your code, so we can find the issue and fix it.

Thx I fix it by cancel other tweens

--// Services :
local tService = game:GetService("TweenService")
local uis = game:GetService("UserInputService")

--// Tables :
local functions = {}
local Tweens = {}

--// Functions:
functions.GrowBtn = function(btn : ImageButton)	
	local GrowInfo = TweenInfo.new(
		0.1,
		Enum.EasingStyle.Linear,
		Enum.EasingDirection.Out,
		0,
		false,
		0
	)
	if uis.TouchEnabled then		
	else	
		local GrowTween = tService:Create(btn,GrowInfo,{Size = UDim2.new(1.15,0,1.15,0)})
		functions.StopTweens(btn.Name)
		functions.AddTween(btn.Name,GrowTween)
		GrowTween:Play()
	end
	
end

functions.AddTween = function(name : string,tween : Tween)
	Tweens[name][#Tweens[name]+1] = tween
end

functions.StopTweens = function(name : string)
	if Tweens[name] then
		for i,v in pairs(Tweens[name]) do
			print(Tweens[name])
			v:Cancel()
			i = nil
		end
	else
		Tweens[name] = {}
	end
end

functions.NormalBtn = function(btn : ImageButton)
	local NormalInfo = TweenInfo.new(
		0.1,
		Enum.EasingStyle.Linear,
		Enum.EasingDirection.In,
		0,
		false,
		0
	)
	local NormalTween = tService:Create(btn,NormalInfo,{Size = UDim2.new(1,0,1,0)})
	functions.StopTweens(btn.Name)
	functions.AddTween(btn.Name,NormalTween)
	NormalTween:Play()
end