TweenPosition Lag

Hi, I’m currently making a gui menu with a selection menu behind a textbutton, here’s a pic

Basically, the blue frame moves down as a player hovers over the textbutton, but when i hold onto the text button, the tweenposition script kind of glitches out and only works after i click the button a few times, it stops everytime i click something

1 Like

I’ve also noticed other textbuttons that uses tweenpositions lag and requires a double click for MouseButton1Click function to fire.

Show code plz.

When you say hold onto, do you mean click it or stay hovered over?
TweenPosition has an override parameter you should set to true to prevent wonky glitches like that.

bool TweenPosition (
UDim2 endPosition,
EasingDirection easingDirection = Out,
EasingStyle easingStyle = Quad,
float time = 1,
bool override = false,
function(TweenStatus) callback = nil
)

2 Likes

ok thanks