I created a script that updates a viewportframe’s image every renderstepped frame. Viewports are pretty expensive and because of that, script activity is at 24% when rendering 3 humanoids and can get higher if I add more to the viewport. Is it ok to do this? Wouldn’t a viewport be similar to rendering a regular part, but viewports are inside of a gui? If it’s similar to rendering a normal part wouldn’t this be cheaper to run?
My goal is to create an xray effect and I’m wondering if there’s any ways to do this that is less costly/how to reduce the script activity?
How do I use the worldmodel in the viewport? I tried to parent it to the viewport, then I parented the character to the worldmodel and ran the animation. The character shows but the animation didn’t play even though it was in the WorldModel object.