Tween is not working in my function :D

I’m kind of new to scripting so please don’t judge if I made an easy mistake ;/

I created a script that calculates when a player gets close to my mesh it opens up a GUI, when you walk to the mesh it will make a tween for it to pop out at the player (this tween works.) But if you walk away from the mesh it will close, but for some reason my GUI is not being tweened but is just instantly being disabled.

The second tween under the else statement isn’t working.

Because you’re setting the size to the end goal as soon as the tween starts playing, remove line 21

1 Like

Thank you for the help.


1 Like

You can place line 21 behind the tween’s creation. (i tried deleting this but ignore this i just realized it does not work)

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.