Can you show your code, cus the category is named #help-and-feedback:scripting-support for a reason. And you don’t need any of those modules since they were built to be used years ago (2018) when Roblox’s MouseEnter and MouseLeave signals were downright awful, however afaik they improved it a ton since then.
for i,Slot in pairs(Slots) do
local Object = Slot.VisualFrame
Object.MouseEnter:Connect(function()
if Object.Visible == true then
if not table.find(SlotsTweened, Object) then
table.insert(SlotsTweened, Object)
PlaySound(SlotHoverSFX)
TweenSlot(Object, "In")
end
end
end)
Object.MouseLeave:Connect(function()
if Object.Visible == true then
if table.find(SlotsTweened, Object) then
table.remove(SlotsTweened, table.find(SlotsTweened, Object))
TweenSlot(Object, "Out")
end
end
end)
The TweenSlot function:
local function TweenSlot(Slot, Mode)
local Goal
if Mode == "In" then
Goal = UDim2.new(
0,
Slot.Size.X.Offset * HoverSettings["Size Increase"],
0,
Slot.Size.Y.Offset * HoverSettings["Size Increase"]
)
elseif Mode == "Out" then
Goal = UDim2.new(
0,
Slot.Size.X.Offset / HoverSettings["Size Increase"],
0,
Slot.Size.Y.Offset / HoverSettings["Size Increase"]
)
end
if Goal then
Slot:TweenSize(
Goal,
HoverSettings["Easying Direction"],
HoverSettings["Easying Style"],
HoverSettings["Tween Time"],
true
)
end
end
Denounce is gonna be really weird because if you quickly drag the mouse across, it won’t decrease in size again, and it will be like all frames are hovered over.
It’s unnecessary to use tween service in this case, and he might as well use TweenSize, because the override property allows to override the current tween.
Might be caused by dynamic sizing your module does, try this:
@Z3tsa Replace original offset at the top with the offset of your slot.
local OriginalOffset = UDim.new(0, 0)
local function TweenSlot(Slot, Mode)
local Goal
if Mode == "In" then
Goal = UDim2.new(
0,
OriginalOffset.X * HoverSettings["Size Increase"],
0,
OriginalOffset.Y * HoverSettings["Size Increase"]
)
elseif Mode == "Out" then
Goal = UDim2.new(
0,
OriginalOffset.X,
0,
OriginalOffset.Y
)
end
if Goal then
Slot:TweenSize(
Goal,
HoverSettings["Easying Direction"],
HoverSettings["Easying Style"],
HoverSettings["Tween Time"],
true
)
end
end