Dynamic item images

hello, i am making a shooter game, and im wondering how i would make dynamic images for my guns, without having to use viewport frames (because of performance issues and its just confusing in general) so i was wondering if theres another way to do it.

any help appreciated

If you don’t want to use ViewportFrames, you have to upload every single gun icon to roblox to display them. I don’t think there are any other methods to do it. Also why do you not want to use viewport frames? If you are too concerned about the lag you can just create a low poly version of the gun and render that model on the viewport frame

Im not sure if you can even make a gun system with dynamic images, the best option is probably a viewport.

The only thing I can think of is shooting a bunch of raycasts from a camera to the gun based on some distance math. Then for each raycast result calculate a color or transparent if the gun isn’t detected, create an EditableImage and write the raycast result colors on it as pixels. This will have many issues tho, for example it won’t pick up texture colors.

The viewport frame doesn’t update unless you change the guns/cameras position, so it should have similar performance compared to images

right. but its mostly the complexity behind it, because im using tools i’d have to get the handle and when i tried it rotated it so weirdly