I have this LocalScript that calls a module but it will not work ?
require(game:GetService("ServerScriptService").Modules.SwordModules.NormalSword).Run(script.Parent, game.Players.LocalPlayer)
It seems to work on "play solo" but not on real game? Not sure why.
local sword = {} function sword.Run(tool, plyr) repeat wait() until tool print(plyr.Name) print(tool.Name) end return sword
You could load the Module through a require, then have it create a Remote Function or Event. Then get the client to invoke it to do something, it will pass the player as the 1st arg. Here is some documentation, If you need any more help DM me. http://wiki.roblox.com/index.php?title=Remote_Events_and_Functions