# llGetKey

*LSL function*

```lsl
key key llGetKey();
```

- Returns: `key`
- Energy: 10

Returns the key (UUID) of the prim containing the script.

```lsl title="How to use" frame="terminal"
key result = llGetKey();
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    state_entry()
    {
        llOwnerSay(llGetKey());
        llOwnerSay(llGetLinkKey(llGetLinkNumber()));
    }
}
```

</details>

## See also

### Functions

- [llGetLinkKey](/functions/llGetLinkKey/)
- [llGetLinkNumber](/functions/llGetLinkNumber/)

---

*Source: [LlGetKey](https://wiki.secondlife.com/wiki/LlGetKey) on the Second Life Wiki. Content from the Second Life Wiki article LlGetKey (revision 1194188, 2015-01-22), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetKey/
