#Module Script Table data isnt shared when it should be
47 messages · Page 1 of 1 (latest)
doing : pass self to the function automatically xd
js do it with .
also modulesscripts doesnt share between server and client
yeah i changed it to .
Why wouldn't they?
its only server and server
i saw a fireclient so js warning
because they dont xd server and client is never the same
Module scripts do share also to clients.
i have no idea, i used two scripts as example and they shared the data
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
this worked perfectly as i would expect it
same for server
Right, my bad.
anyways im not working with client
cuz u r calling the func with .
doing :functionName pass the self as if you do .functionName(self, player)
i changed it to . its still wrong
send ss then
yes
i print the table and it just prints {}
even if i sent the wrong player the table should print
I screenshot your screenshot, lol.
Well your tables are empty.
They can't print anything.
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
Hold on
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?
No clue.