How would you make animated textures?

Hey, I’ve seen animated textures in a lot of places and I want to learn them myself, (and use them for gun camos, for example) but I just don’t know the best way to do it.

Is this done by uploading a bunch of frames to roblox and then just repeatedly changing the ID? If it is, is there a better way to do it? Because this would get annoying and tedious pretty fast, especially for higher FPS animations. (Like for a 30fps animation that lasted 3 seconds, that would be 90 images)

17 Likes

You can use sprite sheets or just a seamless texture then shift the Offset and StudsPerTile properties.

https://developer.roblox.com/en-us/api-reference/class/Texture
image

More info: Gifs in Roblox with only 1 image

20 Likes

Thank you! Exactly what I was looking for.

I probably should’ve mentioned you will need to use MeshPart’s to do this.

Here is a little demo I set up to showcase the idea:

moving mesh texture.rbxl (31.0 KB)

18 Likes

Wait, you do? So, is it impossible to do it with regular parts/ unions? I’m pretty sure you should be able to do it with those, as well

Also, that’s really cool!!

1 Like

(sorry for the late response)

Sorry I thought you wanted to do this with tools like guns and stuff. You can’t do it using a Mesh instance (different from a MeshPart), but you can do it using Parts for sure. I’m not sure about unions but it will probably work.

2 Likes

Got it. Thanks!

(30 charrrrrrr)

3 Likes

He explicitly said you can use a MeshPart.

Why does adding this script to a mesh part texture instantly decrease game performance significantly?