I know very well that many Humanoids can cause a lot of lag, and some solve it by creating their own humanoids, what is the best way to do this?, And how do I reproduce animations in those custom humanoids? How do I put clothes on they?
Is there any other way to reduce the lag caused?
This custom humanoid I need should just walk and sit.
The reason that many Humanoids cause lag is simply numbers. Implementing them in lua isnāt going to improve their performance at all unless youāre removing features from them. Rewriting Humanoids from scratch is also a huge task.
Iād just recommend sticking to Roblox Humanoids, otherwise you can search the forum for some custom Humanoids but that most likely will only make performance worse.
I am sure that this would ensure a better performance because as I said It would only walk and sit, and I need to do it myself because the open sources I find does not work for me.
As long as those are the only features you use with Roblox Humanoids you shouldnāt have too much of an issue. If you anchor the root part of the Humanoid (HumanoidRootPart if it exists, otherwise UpperTorso or Torso) when it isnāt moving it should also prevent any physics lag from the humanoid.
Otherwise, this is a really vague question. Thereās no single way to make your own custom āhumanoid,ā and as such the approach you take will be different depending on the situation. Hopefully this helps.