Find out item and select that item?

so im making a viewport frame and im trying to make that frame change. Im quite bad at coding but i want to make it so if a value or something changes, the shown item changes too. How could i make that?

1 Like

Destroy the old item in the ViewFrame then clone the new item you want to be shown in the ViewFrame and parent it to the ViewFrame.

Check out the API Reference.

1 Like

Like how could i do the thing like if i say a value is equal to an item an item gets taken

You need to provide the script you’re working with so we have a bit of context regarding what you are trying to achieve.

rip i accidentally deleted the script