So I saw tutorials for viewport updated every second with RenderStepped or Heartbeat, but how to make viewport updated only if the player change clothes, I don’t need viewport to render character movement every second etc, I just need viewport to render the Shirt and Pants everytime player change it.
1 Like
Try using
game:GetService("RunService").RenderStepped()
so it will render every frame.
If not, try using Module3D
Module3D V6.1 (ViewportFrame Implementation)
1 Like
But can I make it not render every frame every second, only re-render everytime player change shirt?
1 Like
Then you can reclone the viewport frame or just use Module3D like I said
1 Like
You can listen to the Shirt’s ShirtTemplate and Pant’s PantsTemplate’s own changed event using <Your Shirt or Pants>:GetPropertyChangedSignal("( Shirt / Pants )Template")
and Connect() your render function with it, or “reflect” the change (update the viewport model’s templates) with the updated ID’s.
1 Like
Let me check it when I’m on my pc.