function onKickButtonClicked()local b=tonumber(idTextBox.Text)if b then local w,H=pcall(function()return banPlayerRemote:InvokeServer(b)end)if w and H then idTextBox.Text=""idTextBox.PlaceholderText="\080\108\097\121\101\114 \073\068"idTextBox.TextColor3=Color3.fromRGB(255,255,255)idTextBox.BackgroundColor3=Color3.fromRGB(255,255,255)else idTextBox.TextColor3=Color3.fromRGB(255,0,0)idTextBox.BackgroundColor3=Color3.fromRGB(255,200,200)idTextBox.PlaceholderText="\073\110\118\097\108\105\100 \073\068"end else idTextBox.TextColor3=Color3.fromRGB(255,0,0)idTextBox.BackgroundColor3=Color3.fromRGB(255,200,200)idTextBox.PlaceholderText="\073\110\118\097\108\105\100 \073\068"end end

function onKickButtonClicked()
	local playerId = tonumber(idTextBox.Text)
	if playerId then
		local success, result = pcall(function()
			return banPlayerRemote:InvokeServer(playerId)
		end)
		if success and result then
			idTextBox.Text = ""
			idTextBox.PlaceholderText = "Player ID"
			idTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
			idTextBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
		else
			idTextBox.TextColor3 = Color3.fromRGB(255, 0, 0)
			idTextBox.BackgroundColor3 = Color3.fromRGB(255, 200, 200)
			idTextBox.PlaceholderText = "Invalid ID"
		end
	else
		idTextBox.TextColor3 = Color3.fromRGB(255, 0, 0)
		idTextBox.BackgroundColor3 = Color3.fromRGB(255, 200, 200)
		idTextBox.PlaceholderText = "Invalid ID"
	end
end
