Player:Kick() not working?

You should use this:
game.Players.LocalPlayer:Kick(“Kick message”)