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.

7 comments
And none of these have worked
A module script needs another script to be able to run e.g. require() if you are trying to do this in a module script then it will not run until another script uses the require method
I have that..
Is the event not firing, or is the player parameter nil? It is likely that the event is getting connected after the player is added if it is not firing at all.
Its not firing at all.
What are you actually trying to do? When is this loaded? What's this for? Info info info we need more.
It has a UI inside the Module script, and I want the UI to be cloned and Put into the PlayerGui