#Modulescript working in studio but not in game
102 messages · Page 1 of 1 (latest)
Why are you using VS Code to code in Roblox? Unless... You are exploiting, right?
Or rojo
** You are now Level 21! **
(I don't think he exploits since it is a server script)
How you know it is a server script?
Yes
what lmao
its rojo
why would i exploit in my own game
You are so funny 
I assume :Setup returns a function?
If so you need to run the function and save the metatable to a variable and use that variable to run :UpdatePower
no
the module returns a function
that inits and returns a metatable
that contains the functions itself
and self
I see
This is within the update power function right?
Can you send that part of the script
as part of the setup to toggle all the switches to the default value
So toggle is in the module?
yes
Setup isn’t nil right?
k
Have you tried printing self?
You can also try printing the metatable
k so
self isnt nil but its empty
i tried printing the table but it just prints the id or whatever
so i print the unpack as a tuple
and its empty so yeah
this is what it looks rn, not showing the actual scripts unless its required
Also btw did you do __index just incase?
** You are now Level 2! **
What’s in the init function
Alr so does this work
no i tested it rn
as you can see works fine in studio
the table printed is self
So it works?
Did you publish?
yes....
Try publishing again
Now you wait
ill test it rn
For sometime
What’s in setup again?
well i cant share the whole function but the error comes from this line
well thats the function that causes it
actual error comes from here
I understand
i gtg now bye
** You are now Level 5! **
it still dosent fucking work 👍

