Recreating this effect

I wanna tween a part’s (preferably body parts in custom characters or just characters) a color, however I want the color tween to start from left to right like this
Where the red brick slowly becomes green from the left.
image
How would I achieve this exactly?

if you’re referring to the effect similar to the furry infection games where the “ooze” slowly moves up the body, here’s a basic rundown:

there is a mesh instance that is extremely small that is put at the base of the player’s body part when the function is run, which is then welded to the body part.

each mesh is basically the same mesh as the body part, just a smudge bit larger so that it overlaps the player’s body part.

it is then tweened upwards from its base (down to up usually) similar to this:

game:GetService(“TweenService”):Create(Goo.Mesh, TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut), {Scale = Vector3.new(1.26,1.26,1.26),Offset = Vector3.new(0,0,0)}):Play()

(based on a normal R6 avatar, size will vary. example scrapped from aaron_gamer1011)

as long as the mesh is not collidable and the weld is maintained, the color should stay until the player dies.

and boom! that’s the basic rundown of how tweening a color from one point to another on a part.

I’m looking for something like this, just simple color change from left to right.

7:10

yup! that should give the same effect. it is a mesh shaped basically the same as the part that tweens its size.

1 Like

I tried a similar engine to your first reply, but it starts from bottom to top.
i is a character body

	game:GetService("TweenService"):Create(SpecialMesh, TweenInfo.new(.2, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut), {Scale = Vector3.new(i.Size.X/2, i.Size.Y/2, i.Size.Z)}):Play()

what are you trying to achieve? like, left to right? or…

left to right just like shown in the video or opposite direction