Recently, I have decided to attempt to make an anti-exploit as well as a chat moderation script that is called by a loader... I am having trouble on getting the player parameter. I have tried :
game.Players.PlayerAdded:connect(function(Player) end)
as well as:
game:GetService("Players").PlayerAdded:connect(function(Player) end)
If someone could help me that would be great. I am trying to get it on 1 script.. Not 2 thank you.
test purposes
-- for the module local Test = {} function Test:doFunction(player) print(player.Name.." has joined!") end return Test
-- for the script local TestModule = require(workspace.Test) game:GetService("Players").PlayerAdded:connect(function(Player) TestModule:doFunction(Player) end)