How would i make this script better?

– This script makes a shop GUI viewport frame orbit around the cloned orange block with the camera orienting around the orange block.
– It is designed to be attached to a ScreenGui within the StarterGui.

I noticed I had to change the template variable, the name of the block, the camera, and have to copy and paste the orbital functions for my blocks in the renderstepped function. I feel like knowing I had to change those I’m close to solving my problem with repetitive codes but couldn’t find anything to help me so far.

To clarify, do you want to make a fix for any problem or overall improve the script?

Just improving it, I feel like im repeating the same line over and over, When it could probably be less lines. I have other skins I would have to do that for.

1 Like

In that case, this should be in #help-and-feedback:code-review .

1 Like