Please provide more details, as it's unclear what you're asking.
I suspect this means:
"How to create a script that triggers the end of the game when a player finds a specific artifact, meaning they win!"
New here? I'm Roha — want a quick tour?
Please provide more details, as it's unclear what you're asking.