How to make nice animated skins?

Hey so I’d like to make some animated skins similar to what this guy did in this twitter post
https://twitter.com/devHoodie/status/1153404866590597120

I know that it has something to do with textures, but I’m also wondering how he was able to get one whole skin around the whole barrel like that. Don’t texture objects only let you put an image on one face of the object? Sorry if this is a dumb question I’m just not sure how to go about this. Thanks for any help

See Texture Offsets 2019

As far as I know there isn’t a very good way to do this with a mesh texture. Surface textures are probably your best bet. If you look closely in the twitter post you’ll see that they’re also surface textures

1 Like

Surface textures? Do you mean a surface gui?

Sorry, no, just the Texture object in Roblox.

Ah! That’s my twitter post!

It’s just a texture on each face.
The code I wrote for this took me all but 5 minutes and it’s actually really simple!

It loops through the gun and finds all the textures, moving their offsets by just a tiny bit every frame.

If I were to rewrite this, I would probably use TweenService instead.

local animatedTexture = true
local c = 0 
local c2 = 0
local i = .005
local i2 = .001

if animatedTexture then
	while rs.RenderStepped:wait() do
		for i,v in pairs (gun:GetDescendants()) do
			if v:IsA("Texture") then
				v.OffsetStudsU = c
				v.OffsetStudsV = c2
			end
		end
		c = c + i
		c2 = c2 + i2
	end
end
10 Likes