#Problem1
If you want to make someone leave the game, use the Kick method. It crashes their game for you. Also, did you know you can add a special message for example:
game:GetService("Players").Player:Kick("You have been kicked!")
Some people use Destroy instead of kick. Both work. Kick is better since you get the red box and the text inside of it. It also prevents them from being able to read your chat and stuff.
#Problem2
This isn't much of a problem, it's more of a tip... You used game.Players:GetChildren(), you could also use game.Players:GetPlayers(). This way, you can ONLY get player objects and you don't need to see if someone's classname is player or something.
#Finished Product
local player = game:GetService("Players"):FindFirstChild("NameHere")
local message = "You have been kicked from the server."
if player then
player:Kick(message)
end
Hope it helps!