I've looked at this over and over, and can't figure out what's going wrong
ServerScript
game:GetService('Players').PlayerAdded:connect(function(player)
local api = require(script.Parent.Data)
api:CheckGroups(player)
end)
ModuleScript
function module.CheckGroups(player)
print(player.Name)
end
The modulescript only prints 'nil'
When I try to use player:IsInGroup() in the module script it returns an error.
Thanks in advance for the help.

1 comment
Thanks, I knew it was something silly like that.