Why is it printing nil?

Hello,

I came up with this error and I do not know why it is nil?

Server:

Removed for leaking.

Client:

Removed for leaking.

Error:
https://gyazo.com/47312f84376eee64505fb5e634d83256

Line 16:

Removed for leaking.

Thank you,
– dmk

When using shared or _G, the table is only shared across scripts of that context (i.e. server, client, plugin, etc.), meaning server _G.VIP can exist, but it doesn’t on a LocalScript. You’ll have to initialize that at the beginning of your script, and have a separate table for that (with some workarounds since it won’t update on the other context level).

Here’s the documentation for shared aka _G:

image

1 Like

Thank you for clarifying that for me!

Cheers.

1 Like