Better understanding of "pulse effect" V2?

Hey Developers, a while back I made a post about doing a pulse effect on image labels and text labels –

What the script I have does is it does the effect but it doesn’t do it centered.

Meaning anytime I want to do a text label or a bigger sized image I won’t be able to do it as it will be completely off-centered and not look good.

what the script I use currently looks like:

I was wondering if I could do what I want? and maybe not even have to do it through a module script. Maybe just using position etc.

I’ve also talked with the person who created the example gif and he said not to create a clone it and tween the text transparency and the button or image label itself when everyone that helps me says to create one.

Any tips or ideas?

Thank you anything will help :smiley:

The direction of the pulse depends on the AnchorPoint of the gui object. If you want the pulse to always be centered regardless of the anchor point, then you’re gonna have to do some math to get the centered position relative to the anchor point

Is there a way to tween it without cloning it and just tweening it’s transparency and size without cloning and getting the same end result? if so how so

I don’t see a way to do it without cloning it at least once. You can copy paste the original gui object and then tween the transparency of the copied object in a loop.

You would still need to do math to resize it properly, unless you can set the anchor point to 0.5, 0.5