#Module Script Table data isnt shared when it should be

47 messages · Page 1 of 1 (latest)

stuck obsidian
#

It's not a method.

#

Although I'm trying to look deeper and see.

wanton juniper
#

doing : pass self to the function automatically xd

#

js do it with .

#

also modulesscripts doesnt share between server and client

bronze oak
#

yeah i changed it to .

stuck obsidian
#

Why wouldn't they?

bronze oak
wanton juniper
#

i saw a fireclient so js warning

wanton juniper
stuck obsidian
#

Module scripts do share also to clients.

bronze oak
wanton juniper
#

no

#

when u require a module script it executes on the side u have required it

#

if u require a module from localscript it is only for ur cliet

#

client

bronze oak
#

this worked perfectly as i would expect it

wanton juniper
#

same for server

stuck obsidian
#

Right, my bad.

bronze oak
#

anyways im not working with client

wanton juniper
#

doing :functionName pass the self as if you do .functionName(self, player)

bronze oak
wanton juniper
#

send ss then

stuck obsidian
#

Poggers.

#

Are you sending the player correctly?

bronze oak
#

i print the table and it just prints {}

stuck obsidian
#

Good.

#

Your tables are in fact empty.

bronze oak
#

even if i sent the wrong player the table should print

stuck obsidian
#

I screenshot your screenshot, lol.

stuck obsidian
#

They can't print anything.

bronze oak
#

this is ran before i print them

#

the issue is that the tables are not shared between the console (or any other place that i run the commands) and the knock script

stuck obsidian
#

Hold on

bronze oak
#

i thought about making a normal script that just has a table, but i need to use functions like a module script, and i dont wanna use server to server events

#

if i initialize the tables in a different script in _G would that work?

stuck obsidian
#

No clue.

bronze oak
#

it worked

#

but the tables were supposed to act like this, right?

#

now i have a different issue, the knock script has the _G data, and the console doesnt

#

does the console have a different _G then the scripts??