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.
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
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.