0

# Why does the cards not go down when going left to right?

I am trying to make the cards tween up when you hover over the gui with your cursor and go back down when your cursor is out of the gui. I have 5 gui in this so far for testing and when i hover my mouse left to right the cards doesn't go down. When I go right to left it works as intended. "https://media.giphy.com/media/mYRz7WU09iY51e6M5S/giphy.gif" <---- (a gif to show what I mean)

local object = script.Parent
local objectx = object.Position.X.Scale

object.MouseEnter:Connect(function()
object:TweenPosition(
UDim2.new(objectx, 0, 0.6, 0),
nil,
nil,
0.3,
true
)
end)

object.MouseLeave:Connect(function()
object:TweenPosition(
UDim2.new(objectx, 0, 0.735, 0),
nil,
nil,
0.3,
true
)
end)



Is there a way to fix this so that the cards go down one by one like it did when going right to left?

0
Any errors in the output? LeedleLeeRocket 1029 — 3d
0
There are no errors in the output unidentifiedw 5 — 2d

0

You don't have to put 'nil' for the empty values.

object.MouseEnter:Connect(function()
object:TweenPosition(
UDim2.new(objectx, 0, 0.6, 0),
0.3
)
end)

object.MouseLeave:Connect(function()
object:TweenPosition(
UDim2.new(objectx, 0, 0.735, 0),
0.3
)
end)

0
thanks for the info, but it doesn't seem to solve it though unidentifiedw 5 — 2d