How to make windscreen wipers that actually wipe rain

I’ve seen it on ROBLOX before.

I want to make an image texture with a windscreen wiper that has an animation and the rain (image texture) gets wiped every wipe the windscreen wiper does.

1 Like

You can achieve that by adding a UIGradient to your image, set its Offset to (0,0.5), Rotation to 90 and make its Transparency 0-0.499 = 0 and 0.5-1 = 1. If you dont know how to work with transparency you can check it out here: UI Layout and Appearance | Documentation - Roblox Creator Hub.
Then with this simple code you can make that effect:

for i=1,180 do
	uigradient.Rotation = 90-i
	task.wait(0.01)
end

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