# Copy of script not working anymore

**URL:** <https://community.homey.app/t/copy-of-script-not-working-anymore/124009>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [December 14, 2024, 1:40pm UTC](https://community.homey.app/t/copy-of-script-not-working-anymore/124009 "2024-12-14T13:40:51Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [December 14, 2024, 4:24pm UTC](https://community.homey.app/t/copy-of-script-not-working-anymore/124009/6 "2024-12-14T16:24:33Z")

</div>

> [@TheKos](#):
>
> Debugging results in that it suddenly cannot find await Homey.logic.getVariables anymore by its name, it returns “undefined”.

So if you run this code:

```auto
console.log(Homey.logic.getVariables);

```

It logs `undefined`?

---

_[View the full topic](https://community.homey.app/t/copy-of-script-not-working-anymore/124009)._
