How to remove value from other script?

Help me fixing my tree script.

  1. I tried to change table value from other script to remove tree position

  2. I have 2 scripts one that respawns tree and another that cuts trees. And that one that respawns has table with every tree position and the cutting script should remove that value in table so tree can respawn

  3. I tried everything, using chatgpt, look at devforum,

Heres the script that cuts trees:

CutTree.txt (4.6 KB)
TreeSpawner.txt (2.3 KB)

If both scripts are server scripts, you might wanna take a look at Bindable Events

On the other hand, if one is a server script and the other one local, you’re gonna want to look at Remote Events

Both scripts are server scripts. Thanks i will check out that