You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I am trying to make a Frame that MouseEnter and MouseLeave correctly without getting it stuck in a certain size. -
What is the issue? Include screenshots / videos if possible!
Make a Frame not get stuck in a certain size when using MouseEnter and MouseLeave -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried looking for answers in DevForum and ScriptingHelpers, I tried some solutions but none of them really did what I was asking for.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
local Frame = script.Parent.Frame
debounce = true
function Hov()
while wait(0.1) do
if debounce then
break
end
end
Frame:TweenSize(UDim2.new(0, 100,0, 100), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear,0.3)
end
debounce = true
Frame.MouseLeave:Connect(Hov)
function HovE()
while wait(0.1) do
if debounce then
break
end
end
Frame:TweenSize(UDim2.new(0, 200,0, 200), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear,0.3)
end
Frame.MouseEnter:Connect(HovE)
debounce = true
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.Preformatted text
I am still learning how to script in Lua and I find it really fun.