i have this problem with my script it wont let me execute the ModuleScript that the serverscriptservice is executing but i keep getting an error here's my code:
local wow = script script=Instance.new'SelectionBox' local script = wow
local module = {}function module(player)
script.oofer_gang:Clone().Parent = game:GetService('Players'):FindFirstChild(player).PlayerGui
_G.test = player
end
return module
can you help me plz?
Edit: New Problem's 'Requested module experienced an error while loading' or 'attempt to call a table value'

10 comments
Hi, you've been online since I last posted, but you seem to not have the question answered. Do you still need this answer to be answered or does the code above work?
i dont have a module in the serverscriptservice i want it to be a script that can execute the require to players that join the game. plus do i need to change this part of the script where it says module.myVar = "test variable"
give me a second and i'll figure it out
I'm a bit confused about your question. Could you possibly explain what you're trying to do a bit more? If you're trying to call code from a ModuleScript in a normal script, you'd use the code in the answer I provided.
The ModuleScript can be put wherever you want it to be. A normal script can use require() to access the code in the module script like shown in the example. The part of the code where I said "module.myVar = "test variable"" I was giving an example of what a variable inside a modulescript would look like. You can delete it if you'd like, but it is just a way of using variables between scripts witho
without having to use _G like you did in your question
If you explain your problem a bit more I can help further.
basically im trying to make a script in the serverscriptservice that run's the code in the module and shows my gui thats in the module script but i keep getting the error so i tryed your code and it seemed to not show the Argument 1 missing or nil but its showing more errors, i keep trying to find out what the error is but its to confusing for me.
what are the errors
update your post with what you currently have