Hi everyone, been trying out this whole scripting thing and I'm still a noob at it but with a lot of researching I finally made my first script and I wanted to share it for everyone to use in their commercial or non-commercial games. I got the idea from old school survival horror games where you would go up to an object to search it and a text would appear, like a door for an example that says "It's locked" or "I'm going to have to find another way in" this could be used for a variety of scenarios including notes to read which just takes a few minor adjustments to the script.
Just throw this into you Scriptbank folder
Be sure to set the object to Static Mode "NO"
Islmmobile "YES" keeps the object from moving
I hope this helps someone and please feel free to modify and expand upon the script however you like