Uhm. newPlayer is already supposed to be the name. So basically it is.
The issue is you can only put it on players who are currently in the game, as the first thing it does is parent a folder to their instance. you have to put an if statement in the event to see if their userid is equal to a certain id, and if it, check the ban
Check if their ID/Name is equal to the Player who you’re looking for
Okay. It’s still do not warn in the output.
Remove the PlayerAdded event in your CheckBan code
I did so. But still not working at all.
What code do you have for both the CheckBan and the script that fires the Checkban function
Firing function script:
Handler script:
Change newPlayer
in those warns to newPlayer.Name
, you’re concatenating a player instance to a string