Help using con[1]

Im trying to copy one of my old scripts but I cant seem to get con[1] not to have the orange line under it.
image
Heres what it looks like in the old script

image
image

This is because it’s not a variable declared outside the function, meaning that it’s trying to assign a value to a non-existent variable.
To fix this in your case, just declare a local con outside of the function.

1 Like

thank you I found it
local con = {}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.