Hi, so I currently have a system that does this but it’s extremely laggy even when done on the client.
local function Applyandreturn()
local Texlist = {}
for iP , vP in pairs(model:GetChildren()) do
for i = 1, #Enum.NormalId:GetEnumItems() do
local Texture = Instance.new('Texture', vP)
Texture.Face = Enum.NormalId:GetEnumItems()[i]
Texture.Texture = texture
table.insert(Texlist, Texture)
end
end
return Texlist
end
if RarityToNumber[rarity] >= 5 then
MythicAnimations.Flow(Applyandreturn())
else -- static skin / animated above^
Applyandreturn()
end
end)
The Tweening part is likely causing lag because it is Tweening over 30- 60 different textures as they have to be applied to each face. I’ve seen other games get away with this in performance because it only does it to one part. However, our weapons consist of many. I’m wondering if there was a way to animate said textures without causing lag. I’m currently running an RTX 3080 and a ryzen 9 5900x and losing up to 400 frames/s when the animated skin runs; I could only imagine what this will do to lower-end computer’s performance.
-thanks in advance for any help!