I want to make so that when you get closer to the object gradually it gets more and more invisible, but when getting further, the object gets more visible gradually. What is the script for doing this? I tried to do this but instead I made it that when closer it gets more visible, and vice versa.
if you know how to do that, please tell me. i will credit you