to make it clearer, I have a modulescript that returns a function when it's required. the main script (which is requiring the modulescript ) is supposed to run the function, but its running the function as if it were the modulescript running it. how would I fix that? sorry if this is confusing.
when creating a function in a module script, you have to put... i don't know how to explain it but look
local module = {}
function jump() print "Jumping" end
m = require (workspace.module)
output
local module = {}
function module:jump()-- I've added the value module and put a ":" and then the function print "Jumping" end
m = require (workspace.module)
output Jumping