local KickMessage = 'Kicked by an admin.'
script.Parent.Handle.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
local Player = game:GetService('Players'):GetPlayerFromCharacter(hit.Parent)
while true do wait()
Player:Kick()
end
end
end)
Is there anyway to make this work? It's suppose to loop kick the player when hit by the tool.

2 comments
It will error out since when the player is kicked since the player is no longer there. Just store the name of the player and add an if to check if they're there before you kick.
Oh no no no, don't store the name of the player, they can change it. Store their ID.