What is Tweens?

  1. What do you want to achieve? Keep it simple and clear!
    I want to learn What Tweens are so I can further understand luau and Roblox dev

  2. What is the issue? Include screenshots / videos if possible!
    I have no idea what Tweens are

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Yes but they don’t make sense

If anyone could explain them to me like I’m a 3 year old that would be nice!

Tweens are a way a developer can slowly advance from one property position to another smoothly then instantly.

For Example, If I had a Part that was Transparent (Transparency property is 1), and I wanted to change it so it wasn’t Transparent (Transparency property Wanted 0), I could just do something Like Part.Transparency = 0

However, it does this instantly, which I don’t like. I want it to fade in, because it looks whacky just showing up from nowhere… What do I do? I use Tweens! Tweens, allow for this smooth transition over a time period.

So instead of the Transparency property going from 1 to 0 instantly

Tweens make the transparency property go from 1 to 0.99 to 0.98 to 0.97 etc. until it reaches 0, the end goal, And this Time is controlled by me, tweens take the time to reach the end goal.

Now Tweens work on properties more then just numbers (Numbers are just easiest to understand in my opinion)

Here are some Roblox Docs info on Tweens & TweenService:

Also here are some YouTube videos that might help understand the coding part of tweens.

Let me know if you have any questions!

1 Like

Wow you should conisder being a teacher! Thx for the help :smile:

1 Like

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